| 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 |
* Creating inventory for a serialized item
|
| 2820 |
chandransh |
29 |
*
|
| 4496 |
mandeep.dh |
30 |
* @param itemId
|
| 4846 |
mandeep.dh |
31 |
* @param itemNumber
|
| 4496 |
mandeep.dh |
32 |
* @param serialNumber
|
|
|
33 |
* @param purchaseId
|
| 2820 |
chandransh |
34 |
*/
|
| 4846 |
mandeep.dh |
35 |
public InventoryItem createSerializedInventoryItem(long itemId, String itemNumber, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
36 |
|
|
|
37 |
/**
|
| 4496 |
mandeep.dh |
38 |
* Creating inventory for a serialized item using item number
|
| 2820 |
chandransh |
39 |
*
|
| 4496 |
mandeep.dh |
40 |
* @param itemNumber
|
|
|
41 |
* @param serialNumber
|
|
|
42 |
* @param purchaseId
|
| 2820 |
chandransh |
43 |
*/
|
| 4555 |
mandeep.dh |
44 |
public InventoryItem createSerializedInventoryItemFromItemNumber(String itemNumber, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
45 |
|
|
|
46 |
/**
|
| 4496 |
mandeep.dh |
47 |
* Creates inventory for an unserailized item
|
| 3383 |
chandransh |
48 |
*
|
| 4496 |
mandeep.dh |
49 |
* @param itemId
|
|
|
50 |
* @param quantity
|
|
|
51 |
* @param purchaseId
|
| 3383 |
chandransh |
52 |
*/
|
| 4555 |
mandeep.dh |
53 |
public InventoryItem createInventoryItem(long itemId, long quantity, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 3383 |
chandransh |
54 |
|
|
|
55 |
/**
|
| 4496 |
mandeep.dh |
56 |
* Retrieves serialized inventory item given a serial number
|
| 2832 |
chandransh |
57 |
*
|
| 4496 |
mandeep.dh |
58 |
* @param serialNumber
|
| 2832 |
chandransh |
59 |
*/
|
| 4541 |
mandeep.dh |
60 |
public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2832 |
chandransh |
61 |
|
|
|
62 |
/**
|
| 4496 |
mandeep.dh |
63 |
* Retrieves non-serialized inventory items from a given supplier
|
| 2820 |
chandransh |
64 |
*
|
| 4496 |
mandeep.dh |
65 |
* @param itemId
|
|
|
66 |
* @param quantity
|
|
|
67 |
* @param supplierId
|
| 2820 |
chandransh |
68 |
*/
|
| 4496 |
mandeep.dh |
69 |
public List<InventoryItem> getNonSeralizedInventoryItems(long itemId, long quantity, long supplierId) throws org.apache.thrift.TException;
|
| 2820 |
chandransh |
70 |
|
|
|
71 |
/**
|
| 4496 |
mandeep.dh |
72 |
* Retrieves inventory items for a given item
|
| 2820 |
chandransh |
73 |
*
|
| 4496 |
mandeep.dh |
74 |
* @param itemId
|
| 2820 |
chandransh |
75 |
*/
|
| 4496 |
mandeep.dh |
76 |
public List<InventoryItem> getInventoryItems(long itemId) throws org.apache.thrift.TException;
|
| 2820 |
chandransh |
77 |
|
|
|
78 |
/**
|
| 4496 |
mandeep.dh |
79 |
* Retrieves scans for a given order
|
| 3383 |
chandransh |
80 |
*
|
| 4496 |
mandeep.dh |
81 |
* @param orderId
|
| 3383 |
chandransh |
82 |
*/
|
| 4496 |
mandeep.dh |
83 |
public List<Scan> getScanForOrder(long orderId) throws org.apache.thrift.TException;
|
| 3383 |
chandransh |
84 |
|
|
|
85 |
/**
|
| 4496 |
mandeep.dh |
86 |
* Retrieves scans for a given inventory item
|
| 2820 |
chandransh |
87 |
*
|
| 4496 |
mandeep.dh |
88 |
* @param inventoryItemId
|
|
|
89 |
*/
|
|
|
90 |
public List<Scan> getScan(long inventoryItemId) throws org.apache.thrift.TException;
|
|
|
91 |
|
|
|
92 |
/**
|
|
|
93 |
* Scan serialized items.
|
|
|
94 |
*
|
| 5110 |
mandeep.dh |
95 |
* @param inventoryItem
|
| 2820 |
chandransh |
96 |
* @param type
|
| 4496 |
mandeep.dh |
97 |
* @param warehouseId
|
| 2820 |
chandransh |
98 |
*/
|
| 5110 |
mandeep.dh |
99 |
public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
100 |
|
|
|
101 |
/**
|
| 4496 |
mandeep.dh |
102 |
* Scan non-serialized items.
|
| 2820 |
chandransh |
103 |
*
|
| 4496 |
mandeep.dh |
104 |
* @param inventoryItemId
|
| 2820 |
chandransh |
105 |
* @param type
|
| 4496 |
mandeep.dh |
106 |
* @param quantity
|
|
|
107 |
* @param warehouseId
|
| 2820 |
chandransh |
108 |
*/
|
| 4496 |
mandeep.dh |
109 |
public void scan(long inventoryItemId, ScanType type, long quantity, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
110 |
|
| 4496 |
mandeep.dh |
111 |
/**
|
|
|
112 |
* Scan serialized items linked with an order. Returns its price.
|
|
|
113 |
*
|
| 4555 |
mandeep.dh |
114 |
* @param serialNumber
|
| 4496 |
mandeep.dh |
115 |
* @param type
|
|
|
116 |
* @param orderId
|
| 5110 |
mandeep.dh |
117 |
* @param fulfilmentWarehouseId
|
|
|
118 |
* @param quantity
|
|
|
119 |
* @param billingWarehouseId
|
| 4496 |
mandeep.dh |
120 |
*/
|
| 5110 |
mandeep.dh |
121 |
public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 4496 |
mandeep.dh |
122 |
|
|
|
123 |
/**
|
|
|
124 |
* Scan non-serialized items linked with an order.
|
|
|
125 |
*
|
|
|
126 |
* @param inventoryItemId
|
|
|
127 |
* @param type
|
|
|
128 |
* @param quantity
|
|
|
129 |
* @param orderId
|
| 5110 |
mandeep.dh |
130 |
* @param fulfilmentWarehouseId
|
| 4496 |
mandeep.dh |
131 |
*/
|
| 5110 |
mandeep.dh |
132 |
public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 4496 |
mandeep.dh |
133 |
|
|
|
134 |
/**
|
|
|
135 |
* Created item number to item id mapping
|
|
|
136 |
*
|
|
|
137 |
* @param itemNumber
|
|
|
138 |
* @param itemId
|
|
|
139 |
*/
|
|
|
140 |
public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException;
|
|
|
141 |
|
| 4622 |
amit.gupta |
142 |
/**
|
|
|
143 |
* Get itemNumber mappings for itemId
|
|
|
144 |
*
|
|
|
145 |
* @param itemId
|
|
|
146 |
*/
|
|
|
147 |
public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException;
|
|
|
148 |
|
| 5110 |
mandeep.dh |
149 |
/**
|
|
|
150 |
* Gets item ids for a given item number
|
|
|
151 |
*
|
|
|
152 |
* @param itemNumber
|
|
|
153 |
*/
|
|
|
154 |
public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException;
|
|
|
155 |
|
| 5185 |
mandeep.dh |
156 |
/**
|
|
|
157 |
* Retrieves all inventory items given a last scan type
|
|
|
158 |
*
|
|
|
159 |
* @param lastScanType
|
|
|
160 |
*/
|
|
|
161 |
public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
162 |
|
|
|
163 |
/**
|
|
|
164 |
* Retrieves inventory item given a inventoryItem id
|
|
|
165 |
*
|
|
|
166 |
* @param inventoryItemId
|
|
|
167 |
*/
|
|
|
168 |
public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
169 |
|
| 2820 |
chandransh |
170 |
}
|
|
|
171 |
|
| 3430 |
rajveer |
172 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
|
|
173 |
|
| 4846 |
mandeep.dh |
174 |
public void createSerializedInventoryItem(long itemId, String itemNumber, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createSerializedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
175 |
|
| 4496 |
mandeep.dh |
176 |
public void createSerializedInventoryItemFromItemNumber(String itemNumber, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createSerializedInventoryItemFromItemNumber_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
177 |
|
| 4496 |
mandeep.dh |
178 |
public void createInventoryItem(long itemId, long quantity, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
179 |
|
| 4496 |
mandeep.dh |
180 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
181 |
|
| 4496 |
mandeep.dh |
182 |
public void getNonSeralizedInventoryItems(long itemId, long quantity, long supplierId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItems_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
183 |
|
| 4496 |
mandeep.dh |
184 |
public void getInventoryItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItems_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
185 |
|
| 4496 |
mandeep.dh |
186 |
public void getScanForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanForOrder_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
187 |
|
| 4496 |
mandeep.dh |
188 |
public void getScan(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScan_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
189 |
|
| 5110 |
mandeep.dh |
190 |
public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
191 |
|
| 4496 |
mandeep.dh |
192 |
public void scan(long inventoryItemId, ScanType type, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scan_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
193 |
|
| 5110 |
mandeep.dh |
194 |
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 |
195 |
|
| 5110 |
mandeep.dh |
196 |
public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOrder_call> resultHandler) throws org.apache.thrift.TException;
|
| 4496 |
mandeep.dh |
197 |
|
|
|
198 |
public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
199 |
|
| 4622 |
amit.gupta |
200 |
public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
201 |
|
| 5110 |
mandeep.dh |
202 |
public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemIds_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
203 |
|
| 5185 |
mandeep.dh |
204 |
public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
205 |
|
|
|
206 |
public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
207 |
|
| 3430 |
rajveer |
208 |
}
|
|
|
209 |
|
| 3374 |
rajveer |
210 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 3430 |
rajveer |
211 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
|
|
212 |
public Factory() {}
|
|
|
213 |
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
|
|
|
214 |
return new Client(prot);
|
|
|
215 |
}
|
|
|
216 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
217 |
return new Client(iprot, oprot);
|
|
|
218 |
}
|
|
|
219 |
}
|
|
|
220 |
|
|
|
221 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
| 2820 |
chandransh |
222 |
{
|
| 3430 |
rajveer |
223 |
super(prot, prot);
|
| 2820 |
chandransh |
224 |
}
|
|
|
225 |
|
| 3430 |
rajveer |
226 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
| 3374 |
rajveer |
227 |
super(iprot, oprot);
|
| 2820 |
chandransh |
228 |
}
|
|
|
229 |
|
| 4846 |
mandeep.dh |
230 |
public InventoryItem createSerializedInventoryItem(long itemId, String itemNumber, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
231 |
{
|
| 4846 |
mandeep.dh |
232 |
send_createSerializedInventoryItem(itemId, itemNumber, serialNumber, purchaseId);
|
| 4496 |
mandeep.dh |
233 |
return recv_createSerializedInventoryItem();
|
| 2820 |
chandransh |
234 |
}
|
|
|
235 |
|
| 4846 |
mandeep.dh |
236 |
public void send_createSerializedInventoryItem(long itemId, String itemNumber, String serialNumber, long purchaseId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
237 |
{
|
| 4496 |
mandeep.dh |
238 |
createSerializedInventoryItem_args args = new createSerializedInventoryItem_args();
|
|
|
239 |
args.setItemId(itemId);
|
| 4846 |
mandeep.dh |
240 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
241 |
args.setSerialNumber(serialNumber);
|
|
|
242 |
args.setPurchaseId(purchaseId);
|
|
|
243 |
sendBase("createSerializedInventoryItem", args);
|
| 2820 |
chandransh |
244 |
}
|
|
|
245 |
|
| 4555 |
mandeep.dh |
246 |
public InventoryItem recv_createSerializedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
247 |
{
|
| 4496 |
mandeep.dh |
248 |
createSerializedInventoryItem_result result = new createSerializedInventoryItem_result();
|
|
|
249 |
receiveBase(result, "createSerializedInventoryItem");
|
| 2820 |
chandransh |
250 |
if (result.isSetSuccess()) {
|
|
|
251 |
return result.success;
|
|
|
252 |
}
|
|
|
253 |
if (result.wex != null) {
|
|
|
254 |
throw result.wex;
|
|
|
255 |
}
|
| 4496 |
mandeep.dh |
256 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createSerializedInventoryItem failed: unknown result");
|
| 2820 |
chandransh |
257 |
}
|
|
|
258 |
|
| 4555 |
mandeep.dh |
259 |
public InventoryItem createSerializedInventoryItemFromItemNumber(String itemNumber, String serialNumber, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
260 |
{
|
| 4496 |
mandeep.dh |
261 |
send_createSerializedInventoryItemFromItemNumber(itemNumber, serialNumber, purchaseId);
|
|
|
262 |
return recv_createSerializedInventoryItemFromItemNumber();
|
| 2820 |
chandransh |
263 |
}
|
|
|
264 |
|
| 4496 |
mandeep.dh |
265 |
public void send_createSerializedInventoryItemFromItemNumber(String itemNumber, String serialNumber, long purchaseId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
266 |
{
|
| 4496 |
mandeep.dh |
267 |
createSerializedInventoryItemFromItemNumber_args args = new createSerializedInventoryItemFromItemNumber_args();
|
|
|
268 |
args.setItemNumber(itemNumber);
|
|
|
269 |
args.setSerialNumber(serialNumber);
|
|
|
270 |
args.setPurchaseId(purchaseId);
|
|
|
271 |
sendBase("createSerializedInventoryItemFromItemNumber", args);
|
| 2820 |
chandransh |
272 |
}
|
|
|
273 |
|
| 4555 |
mandeep.dh |
274 |
public InventoryItem recv_createSerializedInventoryItemFromItemNumber() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
275 |
{
|
| 4496 |
mandeep.dh |
276 |
createSerializedInventoryItemFromItemNumber_result result = new createSerializedInventoryItemFromItemNumber_result();
|
|
|
277 |
receiveBase(result, "createSerializedInventoryItemFromItemNumber");
|
| 2820 |
chandransh |
278 |
if (result.isSetSuccess()) {
|
|
|
279 |
return result.success;
|
|
|
280 |
}
|
|
|
281 |
if (result.wex != null) {
|
|
|
282 |
throw result.wex;
|
|
|
283 |
}
|
| 4496 |
mandeep.dh |
284 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createSerializedInventoryItemFromItemNumber failed: unknown result");
|
| 2820 |
chandransh |
285 |
}
|
|
|
286 |
|
| 4555 |
mandeep.dh |
287 |
public InventoryItem createInventoryItem(long itemId, long quantity, long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
288 |
{
|
| 4496 |
mandeep.dh |
289 |
send_createInventoryItem(itemId, quantity, purchaseId);
|
|
|
290 |
return recv_createInventoryItem();
|
| 3383 |
chandransh |
291 |
}
|
|
|
292 |
|
| 4496 |
mandeep.dh |
293 |
public void send_createInventoryItem(long itemId, long quantity, long purchaseId) throws org.apache.thrift.TException
|
| 3383 |
chandransh |
294 |
{
|
| 4496 |
mandeep.dh |
295 |
createInventoryItem_args args = new createInventoryItem_args();
|
|
|
296 |
args.setItemId(itemId);
|
|
|
297 |
args.setQuantity(quantity);
|
|
|
298 |
args.setPurchaseId(purchaseId);
|
|
|
299 |
sendBase("createInventoryItem", args);
|
| 3383 |
chandransh |
300 |
}
|
|
|
301 |
|
| 4555 |
mandeep.dh |
302 |
public InventoryItem recv_createInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
303 |
{
|
| 4496 |
mandeep.dh |
304 |
createInventoryItem_result result = new createInventoryItem_result();
|
|
|
305 |
receiveBase(result, "createInventoryItem");
|
| 3383 |
chandransh |
306 |
if (result.isSetSuccess()) {
|
|
|
307 |
return result.success;
|
|
|
308 |
}
|
|
|
309 |
if (result.wex != null) {
|
|
|
310 |
throw result.wex;
|
|
|
311 |
}
|
| 4496 |
mandeep.dh |
312 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createInventoryItem failed: unknown result");
|
| 3383 |
chandransh |
313 |
}
|
|
|
314 |
|
| 4541 |
mandeep.dh |
315 |
public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2832 |
chandransh |
316 |
{
|
| 4496 |
mandeep.dh |
317 |
send_getInventoryItem(serialNumber);
|
|
|
318 |
return recv_getInventoryItem();
|
| 2832 |
chandransh |
319 |
}
|
|
|
320 |
|
| 4496 |
mandeep.dh |
321 |
public void send_getInventoryItem(String serialNumber) throws org.apache.thrift.TException
|
| 2832 |
chandransh |
322 |
{
|
| 4496 |
mandeep.dh |
323 |
getInventoryItem_args args = new getInventoryItem_args();
|
|
|
324 |
args.setSerialNumber(serialNumber);
|
|
|
325 |
sendBase("getInventoryItem", args);
|
| 2832 |
chandransh |
326 |
}
|
|
|
327 |
|
| 4541 |
mandeep.dh |
328 |
public InventoryItem recv_getInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2832 |
chandransh |
329 |
{
|
| 4496 |
mandeep.dh |
330 |
getInventoryItem_result result = new getInventoryItem_result();
|
|
|
331 |
receiveBase(result, "getInventoryItem");
|
| 2832 |
chandransh |
332 |
if (result.isSetSuccess()) {
|
|
|
333 |
return result.success;
|
|
|
334 |
}
|
| 4541 |
mandeep.dh |
335 |
if (result.wex != null) {
|
|
|
336 |
throw result.wex;
|
|
|
337 |
}
|
| 4496 |
mandeep.dh |
338 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
|
|
|
339 |
}
|
|
|
340 |
|
|
|
341 |
public List<InventoryItem> getNonSeralizedInventoryItems(long itemId, long quantity, long supplierId) throws org.apache.thrift.TException
|
|
|
342 |
{
|
|
|
343 |
send_getNonSeralizedInventoryItems(itemId, quantity, supplierId);
|
|
|
344 |
return recv_getNonSeralizedInventoryItems();
|
|
|
345 |
}
|
|
|
346 |
|
|
|
347 |
public void send_getNonSeralizedInventoryItems(long itemId, long quantity, long supplierId) throws org.apache.thrift.TException
|
|
|
348 |
{
|
|
|
349 |
getNonSeralizedInventoryItems_args args = new getNonSeralizedInventoryItems_args();
|
|
|
350 |
args.setItemId(itemId);
|
|
|
351 |
args.setQuantity(quantity);
|
|
|
352 |
args.setSupplierId(supplierId);
|
|
|
353 |
sendBase("getNonSeralizedInventoryItems", args);
|
|
|
354 |
}
|
|
|
355 |
|
|
|
356 |
public List<InventoryItem> recv_getNonSeralizedInventoryItems() throws org.apache.thrift.TException
|
|
|
357 |
{
|
|
|
358 |
getNonSeralizedInventoryItems_result result = new getNonSeralizedInventoryItems_result();
|
|
|
359 |
receiveBase(result, "getNonSeralizedInventoryItems");
|
|
|
360 |
if (result.isSetSuccess()) {
|
|
|
361 |
return result.success;
|
| 2832 |
chandransh |
362 |
}
|
| 4496 |
mandeep.dh |
363 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItems failed: unknown result");
|
| 2832 |
chandransh |
364 |
}
|
|
|
365 |
|
| 4496 |
mandeep.dh |
366 |
public List<InventoryItem> getInventoryItems(long itemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
367 |
{
|
| 4496 |
mandeep.dh |
368 |
send_getInventoryItems(itemId);
|
|
|
369 |
return recv_getInventoryItems();
|
| 2820 |
chandransh |
370 |
}
|
|
|
371 |
|
| 4496 |
mandeep.dh |
372 |
public void send_getInventoryItems(long itemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
373 |
{
|
| 4496 |
mandeep.dh |
374 |
getInventoryItems_args args = new getInventoryItems_args();
|
|
|
375 |
args.setItemId(itemId);
|
|
|
376 |
sendBase("getInventoryItems", args);
|
| 2820 |
chandransh |
377 |
}
|
|
|
378 |
|
| 4496 |
mandeep.dh |
379 |
public List<InventoryItem> recv_getInventoryItems() throws org.apache.thrift.TException
|
| 2820 |
chandransh |
380 |
{
|
| 4496 |
mandeep.dh |
381 |
getInventoryItems_result result = new getInventoryItems_result();
|
|
|
382 |
receiveBase(result, "getInventoryItems");
|
| 2820 |
chandransh |
383 |
if (result.isSetSuccess()) {
|
|
|
384 |
return result.success;
|
|
|
385 |
}
|
| 4496 |
mandeep.dh |
386 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItems failed: unknown result");
|
|
|
387 |
}
|
|
|
388 |
|
|
|
389 |
public List<Scan> getScanForOrder(long orderId) throws org.apache.thrift.TException
|
|
|
390 |
{
|
|
|
391 |
send_getScanForOrder(orderId);
|
|
|
392 |
return recv_getScanForOrder();
|
|
|
393 |
}
|
|
|
394 |
|
|
|
395 |
public void send_getScanForOrder(long orderId) throws org.apache.thrift.TException
|
|
|
396 |
{
|
|
|
397 |
getScanForOrder_args args = new getScanForOrder_args();
|
|
|
398 |
args.setOrderId(orderId);
|
|
|
399 |
sendBase("getScanForOrder", args);
|
|
|
400 |
}
|
|
|
401 |
|
|
|
402 |
public List<Scan> recv_getScanForOrder() throws org.apache.thrift.TException
|
|
|
403 |
{
|
|
|
404 |
getScanForOrder_result result = new getScanForOrder_result();
|
|
|
405 |
receiveBase(result, "getScanForOrder");
|
|
|
406 |
if (result.isSetSuccess()) {
|
|
|
407 |
return result.success;
|
| 2820 |
chandransh |
408 |
}
|
| 4496 |
mandeep.dh |
409 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScanForOrder failed: unknown result");
|
| 2820 |
chandransh |
410 |
}
|
|
|
411 |
|
| 4496 |
mandeep.dh |
412 |
public List<Scan> getScan(long inventoryItemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
413 |
{
|
| 4496 |
mandeep.dh |
414 |
send_getScan(inventoryItemId);
|
|
|
415 |
return recv_getScan();
|
| 2820 |
chandransh |
416 |
}
|
|
|
417 |
|
| 4496 |
mandeep.dh |
418 |
public void send_getScan(long inventoryItemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
419 |
{
|
| 4496 |
mandeep.dh |
420 |
getScan_args args = new getScan_args();
|
|
|
421 |
args.setInventoryItemId(inventoryItemId);
|
|
|
422 |
sendBase("getScan", args);
|
| 2820 |
chandransh |
423 |
}
|
|
|
424 |
|
| 4496 |
mandeep.dh |
425 |
public List<Scan> recv_getScan() throws org.apache.thrift.TException
|
| 2820 |
chandransh |
426 |
{
|
| 4496 |
mandeep.dh |
427 |
getScan_result result = new getScan_result();
|
|
|
428 |
receiveBase(result, "getScan");
|
| 2820 |
chandransh |
429 |
if (result.isSetSuccess()) {
|
|
|
430 |
return result.success;
|
|
|
431 |
}
|
| 4496 |
mandeep.dh |
432 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScan failed: unknown result");
|
|
|
433 |
}
|
|
|
434 |
|
| 5110 |
mandeep.dh |
435 |
public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
436 |
{
|
| 5110 |
mandeep.dh |
437 |
send_scanSerializedItem(inventoryItem, type, warehouseId);
|
| 4496 |
mandeep.dh |
438 |
recv_scanSerializedItem();
|
|
|
439 |
}
|
|
|
440 |
|
| 5110 |
mandeep.dh |
441 |
public void send_scanSerializedItem(InventoryItem inventoryItem, ScanType type, long warehouseId) throws org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
442 |
{
|
|
|
443 |
scanSerializedItem_args args = new scanSerializedItem_args();
|
| 5110 |
mandeep.dh |
444 |
args.setInventoryItem(inventoryItem);
|
| 4496 |
mandeep.dh |
445 |
args.setType(type);
|
|
|
446 |
args.setWarehouseId(warehouseId);
|
|
|
447 |
sendBase("scanSerializedItem", args);
|
|
|
448 |
}
|
|
|
449 |
|
|
|
450 |
public void recv_scanSerializedItem() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
451 |
{
|
|
|
452 |
scanSerializedItem_result result = new scanSerializedItem_result();
|
|
|
453 |
receiveBase(result, "scanSerializedItem");
|
| 2820 |
chandransh |
454 |
if (result.wex != null) {
|
|
|
455 |
throw result.wex;
|
|
|
456 |
}
|
| 4496 |
mandeep.dh |
457 |
return;
|
| 2820 |
chandransh |
458 |
}
|
|
|
459 |
|
| 4496 |
mandeep.dh |
460 |
public void scan(long inventoryItemId, ScanType type, long quantity, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
461 |
{
|
| 4496 |
mandeep.dh |
462 |
send_scan(inventoryItemId, type, quantity, warehouseId);
|
|
|
463 |
recv_scan();
|
| 3383 |
chandransh |
464 |
}
|
|
|
465 |
|
| 4496 |
mandeep.dh |
466 |
public void send_scan(long inventoryItemId, ScanType type, long quantity, long warehouseId) throws org.apache.thrift.TException
|
| 3383 |
chandransh |
467 |
{
|
| 4496 |
mandeep.dh |
468 |
scan_args args = new scan_args();
|
|
|
469 |
args.setInventoryItemId(inventoryItemId);
|
|
|
470 |
args.setType(type);
|
|
|
471 |
args.setQuantity(quantity);
|
|
|
472 |
args.setWarehouseId(warehouseId);
|
|
|
473 |
sendBase("scan", args);
|
| 3383 |
chandransh |
474 |
}
|
|
|
475 |
|
| 4496 |
mandeep.dh |
476 |
public void recv_scan() throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
477 |
{
|
| 4496 |
mandeep.dh |
478 |
scan_result result = new scan_result();
|
|
|
479 |
receiveBase(result, "scan");
|
|
|
480 |
if (result.wex != null) {
|
|
|
481 |
throw result.wex;
|
|
|
482 |
}
|
|
|
483 |
return;
|
|
|
484 |
}
|
|
|
485 |
|
| 5110 |
mandeep.dh |
486 |
public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
487 |
{
|
| 5110 |
mandeep.dh |
488 |
send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId);
|
| 4496 |
mandeep.dh |
489 |
return recv_scanSerializedItemForOrder();
|
|
|
490 |
}
|
|
|
491 |
|
| 5110 |
mandeep.dh |
492 |
public void send_scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
493 |
{
|
|
|
494 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
| 4555 |
mandeep.dh |
495 |
args.setSerialNumber(serialNumber);
|
| 4496 |
mandeep.dh |
496 |
args.setType(type);
|
|
|
497 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
498 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
|
|
499 |
args.setQuantity(quantity);
|
|
|
500 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
501 |
sendBase("scanSerializedItemForOrder", args);
|
|
|
502 |
}
|
|
|
503 |
|
| 4555 |
mandeep.dh |
504 |
public InventoryItem recv_scanSerializedItemForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
505 |
{
|
|
|
506 |
scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
|
|
|
507 |
receiveBase(result, "scanSerializedItemForOrder");
|
| 3383 |
chandransh |
508 |
if (result.isSetSuccess()) {
|
|
|
509 |
return result.success;
|
|
|
510 |
}
|
|
|
511 |
if (result.wex != null) {
|
|
|
512 |
throw result.wex;
|
|
|
513 |
}
|
| 4496 |
mandeep.dh |
514 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
|
| 3383 |
chandransh |
515 |
}
|
|
|
516 |
|
| 5110 |
mandeep.dh |
517 |
public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
518 |
{
|
| 5110 |
mandeep.dh |
519 |
send_scanForOrder(inventoryItemId, type, quantity, orderId, fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
520 |
recv_scanForOrder();
|
| 2820 |
chandransh |
521 |
}
|
|
|
522 |
|
| 5110 |
mandeep.dh |
523 |
public void send_scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
524 |
{
|
| 4496 |
mandeep.dh |
525 |
scanForOrder_args args = new scanForOrder_args();
|
|
|
526 |
args.setInventoryItemId(inventoryItemId);
|
| 3430 |
rajveer |
527 |
args.setType(type);
|
| 4496 |
mandeep.dh |
528 |
args.setQuantity(quantity);
|
|
|
529 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
530 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
531 |
sendBase("scanForOrder", args);
|
| 2820 |
chandransh |
532 |
}
|
|
|
533 |
|
| 4496 |
mandeep.dh |
534 |
public void recv_scanForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
535 |
{
|
| 4496 |
mandeep.dh |
536 |
scanForOrder_result result = new scanForOrder_result();
|
|
|
537 |
receiveBase(result, "scanForOrder");
|
| 2820 |
chandransh |
538 |
if (result.wex != null) {
|
|
|
539 |
throw result.wex;
|
|
|
540 |
}
|
|
|
541 |
return;
|
|
|
542 |
}
|
|
|
543 |
|
| 4496 |
mandeep.dh |
544 |
public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
545 |
{
|
| 4496 |
mandeep.dh |
546 |
send_createItemNumberMapping(itemNumber, itemId);
|
|
|
547 |
recv_createItemNumberMapping();
|
| 2820 |
chandransh |
548 |
}
|
|
|
549 |
|
| 4496 |
mandeep.dh |
550 |
public void send_createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
551 |
{
|
| 4496 |
mandeep.dh |
552 |
createItemNumberMapping_args args = new createItemNumberMapping_args();
|
| 3430 |
rajveer |
553 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
554 |
args.setItemId(itemId);
|
|
|
555 |
sendBase("createItemNumberMapping", args);
|
| 2820 |
chandransh |
556 |
}
|
|
|
557 |
|
| 4496 |
mandeep.dh |
558 |
public void recv_createItemNumberMapping() throws org.apache.thrift.TException
|
| 2820 |
chandransh |
559 |
{
|
| 4496 |
mandeep.dh |
560 |
createItemNumberMapping_result result = new createItemNumberMapping_result();
|
|
|
561 |
receiveBase(result, "createItemNumberMapping");
|
| 2820 |
chandransh |
562 |
return;
|
|
|
563 |
}
|
|
|
564 |
|
| 4622 |
amit.gupta |
565 |
public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException
|
|
|
566 |
{
|
|
|
567 |
send_getItemNumbers(itemId);
|
|
|
568 |
return recv_getItemNumbers();
|
|
|
569 |
}
|
|
|
570 |
|
|
|
571 |
public void send_getItemNumbers(long itemId) throws org.apache.thrift.TException
|
|
|
572 |
{
|
|
|
573 |
getItemNumbers_args args = new getItemNumbers_args();
|
|
|
574 |
args.setItemId(itemId);
|
|
|
575 |
sendBase("getItemNumbers", args);
|
|
|
576 |
}
|
|
|
577 |
|
|
|
578 |
public List<String> recv_getItemNumbers() throws org.apache.thrift.TException
|
|
|
579 |
{
|
|
|
580 |
getItemNumbers_result result = new getItemNumbers_result();
|
|
|
581 |
receiveBase(result, "getItemNumbers");
|
|
|
582 |
if (result.isSetSuccess()) {
|
|
|
583 |
return result.success;
|
|
|
584 |
}
|
|
|
585 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
|
|
|
586 |
}
|
|
|
587 |
|
| 5110 |
mandeep.dh |
588 |
public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException
|
|
|
589 |
{
|
|
|
590 |
send_getItemIds(itemNumber);
|
|
|
591 |
return recv_getItemIds();
|
|
|
592 |
}
|
|
|
593 |
|
|
|
594 |
public void send_getItemIds(String itemNumber) throws org.apache.thrift.TException
|
|
|
595 |
{
|
|
|
596 |
getItemIds_args args = new getItemIds_args();
|
|
|
597 |
args.setItemNumber(itemNumber);
|
|
|
598 |
sendBase("getItemIds", args);
|
|
|
599 |
}
|
|
|
600 |
|
|
|
601 |
public List<Long> recv_getItemIds() throws org.apache.thrift.TException
|
|
|
602 |
{
|
|
|
603 |
getItemIds_result result = new getItemIds_result();
|
|
|
604 |
receiveBase(result, "getItemIds");
|
|
|
605 |
if (result.isSetSuccess()) {
|
|
|
606 |
return result.success;
|
|
|
607 |
}
|
|
|
608 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
|
|
|
609 |
}
|
|
|
610 |
|
| 5185 |
mandeep.dh |
611 |
public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
612 |
{
|
|
|
613 |
send_getInventoryItemsFromLastScanType(lastScanType);
|
|
|
614 |
return recv_getInventoryItemsFromLastScanType();
|
|
|
615 |
}
|
|
|
616 |
|
|
|
617 |
public void send_getInventoryItemsFromLastScanType(ScanType lastScanType) throws org.apache.thrift.TException
|
|
|
618 |
{
|
|
|
619 |
getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
|
|
|
620 |
args.setLastScanType(lastScanType);
|
|
|
621 |
sendBase("getInventoryItemsFromLastScanType", args);
|
|
|
622 |
}
|
|
|
623 |
|
|
|
624 |
public List<InventoryItem> recv_getInventoryItemsFromLastScanType() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
625 |
{
|
|
|
626 |
getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
|
|
|
627 |
receiveBase(result, "getInventoryItemsFromLastScanType");
|
|
|
628 |
if (result.isSetSuccess()) {
|
|
|
629 |
return result.success;
|
|
|
630 |
}
|
|
|
631 |
if (result.wex != null) {
|
|
|
632 |
throw result.wex;
|
|
|
633 |
}
|
|
|
634 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
|
|
|
635 |
}
|
|
|
636 |
|
|
|
637 |
public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
638 |
{
|
|
|
639 |
send_getInventoryItemFromId(inventoryItemId);
|
|
|
640 |
return recv_getInventoryItemFromId();
|
|
|
641 |
}
|
|
|
642 |
|
|
|
643 |
public void send_getInventoryItemFromId(long inventoryItemId) throws org.apache.thrift.TException
|
|
|
644 |
{
|
|
|
645 |
getInventoryItemFromId_args args = new getInventoryItemFromId_args();
|
|
|
646 |
args.setInventoryItemId(inventoryItemId);
|
|
|
647 |
sendBase("getInventoryItemFromId", args);
|
|
|
648 |
}
|
|
|
649 |
|
|
|
650 |
public InventoryItem recv_getInventoryItemFromId() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
651 |
{
|
|
|
652 |
getInventoryItemFromId_result result = new getInventoryItemFromId_result();
|
|
|
653 |
receiveBase(result, "getInventoryItemFromId");
|
|
|
654 |
if (result.isSetSuccess()) {
|
|
|
655 |
return result.success;
|
|
|
656 |
}
|
|
|
657 |
if (result.wex != null) {
|
|
|
658 |
throw result.wex;
|
|
|
659 |
}
|
|
|
660 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
|
|
|
661 |
}
|
|
|
662 |
|
| 2820 |
chandransh |
663 |
}
|
| 3430 |
rajveer |
664 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
|
|
665 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
666 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
667 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
668 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
669 |
this.clientManager = clientManager;
|
|
|
670 |
this.protocolFactory = protocolFactory;
|
|
|
671 |
}
|
|
|
672 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
673 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
674 |
}
|
| 2820 |
chandransh |
675 |
}
|
|
|
676 |
|
| 3430 |
rajveer |
677 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
678 |
super(protocolFactory, clientManager, transport);
|
|
|
679 |
}
|
| 2820 |
chandransh |
680 |
|
| 4846 |
mandeep.dh |
681 |
public void createSerializedInventoryItem(long itemId, String itemNumber, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<createSerializedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
682 |
checkReady();
|
| 4846 |
mandeep.dh |
683 |
createSerializedInventoryItem_call method_call = new createSerializedInventoryItem_call(itemId, itemNumber, serialNumber, purchaseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
684 |
this.___currentMethod = method_call;
|
|
|
685 |
___manager.call(method_call);
|
|
|
686 |
}
|
|
|
687 |
|
| 4496 |
mandeep.dh |
688 |
public static class createSerializedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
689 |
private long itemId;
|
| 4846 |
mandeep.dh |
690 |
private String itemNumber;
|
| 4496 |
mandeep.dh |
691 |
private String serialNumber;
|
|
|
692 |
private long purchaseId;
|
| 4846 |
mandeep.dh |
693 |
public createSerializedInventoryItem_call(long itemId, String itemNumber, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<createSerializedInventoryItem_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 |
694 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4496 |
mandeep.dh |
695 |
this.itemId = itemId;
|
| 4846 |
mandeep.dh |
696 |
this.itemNumber = itemNumber;
|
| 4496 |
mandeep.dh |
697 |
this.serialNumber = serialNumber;
|
|
|
698 |
this.purchaseId = purchaseId;
|
| 2820 |
chandransh |
699 |
}
|
| 3430 |
rajveer |
700 |
|
|
|
701 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
702 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createSerializedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
703 |
createSerializedInventoryItem_args args = new createSerializedInventoryItem_args();
|
|
|
704 |
args.setItemId(itemId);
|
| 4846 |
mandeep.dh |
705 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
706 |
args.setSerialNumber(serialNumber);
|
|
|
707 |
args.setPurchaseId(purchaseId);
|
| 3430 |
rajveer |
708 |
args.write(prot);
|
|
|
709 |
prot.writeMessageEnd();
|
|
|
710 |
}
|
|
|
711 |
|
| 4555 |
mandeep.dh |
712 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 3430 |
rajveer |
713 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
714 |
throw new IllegalStateException("Method call not finished!");
|
|
|
715 |
}
|
|
|
716 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
717 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
718 |
return (new Client(prot)).recv_createSerializedInventoryItem();
|
| 3430 |
rajveer |
719 |
}
|
| 2820 |
chandransh |
720 |
}
|
|
|
721 |
|
| 4496 |
mandeep.dh |
722 |
public void createSerializedInventoryItemFromItemNumber(String itemNumber, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<createSerializedInventoryItemFromItemNumber_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
723 |
checkReady();
|
| 4496 |
mandeep.dh |
724 |
createSerializedInventoryItemFromItemNumber_call method_call = new createSerializedInventoryItemFromItemNumber_call(itemNumber, serialNumber, purchaseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
725 |
this.___currentMethod = method_call;
|
|
|
726 |
___manager.call(method_call);
|
|
|
727 |
}
|
|
|
728 |
|
| 4496 |
mandeep.dh |
729 |
public static class createSerializedInventoryItemFromItemNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
730 |
private String itemNumber;
|
|
|
731 |
private String serialNumber;
|
|
|
732 |
private long purchaseId;
|
|
|
733 |
public createSerializedInventoryItemFromItemNumber_call(String itemNumber, String serialNumber, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<createSerializedInventoryItemFromItemNumber_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 |
734 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4496 |
mandeep.dh |
735 |
this.itemNumber = itemNumber;
|
|
|
736 |
this.serialNumber = serialNumber;
|
|
|
737 |
this.purchaseId = purchaseId;
|
| 3430 |
rajveer |
738 |
}
|
|
|
739 |
|
|
|
740 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
741 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createSerializedInventoryItemFromItemNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
742 |
createSerializedInventoryItemFromItemNumber_args args = new createSerializedInventoryItemFromItemNumber_args();
|
|
|
743 |
args.setItemNumber(itemNumber);
|
|
|
744 |
args.setSerialNumber(serialNumber);
|
|
|
745 |
args.setPurchaseId(purchaseId);
|
| 3430 |
rajveer |
746 |
args.write(prot);
|
|
|
747 |
prot.writeMessageEnd();
|
|
|
748 |
}
|
|
|
749 |
|
| 4555 |
mandeep.dh |
750 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 3430 |
rajveer |
751 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
752 |
throw new IllegalStateException("Method call not finished!");
|
|
|
753 |
}
|
|
|
754 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
755 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
756 |
return (new Client(prot)).recv_createSerializedInventoryItemFromItemNumber();
|
| 3430 |
rajveer |
757 |
}
|
|
|
758 |
}
|
|
|
759 |
|
| 4496 |
mandeep.dh |
760 |
public void createInventoryItem(long itemId, long quantity, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<createInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
761 |
checkReady();
|
| 4496 |
mandeep.dh |
762 |
createInventoryItem_call method_call = new createInventoryItem_call(itemId, quantity, purchaseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
763 |
this.___currentMethod = method_call;
|
|
|
764 |
___manager.call(method_call);
|
|
|
765 |
}
|
|
|
766 |
|
| 4496 |
mandeep.dh |
767 |
public static class createInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
768 |
private long itemId;
|
|
|
769 |
private long quantity;
|
|
|
770 |
private long purchaseId;
|
|
|
771 |
public createInventoryItem_call(long itemId, long quantity, long purchaseId, org.apache.thrift.async.AsyncMethodCallback<createInventoryItem_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.itemId = itemId;
|
|
|
774 |
this.quantity = quantity;
|
|
|
775 |
this.purchaseId = purchaseId;
|
| 3430 |
rajveer |
776 |
}
|
|
|
777 |
|
|
|
778 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
779 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
780 |
createInventoryItem_args args = new createInventoryItem_args();
|
|
|
781 |
args.setItemId(itemId);
|
|
|
782 |
args.setQuantity(quantity);
|
|
|
783 |
args.setPurchaseId(purchaseId);
|
| 3430 |
rajveer |
784 |
args.write(prot);
|
|
|
785 |
prot.writeMessageEnd();
|
|
|
786 |
}
|
|
|
787 |
|
| 4555 |
mandeep.dh |
788 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 3430 |
rajveer |
789 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
790 |
throw new IllegalStateException("Method call not finished!");
|
|
|
791 |
}
|
|
|
792 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
793 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
794 |
return (new Client(prot)).recv_createInventoryItem();
|
| 3430 |
rajveer |
795 |
}
|
|
|
796 |
}
|
|
|
797 |
|
| 4496 |
mandeep.dh |
798 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
799 |
checkReady();
|
| 4496 |
mandeep.dh |
800 |
getInventoryItem_call method_call = new getInventoryItem_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
801 |
this.___currentMethod = method_call;
|
|
|
802 |
___manager.call(method_call);
|
|
|
803 |
}
|
|
|
804 |
|
| 4496 |
mandeep.dh |
805 |
public static class getInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
806 |
private String serialNumber;
|
|
|
807 |
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 |
808 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4496 |
mandeep.dh |
809 |
this.serialNumber = serialNumber;
|
| 3430 |
rajveer |
810 |
}
|
|
|
811 |
|
|
|
812 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
813 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
814 |
getInventoryItem_args args = new getInventoryItem_args();
|
|
|
815 |
args.setSerialNumber(serialNumber);
|
| 3430 |
rajveer |
816 |
args.write(prot);
|
|
|
817 |
prot.writeMessageEnd();
|
|
|
818 |
}
|
|
|
819 |
|
| 4541 |
mandeep.dh |
820 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 3430 |
rajveer |
821 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
822 |
throw new IllegalStateException("Method call not finished!");
|
|
|
823 |
}
|
|
|
824 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
825 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
826 |
return (new Client(prot)).recv_getInventoryItem();
|
| 3430 |
rajveer |
827 |
}
|
|
|
828 |
}
|
|
|
829 |
|
| 4496 |
mandeep.dh |
830 |
public void getNonSeralizedInventoryItems(long itemId, long quantity, long supplierId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItems_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
831 |
checkReady();
|
| 4496 |
mandeep.dh |
832 |
getNonSeralizedInventoryItems_call method_call = new getNonSeralizedInventoryItems_call(itemId, quantity, supplierId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
833 |
this.___currentMethod = method_call;
|
|
|
834 |
___manager.call(method_call);
|
|
|
835 |
}
|
|
|
836 |
|
| 4496 |
mandeep.dh |
837 |
public static class getNonSeralizedInventoryItems_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
838 |
private long itemId;
|
|
|
839 |
private long quantity;
|
|
|
840 |
private long supplierId;
|
|
|
841 |
public getNonSeralizedInventoryItems_call(long itemId, long quantity, long supplierId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItems_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 |
842 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4496 |
mandeep.dh |
843 |
this.itemId = itemId;
|
|
|
844 |
this.quantity = quantity;
|
|
|
845 |
this.supplierId = supplierId;
|
| 3430 |
rajveer |
846 |
}
|
|
|
847 |
|
|
|
848 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
849 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
850 |
getNonSeralizedInventoryItems_args args = new getNonSeralizedInventoryItems_args();
|
|
|
851 |
args.setItemId(itemId);
|
|
|
852 |
args.setQuantity(quantity);
|
|
|
853 |
args.setSupplierId(supplierId);
|
| 3430 |
rajveer |
854 |
args.write(prot);
|
|
|
855 |
prot.writeMessageEnd();
|
|
|
856 |
}
|
|
|
857 |
|
| 4496 |
mandeep.dh |
858 |
public List<InventoryItem> getResult() throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
859 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
860 |
throw new IllegalStateException("Method call not finished!");
|
|
|
861 |
}
|
|
|
862 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
863 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
864 |
return (new Client(prot)).recv_getNonSeralizedInventoryItems();
|
| 3430 |
rajveer |
865 |
}
|
|
|
866 |
}
|
|
|
867 |
|
| 4496 |
mandeep.dh |
868 |
public void getInventoryItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItems_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
869 |
checkReady();
|
| 4496 |
mandeep.dh |
870 |
getInventoryItems_call method_call = new getInventoryItems_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
871 |
this.___currentMethod = method_call;
|
|
|
872 |
___manager.call(method_call);
|
|
|
873 |
}
|
|
|
874 |
|
| 4496 |
mandeep.dh |
875 |
public static class getInventoryItems_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
876 |
private long itemId;
|
|
|
877 |
public getInventoryItems_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItems_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 |
878 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4496 |
mandeep.dh |
879 |
this.itemId = itemId;
|
| 3430 |
rajveer |
880 |
}
|
|
|
881 |
|
|
|
882 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
883 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
884 |
getInventoryItems_args args = new getInventoryItems_args();
|
|
|
885 |
args.setItemId(itemId);
|
| 3430 |
rajveer |
886 |
args.write(prot);
|
|
|
887 |
prot.writeMessageEnd();
|
|
|
888 |
}
|
|
|
889 |
|
| 4496 |
mandeep.dh |
890 |
public List<InventoryItem> getResult() throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
891 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
892 |
throw new IllegalStateException("Method call not finished!");
|
|
|
893 |
}
|
|
|
894 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
895 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
896 |
return (new Client(prot)).recv_getInventoryItems();
|
| 3430 |
rajveer |
897 |
}
|
|
|
898 |
}
|
|
|
899 |
|
| 4496 |
mandeep.dh |
900 |
public void getScanForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getScanForOrder_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
901 |
checkReady();
|
| 4496 |
mandeep.dh |
902 |
getScanForOrder_call method_call = new getScanForOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
903 |
this.___currentMethod = method_call;
|
|
|
904 |
___manager.call(method_call);
|
|
|
905 |
}
|
|
|
906 |
|
| 4496 |
mandeep.dh |
907 |
public static class getScanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
908 |
private long orderId;
|
|
|
909 |
public getScanForOrder_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getScanForOrder_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 |
910 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4496 |
mandeep.dh |
911 |
this.orderId = orderId;
|
| 3430 |
rajveer |
912 |
}
|
|
|
913 |
|
|
|
914 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
915 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
916 |
getScanForOrder_args args = new getScanForOrder_args();
|
|
|
917 |
args.setOrderId(orderId);
|
| 3430 |
rajveer |
918 |
args.write(prot);
|
|
|
919 |
prot.writeMessageEnd();
|
|
|
920 |
}
|
|
|
921 |
|
| 4496 |
mandeep.dh |
922 |
public List<Scan> getResult() throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
923 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
924 |
throw new IllegalStateException("Method call not finished!");
|
|
|
925 |
}
|
|
|
926 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
927 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
928 |
return (new Client(prot)).recv_getScanForOrder();
|
| 3430 |
rajveer |
929 |
}
|
|
|
930 |
}
|
|
|
931 |
|
| 4496 |
mandeep.dh |
932 |
public void getScan(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getScan_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
933 |
checkReady();
|
| 4496 |
mandeep.dh |
934 |
getScan_call method_call = new getScan_call(inventoryItemId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
935 |
this.___currentMethod = method_call;
|
|
|
936 |
___manager.call(method_call);
|
|
|
937 |
}
|
|
|
938 |
|
| 4496 |
mandeep.dh |
939 |
public static class getScan_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
940 |
private long inventoryItemId;
|
|
|
941 |
public getScan_call(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getScan_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 {
|
|
|
942 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
943 |
this.inventoryItemId = inventoryItemId;
|
|
|
944 |
}
|
|
|
945 |
|
|
|
946 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
947 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScan", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
948 |
getScan_args args = new getScan_args();
|
|
|
949 |
args.setInventoryItemId(inventoryItemId);
|
|
|
950 |
args.write(prot);
|
|
|
951 |
prot.writeMessageEnd();
|
|
|
952 |
}
|
|
|
953 |
|
|
|
954 |
public List<Scan> getResult() throws org.apache.thrift.TException {
|
|
|
955 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
956 |
throw new IllegalStateException("Method call not finished!");
|
|
|
957 |
}
|
|
|
958 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
959 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
960 |
return (new Client(prot)).recv_getScan();
|
|
|
961 |
}
|
|
|
962 |
}
|
|
|
963 |
|
| 5110 |
mandeep.dh |
964 |
public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
965 |
checkReady();
|
| 5110 |
mandeep.dh |
966 |
scanSerializedItem_call method_call = new scanSerializedItem_call(inventoryItem, type, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 4496 |
mandeep.dh |
967 |
this.___currentMethod = method_call;
|
|
|
968 |
___manager.call(method_call);
|
|
|
969 |
}
|
|
|
970 |
|
|
|
971 |
public static class scanSerializedItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5110 |
mandeep.dh |
972 |
private InventoryItem inventoryItem;
|
| 3430 |
rajveer |
973 |
private ScanType type;
|
| 4496 |
mandeep.dh |
974 |
private long warehouseId;
|
| 5110 |
mandeep.dh |
975 |
public scanSerializedItem_call(InventoryItem inventoryItem, ScanType type, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
976 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5110 |
mandeep.dh |
977 |
this.inventoryItem = inventoryItem;
|
| 3430 |
rajveer |
978 |
this.type = type;
|
| 4496 |
mandeep.dh |
979 |
this.warehouseId = warehouseId;
|
| 3430 |
rajveer |
980 |
}
|
|
|
981 |
|
|
|
982 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
983 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
984 |
scanSerializedItem_args args = new scanSerializedItem_args();
|
| 5110 |
mandeep.dh |
985 |
args.setInventoryItem(inventoryItem);
|
| 3430 |
rajveer |
986 |
args.setType(type);
|
| 4496 |
mandeep.dh |
987 |
args.setWarehouseId(warehouseId);
|
| 3430 |
rajveer |
988 |
args.write(prot);
|
|
|
989 |
prot.writeMessageEnd();
|
|
|
990 |
}
|
|
|
991 |
|
|
|
992 |
public void getResult() throws WarehouseServiceException, 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);
|
| 4496 |
mandeep.dh |
998 |
(new Client(prot)).recv_scanSerializedItem();
|
| 3430 |
rajveer |
999 |
}
|
|
|
1000 |
}
|
|
|
1001 |
|
| 4496 |
mandeep.dh |
1002 |
public void scan(long inventoryItemId, ScanType type, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<scan_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
1003 |
checkReady();
|
| 4496 |
mandeep.dh |
1004 |
scan_call method_call = new scan_call(inventoryItemId, type, quantity, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
1005 |
this.___currentMethod = method_call;
|
|
|
1006 |
___manager.call(method_call);
|
|
|
1007 |
}
|
|
|
1008 |
|
| 4496 |
mandeep.dh |
1009 |
public static class scan_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1010 |
private long inventoryItemId;
|
| 3430 |
rajveer |
1011 |
private ScanType type;
|
| 4496 |
mandeep.dh |
1012 |
private long quantity;
|
|
|
1013 |
private long warehouseId;
|
|
|
1014 |
public scan_call(long inventoryItemId, ScanType type, long quantity, long warehouseId, 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 |
1015 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4496 |
mandeep.dh |
1016 |
this.inventoryItemId = inventoryItemId;
|
| 3430 |
rajveer |
1017 |
this.type = type;
|
| 4496 |
mandeep.dh |
1018 |
this.quantity = quantity;
|
|
|
1019 |
this.warehouseId = warehouseId;
|
| 3430 |
rajveer |
1020 |
}
|
|
|
1021 |
|
|
|
1022 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
1023 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scan", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1024 |
scan_args args = new scan_args();
|
|
|
1025 |
args.setInventoryItemId(inventoryItemId);
|
| 3430 |
rajveer |
1026 |
args.setType(type);
|
| 4496 |
mandeep.dh |
1027 |
args.setQuantity(quantity);
|
|
|
1028 |
args.setWarehouseId(warehouseId);
|
| 3430 |
rajveer |
1029 |
args.write(prot);
|
|
|
1030 |
prot.writeMessageEnd();
|
|
|
1031 |
}
|
|
|
1032 |
|
|
|
1033 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1034 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1035 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1036 |
}
|
|
|
1037 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1038 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
1039 |
(new Client(prot)).recv_scan();
|
| 3430 |
rajveer |
1040 |
}
|
|
|
1041 |
}
|
|
|
1042 |
|
| 5110 |
mandeep.dh |
1043 |
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 |
1044 |
checkReady();
|
| 5110 |
mandeep.dh |
1045 |
scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 4496 |
mandeep.dh |
1046 |
this.___currentMethod = method_call;
|
|
|
1047 |
___manager.call(method_call);
|
|
|
1048 |
}
|
|
|
1049 |
|
|
|
1050 |
public static class scanSerializedItemForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 4555 |
mandeep.dh |
1051 |
private String serialNumber;
|
| 4496 |
mandeep.dh |
1052 |
private ScanType type;
|
|
|
1053 |
private long orderId;
|
| 5110 |
mandeep.dh |
1054 |
private long fulfilmentWarehouseId;
|
|
|
1055 |
private double quantity;
|
|
|
1056 |
private long billingWarehouseId;
|
|
|
1057 |
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 |
1058 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4555 |
mandeep.dh |
1059 |
this.serialNumber = serialNumber;
|
| 4496 |
mandeep.dh |
1060 |
this.type = type;
|
|
|
1061 |
this.orderId = orderId;
|
| 5110 |
mandeep.dh |
1062 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
1063 |
this.quantity = quantity;
|
|
|
1064 |
this.billingWarehouseId = billingWarehouseId;
|
| 4496 |
mandeep.dh |
1065 |
}
|
|
|
1066 |
|
|
|
1067 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1068 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItemForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1069 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
| 4555 |
mandeep.dh |
1070 |
args.setSerialNumber(serialNumber);
|
| 4496 |
mandeep.dh |
1071 |
args.setType(type);
|
|
|
1072 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
1073 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
|
|
1074 |
args.setQuantity(quantity);
|
|
|
1075 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
1076 |
args.write(prot);
|
|
|
1077 |
prot.writeMessageEnd();
|
|
|
1078 |
}
|
|
|
1079 |
|
| 4555 |
mandeep.dh |
1080 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
1081 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1082 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1083 |
}
|
|
|
1084 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1085 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1086 |
return (new Client(prot)).recv_scanSerializedItemForOrder();
|
|
|
1087 |
}
|
|
|
1088 |
}
|
|
|
1089 |
|
| 5110 |
mandeep.dh |
1090 |
public void scanForOrder(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_call> resultHandler) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
1091 |
checkReady();
|
| 5110 |
mandeep.dh |
1092 |
scanForOrder_call method_call = new scanForOrder_call(inventoryItemId, type, quantity, orderId, fulfilmentWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 4496 |
mandeep.dh |
1093 |
this.___currentMethod = method_call;
|
|
|
1094 |
___manager.call(method_call);
|
|
|
1095 |
}
|
|
|
1096 |
|
|
|
1097 |
public static class scanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1098 |
private long inventoryItemId;
|
|
|
1099 |
private ScanType type;
|
|
|
1100 |
private long quantity;
|
|
|
1101 |
private long orderId;
|
| 5110 |
mandeep.dh |
1102 |
private long fulfilmentWarehouseId;
|
|
|
1103 |
public scanForOrder_call(long inventoryItemId, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
1104 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1105 |
this.inventoryItemId = inventoryItemId;
|
|
|
1106 |
this.type = type;
|
|
|
1107 |
this.quantity = quantity;
|
|
|
1108 |
this.orderId = orderId;
|
| 5110 |
mandeep.dh |
1109 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| 4496 |
mandeep.dh |
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("scanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1114 |
scanForOrder_args args = new scanForOrder_args();
|
|
|
1115 |
args.setInventoryItemId(inventoryItemId);
|
|
|
1116 |
args.setType(type);
|
|
|
1117 |
args.setQuantity(quantity);
|
|
|
1118 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
1119 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
1120 |
args.write(prot);
|
|
|
1121 |
prot.writeMessageEnd();
|
|
|
1122 |
}
|
|
|
1123 |
|
|
|
1124 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1125 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1126 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1127 |
}
|
|
|
1128 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1129 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1130 |
(new Client(prot)).recv_scanForOrder();
|
|
|
1131 |
}
|
|
|
1132 |
}
|
|
|
1133 |
|
|
|
1134 |
public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1135 |
checkReady();
|
|
|
1136 |
createItemNumberMapping_call method_call = new createItemNumberMapping_call(itemNumber, itemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1137 |
this.___currentMethod = method_call;
|
|
|
1138 |
___manager.call(method_call);
|
|
|
1139 |
}
|
|
|
1140 |
|
|
|
1141 |
public static class createItemNumberMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1142 |
private String itemNumber;
|
|
|
1143 |
private long itemId;
|
|
|
1144 |
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 {
|
|
|
1145 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1146 |
this.itemNumber = itemNumber;
|
|
|
1147 |
this.itemId = itemId;
|
|
|
1148 |
}
|
|
|
1149 |
|
|
|
1150 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1151 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createItemNumberMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1152 |
createItemNumberMapping_args args = new createItemNumberMapping_args();
|
|
|
1153 |
args.setItemNumber(itemNumber);
|
|
|
1154 |
args.setItemId(itemId);
|
|
|
1155 |
args.write(prot);
|
|
|
1156 |
prot.writeMessageEnd();
|
|
|
1157 |
}
|
|
|
1158 |
|
|
|
1159 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
1160 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1161 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1162 |
}
|
|
|
1163 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1164 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1165 |
(new Client(prot)).recv_createItemNumberMapping();
|
|
|
1166 |
}
|
|
|
1167 |
}
|
|
|
1168 |
|
| 4622 |
amit.gupta |
1169 |
public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemNumbers_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1170 |
checkReady();
|
|
|
1171 |
getItemNumbers_call method_call = new getItemNumbers_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1172 |
this.___currentMethod = method_call;
|
|
|
1173 |
___manager.call(method_call);
|
|
|
1174 |
}
|
|
|
1175 |
|
|
|
1176 |
public static class getItemNumbers_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1177 |
private long itemId;
|
|
|
1178 |
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 {
|
|
|
1179 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1180 |
this.itemId = itemId;
|
|
|
1181 |
}
|
|
|
1182 |
|
|
|
1183 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1184 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemNumbers", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1185 |
getItemNumbers_args args = new getItemNumbers_args();
|
|
|
1186 |
args.setItemId(itemId);
|
|
|
1187 |
args.write(prot);
|
|
|
1188 |
prot.writeMessageEnd();
|
|
|
1189 |
}
|
|
|
1190 |
|
|
|
1191 |
public List<String> getResult() throws org.apache.thrift.TException {
|
|
|
1192 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1193 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1194 |
}
|
|
|
1195 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1196 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1197 |
return (new Client(prot)).recv_getItemNumbers();
|
|
|
1198 |
}
|
|
|
1199 |
}
|
|
|
1200 |
|
| 5110 |
mandeep.dh |
1201 |
public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<getItemIds_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1202 |
checkReady();
|
|
|
1203 |
getItemIds_call method_call = new getItemIds_call(itemNumber, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1204 |
this.___currentMethod = method_call;
|
|
|
1205 |
___manager.call(method_call);
|
|
|
1206 |
}
|
|
|
1207 |
|
|
|
1208 |
public static class getItemIds_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1209 |
private String itemNumber;
|
|
|
1210 |
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 {
|
|
|
1211 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1212 |
this.itemNumber = itemNumber;
|
|
|
1213 |
}
|
|
|
1214 |
|
|
|
1215 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1216 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1217 |
getItemIds_args args = new getItemIds_args();
|
|
|
1218 |
args.setItemNumber(itemNumber);
|
|
|
1219 |
args.write(prot);
|
|
|
1220 |
prot.writeMessageEnd();
|
|
|
1221 |
}
|
|
|
1222 |
|
|
|
1223 |
public List<Long> getResult() throws org.apache.thrift.TException {
|
|
|
1224 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1225 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1226 |
}
|
|
|
1227 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1228 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1229 |
return (new Client(prot)).recv_getItemIds();
|
|
|
1230 |
}
|
|
|
1231 |
}
|
|
|
1232 |
|
| 5185 |
mandeep.dh |
1233 |
public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1234 |
checkReady();
|
|
|
1235 |
getInventoryItemsFromLastScanType_call method_call = new getInventoryItemsFromLastScanType_call(lastScanType, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1236 |
this.___currentMethod = method_call;
|
|
|
1237 |
___manager.call(method_call);
|
|
|
1238 |
}
|
|
|
1239 |
|
|
|
1240 |
public static class getInventoryItemsFromLastScanType_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1241 |
private ScanType lastScanType;
|
|
|
1242 |
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 {
|
|
|
1243 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1244 |
this.lastScanType = lastScanType;
|
|
|
1245 |
}
|
|
|
1246 |
|
|
|
1247 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1248 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemsFromLastScanType", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1249 |
getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
|
|
|
1250 |
args.setLastScanType(lastScanType);
|
|
|
1251 |
args.write(prot);
|
|
|
1252 |
prot.writeMessageEnd();
|
|
|
1253 |
}
|
|
|
1254 |
|
|
|
1255 |
public List<InventoryItem> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1256 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1257 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1258 |
}
|
|
|
1259 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1260 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1261 |
return (new Client(prot)).recv_getInventoryItemsFromLastScanType();
|
|
|
1262 |
}
|
|
|
1263 |
}
|
|
|
1264 |
|
|
|
1265 |
public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1266 |
checkReady();
|
|
|
1267 |
getInventoryItemFromId_call method_call = new getInventoryItemFromId_call(inventoryItemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1268 |
this.___currentMethod = method_call;
|
|
|
1269 |
___manager.call(method_call);
|
|
|
1270 |
}
|
|
|
1271 |
|
|
|
1272 |
public static class getInventoryItemFromId_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1273 |
private long inventoryItemId;
|
|
|
1274 |
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 {
|
|
|
1275 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1276 |
this.inventoryItemId = inventoryItemId;
|
|
|
1277 |
}
|
|
|
1278 |
|
|
|
1279 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1280 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromId", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1281 |
getInventoryItemFromId_args args = new getInventoryItemFromId_args();
|
|
|
1282 |
args.setInventoryItemId(inventoryItemId);
|
|
|
1283 |
args.write(prot);
|
|
|
1284 |
prot.writeMessageEnd();
|
|
|
1285 |
}
|
|
|
1286 |
|
|
|
1287 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1288 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1289 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1290 |
}
|
|
|
1291 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1292 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1293 |
return (new Client(prot)).recv_getInventoryItemFromId();
|
|
|
1294 |
}
|
|
|
1295 |
}
|
|
|
1296 |
|
| 3430 |
rajveer |
1297 |
}
|
|
|
1298 |
|
|
|
1299 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
|
|
1300 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
1301 |
public Processor(I iface) {
|
|
|
1302 |
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
|
|
|
1303 |
}
|
|
|
1304 |
|
|
|
1305 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
1306 |
super(iface, getProcessMap(processMap));
|
|
|
1307 |
}
|
|
|
1308 |
|
|
|
1309 |
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 |
1310 |
processMap.put("createSerializedInventoryItem", new createSerializedInventoryItem());
|
|
|
1311 |
processMap.put("createSerializedInventoryItemFromItemNumber", new createSerializedInventoryItemFromItemNumber());
|
|
|
1312 |
processMap.put("createInventoryItem", new createInventoryItem());
|
|
|
1313 |
processMap.put("getInventoryItem", new getInventoryItem());
|
|
|
1314 |
processMap.put("getNonSeralizedInventoryItems", new getNonSeralizedInventoryItems());
|
|
|
1315 |
processMap.put("getInventoryItems", new getInventoryItems());
|
|
|
1316 |
processMap.put("getScanForOrder", new getScanForOrder());
|
|
|
1317 |
processMap.put("getScan", new getScan());
|
|
|
1318 |
processMap.put("scanSerializedItem", new scanSerializedItem());
|
|
|
1319 |
processMap.put("scan", new scan());
|
|
|
1320 |
processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
|
|
|
1321 |
processMap.put("scanForOrder", new scanForOrder());
|
|
|
1322 |
processMap.put("createItemNumberMapping", new createItemNumberMapping());
|
| 4622 |
amit.gupta |
1323 |
processMap.put("getItemNumbers", new getItemNumbers());
|
| 5110 |
mandeep.dh |
1324 |
processMap.put("getItemIds", new getItemIds());
|
| 5185 |
mandeep.dh |
1325 |
processMap.put("getInventoryItemsFromLastScanType", new getInventoryItemsFromLastScanType());
|
|
|
1326 |
processMap.put("getInventoryItemFromId", new getInventoryItemFromId());
|
| 3430 |
rajveer |
1327 |
return processMap;
|
|
|
1328 |
}
|
|
|
1329 |
|
| 4496 |
mandeep.dh |
1330 |
private static class createSerializedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createSerializedInventoryItem_args> {
|
|
|
1331 |
public createSerializedInventoryItem() {
|
|
|
1332 |
super("createSerializedInventoryItem");
|
| 3430 |
rajveer |
1333 |
}
|
|
|
1334 |
|
| 4496 |
mandeep.dh |
1335 |
protected createSerializedInventoryItem_args getEmptyArgsInstance() {
|
|
|
1336 |
return new createSerializedInventoryItem_args();
|
| 3430 |
rajveer |
1337 |
}
|
|
|
1338 |
|
| 4496 |
mandeep.dh |
1339 |
protected createSerializedInventoryItem_result getResult(I iface, createSerializedInventoryItem_args args) throws org.apache.thrift.TException {
|
|
|
1340 |
createSerializedInventoryItem_result result = new createSerializedInventoryItem_result();
|
| 2820 |
chandransh |
1341 |
try {
|
| 4846 |
mandeep.dh |
1342 |
result.success = iface.createSerializedInventoryItem(args.itemId, args.itemNumber, args.serialNumber, args.purchaseId);
|
| 2820 |
chandransh |
1343 |
} catch (WarehouseServiceException wex) {
|
|
|
1344 |
result.wex = wex;
|
|
|
1345 |
}
|
| 3430 |
rajveer |
1346 |
return result;
|
| 2820 |
chandransh |
1347 |
}
|
|
|
1348 |
}
|
|
|
1349 |
|
| 4496 |
mandeep.dh |
1350 |
private static class createSerializedInventoryItemFromItemNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createSerializedInventoryItemFromItemNumber_args> {
|
|
|
1351 |
public createSerializedInventoryItemFromItemNumber() {
|
|
|
1352 |
super("createSerializedInventoryItemFromItemNumber");
|
| 3430 |
rajveer |
1353 |
}
|
|
|
1354 |
|
| 4496 |
mandeep.dh |
1355 |
protected createSerializedInventoryItemFromItemNumber_args getEmptyArgsInstance() {
|
|
|
1356 |
return new createSerializedInventoryItemFromItemNumber_args();
|
| 3430 |
rajveer |
1357 |
}
|
|
|
1358 |
|
| 4496 |
mandeep.dh |
1359 |
protected createSerializedInventoryItemFromItemNumber_result getResult(I iface, createSerializedInventoryItemFromItemNumber_args args) throws org.apache.thrift.TException {
|
|
|
1360 |
createSerializedInventoryItemFromItemNumber_result result = new createSerializedInventoryItemFromItemNumber_result();
|
| 2820 |
chandransh |
1361 |
try {
|
| 4496 |
mandeep.dh |
1362 |
result.success = iface.createSerializedInventoryItemFromItemNumber(args.itemNumber, args.serialNumber, args.purchaseId);
|
| 2820 |
chandransh |
1363 |
} catch (WarehouseServiceException wex) {
|
|
|
1364 |
result.wex = wex;
|
|
|
1365 |
}
|
| 3430 |
rajveer |
1366 |
return result;
|
| 2820 |
chandransh |
1367 |
}
|
|
|
1368 |
}
|
|
|
1369 |
|
| 4496 |
mandeep.dh |
1370 |
private static class createInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createInventoryItem_args> {
|
|
|
1371 |
public createInventoryItem() {
|
|
|
1372 |
super("createInventoryItem");
|
| 3430 |
rajveer |
1373 |
}
|
|
|
1374 |
|
| 4496 |
mandeep.dh |
1375 |
protected createInventoryItem_args getEmptyArgsInstance() {
|
|
|
1376 |
return new createInventoryItem_args();
|
| 3430 |
rajveer |
1377 |
}
|
|
|
1378 |
|
| 4496 |
mandeep.dh |
1379 |
protected createInventoryItem_result getResult(I iface, createInventoryItem_args args) throws org.apache.thrift.TException {
|
|
|
1380 |
createInventoryItem_result result = new createInventoryItem_result();
|
| 3383 |
chandransh |
1381 |
try {
|
| 4496 |
mandeep.dh |
1382 |
result.success = iface.createInventoryItem(args.itemId, args.quantity, args.purchaseId);
|
| 3383 |
chandransh |
1383 |
} catch (WarehouseServiceException wex) {
|
|
|
1384 |
result.wex = wex;
|
|
|
1385 |
}
|
| 3430 |
rajveer |
1386 |
return result;
|
| 3383 |
chandransh |
1387 |
}
|
|
|
1388 |
}
|
|
|
1389 |
|
| 4496 |
mandeep.dh |
1390 |
private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
|
|
|
1391 |
public getInventoryItem() {
|
|
|
1392 |
super("getInventoryItem");
|
| 3430 |
rajveer |
1393 |
}
|
|
|
1394 |
|
| 4496 |
mandeep.dh |
1395 |
protected getInventoryItem_args getEmptyArgsInstance() {
|
|
|
1396 |
return new getInventoryItem_args();
|
| 3430 |
rajveer |
1397 |
}
|
|
|
1398 |
|
| 4496 |
mandeep.dh |
1399 |
protected getInventoryItem_result getResult(I iface, getInventoryItem_args args) throws org.apache.thrift.TException {
|
|
|
1400 |
getInventoryItem_result result = new getInventoryItem_result();
|
| 4541 |
mandeep.dh |
1401 |
try {
|
|
|
1402 |
result.success = iface.getInventoryItem(args.serialNumber);
|
|
|
1403 |
} catch (WarehouseServiceException wex) {
|
|
|
1404 |
result.wex = wex;
|
|
|
1405 |
}
|
| 3430 |
rajveer |
1406 |
return result;
|
| 2832 |
chandransh |
1407 |
}
|
|
|
1408 |
}
|
|
|
1409 |
|
| 4496 |
mandeep.dh |
1410 |
private static class getNonSeralizedInventoryItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonSeralizedInventoryItems_args> {
|
|
|
1411 |
public getNonSeralizedInventoryItems() {
|
|
|
1412 |
super("getNonSeralizedInventoryItems");
|
| 3430 |
rajveer |
1413 |
}
|
|
|
1414 |
|
| 4496 |
mandeep.dh |
1415 |
protected getNonSeralizedInventoryItems_args getEmptyArgsInstance() {
|
|
|
1416 |
return new getNonSeralizedInventoryItems_args();
|
| 3430 |
rajveer |
1417 |
}
|
|
|
1418 |
|
| 4496 |
mandeep.dh |
1419 |
protected getNonSeralizedInventoryItems_result getResult(I iface, getNonSeralizedInventoryItems_args args) throws org.apache.thrift.TException {
|
|
|
1420 |
getNonSeralizedInventoryItems_result result = new getNonSeralizedInventoryItems_result();
|
|
|
1421 |
result.success = iface.getNonSeralizedInventoryItems(args.itemId, args.quantity, args.supplierId);
|
| 3430 |
rajveer |
1422 |
return result;
|
| 2820 |
chandransh |
1423 |
}
|
|
|
1424 |
}
|
|
|
1425 |
|
| 4496 |
mandeep.dh |
1426 |
private static class getInventoryItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItems_args> {
|
|
|
1427 |
public getInventoryItems() {
|
|
|
1428 |
super("getInventoryItems");
|
| 3430 |
rajveer |
1429 |
}
|
|
|
1430 |
|
| 4496 |
mandeep.dh |
1431 |
protected getInventoryItems_args getEmptyArgsInstance() {
|
|
|
1432 |
return new getInventoryItems_args();
|
| 3430 |
rajveer |
1433 |
}
|
|
|
1434 |
|
| 4496 |
mandeep.dh |
1435 |
protected getInventoryItems_result getResult(I iface, getInventoryItems_args args) throws org.apache.thrift.TException {
|
|
|
1436 |
getInventoryItems_result result = new getInventoryItems_result();
|
|
|
1437 |
result.success = iface.getInventoryItems(args.itemId);
|
|
|
1438 |
return result;
|
|
|
1439 |
}
|
|
|
1440 |
}
|
|
|
1441 |
|
|
|
1442 |
private static class getScanForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScanForOrder_args> {
|
|
|
1443 |
public getScanForOrder() {
|
|
|
1444 |
super("getScanForOrder");
|
|
|
1445 |
}
|
|
|
1446 |
|
|
|
1447 |
protected getScanForOrder_args getEmptyArgsInstance() {
|
|
|
1448 |
return new getScanForOrder_args();
|
|
|
1449 |
}
|
|
|
1450 |
|
|
|
1451 |
protected getScanForOrder_result getResult(I iface, getScanForOrder_args args) throws org.apache.thrift.TException {
|
|
|
1452 |
getScanForOrder_result result = new getScanForOrder_result();
|
|
|
1453 |
result.success = iface.getScanForOrder(args.orderId);
|
|
|
1454 |
return result;
|
|
|
1455 |
}
|
|
|
1456 |
}
|
|
|
1457 |
|
|
|
1458 |
private static class getScan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScan_args> {
|
|
|
1459 |
public getScan() {
|
|
|
1460 |
super("getScan");
|
|
|
1461 |
}
|
|
|
1462 |
|
|
|
1463 |
protected getScan_args getEmptyArgsInstance() {
|
|
|
1464 |
return new getScan_args();
|
|
|
1465 |
}
|
|
|
1466 |
|
|
|
1467 |
protected getScan_result getResult(I iface, getScan_args args) throws org.apache.thrift.TException {
|
|
|
1468 |
getScan_result result = new getScan_result();
|
|
|
1469 |
result.success = iface.getScan(args.inventoryItemId);
|
|
|
1470 |
return result;
|
|
|
1471 |
}
|
|
|
1472 |
}
|
|
|
1473 |
|
|
|
1474 |
private static class scanSerializedItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItem_args> {
|
|
|
1475 |
public scanSerializedItem() {
|
|
|
1476 |
super("scanSerializedItem");
|
|
|
1477 |
}
|
|
|
1478 |
|
|
|
1479 |
protected scanSerializedItem_args getEmptyArgsInstance() {
|
|
|
1480 |
return new scanSerializedItem_args();
|
|
|
1481 |
}
|
|
|
1482 |
|
|
|
1483 |
protected scanSerializedItem_result getResult(I iface, scanSerializedItem_args args) throws org.apache.thrift.TException {
|
|
|
1484 |
scanSerializedItem_result result = new scanSerializedItem_result();
|
| 2820 |
chandransh |
1485 |
try {
|
| 5110 |
mandeep.dh |
1486 |
iface.scanSerializedItem(args.inventoryItem, args.type, args.warehouseId);
|
| 2820 |
chandransh |
1487 |
} catch (WarehouseServiceException wex) {
|
|
|
1488 |
result.wex = wex;
|
|
|
1489 |
}
|
| 3430 |
rajveer |
1490 |
return result;
|
| 2820 |
chandransh |
1491 |
}
|
|
|
1492 |
}
|
|
|
1493 |
|
| 4496 |
mandeep.dh |
1494 |
private static class scan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scan_args> {
|
|
|
1495 |
public scan() {
|
|
|
1496 |
super("scan");
|
| 3430 |
rajveer |
1497 |
}
|
|
|
1498 |
|
| 4496 |
mandeep.dh |
1499 |
protected scan_args getEmptyArgsInstance() {
|
|
|
1500 |
return new scan_args();
|
| 3430 |
rajveer |
1501 |
}
|
|
|
1502 |
|
| 4496 |
mandeep.dh |
1503 |
protected scan_result getResult(I iface, scan_args args) throws org.apache.thrift.TException {
|
|
|
1504 |
scan_result result = new scan_result();
|
| 3383 |
chandransh |
1505 |
try {
|
| 4496 |
mandeep.dh |
1506 |
iface.scan(args.inventoryItemId, args.type, args.quantity, args.warehouseId);
|
| 3383 |
chandransh |
1507 |
} catch (WarehouseServiceException wex) {
|
|
|
1508 |
result.wex = wex;
|
|
|
1509 |
}
|
| 3430 |
rajveer |
1510 |
return result;
|
| 3383 |
chandransh |
1511 |
}
|
|
|
1512 |
}
|
|
|
1513 |
|
| 4496 |
mandeep.dh |
1514 |
private static class scanSerializedItemForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItemForOrder_args> {
|
|
|
1515 |
public scanSerializedItemForOrder() {
|
|
|
1516 |
super("scanSerializedItemForOrder");
|
| 3430 |
rajveer |
1517 |
}
|
|
|
1518 |
|
| 4496 |
mandeep.dh |
1519 |
protected scanSerializedItemForOrder_args getEmptyArgsInstance() {
|
|
|
1520 |
return new scanSerializedItemForOrder_args();
|
| 3430 |
rajveer |
1521 |
}
|
|
|
1522 |
|
| 4496 |
mandeep.dh |
1523 |
protected scanSerializedItemForOrder_result getResult(I iface, scanSerializedItemForOrder_args args) throws org.apache.thrift.TException {
|
|
|
1524 |
scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
|
| 2820 |
chandransh |
1525 |
try {
|
| 5110 |
mandeep.dh |
1526 |
result.success = iface.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId);
|
| 2820 |
chandransh |
1527 |
} catch (WarehouseServiceException wex) {
|
|
|
1528 |
result.wex = wex;
|
|
|
1529 |
}
|
| 3430 |
rajveer |
1530 |
return result;
|
| 2820 |
chandransh |
1531 |
}
|
|
|
1532 |
}
|
|
|
1533 |
|
| 4496 |
mandeep.dh |
1534 |
private static class scanForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOrder_args> {
|
|
|
1535 |
public scanForOrder() {
|
|
|
1536 |
super("scanForOrder");
|
| 3430 |
rajveer |
1537 |
}
|
|
|
1538 |
|
| 4496 |
mandeep.dh |
1539 |
protected scanForOrder_args getEmptyArgsInstance() {
|
|
|
1540 |
return new scanForOrder_args();
|
| 3430 |
rajveer |
1541 |
}
|
|
|
1542 |
|
| 4496 |
mandeep.dh |
1543 |
protected scanForOrder_result getResult(I iface, scanForOrder_args args) throws org.apache.thrift.TException {
|
|
|
1544 |
scanForOrder_result result = new scanForOrder_result();
|
| 2820 |
chandransh |
1545 |
try {
|
| 5110 |
mandeep.dh |
1546 |
iface.scanForOrder(args.inventoryItemId, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId);
|
| 2820 |
chandransh |
1547 |
} catch (WarehouseServiceException wex) {
|
|
|
1548 |
result.wex = wex;
|
|
|
1549 |
}
|
| 3430 |
rajveer |
1550 |
return result;
|
| 2820 |
chandransh |
1551 |
}
|
|
|
1552 |
}
|
|
|
1553 |
|
| 4496 |
mandeep.dh |
1554 |
private static class createItemNumberMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createItemNumberMapping_args> {
|
|
|
1555 |
public createItemNumberMapping() {
|
|
|
1556 |
super("createItemNumberMapping");
|
|
|
1557 |
}
|
|
|
1558 |
|
|
|
1559 |
protected createItemNumberMapping_args getEmptyArgsInstance() {
|
|
|
1560 |
return new createItemNumberMapping_args();
|
|
|
1561 |
}
|
|
|
1562 |
|
|
|
1563 |
protected createItemNumberMapping_result getResult(I iface, createItemNumberMapping_args args) throws org.apache.thrift.TException {
|
|
|
1564 |
createItemNumberMapping_result result = new createItemNumberMapping_result();
|
|
|
1565 |
iface.createItemNumberMapping(args.itemNumber, args.itemId);
|
|
|
1566 |
return result;
|
|
|
1567 |
}
|
|
|
1568 |
}
|
|
|
1569 |
|
| 4622 |
amit.gupta |
1570 |
private static class getItemNumbers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemNumbers_args> {
|
|
|
1571 |
public getItemNumbers() {
|
|
|
1572 |
super("getItemNumbers");
|
|
|
1573 |
}
|
|
|
1574 |
|
|
|
1575 |
protected getItemNumbers_args getEmptyArgsInstance() {
|
|
|
1576 |
return new getItemNumbers_args();
|
|
|
1577 |
}
|
|
|
1578 |
|
|
|
1579 |
protected getItemNumbers_result getResult(I iface, getItemNumbers_args args) throws org.apache.thrift.TException {
|
|
|
1580 |
getItemNumbers_result result = new getItemNumbers_result();
|
|
|
1581 |
result.success = iface.getItemNumbers(args.itemId);
|
|
|
1582 |
return result;
|
|
|
1583 |
}
|
|
|
1584 |
}
|
|
|
1585 |
|
| 5110 |
mandeep.dh |
1586 |
private static class getItemIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemIds_args> {
|
|
|
1587 |
public getItemIds() {
|
|
|
1588 |
super("getItemIds");
|
|
|
1589 |
}
|
|
|
1590 |
|
|
|
1591 |
protected getItemIds_args getEmptyArgsInstance() {
|
|
|
1592 |
return new getItemIds_args();
|
|
|
1593 |
}
|
|
|
1594 |
|
|
|
1595 |
protected getItemIds_result getResult(I iface, getItemIds_args args) throws org.apache.thrift.TException {
|
|
|
1596 |
getItemIds_result result = new getItemIds_result();
|
|
|
1597 |
result.success = iface.getItemIds(args.itemNumber);
|
|
|
1598 |
return result;
|
|
|
1599 |
}
|
|
|
1600 |
}
|
|
|
1601 |
|
| 5185 |
mandeep.dh |
1602 |
private static class getInventoryItemsFromLastScanType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemsFromLastScanType_args> {
|
|
|
1603 |
public getInventoryItemsFromLastScanType() {
|
|
|
1604 |
super("getInventoryItemsFromLastScanType");
|
|
|
1605 |
}
|
|
|
1606 |
|
|
|
1607 |
protected getInventoryItemsFromLastScanType_args getEmptyArgsInstance() {
|
|
|
1608 |
return new getInventoryItemsFromLastScanType_args();
|
|
|
1609 |
}
|
|
|
1610 |
|
|
|
1611 |
protected getInventoryItemsFromLastScanType_result getResult(I iface, getInventoryItemsFromLastScanType_args args) throws org.apache.thrift.TException {
|
|
|
1612 |
getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
|
|
|
1613 |
try {
|
|
|
1614 |
result.success = iface.getInventoryItemsFromLastScanType(args.lastScanType);
|
|
|
1615 |
} catch (WarehouseServiceException wex) {
|
|
|
1616 |
result.wex = wex;
|
|
|
1617 |
}
|
|
|
1618 |
return result;
|
|
|
1619 |
}
|
|
|
1620 |
}
|
|
|
1621 |
|
|
|
1622 |
private static class getInventoryItemFromId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromId_args> {
|
|
|
1623 |
public getInventoryItemFromId() {
|
|
|
1624 |
super("getInventoryItemFromId");
|
|
|
1625 |
}
|
|
|
1626 |
|
|
|
1627 |
protected getInventoryItemFromId_args getEmptyArgsInstance() {
|
|
|
1628 |
return new getInventoryItemFromId_args();
|
|
|
1629 |
}
|
|
|
1630 |
|
|
|
1631 |
protected getInventoryItemFromId_result getResult(I iface, getInventoryItemFromId_args args) throws org.apache.thrift.TException {
|
|
|
1632 |
getInventoryItemFromId_result result = new getInventoryItemFromId_result();
|
|
|
1633 |
try {
|
|
|
1634 |
result.success = iface.getInventoryItemFromId(args.inventoryItemId);
|
|
|
1635 |
} catch (WarehouseServiceException wex) {
|
|
|
1636 |
result.wex = wex;
|
|
|
1637 |
}
|
|
|
1638 |
return result;
|
|
|
1639 |
}
|
|
|
1640 |
}
|
|
|
1641 |
|
| 2820 |
chandransh |
1642 |
}
|
|
|
1643 |
|
| 4496 |
mandeep.dh |
1644 |
public static class createSerializedInventoryItem_args implements org.apache.thrift.TBase<createSerializedInventoryItem_args, createSerializedInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
1645 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItem_args");
|
| 2820 |
chandransh |
1646 |
|
| 4496 |
mandeep.dh |
1647 |
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);
|
| 4846 |
mandeep.dh |
1648 |
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)2);
|
|
|
1649 |
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)3);
|
|
|
1650 |
private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)4);
|
| 2820 |
chandransh |
1651 |
|
| 4496 |
mandeep.dh |
1652 |
private long itemId; // required
|
| 4846 |
mandeep.dh |
1653 |
private String itemNumber; // required
|
| 4496 |
mandeep.dh |
1654 |
private String serialNumber; // required
|
|
|
1655 |
private long purchaseId; // required
|
| 2820 |
chandransh |
1656 |
|
|
|
1657 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1658 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
1659 |
ITEM_ID((short)1, "itemId"),
|
| 4846 |
mandeep.dh |
1660 |
ITEM_NUMBER((short)2, "itemNumber"),
|
|
|
1661 |
SERIAL_NUMBER((short)3, "serialNumber"),
|
|
|
1662 |
PURCHASE_ID((short)4, "purchaseId");
|
| 2820 |
chandransh |
1663 |
|
|
|
1664 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1665 |
|
|
|
1666 |
static {
|
|
|
1667 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1668 |
byName.put(field.getFieldName(), field);
|
|
|
1669 |
}
|
|
|
1670 |
}
|
|
|
1671 |
|
|
|
1672 |
/**
|
|
|
1673 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1674 |
*/
|
|
|
1675 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1676 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
1677 |
case 1: // ITEM_ID
|
|
|
1678 |
return ITEM_ID;
|
| 4846 |
mandeep.dh |
1679 |
case 2: // ITEM_NUMBER
|
|
|
1680 |
return ITEM_NUMBER;
|
|
|
1681 |
case 3: // SERIAL_NUMBER
|
| 4496 |
mandeep.dh |
1682 |
return SERIAL_NUMBER;
|
| 4846 |
mandeep.dh |
1683 |
case 4: // PURCHASE_ID
|
| 4496 |
mandeep.dh |
1684 |
return PURCHASE_ID;
|
| 3430 |
rajveer |
1685 |
default:
|
|
|
1686 |
return null;
|
|
|
1687 |
}
|
| 2820 |
chandransh |
1688 |
}
|
|
|
1689 |
|
|
|
1690 |
/**
|
|
|
1691 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1692 |
* if it is not found.
|
|
|
1693 |
*/
|
|
|
1694 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1695 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1696 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1697 |
return fields;
|
|
|
1698 |
}
|
|
|
1699 |
|
|
|
1700 |
/**
|
|
|
1701 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1702 |
*/
|
|
|
1703 |
public static _Fields findByName(String name) {
|
|
|
1704 |
return byName.get(name);
|
|
|
1705 |
}
|
|
|
1706 |
|
|
|
1707 |
private final short _thriftId;
|
|
|
1708 |
private final String _fieldName;
|
|
|
1709 |
|
|
|
1710 |
_Fields(short thriftId, String fieldName) {
|
|
|
1711 |
_thriftId = thriftId;
|
|
|
1712 |
_fieldName = fieldName;
|
|
|
1713 |
}
|
|
|
1714 |
|
|
|
1715 |
public short getThriftFieldId() {
|
|
|
1716 |
return _thriftId;
|
|
|
1717 |
}
|
|
|
1718 |
|
|
|
1719 |
public String getFieldName() {
|
|
|
1720 |
return _fieldName;
|
|
|
1721 |
}
|
|
|
1722 |
}
|
|
|
1723 |
|
|
|
1724 |
// isset id assignments
|
| 4496 |
mandeep.dh |
1725 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
1726 |
private static final int __PURCHASEID_ISSET_ID = 1;
|
|
|
1727 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 2820 |
chandransh |
1728 |
|
| 3430 |
rajveer |
1729 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
1730 |
static {
|
| 3430 |
rajveer |
1731 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
1732 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1733 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 4846 |
mandeep.dh |
1734 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1735 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 4496 |
mandeep.dh |
1736 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1737 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
1738 |
tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1739 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
1740 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
1741 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createSerializedInventoryItem_args.class, metaDataMap);
|
| 2820 |
chandransh |
1742 |
}
|
|
|
1743 |
|
| 4496 |
mandeep.dh |
1744 |
public createSerializedInventoryItem_args() {
|
| 2820 |
chandransh |
1745 |
}
|
|
|
1746 |
|
| 4496 |
mandeep.dh |
1747 |
public createSerializedInventoryItem_args(
|
|
|
1748 |
long itemId,
|
| 4846 |
mandeep.dh |
1749 |
String itemNumber,
|
| 4496 |
mandeep.dh |
1750 |
String serialNumber,
|
|
|
1751 |
long purchaseId)
|
| 2820 |
chandransh |
1752 |
{
|
|
|
1753 |
this();
|
| 4496 |
mandeep.dh |
1754 |
this.itemId = itemId;
|
|
|
1755 |
setItemIdIsSet(true);
|
| 4846 |
mandeep.dh |
1756 |
this.itemNumber = itemNumber;
|
| 4496 |
mandeep.dh |
1757 |
this.serialNumber = serialNumber;
|
|
|
1758 |
this.purchaseId = purchaseId;
|
|
|
1759 |
setPurchaseIdIsSet(true);
|
| 2820 |
chandransh |
1760 |
}
|
|
|
1761 |
|
|
|
1762 |
/**
|
|
|
1763 |
* Performs a deep copy on <i>other</i>.
|
|
|
1764 |
*/
|
| 4496 |
mandeep.dh |
1765 |
public createSerializedInventoryItem_args(createSerializedInventoryItem_args other) {
|
|
|
1766 |
__isset_bit_vector.clear();
|
|
|
1767 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
1768 |
this.itemId = other.itemId;
|
| 4846 |
mandeep.dh |
1769 |
if (other.isSetItemNumber()) {
|
|
|
1770 |
this.itemNumber = other.itemNumber;
|
|
|
1771 |
}
|
| 4496 |
mandeep.dh |
1772 |
if (other.isSetSerialNumber()) {
|
|
|
1773 |
this.serialNumber = other.serialNumber;
|
| 2820 |
chandransh |
1774 |
}
|
| 4496 |
mandeep.dh |
1775 |
this.purchaseId = other.purchaseId;
|
| 2820 |
chandransh |
1776 |
}
|
|
|
1777 |
|
| 4496 |
mandeep.dh |
1778 |
public createSerializedInventoryItem_args deepCopy() {
|
|
|
1779 |
return new createSerializedInventoryItem_args(this);
|
| 2820 |
chandransh |
1780 |
}
|
|
|
1781 |
|
| 3430 |
rajveer |
1782 |
@Override
|
|
|
1783 |
public void clear() {
|
| 4496 |
mandeep.dh |
1784 |
setItemIdIsSet(false);
|
|
|
1785 |
this.itemId = 0;
|
| 4846 |
mandeep.dh |
1786 |
this.itemNumber = null;
|
| 4496 |
mandeep.dh |
1787 |
this.serialNumber = null;
|
|
|
1788 |
setPurchaseIdIsSet(false);
|
|
|
1789 |
this.purchaseId = 0;
|
| 2820 |
chandransh |
1790 |
}
|
|
|
1791 |
|
| 4496 |
mandeep.dh |
1792 |
public long getItemId() {
|
|
|
1793 |
return this.itemId;
|
| 2820 |
chandransh |
1794 |
}
|
|
|
1795 |
|
| 4496 |
mandeep.dh |
1796 |
public void setItemId(long itemId) {
|
|
|
1797 |
this.itemId = itemId;
|
|
|
1798 |
setItemIdIsSet(true);
|
| 2820 |
chandransh |
1799 |
}
|
|
|
1800 |
|
| 4496 |
mandeep.dh |
1801 |
public void unsetItemId() {
|
|
|
1802 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
| 2820 |
chandransh |
1803 |
}
|
|
|
1804 |
|
| 4496 |
mandeep.dh |
1805 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
1806 |
public boolean isSetItemId() {
|
|
|
1807 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
| 2820 |
chandransh |
1808 |
}
|
|
|
1809 |
|
| 4496 |
mandeep.dh |
1810 |
public void setItemIdIsSet(boolean value) {
|
|
|
1811 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
1812 |
}
|
|
|
1813 |
|
| 4846 |
mandeep.dh |
1814 |
public String getItemNumber() {
|
|
|
1815 |
return this.itemNumber;
|
|
|
1816 |
}
|
|
|
1817 |
|
|
|
1818 |
public void setItemNumber(String itemNumber) {
|
|
|
1819 |
this.itemNumber = itemNumber;
|
|
|
1820 |
}
|
|
|
1821 |
|
|
|
1822 |
public void unsetItemNumber() {
|
|
|
1823 |
this.itemNumber = null;
|
|
|
1824 |
}
|
|
|
1825 |
|
|
|
1826 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
1827 |
public boolean isSetItemNumber() {
|
|
|
1828 |
return this.itemNumber != null;
|
|
|
1829 |
}
|
|
|
1830 |
|
|
|
1831 |
public void setItemNumberIsSet(boolean value) {
|
|
|
1832 |
if (!value) {
|
|
|
1833 |
this.itemNumber = null;
|
|
|
1834 |
}
|
|
|
1835 |
}
|
|
|
1836 |
|
| 4496 |
mandeep.dh |
1837 |
public String getSerialNumber() {
|
|
|
1838 |
return this.serialNumber;
|
|
|
1839 |
}
|
|
|
1840 |
|
|
|
1841 |
public void setSerialNumber(String serialNumber) {
|
|
|
1842 |
this.serialNumber = serialNumber;
|
|
|
1843 |
}
|
|
|
1844 |
|
|
|
1845 |
public void unsetSerialNumber() {
|
|
|
1846 |
this.serialNumber = null;
|
|
|
1847 |
}
|
|
|
1848 |
|
|
|
1849 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
1850 |
public boolean isSetSerialNumber() {
|
|
|
1851 |
return this.serialNumber != null;
|
|
|
1852 |
}
|
|
|
1853 |
|
|
|
1854 |
public void setSerialNumberIsSet(boolean value) {
|
| 2820 |
chandransh |
1855 |
if (!value) {
|
| 4496 |
mandeep.dh |
1856 |
this.serialNumber = null;
|
| 2820 |
chandransh |
1857 |
}
|
|
|
1858 |
}
|
|
|
1859 |
|
| 4496 |
mandeep.dh |
1860 |
public long getPurchaseId() {
|
|
|
1861 |
return this.purchaseId;
|
|
|
1862 |
}
|
|
|
1863 |
|
|
|
1864 |
public void setPurchaseId(long purchaseId) {
|
|
|
1865 |
this.purchaseId = purchaseId;
|
|
|
1866 |
setPurchaseIdIsSet(true);
|
|
|
1867 |
}
|
|
|
1868 |
|
|
|
1869 |
public void unsetPurchaseId() {
|
|
|
1870 |
__isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
|
|
|
1871 |
}
|
|
|
1872 |
|
|
|
1873 |
/** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
|
|
|
1874 |
public boolean isSetPurchaseId() {
|
|
|
1875 |
return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
|
|
|
1876 |
}
|
|
|
1877 |
|
|
|
1878 |
public void setPurchaseIdIsSet(boolean value) {
|
|
|
1879 |
__isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
|
|
|
1880 |
}
|
|
|
1881 |
|
| 2820 |
chandransh |
1882 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1883 |
switch (field) {
|
| 4496 |
mandeep.dh |
1884 |
case ITEM_ID:
|
| 2820 |
chandransh |
1885 |
if (value == null) {
|
| 4496 |
mandeep.dh |
1886 |
unsetItemId();
|
| 2820 |
chandransh |
1887 |
} else {
|
| 4496 |
mandeep.dh |
1888 |
setItemId((Long)value);
|
| 2820 |
chandransh |
1889 |
}
|
|
|
1890 |
break;
|
|
|
1891 |
|
| 4846 |
mandeep.dh |
1892 |
case ITEM_NUMBER:
|
|
|
1893 |
if (value == null) {
|
|
|
1894 |
unsetItemNumber();
|
|
|
1895 |
} else {
|
|
|
1896 |
setItemNumber((String)value);
|
|
|
1897 |
}
|
|
|
1898 |
break;
|
|
|
1899 |
|
| 4496 |
mandeep.dh |
1900 |
case SERIAL_NUMBER:
|
|
|
1901 |
if (value == null) {
|
|
|
1902 |
unsetSerialNumber();
|
|
|
1903 |
} else {
|
|
|
1904 |
setSerialNumber((String)value);
|
|
|
1905 |
}
|
|
|
1906 |
break;
|
|
|
1907 |
|
|
|
1908 |
case PURCHASE_ID:
|
|
|
1909 |
if (value == null) {
|
|
|
1910 |
unsetPurchaseId();
|
|
|
1911 |
} else {
|
|
|
1912 |
setPurchaseId((Long)value);
|
|
|
1913 |
}
|
|
|
1914 |
break;
|
|
|
1915 |
|
| 2820 |
chandransh |
1916 |
}
|
|
|
1917 |
}
|
|
|
1918 |
|
|
|
1919 |
public Object getFieldValue(_Fields field) {
|
|
|
1920 |
switch (field) {
|
| 4496 |
mandeep.dh |
1921 |
case ITEM_ID:
|
|
|
1922 |
return Long.valueOf(getItemId());
|
| 2820 |
chandransh |
1923 |
|
| 4846 |
mandeep.dh |
1924 |
case ITEM_NUMBER:
|
|
|
1925 |
return getItemNumber();
|
|
|
1926 |
|
| 4496 |
mandeep.dh |
1927 |
case SERIAL_NUMBER:
|
|
|
1928 |
return getSerialNumber();
|
|
|
1929 |
|
|
|
1930 |
case PURCHASE_ID:
|
|
|
1931 |
return Long.valueOf(getPurchaseId());
|
|
|
1932 |
|
| 2820 |
chandransh |
1933 |
}
|
|
|
1934 |
throw new IllegalStateException();
|
|
|
1935 |
}
|
|
|
1936 |
|
| 3430 |
rajveer |
1937 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1938 |
public boolean isSet(_Fields field) {
|
|
|
1939 |
if (field == null) {
|
|
|
1940 |
throw new IllegalArgumentException();
|
|
|
1941 |
}
|
| 2820 |
chandransh |
1942 |
|
|
|
1943 |
switch (field) {
|
| 4496 |
mandeep.dh |
1944 |
case ITEM_ID:
|
|
|
1945 |
return isSetItemId();
|
| 4846 |
mandeep.dh |
1946 |
case ITEM_NUMBER:
|
|
|
1947 |
return isSetItemNumber();
|
| 4496 |
mandeep.dh |
1948 |
case SERIAL_NUMBER:
|
|
|
1949 |
return isSetSerialNumber();
|
|
|
1950 |
case PURCHASE_ID:
|
|
|
1951 |
return isSetPurchaseId();
|
| 2820 |
chandransh |
1952 |
}
|
|
|
1953 |
throw new IllegalStateException();
|
|
|
1954 |
}
|
|
|
1955 |
|
|
|
1956 |
@Override
|
|
|
1957 |
public boolean equals(Object that) {
|
|
|
1958 |
if (that == null)
|
|
|
1959 |
return false;
|
| 4496 |
mandeep.dh |
1960 |
if (that instanceof createSerializedInventoryItem_args)
|
|
|
1961 |
return this.equals((createSerializedInventoryItem_args)that);
|
| 2820 |
chandransh |
1962 |
return false;
|
|
|
1963 |
}
|
|
|
1964 |
|
| 4496 |
mandeep.dh |
1965 |
public boolean equals(createSerializedInventoryItem_args that) {
|
| 2820 |
chandransh |
1966 |
if (that == null)
|
|
|
1967 |
return false;
|
|
|
1968 |
|
| 4496 |
mandeep.dh |
1969 |
boolean this_present_itemId = true;
|
|
|
1970 |
boolean that_present_itemId = true;
|
|
|
1971 |
if (this_present_itemId || that_present_itemId) {
|
|
|
1972 |
if (!(this_present_itemId && that_present_itemId))
|
| 2820 |
chandransh |
1973 |
return false;
|
| 4496 |
mandeep.dh |
1974 |
if (this.itemId != that.itemId)
|
| 2820 |
chandransh |
1975 |
return false;
|
|
|
1976 |
}
|
|
|
1977 |
|
| 4846 |
mandeep.dh |
1978 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
1979 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
1980 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
1981 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
1982 |
return false;
|
|
|
1983 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
1984 |
return false;
|
|
|
1985 |
}
|
|
|
1986 |
|
| 4496 |
mandeep.dh |
1987 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
1988 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
1989 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
1990 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
|
|
1991 |
return false;
|
|
|
1992 |
if (!this.serialNumber.equals(that.serialNumber))
|
|
|
1993 |
return false;
|
|
|
1994 |
}
|
|
|
1995 |
|
|
|
1996 |
boolean this_present_purchaseId = true;
|
|
|
1997 |
boolean that_present_purchaseId = true;
|
|
|
1998 |
if (this_present_purchaseId || that_present_purchaseId) {
|
|
|
1999 |
if (!(this_present_purchaseId && that_present_purchaseId))
|
|
|
2000 |
return false;
|
|
|
2001 |
if (this.purchaseId != that.purchaseId)
|
|
|
2002 |
return false;
|
|
|
2003 |
}
|
|
|
2004 |
|
| 2820 |
chandransh |
2005 |
return true;
|
|
|
2006 |
}
|
|
|
2007 |
|
|
|
2008 |
@Override
|
|
|
2009 |
public int hashCode() {
|
|
|
2010 |
return 0;
|
|
|
2011 |
}
|
|
|
2012 |
|
| 4496 |
mandeep.dh |
2013 |
public int compareTo(createSerializedInventoryItem_args other) {
|
| 2820 |
chandransh |
2014 |
if (!getClass().equals(other.getClass())) {
|
|
|
2015 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2016 |
}
|
|
|
2017 |
|
|
|
2018 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
2019 |
createSerializedInventoryItem_args typedOther = (createSerializedInventoryItem_args)other;
|
| 2820 |
chandransh |
2020 |
|
| 4496 |
mandeep.dh |
2021 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
| 2820 |
chandransh |
2022 |
if (lastComparison != 0) {
|
|
|
2023 |
return lastComparison;
|
|
|
2024 |
}
|
| 4496 |
mandeep.dh |
2025 |
if (isSetItemId()) {
|
|
|
2026 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
| 3430 |
rajveer |
2027 |
if (lastComparison != 0) {
|
|
|
2028 |
return lastComparison;
|
|
|
2029 |
}
|
| 2820 |
chandransh |
2030 |
}
|
| 4846 |
mandeep.dh |
2031 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
2032 |
if (lastComparison != 0) {
|
|
|
2033 |
return lastComparison;
|
|
|
2034 |
}
|
|
|
2035 |
if (isSetItemNumber()) {
|
|
|
2036 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
2037 |
if (lastComparison != 0) {
|
|
|
2038 |
return lastComparison;
|
|
|
2039 |
}
|
|
|
2040 |
}
|
| 4496 |
mandeep.dh |
2041 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
|
|
2042 |
if (lastComparison != 0) {
|
|
|
2043 |
return lastComparison;
|
|
|
2044 |
}
|
|
|
2045 |
if (isSetSerialNumber()) {
|
|
|
2046 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
|
|
2047 |
if (lastComparison != 0) {
|
|
|
2048 |
return lastComparison;
|
|
|
2049 |
}
|
|
|
2050 |
}
|
|
|
2051 |
lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
|
|
|
2052 |
if (lastComparison != 0) {
|
|
|
2053 |
return lastComparison;
|
|
|
2054 |
}
|
|
|
2055 |
if (isSetPurchaseId()) {
|
|
|
2056 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
|
|
|
2057 |
if (lastComparison != 0) {
|
|
|
2058 |
return lastComparison;
|
|
|
2059 |
}
|
|
|
2060 |
}
|
| 2820 |
chandransh |
2061 |
return 0;
|
|
|
2062 |
}
|
|
|
2063 |
|
| 3430 |
rajveer |
2064 |
public _Fields fieldForId(int fieldId) {
|
|
|
2065 |
return _Fields.findByThriftId(fieldId);
|
|
|
2066 |
}
|
|
|
2067 |
|
|
|
2068 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2069 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
2070 |
iprot.readStructBegin();
|
|
|
2071 |
while (true)
|
|
|
2072 |
{
|
|
|
2073 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2074 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
2075 |
break;
|
|
|
2076 |
}
|
| 3430 |
rajveer |
2077 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
2078 |
case 1: // ITEM_ID
|
|
|
2079 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
2080 |
this.itemId = iprot.readI64();
|
|
|
2081 |
setItemIdIsSet(true);
|
| 3430 |
rajveer |
2082 |
} else {
|
|
|
2083 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2084 |
}
|
|
|
2085 |
break;
|
| 4846 |
mandeep.dh |
2086 |
case 2: // ITEM_NUMBER
|
| 4496 |
mandeep.dh |
2087 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| 4846 |
mandeep.dh |
2088 |
this.itemNumber = iprot.readString();
|
|
|
2089 |
} else {
|
|
|
2090 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2091 |
}
|
|
|
2092 |
break;
|
|
|
2093 |
case 3: // SERIAL_NUMBER
|
|
|
2094 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| 4496 |
mandeep.dh |
2095 |
this.serialNumber = iprot.readString();
|
|
|
2096 |
} else {
|
|
|
2097 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2098 |
}
|
|
|
2099 |
break;
|
| 4846 |
mandeep.dh |
2100 |
case 4: // PURCHASE_ID
|
| 4496 |
mandeep.dh |
2101 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
2102 |
this.purchaseId = iprot.readI64();
|
|
|
2103 |
setPurchaseIdIsSet(true);
|
|
|
2104 |
} else {
|
|
|
2105 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2106 |
}
|
|
|
2107 |
break;
|
| 3430 |
rajveer |
2108 |
default:
|
|
|
2109 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
2110 |
}
|
| 3430 |
rajveer |
2111 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
2112 |
}
|
|
|
2113 |
iprot.readStructEnd();
|
|
|
2114 |
validate();
|
|
|
2115 |
}
|
|
|
2116 |
|
| 3430 |
rajveer |
2117 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
2118 |
validate();
|
|
|
2119 |
|
|
|
2120 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4496 |
mandeep.dh |
2121 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
2122 |
oprot.writeI64(this.itemId);
|
|
|
2123 |
oprot.writeFieldEnd();
|
| 4846 |
mandeep.dh |
2124 |
if (this.itemNumber != null) {
|
|
|
2125 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
2126 |
oprot.writeString(this.itemNumber);
|
|
|
2127 |
oprot.writeFieldEnd();
|
|
|
2128 |
}
|
| 4496 |
mandeep.dh |
2129 |
if (this.serialNumber != null) {
|
|
|
2130 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
2131 |
oprot.writeString(this.serialNumber);
|
| 2820 |
chandransh |
2132 |
oprot.writeFieldEnd();
|
|
|
2133 |
}
|
| 4496 |
mandeep.dh |
2134 |
oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
|
|
|
2135 |
oprot.writeI64(this.purchaseId);
|
|
|
2136 |
oprot.writeFieldEnd();
|
| 2820 |
chandransh |
2137 |
oprot.writeFieldStop();
|
|
|
2138 |
oprot.writeStructEnd();
|
|
|
2139 |
}
|
|
|
2140 |
|
|
|
2141 |
@Override
|
|
|
2142 |
public String toString() {
|
| 4496 |
mandeep.dh |
2143 |
StringBuilder sb = new StringBuilder("createSerializedInventoryItem_args(");
|
| 2820 |
chandransh |
2144 |
boolean first = true;
|
|
|
2145 |
|
| 4496 |
mandeep.dh |
2146 |
sb.append("itemId:");
|
|
|
2147 |
sb.append(this.itemId);
|
|
|
2148 |
first = false;
|
|
|
2149 |
if (!first) sb.append(", ");
|
| 4846 |
mandeep.dh |
2150 |
sb.append("itemNumber:");
|
|
|
2151 |
if (this.itemNumber == null) {
|
|
|
2152 |
sb.append("null");
|
|
|
2153 |
} else {
|
|
|
2154 |
sb.append(this.itemNumber);
|
|
|
2155 |
}
|
|
|
2156 |
first = false;
|
|
|
2157 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
2158 |
sb.append("serialNumber:");
|
|
|
2159 |
if (this.serialNumber == null) {
|
| 2820 |
chandransh |
2160 |
sb.append("null");
|
|
|
2161 |
} else {
|
| 4496 |
mandeep.dh |
2162 |
sb.append(this.serialNumber);
|
| 2820 |
chandransh |
2163 |
}
|
|
|
2164 |
first = false;
|
| 4496 |
mandeep.dh |
2165 |
if (!first) sb.append(", ");
|
|
|
2166 |
sb.append("purchaseId:");
|
|
|
2167 |
sb.append(this.purchaseId);
|
|
|
2168 |
first = false;
|
| 2820 |
chandransh |
2169 |
sb.append(")");
|
|
|
2170 |
return sb.toString();
|
|
|
2171 |
}
|
|
|
2172 |
|
| 3430 |
rajveer |
2173 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
2174 |
// check for required fields
|
|
|
2175 |
}
|
|
|
2176 |
|
| 3430 |
rajveer |
2177 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2178 |
try {
|
|
|
2179 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2180 |
} catch (org.apache.thrift.TException te) {
|
|
|
2181 |
throw new java.io.IOException(te);
|
|
|
2182 |
}
|
|
|
2183 |
}
|
|
|
2184 |
|
|
|
2185 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2186 |
try {
|
| 4496 |
mandeep.dh |
2187 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
2188 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
2189 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2190 |
} catch (org.apache.thrift.TException te) {
|
|
|
2191 |
throw new java.io.IOException(te);
|
|
|
2192 |
}
|
|
|
2193 |
}
|
|
|
2194 |
|
| 2820 |
chandransh |
2195 |
}
|
|
|
2196 |
|
| 4496 |
mandeep.dh |
2197 |
public static class createSerializedInventoryItem_result implements org.apache.thrift.TBase<createSerializedInventoryItem_result, createSerializedInventoryItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
2198 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItem_result");
|
| 2820 |
chandransh |
2199 |
|
| 4555 |
mandeep.dh |
2200 |
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 |
2201 |
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 |
2202 |
|
| 4555 |
mandeep.dh |
2203 |
private InventoryItem success; // required
|
| 3430 |
rajveer |
2204 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
2205 |
|
|
|
2206 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2207 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2820 |
chandransh |
2208 |
SUCCESS((short)0, "success"),
|
|
|
2209 |
WEX((short)1, "wex");
|
|
|
2210 |
|
|
|
2211 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2212 |
|
|
|
2213 |
static {
|
|
|
2214 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2215 |
byName.put(field.getFieldName(), field);
|
|
|
2216 |
}
|
|
|
2217 |
}
|
|
|
2218 |
|
|
|
2219 |
/**
|
|
|
2220 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2221 |
*/
|
|
|
2222 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2223 |
switch(fieldId) {
|
|
|
2224 |
case 0: // SUCCESS
|
|
|
2225 |
return SUCCESS;
|
|
|
2226 |
case 1: // WEX
|
|
|
2227 |
return WEX;
|
|
|
2228 |
default:
|
|
|
2229 |
return null;
|
|
|
2230 |
}
|
| 2820 |
chandransh |
2231 |
}
|
|
|
2232 |
|
|
|
2233 |
/**
|
|
|
2234 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2235 |
* if it is not found.
|
|
|
2236 |
*/
|
|
|
2237 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2238 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2239 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2240 |
return fields;
|
|
|
2241 |
}
|
|
|
2242 |
|
|
|
2243 |
/**
|
|
|
2244 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2245 |
*/
|
|
|
2246 |
public static _Fields findByName(String name) {
|
|
|
2247 |
return byName.get(name);
|
|
|
2248 |
}
|
|
|
2249 |
|
|
|
2250 |
private final short _thriftId;
|
|
|
2251 |
private final String _fieldName;
|
|
|
2252 |
|
|
|
2253 |
_Fields(short thriftId, String fieldName) {
|
|
|
2254 |
_thriftId = thriftId;
|
|
|
2255 |
_fieldName = fieldName;
|
|
|
2256 |
}
|
|
|
2257 |
|
|
|
2258 |
public short getThriftFieldId() {
|
|
|
2259 |
return _thriftId;
|
|
|
2260 |
}
|
|
|
2261 |
|
|
|
2262 |
public String getFieldName() {
|
|
|
2263 |
return _fieldName;
|
|
|
2264 |
}
|
|
|
2265 |
}
|
|
|
2266 |
|
|
|
2267 |
// isset id assignments
|
|
|
2268 |
|
| 3430 |
rajveer |
2269 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
2270 |
static {
|
| 3430 |
rajveer |
2271 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2272 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4555 |
mandeep.dh |
2273 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
2274 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2275 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
2276 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
2277 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createSerializedInventoryItem_result.class, metaDataMap);
|
| 2820 |
chandransh |
2278 |
}
|
|
|
2279 |
|
| 4496 |
mandeep.dh |
2280 |
public createSerializedInventoryItem_result() {
|
| 2820 |
chandransh |
2281 |
}
|
|
|
2282 |
|
| 4496 |
mandeep.dh |
2283 |
public createSerializedInventoryItem_result(
|
| 4555 |
mandeep.dh |
2284 |
InventoryItem success,
|
| 2820 |
chandransh |
2285 |
WarehouseServiceException wex)
|
|
|
2286 |
{
|
|
|
2287 |
this();
|
|
|
2288 |
this.success = success;
|
|
|
2289 |
this.wex = wex;
|
|
|
2290 |
}
|
|
|
2291 |
|
|
|
2292 |
/**
|
|
|
2293 |
* Performs a deep copy on <i>other</i>.
|
|
|
2294 |
*/
|
| 4496 |
mandeep.dh |
2295 |
public createSerializedInventoryItem_result(createSerializedInventoryItem_result other) {
|
| 4555 |
mandeep.dh |
2296 |
if (other.isSetSuccess()) {
|
|
|
2297 |
this.success = new InventoryItem(other.success);
|
|
|
2298 |
}
|
| 2820 |
chandransh |
2299 |
if (other.isSetWex()) {
|
|
|
2300 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
2301 |
}
|
|
|
2302 |
}
|
|
|
2303 |
|
| 4496 |
mandeep.dh |
2304 |
public createSerializedInventoryItem_result deepCopy() {
|
|
|
2305 |
return new createSerializedInventoryItem_result(this);
|
| 2820 |
chandransh |
2306 |
}
|
|
|
2307 |
|
| 3430 |
rajveer |
2308 |
@Override
|
|
|
2309 |
public void clear() {
|
| 4555 |
mandeep.dh |
2310 |
this.success = null;
|
| 3430 |
rajveer |
2311 |
this.wex = null;
|
| 2820 |
chandransh |
2312 |
}
|
|
|
2313 |
|
| 4555 |
mandeep.dh |
2314 |
public InventoryItem getSuccess() {
|
| 2820 |
chandransh |
2315 |
return this.success;
|
|
|
2316 |
}
|
|
|
2317 |
|
| 4555 |
mandeep.dh |
2318 |
public void setSuccess(InventoryItem success) {
|
| 2820 |
chandransh |
2319 |
this.success = success;
|
|
|
2320 |
}
|
|
|
2321 |
|
|
|
2322 |
public void unsetSuccess() {
|
| 4555 |
mandeep.dh |
2323 |
this.success = null;
|
| 2820 |
chandransh |
2324 |
}
|
|
|
2325 |
|
| 3430 |
rajveer |
2326 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
2327 |
public boolean isSetSuccess() {
|
| 4555 |
mandeep.dh |
2328 |
return this.success != null;
|
| 2820 |
chandransh |
2329 |
}
|
|
|
2330 |
|
|
|
2331 |
public void setSuccessIsSet(boolean value) {
|
| 4555 |
mandeep.dh |
2332 |
if (!value) {
|
|
|
2333 |
this.success = null;
|
|
|
2334 |
}
|
| 2820 |
chandransh |
2335 |
}
|
|
|
2336 |
|
|
|
2337 |
public WarehouseServiceException getWex() {
|
|
|
2338 |
return this.wex;
|
|
|
2339 |
}
|
|
|
2340 |
|
| 3430 |
rajveer |
2341 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
2342 |
this.wex = wex;
|
|
|
2343 |
}
|
|
|
2344 |
|
|
|
2345 |
public void unsetWex() {
|
|
|
2346 |
this.wex = null;
|
|
|
2347 |
}
|
|
|
2348 |
|
| 3430 |
rajveer |
2349 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
2350 |
public boolean isSetWex() {
|
|
|
2351 |
return this.wex != null;
|
|
|
2352 |
}
|
|
|
2353 |
|
|
|
2354 |
public void setWexIsSet(boolean value) {
|
|
|
2355 |
if (!value) {
|
|
|
2356 |
this.wex = null;
|
|
|
2357 |
}
|
|
|
2358 |
}
|
|
|
2359 |
|
|
|
2360 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2361 |
switch (field) {
|
|
|
2362 |
case SUCCESS:
|
|
|
2363 |
if (value == null) {
|
|
|
2364 |
unsetSuccess();
|
|
|
2365 |
} else {
|
| 4555 |
mandeep.dh |
2366 |
setSuccess((InventoryItem)value);
|
| 2820 |
chandransh |
2367 |
}
|
|
|
2368 |
break;
|
|
|
2369 |
|
|
|
2370 |
case WEX:
|
|
|
2371 |
if (value == null) {
|
|
|
2372 |
unsetWex();
|
|
|
2373 |
} else {
|
|
|
2374 |
setWex((WarehouseServiceException)value);
|
|
|
2375 |
}
|
|
|
2376 |
break;
|
|
|
2377 |
|
|
|
2378 |
}
|
|
|
2379 |
}
|
|
|
2380 |
|
|
|
2381 |
public Object getFieldValue(_Fields field) {
|
|
|
2382 |
switch (field) {
|
|
|
2383 |
case SUCCESS:
|
| 4555 |
mandeep.dh |
2384 |
return getSuccess();
|
| 2820 |
chandransh |
2385 |
|
|
|
2386 |
case WEX:
|
|
|
2387 |
return getWex();
|
|
|
2388 |
|
|
|
2389 |
}
|
|
|
2390 |
throw new IllegalStateException();
|
|
|
2391 |
}
|
|
|
2392 |
|
| 3430 |
rajveer |
2393 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2394 |
public boolean isSet(_Fields field) {
|
|
|
2395 |
if (field == null) {
|
|
|
2396 |
throw new IllegalArgumentException();
|
|
|
2397 |
}
|
| 2820 |
chandransh |
2398 |
|
|
|
2399 |
switch (field) {
|
|
|
2400 |
case SUCCESS:
|
|
|
2401 |
return isSetSuccess();
|
|
|
2402 |
case WEX:
|
|
|
2403 |
return isSetWex();
|
|
|
2404 |
}
|
|
|
2405 |
throw new IllegalStateException();
|
|
|
2406 |
}
|
|
|
2407 |
|
|
|
2408 |
@Override
|
|
|
2409 |
public boolean equals(Object that) {
|
|
|
2410 |
if (that == null)
|
|
|
2411 |
return false;
|
| 4496 |
mandeep.dh |
2412 |
if (that instanceof createSerializedInventoryItem_result)
|
|
|
2413 |
return this.equals((createSerializedInventoryItem_result)that);
|
| 2820 |
chandransh |
2414 |
return false;
|
|
|
2415 |
}
|
|
|
2416 |
|
| 4496 |
mandeep.dh |
2417 |
public boolean equals(createSerializedInventoryItem_result that) {
|
| 2820 |
chandransh |
2418 |
if (that == null)
|
|
|
2419 |
return false;
|
|
|
2420 |
|
| 4555 |
mandeep.dh |
2421 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
2422 |
boolean that_present_success = true && that.isSetSuccess();
|
| 2820 |
chandransh |
2423 |
if (this_present_success || that_present_success) {
|
|
|
2424 |
if (!(this_present_success && that_present_success))
|
|
|
2425 |
return false;
|
| 4555 |
mandeep.dh |
2426 |
if (!this.success.equals(that.success))
|
| 2820 |
chandransh |
2427 |
return false;
|
|
|
2428 |
}
|
|
|
2429 |
|
|
|
2430 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
2431 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
2432 |
if (this_present_wex || that_present_wex) {
|
|
|
2433 |
if (!(this_present_wex && that_present_wex))
|
|
|
2434 |
return false;
|
|
|
2435 |
if (!this.wex.equals(that.wex))
|
|
|
2436 |
return false;
|
|
|
2437 |
}
|
|
|
2438 |
|
|
|
2439 |
return true;
|
|
|
2440 |
}
|
|
|
2441 |
|
|
|
2442 |
@Override
|
|
|
2443 |
public int hashCode() {
|
|
|
2444 |
return 0;
|
|
|
2445 |
}
|
|
|
2446 |
|
| 4496 |
mandeep.dh |
2447 |
public int compareTo(createSerializedInventoryItem_result other) {
|
| 2820 |
chandransh |
2448 |
if (!getClass().equals(other.getClass())) {
|
|
|
2449 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2450 |
}
|
|
|
2451 |
|
|
|
2452 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
2453 |
createSerializedInventoryItem_result typedOther = (createSerializedInventoryItem_result)other;
|
| 2820 |
chandransh |
2454 |
|
| 3430 |
rajveer |
2455 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2820 |
chandransh |
2456 |
if (lastComparison != 0) {
|
|
|
2457 |
return lastComparison;
|
|
|
2458 |
}
|
| 3430 |
rajveer |
2459 |
if (isSetSuccess()) {
|
|
|
2460 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
2461 |
if (lastComparison != 0) {
|
|
|
2462 |
return lastComparison;
|
|
|
2463 |
}
|
| 2820 |
chandransh |
2464 |
}
|
| 3430 |
rajveer |
2465 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
2466 |
if (lastComparison != 0) {
|
|
|
2467 |
return lastComparison;
|
|
|
2468 |
}
|
| 3430 |
rajveer |
2469 |
if (isSetWex()) {
|
|
|
2470 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
2471 |
if (lastComparison != 0) {
|
|
|
2472 |
return lastComparison;
|
|
|
2473 |
}
|
| 2820 |
chandransh |
2474 |
}
|
|
|
2475 |
return 0;
|
|
|
2476 |
}
|
|
|
2477 |
|
| 3430 |
rajveer |
2478 |
public _Fields fieldForId(int fieldId) {
|
|
|
2479 |
return _Fields.findByThriftId(fieldId);
|
|
|
2480 |
}
|
|
|
2481 |
|
|
|
2482 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2483 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
2484 |
iprot.readStructBegin();
|
|
|
2485 |
while (true)
|
|
|
2486 |
{
|
|
|
2487 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2488 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
2489 |
break;
|
|
|
2490 |
}
|
| 3430 |
rajveer |
2491 |
switch (field.id) {
|
|
|
2492 |
case 0: // SUCCESS
|
| 4555 |
mandeep.dh |
2493 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2494 |
this.success = new InventoryItem();
|
|
|
2495 |
this.success.read(iprot);
|
| 3430 |
rajveer |
2496 |
} else {
|
|
|
2497 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2498 |
}
|
|
|
2499 |
break;
|
|
|
2500 |
case 1: // WEX
|
|
|
2501 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2502 |
this.wex = new WarehouseServiceException();
|
|
|
2503 |
this.wex.read(iprot);
|
|
|
2504 |
} else {
|
|
|
2505 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2506 |
}
|
|
|
2507 |
break;
|
|
|
2508 |
default:
|
|
|
2509 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
2510 |
}
|
| 3430 |
rajveer |
2511 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
2512 |
}
|
|
|
2513 |
iprot.readStructEnd();
|
|
|
2514 |
validate();
|
|
|
2515 |
}
|
|
|
2516 |
|
| 3430 |
rajveer |
2517 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
2518 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2519 |
|
|
|
2520 |
if (this.isSetSuccess()) {
|
|
|
2521 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 4555 |
mandeep.dh |
2522 |
this.success.write(oprot);
|
| 2820 |
chandransh |
2523 |
oprot.writeFieldEnd();
|
|
|
2524 |
} else if (this.isSetWex()) {
|
|
|
2525 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
2526 |
this.wex.write(oprot);
|
|
|
2527 |
oprot.writeFieldEnd();
|
|
|
2528 |
}
|
|
|
2529 |
oprot.writeFieldStop();
|
|
|
2530 |
oprot.writeStructEnd();
|
|
|
2531 |
}
|
|
|
2532 |
|
|
|
2533 |
@Override
|
|
|
2534 |
public String toString() {
|
| 4496 |
mandeep.dh |
2535 |
StringBuilder sb = new StringBuilder("createSerializedInventoryItem_result(");
|
| 2820 |
chandransh |
2536 |
boolean first = true;
|
|
|
2537 |
|
|
|
2538 |
sb.append("success:");
|
| 4555 |
mandeep.dh |
2539 |
if (this.success == null) {
|
|
|
2540 |
sb.append("null");
|
|
|
2541 |
} else {
|
|
|
2542 |
sb.append(this.success);
|
|
|
2543 |
}
|
| 2820 |
chandransh |
2544 |
first = false;
|
|
|
2545 |
if (!first) sb.append(", ");
|
|
|
2546 |
sb.append("wex:");
|
|
|
2547 |
if (this.wex == null) {
|
|
|
2548 |
sb.append("null");
|
|
|
2549 |
} else {
|
|
|
2550 |
sb.append(this.wex);
|
|
|
2551 |
}
|
|
|
2552 |
first = false;
|
|
|
2553 |
sb.append(")");
|
|
|
2554 |
return sb.toString();
|
|
|
2555 |
}
|
|
|
2556 |
|
| 3430 |
rajveer |
2557 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
2558 |
// check for required fields
|
|
|
2559 |
}
|
|
|
2560 |
|
| 3430 |
rajveer |
2561 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2562 |
try {
|
|
|
2563 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2564 |
} catch (org.apache.thrift.TException te) {
|
|
|
2565 |
throw new java.io.IOException(te);
|
|
|
2566 |
}
|
|
|
2567 |
}
|
|
|
2568 |
|
|
|
2569 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2570 |
try {
|
|
|
2571 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2572 |
} catch (org.apache.thrift.TException te) {
|
|
|
2573 |
throw new java.io.IOException(te);
|
|
|
2574 |
}
|
|
|
2575 |
}
|
|
|
2576 |
|
| 2820 |
chandransh |
2577 |
}
|
|
|
2578 |
|
| 4496 |
mandeep.dh |
2579 |
public static class createSerializedInventoryItemFromItemNumber_args implements org.apache.thrift.TBase<createSerializedInventoryItemFromItemNumber_args, createSerializedInventoryItemFromItemNumber_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2580 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItemFromItemNumber_args");
|
| 2820 |
chandransh |
2581 |
|
| 4496 |
mandeep.dh |
2582 |
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);
|
|
|
2583 |
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)2);
|
|
|
2584 |
private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)3);
|
| 2820 |
chandransh |
2585 |
|
| 4496 |
mandeep.dh |
2586 |
private String itemNumber; // required
|
|
|
2587 |
private String serialNumber; // required
|
|
|
2588 |
private long purchaseId; // required
|
| 2820 |
chandransh |
2589 |
|
|
|
2590 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2591 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
2592 |
ITEM_NUMBER((short)1, "itemNumber"),
|
|
|
2593 |
SERIAL_NUMBER((short)2, "serialNumber"),
|
|
|
2594 |
PURCHASE_ID((short)3, "purchaseId");
|
| 2820 |
chandransh |
2595 |
|
|
|
2596 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2597 |
|
|
|
2598 |
static {
|
|
|
2599 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2600 |
byName.put(field.getFieldName(), field);
|
|
|
2601 |
}
|
|
|
2602 |
}
|
|
|
2603 |
|
|
|
2604 |
/**
|
|
|
2605 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2606 |
*/
|
|
|
2607 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2608 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
2609 |
case 1: // ITEM_NUMBER
|
|
|
2610 |
return ITEM_NUMBER;
|
|
|
2611 |
case 2: // SERIAL_NUMBER
|
|
|
2612 |
return SERIAL_NUMBER;
|
|
|
2613 |
case 3: // PURCHASE_ID
|
|
|
2614 |
return PURCHASE_ID;
|
| 3430 |
rajveer |
2615 |
default:
|
|
|
2616 |
return null;
|
|
|
2617 |
}
|
| 2820 |
chandransh |
2618 |
}
|
|
|
2619 |
|
|
|
2620 |
/**
|
|
|
2621 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2622 |
* if it is not found.
|
|
|
2623 |
*/
|
|
|
2624 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2625 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2626 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2627 |
return fields;
|
|
|
2628 |
}
|
|
|
2629 |
|
|
|
2630 |
/**
|
|
|
2631 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2632 |
*/
|
|
|
2633 |
public static _Fields findByName(String name) {
|
|
|
2634 |
return byName.get(name);
|
|
|
2635 |
}
|
|
|
2636 |
|
|
|
2637 |
private final short _thriftId;
|
|
|
2638 |
private final String _fieldName;
|
|
|
2639 |
|
|
|
2640 |
_Fields(short thriftId, String fieldName) {
|
|
|
2641 |
_thriftId = thriftId;
|
|
|
2642 |
_fieldName = fieldName;
|
|
|
2643 |
}
|
|
|
2644 |
|
|
|
2645 |
public short getThriftFieldId() {
|
|
|
2646 |
return _thriftId;
|
|
|
2647 |
}
|
|
|
2648 |
|
|
|
2649 |
public String getFieldName() {
|
|
|
2650 |
return _fieldName;
|
|
|
2651 |
}
|
|
|
2652 |
}
|
|
|
2653 |
|
|
|
2654 |
// isset id assignments
|
| 4496 |
mandeep.dh |
2655 |
private static final int __PURCHASEID_ISSET_ID = 0;
|
| 2820 |
chandransh |
2656 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
2657 |
|
| 3430 |
rajveer |
2658 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
2659 |
static {
|
| 3430 |
rajveer |
2660 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
2661 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2662 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
2663 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2664 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
2665 |
tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 3430 |
rajveer |
2666 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
2667 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
2668 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createSerializedInventoryItemFromItemNumber_args.class, metaDataMap);
|
| 2820 |
chandransh |
2669 |
}
|
|
|
2670 |
|
| 4496 |
mandeep.dh |
2671 |
public createSerializedInventoryItemFromItemNumber_args() {
|
| 2820 |
chandransh |
2672 |
}
|
|
|
2673 |
|
| 4496 |
mandeep.dh |
2674 |
public createSerializedInventoryItemFromItemNumber_args(
|
|
|
2675 |
String itemNumber,
|
|
|
2676 |
String serialNumber,
|
|
|
2677 |
long purchaseId)
|
| 2820 |
chandransh |
2678 |
{
|
|
|
2679 |
this();
|
| 4496 |
mandeep.dh |
2680 |
this.itemNumber = itemNumber;
|
|
|
2681 |
this.serialNumber = serialNumber;
|
|
|
2682 |
this.purchaseId = purchaseId;
|
|
|
2683 |
setPurchaseIdIsSet(true);
|
| 2820 |
chandransh |
2684 |
}
|
|
|
2685 |
|
|
|
2686 |
/**
|
|
|
2687 |
* Performs a deep copy on <i>other</i>.
|
|
|
2688 |
*/
|
| 4496 |
mandeep.dh |
2689 |
public createSerializedInventoryItemFromItemNumber_args(createSerializedInventoryItemFromItemNumber_args other) {
|
| 2820 |
chandransh |
2690 |
__isset_bit_vector.clear();
|
|
|
2691 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 4496 |
mandeep.dh |
2692 |
if (other.isSetItemNumber()) {
|
|
|
2693 |
this.itemNumber = other.itemNumber;
|
|
|
2694 |
}
|
|
|
2695 |
if (other.isSetSerialNumber()) {
|
|
|
2696 |
this.serialNumber = other.serialNumber;
|
|
|
2697 |
}
|
|
|
2698 |
this.purchaseId = other.purchaseId;
|
| 2820 |
chandransh |
2699 |
}
|
|
|
2700 |
|
| 4496 |
mandeep.dh |
2701 |
public createSerializedInventoryItemFromItemNumber_args deepCopy() {
|
|
|
2702 |
return new createSerializedInventoryItemFromItemNumber_args(this);
|
| 2820 |
chandransh |
2703 |
}
|
|
|
2704 |
|
| 3430 |
rajveer |
2705 |
@Override
|
|
|
2706 |
public void clear() {
|
| 4496 |
mandeep.dh |
2707 |
this.itemNumber = null;
|
|
|
2708 |
this.serialNumber = null;
|
|
|
2709 |
setPurchaseIdIsSet(false);
|
|
|
2710 |
this.purchaseId = 0;
|
| 2820 |
chandransh |
2711 |
}
|
|
|
2712 |
|
| 4496 |
mandeep.dh |
2713 |
public String getItemNumber() {
|
|
|
2714 |
return this.itemNumber;
|
| 2820 |
chandransh |
2715 |
}
|
|
|
2716 |
|
| 4496 |
mandeep.dh |
2717 |
public void setItemNumber(String itemNumber) {
|
|
|
2718 |
this.itemNumber = itemNumber;
|
| 2820 |
chandransh |
2719 |
}
|
|
|
2720 |
|
| 4496 |
mandeep.dh |
2721 |
public void unsetItemNumber() {
|
|
|
2722 |
this.itemNumber = null;
|
| 2820 |
chandransh |
2723 |
}
|
|
|
2724 |
|
| 4496 |
mandeep.dh |
2725 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
2726 |
public boolean isSetItemNumber() {
|
|
|
2727 |
return this.itemNumber != null;
|
| 2820 |
chandransh |
2728 |
}
|
|
|
2729 |
|
| 4496 |
mandeep.dh |
2730 |
public void setItemNumberIsSet(boolean value) {
|
|
|
2731 |
if (!value) {
|
|
|
2732 |
this.itemNumber = null;
|
|
|
2733 |
}
|
| 2820 |
chandransh |
2734 |
}
|
|
|
2735 |
|
| 4496 |
mandeep.dh |
2736 |
public String getSerialNumber() {
|
|
|
2737 |
return this.serialNumber;
|
|
|
2738 |
}
|
|
|
2739 |
|
|
|
2740 |
public void setSerialNumber(String serialNumber) {
|
|
|
2741 |
this.serialNumber = serialNumber;
|
|
|
2742 |
}
|
|
|
2743 |
|
|
|
2744 |
public void unsetSerialNumber() {
|
|
|
2745 |
this.serialNumber = null;
|
|
|
2746 |
}
|
|
|
2747 |
|
|
|
2748 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
2749 |
public boolean isSetSerialNumber() {
|
|
|
2750 |
return this.serialNumber != null;
|
|
|
2751 |
}
|
|
|
2752 |
|
|
|
2753 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
2754 |
if (!value) {
|
|
|
2755 |
this.serialNumber = null;
|
|
|
2756 |
}
|
|
|
2757 |
}
|
|
|
2758 |
|
|
|
2759 |
public long getPurchaseId() {
|
|
|
2760 |
return this.purchaseId;
|
|
|
2761 |
}
|
|
|
2762 |
|
|
|
2763 |
public void setPurchaseId(long purchaseId) {
|
|
|
2764 |
this.purchaseId = purchaseId;
|
|
|
2765 |
setPurchaseIdIsSet(true);
|
|
|
2766 |
}
|
|
|
2767 |
|
|
|
2768 |
public void unsetPurchaseId() {
|
|
|
2769 |
__isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
|
|
|
2770 |
}
|
|
|
2771 |
|
|
|
2772 |
/** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
|
|
|
2773 |
public boolean isSetPurchaseId() {
|
|
|
2774 |
return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
|
|
|
2775 |
}
|
|
|
2776 |
|
|
|
2777 |
public void setPurchaseIdIsSet(boolean value) {
|
|
|
2778 |
__isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
|
|
|
2779 |
}
|
|
|
2780 |
|
| 2820 |
chandransh |
2781 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2782 |
switch (field) {
|
| 4496 |
mandeep.dh |
2783 |
case ITEM_NUMBER:
|
| 2820 |
chandransh |
2784 |
if (value == null) {
|
| 4496 |
mandeep.dh |
2785 |
unsetItemNumber();
|
| 2820 |
chandransh |
2786 |
} else {
|
| 4496 |
mandeep.dh |
2787 |
setItemNumber((String)value);
|
| 2820 |
chandransh |
2788 |
}
|
|
|
2789 |
break;
|
|
|
2790 |
|
| 4496 |
mandeep.dh |
2791 |
case SERIAL_NUMBER:
|
|
|
2792 |
if (value == null) {
|
|
|
2793 |
unsetSerialNumber();
|
|
|
2794 |
} else {
|
|
|
2795 |
setSerialNumber((String)value);
|
|
|
2796 |
}
|
|
|
2797 |
break;
|
|
|
2798 |
|
|
|
2799 |
case PURCHASE_ID:
|
|
|
2800 |
if (value == null) {
|
|
|
2801 |
unsetPurchaseId();
|
|
|
2802 |
} else {
|
|
|
2803 |
setPurchaseId((Long)value);
|
|
|
2804 |
}
|
|
|
2805 |
break;
|
|
|
2806 |
|
| 2820 |
chandransh |
2807 |
}
|
|
|
2808 |
}
|
|
|
2809 |
|
|
|
2810 |
public Object getFieldValue(_Fields field) {
|
|
|
2811 |
switch (field) {
|
| 4496 |
mandeep.dh |
2812 |
case ITEM_NUMBER:
|
|
|
2813 |
return getItemNumber();
|
| 2820 |
chandransh |
2814 |
|
| 4496 |
mandeep.dh |
2815 |
case SERIAL_NUMBER:
|
|
|
2816 |
return getSerialNumber();
|
|
|
2817 |
|
|
|
2818 |
case PURCHASE_ID:
|
|
|
2819 |
return Long.valueOf(getPurchaseId());
|
|
|
2820 |
|
| 2820 |
chandransh |
2821 |
}
|
|
|
2822 |
throw new IllegalStateException();
|
|
|
2823 |
}
|
|
|
2824 |
|
| 3430 |
rajveer |
2825 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2826 |
public boolean isSet(_Fields field) {
|
|
|
2827 |
if (field == null) {
|
|
|
2828 |
throw new IllegalArgumentException();
|
|
|
2829 |
}
|
| 2820 |
chandransh |
2830 |
|
|
|
2831 |
switch (field) {
|
| 4496 |
mandeep.dh |
2832 |
case ITEM_NUMBER:
|
|
|
2833 |
return isSetItemNumber();
|
|
|
2834 |
case SERIAL_NUMBER:
|
|
|
2835 |
return isSetSerialNumber();
|
|
|
2836 |
case PURCHASE_ID:
|
|
|
2837 |
return isSetPurchaseId();
|
| 2820 |
chandransh |
2838 |
}
|
|
|
2839 |
throw new IllegalStateException();
|
|
|
2840 |
}
|
|
|
2841 |
|
|
|
2842 |
@Override
|
|
|
2843 |
public boolean equals(Object that) {
|
|
|
2844 |
if (that == null)
|
|
|
2845 |
return false;
|
| 4496 |
mandeep.dh |
2846 |
if (that instanceof createSerializedInventoryItemFromItemNumber_args)
|
|
|
2847 |
return this.equals((createSerializedInventoryItemFromItemNumber_args)that);
|
| 2820 |
chandransh |
2848 |
return false;
|
|
|
2849 |
}
|
|
|
2850 |
|
| 4496 |
mandeep.dh |
2851 |
public boolean equals(createSerializedInventoryItemFromItemNumber_args that) {
|
| 2820 |
chandransh |
2852 |
if (that == null)
|
|
|
2853 |
return false;
|
|
|
2854 |
|
| 4496 |
mandeep.dh |
2855 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
2856 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
2857 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
2858 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
| 2820 |
chandransh |
2859 |
return false;
|
| 4496 |
mandeep.dh |
2860 |
if (!this.itemNumber.equals(that.itemNumber))
|
| 2820 |
chandransh |
2861 |
return false;
|
|
|
2862 |
}
|
|
|
2863 |
|
| 4496 |
mandeep.dh |
2864 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
2865 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
2866 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
2867 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
|
|
2868 |
return false;
|
|
|
2869 |
if (!this.serialNumber.equals(that.serialNumber))
|
|
|
2870 |
return false;
|
|
|
2871 |
}
|
|
|
2872 |
|
|
|
2873 |
boolean this_present_purchaseId = true;
|
|
|
2874 |
boolean that_present_purchaseId = true;
|
|
|
2875 |
if (this_present_purchaseId || that_present_purchaseId) {
|
|
|
2876 |
if (!(this_present_purchaseId && that_present_purchaseId))
|
|
|
2877 |
return false;
|
|
|
2878 |
if (this.purchaseId != that.purchaseId)
|
|
|
2879 |
return false;
|
|
|
2880 |
}
|
|
|
2881 |
|
| 2820 |
chandransh |
2882 |
return true;
|
|
|
2883 |
}
|
|
|
2884 |
|
|
|
2885 |
@Override
|
|
|
2886 |
public int hashCode() {
|
|
|
2887 |
return 0;
|
|
|
2888 |
}
|
|
|
2889 |
|
| 4496 |
mandeep.dh |
2890 |
public int compareTo(createSerializedInventoryItemFromItemNumber_args other) {
|
| 2820 |
chandransh |
2891 |
if (!getClass().equals(other.getClass())) {
|
|
|
2892 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2893 |
}
|
|
|
2894 |
|
|
|
2895 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
2896 |
createSerializedInventoryItemFromItemNumber_args typedOther = (createSerializedInventoryItemFromItemNumber_args)other;
|
| 2820 |
chandransh |
2897 |
|
| 4496 |
mandeep.dh |
2898 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
| 2820 |
chandransh |
2899 |
if (lastComparison != 0) {
|
|
|
2900 |
return lastComparison;
|
|
|
2901 |
}
|
| 4496 |
mandeep.dh |
2902 |
if (isSetItemNumber()) {
|
|
|
2903 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
| 3430 |
rajveer |
2904 |
if (lastComparison != 0) {
|
|
|
2905 |
return lastComparison;
|
|
|
2906 |
}
|
| 2820 |
chandransh |
2907 |
}
|
| 4496 |
mandeep.dh |
2908 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
|
|
2909 |
if (lastComparison != 0) {
|
|
|
2910 |
return lastComparison;
|
|
|
2911 |
}
|
|
|
2912 |
if (isSetSerialNumber()) {
|
|
|
2913 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
|
|
2914 |
if (lastComparison != 0) {
|
|
|
2915 |
return lastComparison;
|
|
|
2916 |
}
|
|
|
2917 |
}
|
|
|
2918 |
lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
|
|
|
2919 |
if (lastComparison != 0) {
|
|
|
2920 |
return lastComparison;
|
|
|
2921 |
}
|
|
|
2922 |
if (isSetPurchaseId()) {
|
|
|
2923 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
|
|
|
2924 |
if (lastComparison != 0) {
|
|
|
2925 |
return lastComparison;
|
|
|
2926 |
}
|
|
|
2927 |
}
|
| 2820 |
chandransh |
2928 |
return 0;
|
|
|
2929 |
}
|
|
|
2930 |
|
| 3430 |
rajveer |
2931 |
public _Fields fieldForId(int fieldId) {
|
|
|
2932 |
return _Fields.findByThriftId(fieldId);
|
|
|
2933 |
}
|
|
|
2934 |
|
|
|
2935 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2936 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
2937 |
iprot.readStructBegin();
|
|
|
2938 |
while (true)
|
|
|
2939 |
{
|
|
|
2940 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2941 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
2942 |
break;
|
|
|
2943 |
}
|
| 3430 |
rajveer |
2944 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
2945 |
case 1: // ITEM_NUMBER
|
|
|
2946 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
2947 |
this.itemNumber = iprot.readString();
|
|
|
2948 |
} else {
|
|
|
2949 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2950 |
}
|
|
|
2951 |
break;
|
|
|
2952 |
case 2: // SERIAL_NUMBER
|
|
|
2953 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
2954 |
this.serialNumber = iprot.readString();
|
|
|
2955 |
} else {
|
|
|
2956 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2957 |
}
|
|
|
2958 |
break;
|
|
|
2959 |
case 3: // PURCHASE_ID
|
| 3430 |
rajveer |
2960 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 4496 |
mandeep.dh |
2961 |
this.purchaseId = iprot.readI64();
|
|
|
2962 |
setPurchaseIdIsSet(true);
|
| 3430 |
rajveer |
2963 |
} else {
|
|
|
2964 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2965 |
}
|
|
|
2966 |
break;
|
|
|
2967 |
default:
|
|
|
2968 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
2969 |
}
|
| 3430 |
rajveer |
2970 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
2971 |
}
|
|
|
2972 |
iprot.readStructEnd();
|
|
|
2973 |
validate();
|
|
|
2974 |
}
|
|
|
2975 |
|
| 3430 |
rajveer |
2976 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
2977 |
validate();
|
|
|
2978 |
|
|
|
2979 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4496 |
mandeep.dh |
2980 |
if (this.itemNumber != null) {
|
|
|
2981 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
2982 |
oprot.writeString(this.itemNumber);
|
|
|
2983 |
oprot.writeFieldEnd();
|
|
|
2984 |
}
|
|
|
2985 |
if (this.serialNumber != null) {
|
|
|
2986 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
2987 |
oprot.writeString(this.serialNumber);
|
|
|
2988 |
oprot.writeFieldEnd();
|
|
|
2989 |
}
|
|
|
2990 |
oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
|
|
|
2991 |
oprot.writeI64(this.purchaseId);
|
| 2820 |
chandransh |
2992 |
oprot.writeFieldEnd();
|
|
|
2993 |
oprot.writeFieldStop();
|
|
|
2994 |
oprot.writeStructEnd();
|
|
|
2995 |
}
|
|
|
2996 |
|
|
|
2997 |
@Override
|
|
|
2998 |
public String toString() {
|
| 4496 |
mandeep.dh |
2999 |
StringBuilder sb = new StringBuilder("createSerializedInventoryItemFromItemNumber_args(");
|
| 2820 |
chandransh |
3000 |
boolean first = true;
|
|
|
3001 |
|
| 4496 |
mandeep.dh |
3002 |
sb.append("itemNumber:");
|
|
|
3003 |
if (this.itemNumber == null) {
|
|
|
3004 |
sb.append("null");
|
|
|
3005 |
} else {
|
|
|
3006 |
sb.append(this.itemNumber);
|
|
|
3007 |
}
|
| 2820 |
chandransh |
3008 |
first = false;
|
| 4496 |
mandeep.dh |
3009 |
if (!first) sb.append(", ");
|
|
|
3010 |
sb.append("serialNumber:");
|
|
|
3011 |
if (this.serialNumber == null) {
|
|
|
3012 |
sb.append("null");
|
|
|
3013 |
} else {
|
|
|
3014 |
sb.append(this.serialNumber);
|
|
|
3015 |
}
|
|
|
3016 |
first = false;
|
|
|
3017 |
if (!first) sb.append(", ");
|
|
|
3018 |
sb.append("purchaseId:");
|
|
|
3019 |
sb.append(this.purchaseId);
|
|
|
3020 |
first = false;
|
| 2820 |
chandransh |
3021 |
sb.append(")");
|
|
|
3022 |
return sb.toString();
|
|
|
3023 |
}
|
|
|
3024 |
|
| 3430 |
rajveer |
3025 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
3026 |
// check for required fields
|
|
|
3027 |
}
|
|
|
3028 |
|
| 3430 |
rajveer |
3029 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3030 |
try {
|
|
|
3031 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3032 |
} catch (org.apache.thrift.TException te) {
|
|
|
3033 |
throw new java.io.IOException(te);
|
|
|
3034 |
}
|
|
|
3035 |
}
|
|
|
3036 |
|
|
|
3037 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3038 |
try {
|
| 4496 |
mandeep.dh |
3039 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
3040 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
3041 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3042 |
} catch (org.apache.thrift.TException te) {
|
|
|
3043 |
throw new java.io.IOException(te);
|
|
|
3044 |
}
|
|
|
3045 |
}
|
|
|
3046 |
|
| 2820 |
chandransh |
3047 |
}
|
|
|
3048 |
|
| 4496 |
mandeep.dh |
3049 |
public static class createSerializedInventoryItemFromItemNumber_result implements org.apache.thrift.TBase<createSerializedInventoryItemFromItemNumber_result, createSerializedInventoryItemFromItemNumber_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3050 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createSerializedInventoryItemFromItemNumber_result");
|
| 2820 |
chandransh |
3051 |
|
| 4555 |
mandeep.dh |
3052 |
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 |
3053 |
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 |
3054 |
|
| 4555 |
mandeep.dh |
3055 |
private InventoryItem success; // required
|
| 3430 |
rajveer |
3056 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
3057 |
|
|
|
3058 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3059 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2820 |
chandransh |
3060 |
SUCCESS((short)0, "success"),
|
|
|
3061 |
WEX((short)1, "wex");
|
|
|
3062 |
|
|
|
3063 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3064 |
|
|
|
3065 |
static {
|
|
|
3066 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3067 |
byName.put(field.getFieldName(), field);
|
|
|
3068 |
}
|
|
|
3069 |
}
|
|
|
3070 |
|
|
|
3071 |
/**
|
|
|
3072 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3073 |
*/
|
|
|
3074 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3075 |
switch(fieldId) {
|
|
|
3076 |
case 0: // SUCCESS
|
|
|
3077 |
return SUCCESS;
|
|
|
3078 |
case 1: // WEX
|
|
|
3079 |
return WEX;
|
|
|
3080 |
default:
|
|
|
3081 |
return null;
|
|
|
3082 |
}
|
| 2820 |
chandransh |
3083 |
}
|
|
|
3084 |
|
|
|
3085 |
/**
|
|
|
3086 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3087 |
* if it is not found.
|
|
|
3088 |
*/
|
|
|
3089 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3090 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3091 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3092 |
return fields;
|
|
|
3093 |
}
|
|
|
3094 |
|
|
|
3095 |
/**
|
|
|
3096 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3097 |
*/
|
|
|
3098 |
public static _Fields findByName(String name) {
|
|
|
3099 |
return byName.get(name);
|
|
|
3100 |
}
|
|
|
3101 |
|
|
|
3102 |
private final short _thriftId;
|
|
|
3103 |
private final String _fieldName;
|
|
|
3104 |
|
|
|
3105 |
_Fields(short thriftId, String fieldName) {
|
|
|
3106 |
_thriftId = thriftId;
|
|
|
3107 |
_fieldName = fieldName;
|
|
|
3108 |
}
|
|
|
3109 |
|
|
|
3110 |
public short getThriftFieldId() {
|
|
|
3111 |
return _thriftId;
|
|
|
3112 |
}
|
|
|
3113 |
|
|
|
3114 |
public String getFieldName() {
|
|
|
3115 |
return _fieldName;
|
|
|
3116 |
}
|
|
|
3117 |
}
|
|
|
3118 |
|
|
|
3119 |
// isset id assignments
|
|
|
3120 |
|
| 3430 |
rajveer |
3121 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
3122 |
static {
|
| 3430 |
rajveer |
3123 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3124 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4555 |
mandeep.dh |
3125 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
3126 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3127 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
3128 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
3129 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createSerializedInventoryItemFromItemNumber_result.class, metaDataMap);
|
| 2820 |
chandransh |
3130 |
}
|
|
|
3131 |
|
| 4496 |
mandeep.dh |
3132 |
public createSerializedInventoryItemFromItemNumber_result() {
|
| 2820 |
chandransh |
3133 |
}
|
|
|
3134 |
|
| 4496 |
mandeep.dh |
3135 |
public createSerializedInventoryItemFromItemNumber_result(
|
| 4555 |
mandeep.dh |
3136 |
InventoryItem success,
|
| 2820 |
chandransh |
3137 |
WarehouseServiceException wex)
|
|
|
3138 |
{
|
|
|
3139 |
this();
|
|
|
3140 |
this.success = success;
|
|
|
3141 |
this.wex = wex;
|
|
|
3142 |
}
|
|
|
3143 |
|
|
|
3144 |
/**
|
|
|
3145 |
* Performs a deep copy on <i>other</i>.
|
|
|
3146 |
*/
|
| 4496 |
mandeep.dh |
3147 |
public createSerializedInventoryItemFromItemNumber_result(createSerializedInventoryItemFromItemNumber_result other) {
|
| 4555 |
mandeep.dh |
3148 |
if (other.isSetSuccess()) {
|
|
|
3149 |
this.success = new InventoryItem(other.success);
|
|
|
3150 |
}
|
| 2820 |
chandransh |
3151 |
if (other.isSetWex()) {
|
|
|
3152 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
3153 |
}
|
|
|
3154 |
}
|
|
|
3155 |
|
| 4496 |
mandeep.dh |
3156 |
public createSerializedInventoryItemFromItemNumber_result deepCopy() {
|
|
|
3157 |
return new createSerializedInventoryItemFromItemNumber_result(this);
|
| 2820 |
chandransh |
3158 |
}
|
|
|
3159 |
|
| 3430 |
rajveer |
3160 |
@Override
|
|
|
3161 |
public void clear() {
|
| 4555 |
mandeep.dh |
3162 |
this.success = null;
|
| 3430 |
rajveer |
3163 |
this.wex = null;
|
| 2820 |
chandransh |
3164 |
}
|
|
|
3165 |
|
| 4555 |
mandeep.dh |
3166 |
public InventoryItem getSuccess() {
|
| 2820 |
chandransh |
3167 |
return this.success;
|
|
|
3168 |
}
|
|
|
3169 |
|
| 4555 |
mandeep.dh |
3170 |
public void setSuccess(InventoryItem success) {
|
| 2820 |
chandransh |
3171 |
this.success = success;
|
|
|
3172 |
}
|
|
|
3173 |
|
|
|
3174 |
public void unsetSuccess() {
|
| 4555 |
mandeep.dh |
3175 |
this.success = null;
|
| 2820 |
chandransh |
3176 |
}
|
|
|
3177 |
|
| 3430 |
rajveer |
3178 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
3179 |
public boolean isSetSuccess() {
|
| 4555 |
mandeep.dh |
3180 |
return this.success != null;
|
| 2820 |
chandransh |
3181 |
}
|
|
|
3182 |
|
|
|
3183 |
public void setSuccessIsSet(boolean value) {
|
| 4555 |
mandeep.dh |
3184 |
if (!value) {
|
|
|
3185 |
this.success = null;
|
|
|
3186 |
}
|
| 2820 |
chandransh |
3187 |
}
|
|
|
3188 |
|
|
|
3189 |
public WarehouseServiceException getWex() {
|
|
|
3190 |
return this.wex;
|
|
|
3191 |
}
|
|
|
3192 |
|
| 3430 |
rajveer |
3193 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
3194 |
this.wex = wex;
|
|
|
3195 |
}
|
|
|
3196 |
|
|
|
3197 |
public void unsetWex() {
|
|
|
3198 |
this.wex = null;
|
|
|
3199 |
}
|
|
|
3200 |
|
| 3430 |
rajveer |
3201 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
3202 |
public boolean isSetWex() {
|
|
|
3203 |
return this.wex != null;
|
|
|
3204 |
}
|
|
|
3205 |
|
|
|
3206 |
public void setWexIsSet(boolean value) {
|
|
|
3207 |
if (!value) {
|
|
|
3208 |
this.wex = null;
|
|
|
3209 |
}
|
|
|
3210 |
}
|
|
|
3211 |
|
|
|
3212 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3213 |
switch (field) {
|
|
|
3214 |
case SUCCESS:
|
|
|
3215 |
if (value == null) {
|
|
|
3216 |
unsetSuccess();
|
|
|
3217 |
} else {
|
| 4555 |
mandeep.dh |
3218 |
setSuccess((InventoryItem)value);
|
| 2820 |
chandransh |
3219 |
}
|
|
|
3220 |
break;
|
|
|
3221 |
|
|
|
3222 |
case WEX:
|
|
|
3223 |
if (value == null) {
|
|
|
3224 |
unsetWex();
|
|
|
3225 |
} else {
|
|
|
3226 |
setWex((WarehouseServiceException)value);
|
|
|
3227 |
}
|
|
|
3228 |
break;
|
|
|
3229 |
|
|
|
3230 |
}
|
|
|
3231 |
}
|
|
|
3232 |
|
|
|
3233 |
public Object getFieldValue(_Fields field) {
|
|
|
3234 |
switch (field) {
|
|
|
3235 |
case SUCCESS:
|
| 4555 |
mandeep.dh |
3236 |
return getSuccess();
|
| 2820 |
chandransh |
3237 |
|
|
|
3238 |
case WEX:
|
|
|
3239 |
return getWex();
|
|
|
3240 |
|
|
|
3241 |
}
|
|
|
3242 |
throw new IllegalStateException();
|
|
|
3243 |
}
|
|
|
3244 |
|
| 3430 |
rajveer |
3245 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3246 |
public boolean isSet(_Fields field) {
|
|
|
3247 |
if (field == null) {
|
|
|
3248 |
throw new IllegalArgumentException();
|
|
|
3249 |
}
|
| 2820 |
chandransh |
3250 |
|
|
|
3251 |
switch (field) {
|
|
|
3252 |
case SUCCESS:
|
|
|
3253 |
return isSetSuccess();
|
|
|
3254 |
case WEX:
|
|
|
3255 |
return isSetWex();
|
|
|
3256 |
}
|
|
|
3257 |
throw new IllegalStateException();
|
|
|
3258 |
}
|
|
|
3259 |
|
|
|
3260 |
@Override
|
|
|
3261 |
public boolean equals(Object that) {
|
|
|
3262 |
if (that == null)
|
|
|
3263 |
return false;
|
| 4496 |
mandeep.dh |
3264 |
if (that instanceof createSerializedInventoryItemFromItemNumber_result)
|
|
|
3265 |
return this.equals((createSerializedInventoryItemFromItemNumber_result)that);
|
| 2820 |
chandransh |
3266 |
return false;
|
|
|
3267 |
}
|
|
|
3268 |
|
| 4496 |
mandeep.dh |
3269 |
public boolean equals(createSerializedInventoryItemFromItemNumber_result that) {
|
| 2820 |
chandransh |
3270 |
if (that == null)
|
|
|
3271 |
return false;
|
|
|
3272 |
|
| 4555 |
mandeep.dh |
3273 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
3274 |
boolean that_present_success = true && that.isSetSuccess();
|
| 2820 |
chandransh |
3275 |
if (this_present_success || that_present_success) {
|
|
|
3276 |
if (!(this_present_success && that_present_success))
|
|
|
3277 |
return false;
|
| 4555 |
mandeep.dh |
3278 |
if (!this.success.equals(that.success))
|
| 2820 |
chandransh |
3279 |
return false;
|
|
|
3280 |
}
|
|
|
3281 |
|
|
|
3282 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
3283 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
3284 |
if (this_present_wex || that_present_wex) {
|
|
|
3285 |
if (!(this_present_wex && that_present_wex))
|
|
|
3286 |
return false;
|
|
|
3287 |
if (!this.wex.equals(that.wex))
|
|
|
3288 |
return false;
|
|
|
3289 |
}
|
|
|
3290 |
|
|
|
3291 |
return true;
|
|
|
3292 |
}
|
|
|
3293 |
|
|
|
3294 |
@Override
|
|
|
3295 |
public int hashCode() {
|
|
|
3296 |
return 0;
|
|
|
3297 |
}
|
|
|
3298 |
|
| 4496 |
mandeep.dh |
3299 |
public int compareTo(createSerializedInventoryItemFromItemNumber_result other) {
|
| 2820 |
chandransh |
3300 |
if (!getClass().equals(other.getClass())) {
|
|
|
3301 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3302 |
}
|
|
|
3303 |
|
|
|
3304 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
3305 |
createSerializedInventoryItemFromItemNumber_result typedOther = (createSerializedInventoryItemFromItemNumber_result)other;
|
| 2820 |
chandransh |
3306 |
|
| 3430 |
rajveer |
3307 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2820 |
chandransh |
3308 |
if (lastComparison != 0) {
|
|
|
3309 |
return lastComparison;
|
|
|
3310 |
}
|
| 3430 |
rajveer |
3311 |
if (isSetSuccess()) {
|
|
|
3312 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
3313 |
if (lastComparison != 0) {
|
|
|
3314 |
return lastComparison;
|
|
|
3315 |
}
|
| 2820 |
chandransh |
3316 |
}
|
| 3430 |
rajveer |
3317 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
3318 |
if (lastComparison != 0) {
|
|
|
3319 |
return lastComparison;
|
|
|
3320 |
}
|
| 3430 |
rajveer |
3321 |
if (isSetWex()) {
|
|
|
3322 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
3323 |
if (lastComparison != 0) {
|
|
|
3324 |
return lastComparison;
|
|
|
3325 |
}
|
| 2820 |
chandransh |
3326 |
}
|
|
|
3327 |
return 0;
|
|
|
3328 |
}
|
|
|
3329 |
|
| 3430 |
rajveer |
3330 |
public _Fields fieldForId(int fieldId) {
|
|
|
3331 |
return _Fields.findByThriftId(fieldId);
|
|
|
3332 |
}
|
|
|
3333 |
|
|
|
3334 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3335 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
3336 |
iprot.readStructBegin();
|
|
|
3337 |
while (true)
|
|
|
3338 |
{
|
|
|
3339 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3340 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
3341 |
break;
|
|
|
3342 |
}
|
| 3430 |
rajveer |
3343 |
switch (field.id) {
|
|
|
3344 |
case 0: // SUCCESS
|
| 4555 |
mandeep.dh |
3345 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3346 |
this.success = new InventoryItem();
|
|
|
3347 |
this.success.read(iprot);
|
| 3430 |
rajveer |
3348 |
} else {
|
|
|
3349 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3350 |
}
|
|
|
3351 |
break;
|
|
|
3352 |
case 1: // WEX
|
|
|
3353 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3354 |
this.wex = new WarehouseServiceException();
|
|
|
3355 |
this.wex.read(iprot);
|
|
|
3356 |
} else {
|
|
|
3357 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3358 |
}
|
|
|
3359 |
break;
|
|
|
3360 |
default:
|
|
|
3361 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
3362 |
}
|
| 3430 |
rajveer |
3363 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
3364 |
}
|
|
|
3365 |
iprot.readStructEnd();
|
|
|
3366 |
validate();
|
|
|
3367 |
}
|
|
|
3368 |
|
| 3430 |
rajveer |
3369 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
3370 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3371 |
|
|
|
3372 |
if (this.isSetSuccess()) {
|
|
|
3373 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 4555 |
mandeep.dh |
3374 |
this.success.write(oprot);
|
| 2820 |
chandransh |
3375 |
oprot.writeFieldEnd();
|
|
|
3376 |
} else if (this.isSetWex()) {
|
|
|
3377 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
3378 |
this.wex.write(oprot);
|
|
|
3379 |
oprot.writeFieldEnd();
|
|
|
3380 |
}
|
|
|
3381 |
oprot.writeFieldStop();
|
|
|
3382 |
oprot.writeStructEnd();
|
|
|
3383 |
}
|
|
|
3384 |
|
|
|
3385 |
@Override
|
|
|
3386 |
public String toString() {
|
| 4496 |
mandeep.dh |
3387 |
StringBuilder sb = new StringBuilder("createSerializedInventoryItemFromItemNumber_result(");
|
| 2820 |
chandransh |
3388 |
boolean first = true;
|
|
|
3389 |
|
|
|
3390 |
sb.append("success:");
|
| 4555 |
mandeep.dh |
3391 |
if (this.success == null) {
|
|
|
3392 |
sb.append("null");
|
|
|
3393 |
} else {
|
|
|
3394 |
sb.append(this.success);
|
|
|
3395 |
}
|
| 2820 |
chandransh |
3396 |
first = false;
|
|
|
3397 |
if (!first) sb.append(", ");
|
|
|
3398 |
sb.append("wex:");
|
|
|
3399 |
if (this.wex == null) {
|
|
|
3400 |
sb.append("null");
|
|
|
3401 |
} else {
|
|
|
3402 |
sb.append(this.wex);
|
|
|
3403 |
}
|
|
|
3404 |
first = false;
|
|
|
3405 |
sb.append(")");
|
|
|
3406 |
return sb.toString();
|
|
|
3407 |
}
|
|
|
3408 |
|
| 3430 |
rajveer |
3409 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
3410 |
// check for required fields
|
|
|
3411 |
}
|
|
|
3412 |
|
| 3430 |
rajveer |
3413 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3414 |
try {
|
|
|
3415 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3416 |
} catch (org.apache.thrift.TException te) {
|
|
|
3417 |
throw new java.io.IOException(te);
|
|
|
3418 |
}
|
|
|
3419 |
}
|
|
|
3420 |
|
|
|
3421 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3422 |
try {
|
|
|
3423 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3424 |
} catch (org.apache.thrift.TException te) {
|
|
|
3425 |
throw new java.io.IOException(te);
|
|
|
3426 |
}
|
|
|
3427 |
}
|
|
|
3428 |
|
| 2820 |
chandransh |
3429 |
}
|
|
|
3430 |
|
| 4496 |
mandeep.dh |
3431 |
public static class createInventoryItem_args implements org.apache.thrift.TBase<createInventoryItem_args, createInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3432 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createInventoryItem_args");
|
| 3383 |
chandransh |
3433 |
|
| 4496 |
mandeep.dh |
3434 |
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);
|
|
|
3435 |
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)2);
|
|
|
3436 |
private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)3);
|
| 3383 |
chandransh |
3437 |
|
| 4496 |
mandeep.dh |
3438 |
private long itemId; // required
|
|
|
3439 |
private long quantity; // required
|
|
|
3440 |
private long purchaseId; // required
|
| 3383 |
chandransh |
3441 |
|
|
|
3442 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3443 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
3444 |
ITEM_ID((short)1, "itemId"),
|
|
|
3445 |
QUANTITY((short)2, "quantity"),
|
|
|
3446 |
PURCHASE_ID((short)3, "purchaseId");
|
| 3383 |
chandransh |
3447 |
|
|
|
3448 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3449 |
|
|
|
3450 |
static {
|
|
|
3451 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3452 |
byName.put(field.getFieldName(), field);
|
|
|
3453 |
}
|
|
|
3454 |
}
|
|
|
3455 |
|
|
|
3456 |
/**
|
|
|
3457 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3458 |
*/
|
|
|
3459 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3460 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
3461 |
case 1: // ITEM_ID
|
|
|
3462 |
return ITEM_ID;
|
|
|
3463 |
case 2: // QUANTITY
|
|
|
3464 |
return QUANTITY;
|
|
|
3465 |
case 3: // PURCHASE_ID
|
|
|
3466 |
return PURCHASE_ID;
|
| 3430 |
rajveer |
3467 |
default:
|
|
|
3468 |
return null;
|
|
|
3469 |
}
|
| 3383 |
chandransh |
3470 |
}
|
|
|
3471 |
|
|
|
3472 |
/**
|
|
|
3473 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3474 |
* if it is not found.
|
|
|
3475 |
*/
|
|
|
3476 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3477 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3478 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3479 |
return fields;
|
|
|
3480 |
}
|
|
|
3481 |
|
|
|
3482 |
/**
|
|
|
3483 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3484 |
*/
|
|
|
3485 |
public static _Fields findByName(String name) {
|
|
|
3486 |
return byName.get(name);
|
|
|
3487 |
}
|
|
|
3488 |
|
|
|
3489 |
private final short _thriftId;
|
|
|
3490 |
private final String _fieldName;
|
|
|
3491 |
|
|
|
3492 |
_Fields(short thriftId, String fieldName) {
|
|
|
3493 |
_thriftId = thriftId;
|
|
|
3494 |
_fieldName = fieldName;
|
|
|
3495 |
}
|
|
|
3496 |
|
|
|
3497 |
public short getThriftFieldId() {
|
|
|
3498 |
return _thriftId;
|
|
|
3499 |
}
|
|
|
3500 |
|
|
|
3501 |
public String getFieldName() {
|
|
|
3502 |
return _fieldName;
|
|
|
3503 |
}
|
|
|
3504 |
}
|
|
|
3505 |
|
|
|
3506 |
// isset id assignments
|
| 4496 |
mandeep.dh |
3507 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
3508 |
private static final int __QUANTITY_ISSET_ID = 1;
|
|
|
3509 |
private static final int __PURCHASEID_ISSET_ID = 2;
|
|
|
3510 |
private BitSet __isset_bit_vector = new BitSet(3);
|
| 3383 |
chandransh |
3511 |
|
| 3430 |
rajveer |
3512 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
3513 |
static {
|
| 3430 |
rajveer |
3514 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
3515 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3516 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
3517 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3518 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
3519 |
tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3520 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
3521 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
3522 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createInventoryItem_args.class, metaDataMap);
|
| 3383 |
chandransh |
3523 |
}
|
|
|
3524 |
|
| 4496 |
mandeep.dh |
3525 |
public createInventoryItem_args() {
|
| 3383 |
chandransh |
3526 |
}
|
|
|
3527 |
|
| 4496 |
mandeep.dh |
3528 |
public createInventoryItem_args(
|
|
|
3529 |
long itemId,
|
|
|
3530 |
long quantity,
|
|
|
3531 |
long purchaseId)
|
| 3383 |
chandransh |
3532 |
{
|
|
|
3533 |
this();
|
| 4496 |
mandeep.dh |
3534 |
this.itemId = itemId;
|
|
|
3535 |
setItemIdIsSet(true);
|
|
|
3536 |
this.quantity = quantity;
|
|
|
3537 |
setQuantityIsSet(true);
|
|
|
3538 |
this.purchaseId = purchaseId;
|
|
|
3539 |
setPurchaseIdIsSet(true);
|
| 3383 |
chandransh |
3540 |
}
|
|
|
3541 |
|
|
|
3542 |
/**
|
|
|
3543 |
* Performs a deep copy on <i>other</i>.
|
|
|
3544 |
*/
|
| 4496 |
mandeep.dh |
3545 |
public createInventoryItem_args(createInventoryItem_args other) {
|
|
|
3546 |
__isset_bit_vector.clear();
|
|
|
3547 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
3548 |
this.itemId = other.itemId;
|
|
|
3549 |
this.quantity = other.quantity;
|
|
|
3550 |
this.purchaseId = other.purchaseId;
|
| 3383 |
chandransh |
3551 |
}
|
|
|
3552 |
|
| 4496 |
mandeep.dh |
3553 |
public createInventoryItem_args deepCopy() {
|
|
|
3554 |
return new createInventoryItem_args(this);
|
| 3383 |
chandransh |
3555 |
}
|
|
|
3556 |
|
| 3430 |
rajveer |
3557 |
@Override
|
|
|
3558 |
public void clear() {
|
| 4496 |
mandeep.dh |
3559 |
setItemIdIsSet(false);
|
|
|
3560 |
this.itemId = 0;
|
|
|
3561 |
setQuantityIsSet(false);
|
|
|
3562 |
this.quantity = 0;
|
|
|
3563 |
setPurchaseIdIsSet(false);
|
|
|
3564 |
this.purchaseId = 0;
|
| 3383 |
chandransh |
3565 |
}
|
|
|
3566 |
|
| 4496 |
mandeep.dh |
3567 |
public long getItemId() {
|
|
|
3568 |
return this.itemId;
|
| 3383 |
chandransh |
3569 |
}
|
|
|
3570 |
|
| 4496 |
mandeep.dh |
3571 |
public void setItemId(long itemId) {
|
|
|
3572 |
this.itemId = itemId;
|
|
|
3573 |
setItemIdIsSet(true);
|
| 3383 |
chandransh |
3574 |
}
|
|
|
3575 |
|
| 4496 |
mandeep.dh |
3576 |
public void unsetItemId() {
|
|
|
3577 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
| 3383 |
chandransh |
3578 |
}
|
|
|
3579 |
|
| 4496 |
mandeep.dh |
3580 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
3581 |
public boolean isSetItemId() {
|
|
|
3582 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
| 3383 |
chandransh |
3583 |
}
|
|
|
3584 |
|
| 4496 |
mandeep.dh |
3585 |
public void setItemIdIsSet(boolean value) {
|
|
|
3586 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
| 3383 |
chandransh |
3587 |
}
|
|
|
3588 |
|
| 4496 |
mandeep.dh |
3589 |
public long getQuantity() {
|
|
|
3590 |
return this.quantity;
|
|
|
3591 |
}
|
|
|
3592 |
|
|
|
3593 |
public void setQuantity(long quantity) {
|
|
|
3594 |
this.quantity = quantity;
|
|
|
3595 |
setQuantityIsSet(true);
|
|
|
3596 |
}
|
|
|
3597 |
|
|
|
3598 |
public void unsetQuantity() {
|
|
|
3599 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
3600 |
}
|
|
|
3601 |
|
|
|
3602 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
3603 |
public boolean isSetQuantity() {
|
|
|
3604 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
3605 |
}
|
|
|
3606 |
|
|
|
3607 |
public void setQuantityIsSet(boolean value) {
|
|
|
3608 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
3609 |
}
|
|
|
3610 |
|
|
|
3611 |
public long getPurchaseId() {
|
|
|
3612 |
return this.purchaseId;
|
|
|
3613 |
}
|
|
|
3614 |
|
|
|
3615 |
public void setPurchaseId(long purchaseId) {
|
|
|
3616 |
this.purchaseId = purchaseId;
|
|
|
3617 |
setPurchaseIdIsSet(true);
|
|
|
3618 |
}
|
|
|
3619 |
|
|
|
3620 |
public void unsetPurchaseId() {
|
|
|
3621 |
__isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
|
|
|
3622 |
}
|
|
|
3623 |
|
|
|
3624 |
/** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
|
|
|
3625 |
public boolean isSetPurchaseId() {
|
|
|
3626 |
return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
|
|
|
3627 |
}
|
|
|
3628 |
|
|
|
3629 |
public void setPurchaseIdIsSet(boolean value) {
|
|
|
3630 |
__isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
|
|
|
3631 |
}
|
|
|
3632 |
|
| 3383 |
chandransh |
3633 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3634 |
switch (field) {
|
| 4496 |
mandeep.dh |
3635 |
case ITEM_ID:
|
| 3383 |
chandransh |
3636 |
if (value == null) {
|
| 4496 |
mandeep.dh |
3637 |
unsetItemId();
|
| 3383 |
chandransh |
3638 |
} else {
|
| 4496 |
mandeep.dh |
3639 |
setItemId((Long)value);
|
| 3383 |
chandransh |
3640 |
}
|
|
|
3641 |
break;
|
|
|
3642 |
|
| 4496 |
mandeep.dh |
3643 |
case QUANTITY:
|
|
|
3644 |
if (value == null) {
|
|
|
3645 |
unsetQuantity();
|
|
|
3646 |
} else {
|
|
|
3647 |
setQuantity((Long)value);
|
|
|
3648 |
}
|
|
|
3649 |
break;
|
|
|
3650 |
|
|
|
3651 |
case PURCHASE_ID:
|
|
|
3652 |
if (value == null) {
|
|
|
3653 |
unsetPurchaseId();
|
|
|
3654 |
} else {
|
|
|
3655 |
setPurchaseId((Long)value);
|
|
|
3656 |
}
|
|
|
3657 |
break;
|
|
|
3658 |
|
| 3383 |
chandransh |
3659 |
}
|
|
|
3660 |
}
|
|
|
3661 |
|
|
|
3662 |
public Object getFieldValue(_Fields field) {
|
|
|
3663 |
switch (field) {
|
| 4496 |
mandeep.dh |
3664 |
case ITEM_ID:
|
|
|
3665 |
return Long.valueOf(getItemId());
|
| 3383 |
chandransh |
3666 |
|
| 4496 |
mandeep.dh |
3667 |
case QUANTITY:
|
|
|
3668 |
return Long.valueOf(getQuantity());
|
|
|
3669 |
|
|
|
3670 |
case PURCHASE_ID:
|
|
|
3671 |
return Long.valueOf(getPurchaseId());
|
|
|
3672 |
|
| 3383 |
chandransh |
3673 |
}
|
|
|
3674 |
throw new IllegalStateException();
|
|
|
3675 |
}
|
|
|
3676 |
|
| 3430 |
rajveer |
3677 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3678 |
public boolean isSet(_Fields field) {
|
|
|
3679 |
if (field == null) {
|
|
|
3680 |
throw new IllegalArgumentException();
|
|
|
3681 |
}
|
| 3383 |
chandransh |
3682 |
|
|
|
3683 |
switch (field) {
|
| 4496 |
mandeep.dh |
3684 |
case ITEM_ID:
|
|
|
3685 |
return isSetItemId();
|
|
|
3686 |
case QUANTITY:
|
|
|
3687 |
return isSetQuantity();
|
|
|
3688 |
case PURCHASE_ID:
|
|
|
3689 |
return isSetPurchaseId();
|
| 3383 |
chandransh |
3690 |
}
|
|
|
3691 |
throw new IllegalStateException();
|
|
|
3692 |
}
|
|
|
3693 |
|
|
|
3694 |
@Override
|
|
|
3695 |
public boolean equals(Object that) {
|
|
|
3696 |
if (that == null)
|
|
|
3697 |
return false;
|
| 4496 |
mandeep.dh |
3698 |
if (that instanceof createInventoryItem_args)
|
|
|
3699 |
return this.equals((createInventoryItem_args)that);
|
| 3383 |
chandransh |
3700 |
return false;
|
|
|
3701 |
}
|
|
|
3702 |
|
| 4496 |
mandeep.dh |
3703 |
public boolean equals(createInventoryItem_args that) {
|
| 3383 |
chandransh |
3704 |
if (that == null)
|
|
|
3705 |
return false;
|
|
|
3706 |
|
| 4496 |
mandeep.dh |
3707 |
boolean this_present_itemId = true;
|
|
|
3708 |
boolean that_present_itemId = true;
|
|
|
3709 |
if (this_present_itemId || that_present_itemId) {
|
|
|
3710 |
if (!(this_present_itemId && that_present_itemId))
|
| 3383 |
chandransh |
3711 |
return false;
|
| 4496 |
mandeep.dh |
3712 |
if (this.itemId != that.itemId)
|
| 3383 |
chandransh |
3713 |
return false;
|
|
|
3714 |
}
|
|
|
3715 |
|
| 4496 |
mandeep.dh |
3716 |
boolean this_present_quantity = true;
|
|
|
3717 |
boolean that_present_quantity = true;
|
|
|
3718 |
if (this_present_quantity || that_present_quantity) {
|
|
|
3719 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
3720 |
return false;
|
|
|
3721 |
if (this.quantity != that.quantity)
|
|
|
3722 |
return false;
|
|
|
3723 |
}
|
|
|
3724 |
|
|
|
3725 |
boolean this_present_purchaseId = true;
|
|
|
3726 |
boolean that_present_purchaseId = true;
|
|
|
3727 |
if (this_present_purchaseId || that_present_purchaseId) {
|
|
|
3728 |
if (!(this_present_purchaseId && that_present_purchaseId))
|
|
|
3729 |
return false;
|
|
|
3730 |
if (this.purchaseId != that.purchaseId)
|
|
|
3731 |
return false;
|
|
|
3732 |
}
|
|
|
3733 |
|
| 3383 |
chandransh |
3734 |
return true;
|
|
|
3735 |
}
|
|
|
3736 |
|
|
|
3737 |
@Override
|
|
|
3738 |
public int hashCode() {
|
|
|
3739 |
return 0;
|
|
|
3740 |
}
|
|
|
3741 |
|
| 4496 |
mandeep.dh |
3742 |
public int compareTo(createInventoryItem_args other) {
|
| 3383 |
chandransh |
3743 |
if (!getClass().equals(other.getClass())) {
|
|
|
3744 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3745 |
}
|
|
|
3746 |
|
|
|
3747 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
3748 |
createInventoryItem_args typedOther = (createInventoryItem_args)other;
|
| 3383 |
chandransh |
3749 |
|
| 4496 |
mandeep.dh |
3750 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
| 3383 |
chandransh |
3751 |
if (lastComparison != 0) {
|
|
|
3752 |
return lastComparison;
|
|
|
3753 |
}
|
| 4496 |
mandeep.dh |
3754 |
if (isSetItemId()) {
|
|
|
3755 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
| 3430 |
rajveer |
3756 |
if (lastComparison != 0) {
|
|
|
3757 |
return lastComparison;
|
|
|
3758 |
}
|
| 3383 |
chandransh |
3759 |
}
|
| 4496 |
mandeep.dh |
3760 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
|
|
3761 |
if (lastComparison != 0) {
|
|
|
3762 |
return lastComparison;
|
|
|
3763 |
}
|
|
|
3764 |
if (isSetQuantity()) {
|
|
|
3765 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
|
|
3766 |
if (lastComparison != 0) {
|
|
|
3767 |
return lastComparison;
|
|
|
3768 |
}
|
|
|
3769 |
}
|
|
|
3770 |
lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
|
|
|
3771 |
if (lastComparison != 0) {
|
|
|
3772 |
return lastComparison;
|
|
|
3773 |
}
|
|
|
3774 |
if (isSetPurchaseId()) {
|
|
|
3775 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
|
|
|
3776 |
if (lastComparison != 0) {
|
|
|
3777 |
return lastComparison;
|
|
|
3778 |
}
|
|
|
3779 |
}
|
| 3383 |
chandransh |
3780 |
return 0;
|
|
|
3781 |
}
|
|
|
3782 |
|
| 3430 |
rajveer |
3783 |
public _Fields fieldForId(int fieldId) {
|
|
|
3784 |
return _Fields.findByThriftId(fieldId);
|
|
|
3785 |
}
|
|
|
3786 |
|
|
|
3787 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3788 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
3789 |
iprot.readStructBegin();
|
|
|
3790 |
while (true)
|
|
|
3791 |
{
|
|
|
3792 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3793 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
3794 |
break;
|
|
|
3795 |
}
|
| 3430 |
rajveer |
3796 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
3797 |
case 1: // ITEM_ID
|
|
|
3798 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3799 |
this.itemId = iprot.readI64();
|
|
|
3800 |
setItemIdIsSet(true);
|
| 3430 |
rajveer |
3801 |
} else {
|
|
|
3802 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3803 |
}
|
|
|
3804 |
break;
|
| 4496 |
mandeep.dh |
3805 |
case 2: // QUANTITY
|
|
|
3806 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3807 |
this.quantity = iprot.readI64();
|
|
|
3808 |
setQuantityIsSet(true);
|
|
|
3809 |
} else {
|
|
|
3810 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3811 |
}
|
|
|
3812 |
break;
|
|
|
3813 |
case 3: // PURCHASE_ID
|
|
|
3814 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3815 |
this.purchaseId = iprot.readI64();
|
|
|
3816 |
setPurchaseIdIsSet(true);
|
|
|
3817 |
} else {
|
|
|
3818 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3819 |
}
|
|
|
3820 |
break;
|
| 3430 |
rajveer |
3821 |
default:
|
|
|
3822 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
3823 |
}
|
| 3430 |
rajveer |
3824 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
3825 |
}
|
|
|
3826 |
iprot.readStructEnd();
|
|
|
3827 |
validate();
|
|
|
3828 |
}
|
|
|
3829 |
|
| 3430 |
rajveer |
3830 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
3831 |
validate();
|
|
|
3832 |
|
|
|
3833 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4496 |
mandeep.dh |
3834 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
3835 |
oprot.writeI64(this.itemId);
|
|
|
3836 |
oprot.writeFieldEnd();
|
|
|
3837 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
3838 |
oprot.writeI64(this.quantity);
|
|
|
3839 |
oprot.writeFieldEnd();
|
|
|
3840 |
oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
|
|
|
3841 |
oprot.writeI64(this.purchaseId);
|
|
|
3842 |
oprot.writeFieldEnd();
|
| 3383 |
chandransh |
3843 |
oprot.writeFieldStop();
|
|
|
3844 |
oprot.writeStructEnd();
|
|
|
3845 |
}
|
|
|
3846 |
|
|
|
3847 |
@Override
|
|
|
3848 |
public String toString() {
|
| 4496 |
mandeep.dh |
3849 |
StringBuilder sb = new StringBuilder("createInventoryItem_args(");
|
| 3383 |
chandransh |
3850 |
boolean first = true;
|
|
|
3851 |
|
| 4496 |
mandeep.dh |
3852 |
sb.append("itemId:");
|
|
|
3853 |
sb.append(this.itemId);
|
| 3383 |
chandransh |
3854 |
first = false;
|
| 4496 |
mandeep.dh |
3855 |
if (!first) sb.append(", ");
|
|
|
3856 |
sb.append("quantity:");
|
|
|
3857 |
sb.append(this.quantity);
|
|
|
3858 |
first = false;
|
|
|
3859 |
if (!first) sb.append(", ");
|
|
|
3860 |
sb.append("purchaseId:");
|
|
|
3861 |
sb.append(this.purchaseId);
|
|
|
3862 |
first = false;
|
| 3383 |
chandransh |
3863 |
sb.append(")");
|
|
|
3864 |
return sb.toString();
|
|
|
3865 |
}
|
|
|
3866 |
|
| 3430 |
rajveer |
3867 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
3868 |
// check for required fields
|
|
|
3869 |
}
|
|
|
3870 |
|
| 3430 |
rajveer |
3871 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3872 |
try {
|
|
|
3873 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3874 |
} catch (org.apache.thrift.TException te) {
|
|
|
3875 |
throw new java.io.IOException(te);
|
|
|
3876 |
}
|
|
|
3877 |
}
|
|
|
3878 |
|
|
|
3879 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3880 |
try {
|
| 4496 |
mandeep.dh |
3881 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
3882 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
3883 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3884 |
} catch (org.apache.thrift.TException te) {
|
|
|
3885 |
throw new java.io.IOException(te);
|
|
|
3886 |
}
|
|
|
3887 |
}
|
|
|
3888 |
|
| 3383 |
chandransh |
3889 |
}
|
|
|
3890 |
|
| 4496 |
mandeep.dh |
3891 |
public static class createInventoryItem_result implements org.apache.thrift.TBase<createInventoryItem_result, createInventoryItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3892 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createInventoryItem_result");
|
| 3383 |
chandransh |
3893 |
|
| 4555 |
mandeep.dh |
3894 |
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 |
3895 |
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 |
3896 |
|
| 4555 |
mandeep.dh |
3897 |
private InventoryItem success; // required
|
| 3430 |
rajveer |
3898 |
private WarehouseServiceException wex; // required
|
| 3383 |
chandransh |
3899 |
|
|
|
3900 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3901 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3383 |
chandransh |
3902 |
SUCCESS((short)0, "success"),
|
|
|
3903 |
WEX((short)1, "wex");
|
|
|
3904 |
|
|
|
3905 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3906 |
|
|
|
3907 |
static {
|
|
|
3908 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3909 |
byName.put(field.getFieldName(), field);
|
|
|
3910 |
}
|
|
|
3911 |
}
|
|
|
3912 |
|
|
|
3913 |
/**
|
|
|
3914 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3915 |
*/
|
|
|
3916 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3917 |
switch(fieldId) {
|
|
|
3918 |
case 0: // SUCCESS
|
|
|
3919 |
return SUCCESS;
|
|
|
3920 |
case 1: // WEX
|
|
|
3921 |
return WEX;
|
|
|
3922 |
default:
|
|
|
3923 |
return null;
|
|
|
3924 |
}
|
| 3383 |
chandransh |
3925 |
}
|
|
|
3926 |
|
|
|
3927 |
/**
|
|
|
3928 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3929 |
* if it is not found.
|
|
|
3930 |
*/
|
|
|
3931 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3932 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3933 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3934 |
return fields;
|
|
|
3935 |
}
|
|
|
3936 |
|
|
|
3937 |
/**
|
|
|
3938 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3939 |
*/
|
|
|
3940 |
public static _Fields findByName(String name) {
|
|
|
3941 |
return byName.get(name);
|
|
|
3942 |
}
|
|
|
3943 |
|
|
|
3944 |
private final short _thriftId;
|
|
|
3945 |
private final String _fieldName;
|
|
|
3946 |
|
|
|
3947 |
_Fields(short thriftId, String fieldName) {
|
|
|
3948 |
_thriftId = thriftId;
|
|
|
3949 |
_fieldName = fieldName;
|
|
|
3950 |
}
|
|
|
3951 |
|
|
|
3952 |
public short getThriftFieldId() {
|
|
|
3953 |
return _thriftId;
|
|
|
3954 |
}
|
|
|
3955 |
|
|
|
3956 |
public String getFieldName() {
|
|
|
3957 |
return _fieldName;
|
|
|
3958 |
}
|
|
|
3959 |
}
|
|
|
3960 |
|
|
|
3961 |
// isset id assignments
|
|
|
3962 |
|
| 3430 |
rajveer |
3963 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
3964 |
static {
|
| 3430 |
rajveer |
3965 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3966 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4555 |
mandeep.dh |
3967 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
3968 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3969 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
3970 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
3971 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createInventoryItem_result.class, metaDataMap);
|
| 3383 |
chandransh |
3972 |
}
|
|
|
3973 |
|
| 4496 |
mandeep.dh |
3974 |
public createInventoryItem_result() {
|
| 3383 |
chandransh |
3975 |
}
|
|
|
3976 |
|
| 4496 |
mandeep.dh |
3977 |
public createInventoryItem_result(
|
| 4555 |
mandeep.dh |
3978 |
InventoryItem success,
|
| 3383 |
chandransh |
3979 |
WarehouseServiceException wex)
|
|
|
3980 |
{
|
|
|
3981 |
this();
|
|
|
3982 |
this.success = success;
|
|
|
3983 |
this.wex = wex;
|
|
|
3984 |
}
|
|
|
3985 |
|
|
|
3986 |
/**
|
|
|
3987 |
* Performs a deep copy on <i>other</i>.
|
|
|
3988 |
*/
|
| 4496 |
mandeep.dh |
3989 |
public createInventoryItem_result(createInventoryItem_result other) {
|
| 4555 |
mandeep.dh |
3990 |
if (other.isSetSuccess()) {
|
|
|
3991 |
this.success = new InventoryItem(other.success);
|
|
|
3992 |
}
|
| 3383 |
chandransh |
3993 |
if (other.isSetWex()) {
|
|
|
3994 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
3995 |
}
|
|
|
3996 |
}
|
|
|
3997 |
|
| 4496 |
mandeep.dh |
3998 |
public createInventoryItem_result deepCopy() {
|
|
|
3999 |
return new createInventoryItem_result(this);
|
| 3383 |
chandransh |
4000 |
}
|
|
|
4001 |
|
| 3430 |
rajveer |
4002 |
@Override
|
|
|
4003 |
public void clear() {
|
| 4555 |
mandeep.dh |
4004 |
this.success = null;
|
| 3430 |
rajveer |
4005 |
this.wex = null;
|
| 3383 |
chandransh |
4006 |
}
|
|
|
4007 |
|
| 4555 |
mandeep.dh |
4008 |
public InventoryItem getSuccess() {
|
| 3383 |
chandransh |
4009 |
return this.success;
|
|
|
4010 |
}
|
|
|
4011 |
|
| 4555 |
mandeep.dh |
4012 |
public void setSuccess(InventoryItem success) {
|
| 3383 |
chandransh |
4013 |
this.success = success;
|
|
|
4014 |
}
|
|
|
4015 |
|
|
|
4016 |
public void unsetSuccess() {
|
| 4555 |
mandeep.dh |
4017 |
this.success = null;
|
| 3383 |
chandransh |
4018 |
}
|
|
|
4019 |
|
| 3430 |
rajveer |
4020 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 3383 |
chandransh |
4021 |
public boolean isSetSuccess() {
|
| 4555 |
mandeep.dh |
4022 |
return this.success != null;
|
| 3383 |
chandransh |
4023 |
}
|
|
|
4024 |
|
|
|
4025 |
public void setSuccessIsSet(boolean value) {
|
| 4555 |
mandeep.dh |
4026 |
if (!value) {
|
|
|
4027 |
this.success = null;
|
|
|
4028 |
}
|
| 3383 |
chandransh |
4029 |
}
|
|
|
4030 |
|
|
|
4031 |
public WarehouseServiceException getWex() {
|
|
|
4032 |
return this.wex;
|
|
|
4033 |
}
|
|
|
4034 |
|
| 3430 |
rajveer |
4035 |
public void setWex(WarehouseServiceException wex) {
|
| 3383 |
chandransh |
4036 |
this.wex = wex;
|
|
|
4037 |
}
|
|
|
4038 |
|
|
|
4039 |
public void unsetWex() {
|
|
|
4040 |
this.wex = null;
|
|
|
4041 |
}
|
|
|
4042 |
|
| 3430 |
rajveer |
4043 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 3383 |
chandransh |
4044 |
public boolean isSetWex() {
|
|
|
4045 |
return this.wex != null;
|
|
|
4046 |
}
|
|
|
4047 |
|
|
|
4048 |
public void setWexIsSet(boolean value) {
|
|
|
4049 |
if (!value) {
|
|
|
4050 |
this.wex = null;
|
|
|
4051 |
}
|
|
|
4052 |
}
|
|
|
4053 |
|
|
|
4054 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4055 |
switch (field) {
|
|
|
4056 |
case SUCCESS:
|
|
|
4057 |
if (value == null) {
|
|
|
4058 |
unsetSuccess();
|
|
|
4059 |
} else {
|
| 4555 |
mandeep.dh |
4060 |
setSuccess((InventoryItem)value);
|
| 3383 |
chandransh |
4061 |
}
|
|
|
4062 |
break;
|
|
|
4063 |
|
|
|
4064 |
case WEX:
|
|
|
4065 |
if (value == null) {
|
|
|
4066 |
unsetWex();
|
|
|
4067 |
} else {
|
|
|
4068 |
setWex((WarehouseServiceException)value);
|
|
|
4069 |
}
|
|
|
4070 |
break;
|
|
|
4071 |
|
|
|
4072 |
}
|
|
|
4073 |
}
|
|
|
4074 |
|
|
|
4075 |
public Object getFieldValue(_Fields field) {
|
|
|
4076 |
switch (field) {
|
|
|
4077 |
case SUCCESS:
|
| 4555 |
mandeep.dh |
4078 |
return getSuccess();
|
| 3383 |
chandransh |
4079 |
|
|
|
4080 |
case WEX:
|
|
|
4081 |
return getWex();
|
|
|
4082 |
|
|
|
4083 |
}
|
|
|
4084 |
throw new IllegalStateException();
|
|
|
4085 |
}
|
|
|
4086 |
|
| 3430 |
rajveer |
4087 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4088 |
public boolean isSet(_Fields field) {
|
|
|
4089 |
if (field == null) {
|
|
|
4090 |
throw new IllegalArgumentException();
|
|
|
4091 |
}
|
| 3383 |
chandransh |
4092 |
|
|
|
4093 |
switch (field) {
|
|
|
4094 |
case SUCCESS:
|
|
|
4095 |
return isSetSuccess();
|
|
|
4096 |
case WEX:
|
|
|
4097 |
return isSetWex();
|
|
|
4098 |
}
|
|
|
4099 |
throw new IllegalStateException();
|
|
|
4100 |
}
|
|
|
4101 |
|
|
|
4102 |
@Override
|
|
|
4103 |
public boolean equals(Object that) {
|
|
|
4104 |
if (that == null)
|
|
|
4105 |
return false;
|
| 4496 |
mandeep.dh |
4106 |
if (that instanceof createInventoryItem_result)
|
|
|
4107 |
return this.equals((createInventoryItem_result)that);
|
| 3383 |
chandransh |
4108 |
return false;
|
|
|
4109 |
}
|
|
|
4110 |
|
| 4496 |
mandeep.dh |
4111 |
public boolean equals(createInventoryItem_result that) {
|
| 3383 |
chandransh |
4112 |
if (that == null)
|
|
|
4113 |
return false;
|
|
|
4114 |
|
| 4555 |
mandeep.dh |
4115 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
4116 |
boolean that_present_success = true && that.isSetSuccess();
|
| 3383 |
chandransh |
4117 |
if (this_present_success || that_present_success) {
|
|
|
4118 |
if (!(this_present_success && that_present_success))
|
|
|
4119 |
return false;
|
| 4555 |
mandeep.dh |
4120 |
if (!this.success.equals(that.success))
|
| 3383 |
chandransh |
4121 |
return false;
|
|
|
4122 |
}
|
|
|
4123 |
|
|
|
4124 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
4125 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
4126 |
if (this_present_wex || that_present_wex) {
|
|
|
4127 |
if (!(this_present_wex && that_present_wex))
|
|
|
4128 |
return false;
|
|
|
4129 |
if (!this.wex.equals(that.wex))
|
|
|
4130 |
return false;
|
|
|
4131 |
}
|
|
|
4132 |
|
|
|
4133 |
return true;
|
|
|
4134 |
}
|
|
|
4135 |
|
|
|
4136 |
@Override
|
|
|
4137 |
public int hashCode() {
|
|
|
4138 |
return 0;
|
|
|
4139 |
}
|
|
|
4140 |
|
| 4496 |
mandeep.dh |
4141 |
public int compareTo(createInventoryItem_result other) {
|
| 3383 |
chandransh |
4142 |
if (!getClass().equals(other.getClass())) {
|
|
|
4143 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4144 |
}
|
|
|
4145 |
|
|
|
4146 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
4147 |
createInventoryItem_result typedOther = (createInventoryItem_result)other;
|
| 3383 |
chandransh |
4148 |
|
| 3430 |
rajveer |
4149 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 3383 |
chandransh |
4150 |
if (lastComparison != 0) {
|
|
|
4151 |
return lastComparison;
|
|
|
4152 |
}
|
| 3430 |
rajveer |
4153 |
if (isSetSuccess()) {
|
|
|
4154 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
4155 |
if (lastComparison != 0) {
|
|
|
4156 |
return lastComparison;
|
|
|
4157 |
}
|
| 3383 |
chandransh |
4158 |
}
|
| 3430 |
rajveer |
4159 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 3383 |
chandransh |
4160 |
if (lastComparison != 0) {
|
|
|
4161 |
return lastComparison;
|
|
|
4162 |
}
|
| 3430 |
rajveer |
4163 |
if (isSetWex()) {
|
|
|
4164 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
4165 |
if (lastComparison != 0) {
|
|
|
4166 |
return lastComparison;
|
|
|
4167 |
}
|
| 3383 |
chandransh |
4168 |
}
|
|
|
4169 |
return 0;
|
|
|
4170 |
}
|
|
|
4171 |
|
| 3430 |
rajveer |
4172 |
public _Fields fieldForId(int fieldId) {
|
|
|
4173 |
return _Fields.findByThriftId(fieldId);
|
|
|
4174 |
}
|
|
|
4175 |
|
|
|
4176 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4177 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
4178 |
iprot.readStructBegin();
|
|
|
4179 |
while (true)
|
|
|
4180 |
{
|
|
|
4181 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4182 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
4183 |
break;
|
|
|
4184 |
}
|
| 3430 |
rajveer |
4185 |
switch (field.id) {
|
|
|
4186 |
case 0: // SUCCESS
|
| 4555 |
mandeep.dh |
4187 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4188 |
this.success = new InventoryItem();
|
|
|
4189 |
this.success.read(iprot);
|
| 3430 |
rajveer |
4190 |
} else {
|
|
|
4191 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4192 |
}
|
|
|
4193 |
break;
|
|
|
4194 |
case 1: // WEX
|
|
|
4195 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4196 |
this.wex = new WarehouseServiceException();
|
|
|
4197 |
this.wex.read(iprot);
|
|
|
4198 |
} else {
|
|
|
4199 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4200 |
}
|
|
|
4201 |
break;
|
|
|
4202 |
default:
|
|
|
4203 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
4204 |
}
|
| 3430 |
rajveer |
4205 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
4206 |
}
|
|
|
4207 |
iprot.readStructEnd();
|
|
|
4208 |
validate();
|
|
|
4209 |
}
|
|
|
4210 |
|
| 3430 |
rajveer |
4211 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
4212 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4213 |
|
|
|
4214 |
if (this.isSetSuccess()) {
|
|
|
4215 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 4555 |
mandeep.dh |
4216 |
this.success.write(oprot);
|
| 3383 |
chandransh |
4217 |
oprot.writeFieldEnd();
|
|
|
4218 |
} else if (this.isSetWex()) {
|
|
|
4219 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
4220 |
this.wex.write(oprot);
|
|
|
4221 |
oprot.writeFieldEnd();
|
|
|
4222 |
}
|
|
|
4223 |
oprot.writeFieldStop();
|
|
|
4224 |
oprot.writeStructEnd();
|
|
|
4225 |
}
|
|
|
4226 |
|
|
|
4227 |
@Override
|
|
|
4228 |
public String toString() {
|
| 4496 |
mandeep.dh |
4229 |
StringBuilder sb = new StringBuilder("createInventoryItem_result(");
|
| 3383 |
chandransh |
4230 |
boolean first = true;
|
|
|
4231 |
|
|
|
4232 |
sb.append("success:");
|
| 4555 |
mandeep.dh |
4233 |
if (this.success == null) {
|
|
|
4234 |
sb.append("null");
|
|
|
4235 |
} else {
|
|
|
4236 |
sb.append(this.success);
|
|
|
4237 |
}
|
| 3383 |
chandransh |
4238 |
first = false;
|
|
|
4239 |
if (!first) sb.append(", ");
|
|
|
4240 |
sb.append("wex:");
|
|
|
4241 |
if (this.wex == null) {
|
|
|
4242 |
sb.append("null");
|
|
|
4243 |
} else {
|
|
|
4244 |
sb.append(this.wex);
|
|
|
4245 |
}
|
|
|
4246 |
first = false;
|
|
|
4247 |
sb.append(")");
|
|
|
4248 |
return sb.toString();
|
|
|
4249 |
}
|
|
|
4250 |
|
| 3430 |
rajveer |
4251 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
4252 |
// check for required fields
|
|
|
4253 |
}
|
|
|
4254 |
|
| 3430 |
rajveer |
4255 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4256 |
try {
|
|
|
4257 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4258 |
} catch (org.apache.thrift.TException te) {
|
|
|
4259 |
throw new java.io.IOException(te);
|
|
|
4260 |
}
|
|
|
4261 |
}
|
|
|
4262 |
|
|
|
4263 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4264 |
try {
|
|
|
4265 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4266 |
} catch (org.apache.thrift.TException te) {
|
|
|
4267 |
throw new java.io.IOException(te);
|
|
|
4268 |
}
|
|
|
4269 |
}
|
|
|
4270 |
|
| 3383 |
chandransh |
4271 |
}
|
|
|
4272 |
|
| 4496 |
mandeep.dh |
4273 |
public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4274 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
|
| 2832 |
chandransh |
4275 |
|
| 4496 |
mandeep.dh |
4276 |
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 |
4277 |
|
| 4496 |
mandeep.dh |
4278 |
private String serialNumber; // required
|
| 2832 |
chandransh |
4279 |
|
|
|
4280 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4281 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
4282 |
SERIAL_NUMBER((short)1, "serialNumber");
|
| 2832 |
chandransh |
4283 |
|
|
|
4284 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4285 |
|
|
|
4286 |
static {
|
|
|
4287 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4288 |
byName.put(field.getFieldName(), field);
|
|
|
4289 |
}
|
|
|
4290 |
}
|
|
|
4291 |
|
|
|
4292 |
/**
|
|
|
4293 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4294 |
*/
|
|
|
4295 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4296 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
4297 |
case 1: // SERIAL_NUMBER
|
|
|
4298 |
return SERIAL_NUMBER;
|
| 3430 |
rajveer |
4299 |
default:
|
|
|
4300 |
return null;
|
|
|
4301 |
}
|
| 2832 |
chandransh |
4302 |
}
|
|
|
4303 |
|
|
|
4304 |
/**
|
|
|
4305 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4306 |
* if it is not found.
|
|
|
4307 |
*/
|
|
|
4308 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4309 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4310 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4311 |
return fields;
|
|
|
4312 |
}
|
|
|
4313 |
|
|
|
4314 |
/**
|
|
|
4315 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4316 |
*/
|
|
|
4317 |
public static _Fields findByName(String name) {
|
|
|
4318 |
return byName.get(name);
|
|
|
4319 |
}
|
|
|
4320 |
|
|
|
4321 |
private final short _thriftId;
|
|
|
4322 |
private final String _fieldName;
|
|
|
4323 |
|
|
|
4324 |
_Fields(short thriftId, String fieldName) {
|
|
|
4325 |
_thriftId = thriftId;
|
|
|
4326 |
_fieldName = fieldName;
|
|
|
4327 |
}
|
|
|
4328 |
|
|
|
4329 |
public short getThriftFieldId() {
|
|
|
4330 |
return _thriftId;
|
|
|
4331 |
}
|
|
|
4332 |
|
|
|
4333 |
public String getFieldName() {
|
|
|
4334 |
return _fieldName;
|
|
|
4335 |
}
|
|
|
4336 |
}
|
|
|
4337 |
|
|
|
4338 |
// isset id assignments
|
|
|
4339 |
|
| 3430 |
rajveer |
4340 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2832 |
chandransh |
4341 |
static {
|
| 3430 |
rajveer |
4342 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
4343 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4344 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 3430 |
rajveer |
4345 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
4346 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_args.class, metaDataMap);
|
| 2832 |
chandransh |
4347 |
}
|
|
|
4348 |
|
| 4496 |
mandeep.dh |
4349 |
public getInventoryItem_args() {
|
| 2832 |
chandransh |
4350 |
}
|
|
|
4351 |
|
| 4496 |
mandeep.dh |
4352 |
public getInventoryItem_args(
|
|
|
4353 |
String serialNumber)
|
| 2832 |
chandransh |
4354 |
{
|
|
|
4355 |
this();
|
| 4496 |
mandeep.dh |
4356 |
this.serialNumber = serialNumber;
|
| 2832 |
chandransh |
4357 |
}
|
|
|
4358 |
|
|
|
4359 |
/**
|
|
|
4360 |
* Performs a deep copy on <i>other</i>.
|
|
|
4361 |
*/
|
| 4496 |
mandeep.dh |
4362 |
public getInventoryItem_args(getInventoryItem_args other) {
|
|
|
4363 |
if (other.isSetSerialNumber()) {
|
|
|
4364 |
this.serialNumber = other.serialNumber;
|
|
|
4365 |
}
|
| 2832 |
chandransh |
4366 |
}
|
|
|
4367 |
|
| 4496 |
mandeep.dh |
4368 |
public getInventoryItem_args deepCopy() {
|
|
|
4369 |
return new getInventoryItem_args(this);
|
| 2832 |
chandransh |
4370 |
}
|
|
|
4371 |
|
| 3430 |
rajveer |
4372 |
@Override
|
|
|
4373 |
public void clear() {
|
| 4496 |
mandeep.dh |
4374 |
this.serialNumber = null;
|
| 2832 |
chandransh |
4375 |
}
|
|
|
4376 |
|
| 4496 |
mandeep.dh |
4377 |
public String getSerialNumber() {
|
|
|
4378 |
return this.serialNumber;
|
| 2832 |
chandransh |
4379 |
}
|
|
|
4380 |
|
| 4496 |
mandeep.dh |
4381 |
public void setSerialNumber(String serialNumber) {
|
|
|
4382 |
this.serialNumber = serialNumber;
|
| 2832 |
chandransh |
4383 |
}
|
|
|
4384 |
|
| 4496 |
mandeep.dh |
4385 |
public void unsetSerialNumber() {
|
|
|
4386 |
this.serialNumber = null;
|
| 2832 |
chandransh |
4387 |
}
|
|
|
4388 |
|
| 4496 |
mandeep.dh |
4389 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
4390 |
public boolean isSetSerialNumber() {
|
|
|
4391 |
return this.serialNumber != null;
|
| 2832 |
chandransh |
4392 |
}
|
|
|
4393 |
|
| 4496 |
mandeep.dh |
4394 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
4395 |
if (!value) {
|
|
|
4396 |
this.serialNumber = null;
|
|
|
4397 |
}
|
| 2832 |
chandransh |
4398 |
}
|
|
|
4399 |
|
|
|
4400 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4401 |
switch (field) {
|
| 4496 |
mandeep.dh |
4402 |
case SERIAL_NUMBER:
|
| 2832 |
chandransh |
4403 |
if (value == null) {
|
| 4496 |
mandeep.dh |
4404 |
unsetSerialNumber();
|
| 2832 |
chandransh |
4405 |
} else {
|
| 4496 |
mandeep.dh |
4406 |
setSerialNumber((String)value);
|
| 2832 |
chandransh |
4407 |
}
|
|
|
4408 |
break;
|
|
|
4409 |
|
|
|
4410 |
}
|
|
|
4411 |
}
|
|
|
4412 |
|
|
|
4413 |
public Object getFieldValue(_Fields field) {
|
|
|
4414 |
switch (field) {
|
| 4496 |
mandeep.dh |
4415 |
case SERIAL_NUMBER:
|
|
|
4416 |
return getSerialNumber();
|
| 2832 |
chandransh |
4417 |
|
|
|
4418 |
}
|
|
|
4419 |
throw new IllegalStateException();
|
|
|
4420 |
}
|
|
|
4421 |
|
| 3430 |
rajveer |
4422 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4423 |
public boolean isSet(_Fields field) {
|
|
|
4424 |
if (field == null) {
|
|
|
4425 |
throw new IllegalArgumentException();
|
|
|
4426 |
}
|
| 2832 |
chandransh |
4427 |
|
|
|
4428 |
switch (field) {
|
| 4496 |
mandeep.dh |
4429 |
case SERIAL_NUMBER:
|
|
|
4430 |
return isSetSerialNumber();
|
| 2832 |
chandransh |
4431 |
}
|
|
|
4432 |
throw new IllegalStateException();
|
|
|
4433 |
}
|
|
|
4434 |
|
|
|
4435 |
@Override
|
|
|
4436 |
public boolean equals(Object that) {
|
|
|
4437 |
if (that == null)
|
|
|
4438 |
return false;
|
| 4496 |
mandeep.dh |
4439 |
if (that instanceof getInventoryItem_args)
|
|
|
4440 |
return this.equals((getInventoryItem_args)that);
|
| 2832 |
chandransh |
4441 |
return false;
|
|
|
4442 |
}
|
|
|
4443 |
|
| 4496 |
mandeep.dh |
4444 |
public boolean equals(getInventoryItem_args that) {
|
| 2832 |
chandransh |
4445 |
if (that == null)
|
|
|
4446 |
return false;
|
|
|
4447 |
|
| 4496 |
mandeep.dh |
4448 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
4449 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
4450 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
4451 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
| 2832 |
chandransh |
4452 |
return false;
|
| 4496 |
mandeep.dh |
4453 |
if (!this.serialNumber.equals(that.serialNumber))
|
| 2832 |
chandransh |
4454 |
return false;
|
|
|
4455 |
}
|
|
|
4456 |
|
|
|
4457 |
return true;
|
|
|
4458 |
}
|
|
|
4459 |
|
|
|
4460 |
@Override
|
|
|
4461 |
public int hashCode() {
|
|
|
4462 |
return 0;
|
|
|
4463 |
}
|
|
|
4464 |
|
| 4496 |
mandeep.dh |
4465 |
public int compareTo(getInventoryItem_args other) {
|
| 2832 |
chandransh |
4466 |
if (!getClass().equals(other.getClass())) {
|
|
|
4467 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4468 |
}
|
|
|
4469 |
|
|
|
4470 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
4471 |
getInventoryItem_args typedOther = (getInventoryItem_args)other;
|
| 2832 |
chandransh |
4472 |
|
| 4496 |
mandeep.dh |
4473 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
| 2832 |
chandransh |
4474 |
if (lastComparison != 0) {
|
|
|
4475 |
return lastComparison;
|
|
|
4476 |
}
|
| 4496 |
mandeep.dh |
4477 |
if (isSetSerialNumber()) {
|
|
|
4478 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
| 3430 |
rajveer |
4479 |
if (lastComparison != 0) {
|
|
|
4480 |
return lastComparison;
|
|
|
4481 |
}
|
| 2832 |
chandransh |
4482 |
}
|
|
|
4483 |
return 0;
|
|
|
4484 |
}
|
|
|
4485 |
|
| 3430 |
rajveer |
4486 |
public _Fields fieldForId(int fieldId) {
|
|
|
4487 |
return _Fields.findByThriftId(fieldId);
|
|
|
4488 |
}
|
|
|
4489 |
|
|
|
4490 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4491 |
org.apache.thrift.protocol.TField field;
|
| 2832 |
chandransh |
4492 |
iprot.readStructBegin();
|
|
|
4493 |
while (true)
|
|
|
4494 |
{
|
|
|
4495 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4496 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2832 |
chandransh |
4497 |
break;
|
|
|
4498 |
}
|
| 3430 |
rajveer |
4499 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
4500 |
case 1: // SERIAL_NUMBER
|
|
|
4501 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
4502 |
this.serialNumber = iprot.readString();
|
| 3430 |
rajveer |
4503 |
} else {
|
|
|
4504 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4505 |
}
|
|
|
4506 |
break;
|
|
|
4507 |
default:
|
|
|
4508 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2832 |
chandransh |
4509 |
}
|
| 3430 |
rajveer |
4510 |
iprot.readFieldEnd();
|
| 2832 |
chandransh |
4511 |
}
|
|
|
4512 |
iprot.readStructEnd();
|
|
|
4513 |
validate();
|
|
|
4514 |
}
|
|
|
4515 |
|
| 3430 |
rajveer |
4516 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
4517 |
validate();
|
|
|
4518 |
|
|
|
4519 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4496 |
mandeep.dh |
4520 |
if (this.serialNumber != null) {
|
|
|
4521 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
4522 |
oprot.writeString(this.serialNumber);
|
|
|
4523 |
oprot.writeFieldEnd();
|
|
|
4524 |
}
|
| 2832 |
chandransh |
4525 |
oprot.writeFieldStop();
|
|
|
4526 |
oprot.writeStructEnd();
|
|
|
4527 |
}
|
|
|
4528 |
|
|
|
4529 |
@Override
|
|
|
4530 |
public String toString() {
|
| 4496 |
mandeep.dh |
4531 |
StringBuilder sb = new StringBuilder("getInventoryItem_args(");
|
| 2832 |
chandransh |
4532 |
boolean first = true;
|
|
|
4533 |
|
| 4496 |
mandeep.dh |
4534 |
sb.append("serialNumber:");
|
|
|
4535 |
if (this.serialNumber == null) {
|
|
|
4536 |
sb.append("null");
|
|
|
4537 |
} else {
|
|
|
4538 |
sb.append(this.serialNumber);
|
|
|
4539 |
}
|
| 2832 |
chandransh |
4540 |
first = false;
|
|
|
4541 |
sb.append(")");
|
|
|
4542 |
return sb.toString();
|
|
|
4543 |
}
|
|
|
4544 |
|
| 3430 |
rajveer |
4545 |
public void validate() throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
4546 |
// check for required fields
|
|
|
4547 |
}
|
|
|
4548 |
|
| 3430 |
rajveer |
4549 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4550 |
try {
|
|
|
4551 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4552 |
} catch (org.apache.thrift.TException te) {
|
|
|
4553 |
throw new java.io.IOException(te);
|
|
|
4554 |
}
|
|
|
4555 |
}
|
|
|
4556 |
|
|
|
4557 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4558 |
try {
|
|
|
4559 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4560 |
} catch (org.apache.thrift.TException te) {
|
|
|
4561 |
throw new java.io.IOException(te);
|
|
|
4562 |
}
|
|
|
4563 |
}
|
|
|
4564 |
|
| 2832 |
chandransh |
4565 |
}
|
|
|
4566 |
|
| 4496 |
mandeep.dh |
4567 |
public static class getInventoryItem_result implements org.apache.thrift.TBase<getInventoryItem_result, getInventoryItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
4568 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_result");
|
| 2832 |
chandransh |
4569 |
|
| 3430 |
rajveer |
4570 |
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 |
4571 |
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 |
4572 |
|
| 4496 |
mandeep.dh |
4573 |
private InventoryItem success; // required
|
| 4541 |
mandeep.dh |
4574 |
private WarehouseServiceException wex; // required
|
| 2832 |
chandransh |
4575 |
|
|
|
4576 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4577 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4541 |
mandeep.dh |
4578 |
SUCCESS((short)0, "success"),
|
|
|
4579 |
WEX((short)1, "wex");
|
| 2832 |
chandransh |
4580 |
|
|
|
4581 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4582 |
|
|
|
4583 |
static {
|
|
|
4584 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4585 |
byName.put(field.getFieldName(), field);
|
|
|
4586 |
}
|
|
|
4587 |
}
|
|
|
4588 |
|
|
|
4589 |
/**
|
|
|
4590 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4591 |
*/
|
|
|
4592 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4593 |
switch(fieldId) {
|
|
|
4594 |
case 0: // SUCCESS
|
|
|
4595 |
return SUCCESS;
|
| 4541 |
mandeep.dh |
4596 |
case 1: // WEX
|
|
|
4597 |
return WEX;
|
| 3430 |
rajveer |
4598 |
default:
|
|
|
4599 |
return null;
|
|
|
4600 |
}
|
| 2832 |
chandransh |
4601 |
}
|
|
|
4602 |
|
|
|
4603 |
/**
|
|
|
4604 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4605 |
* if it is not found.
|
|
|
4606 |
*/
|
|
|
4607 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4608 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4609 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4610 |
return fields;
|
|
|
4611 |
}
|
|
|
4612 |
|
|
|
4613 |
/**
|
|
|
4614 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4615 |
*/
|
|
|
4616 |
public static _Fields findByName(String name) {
|
|
|
4617 |
return byName.get(name);
|
|
|
4618 |
}
|
|
|
4619 |
|
|
|
4620 |
private final short _thriftId;
|
|
|
4621 |
private final String _fieldName;
|
|
|
4622 |
|
|
|
4623 |
_Fields(short thriftId, String fieldName) {
|
|
|
4624 |
_thriftId = thriftId;
|
|
|
4625 |
_fieldName = fieldName;
|
|
|
4626 |
}
|
|
|
4627 |
|
|
|
4628 |
public short getThriftFieldId() {
|
|
|
4629 |
return _thriftId;
|
|
|
4630 |
}
|
|
|
4631 |
|
|
|
4632 |
public String getFieldName() {
|
|
|
4633 |
return _fieldName;
|
|
|
4634 |
}
|
|
|
4635 |
}
|
|
|
4636 |
|
|
|
4637 |
// isset id assignments
|
|
|
4638 |
|
| 3430 |
rajveer |
4639 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2832 |
chandransh |
4640 |
static {
|
| 3430 |
rajveer |
4641 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4642 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
4643 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 4541 |
mandeep.dh |
4644 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4645 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
| 3430 |
rajveer |
4646 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
4647 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_result.class, metaDataMap);
|
| 2832 |
chandransh |
4648 |
}
|
|
|
4649 |
|
| 4496 |
mandeep.dh |
4650 |
public getInventoryItem_result() {
|
| 2832 |
chandransh |
4651 |
}
|
|
|
4652 |
|
| 4496 |
mandeep.dh |
4653 |
public getInventoryItem_result(
|
| 4541 |
mandeep.dh |
4654 |
InventoryItem success,
|
|
|
4655 |
WarehouseServiceException wex)
|
| 2832 |
chandransh |
4656 |
{
|
|
|
4657 |
this();
|
|
|
4658 |
this.success = success;
|
| 4541 |
mandeep.dh |
4659 |
this.wex = wex;
|
| 2832 |
chandransh |
4660 |
}
|
|
|
4661 |
|
|
|
4662 |
/**
|
|
|
4663 |
* Performs a deep copy on <i>other</i>.
|
|
|
4664 |
*/
|
| 4496 |
mandeep.dh |
4665 |
public getInventoryItem_result(getInventoryItem_result other) {
|
| 2832 |
chandransh |
4666 |
if (other.isSetSuccess()) {
|
| 4496 |
mandeep.dh |
4667 |
this.success = new InventoryItem(other.success);
|
| 2832 |
chandransh |
4668 |
}
|
| 4541 |
mandeep.dh |
4669 |
if (other.isSetWex()) {
|
|
|
4670 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
4671 |
}
|
| 2832 |
chandransh |
4672 |
}
|
|
|
4673 |
|
| 4496 |
mandeep.dh |
4674 |
public getInventoryItem_result deepCopy() {
|
|
|
4675 |
return new getInventoryItem_result(this);
|
| 2832 |
chandransh |
4676 |
}
|
|
|
4677 |
|
| 3430 |
rajveer |
4678 |
@Override
|
|
|
4679 |
public void clear() {
|
|
|
4680 |
this.success = null;
|
| 4541 |
mandeep.dh |
4681 |
this.wex = null;
|
| 2832 |
chandransh |
4682 |
}
|
|
|
4683 |
|
| 4496 |
mandeep.dh |
4684 |
public InventoryItem getSuccess() {
|
| 2832 |
chandransh |
4685 |
return this.success;
|
|
|
4686 |
}
|
|
|
4687 |
|
| 4496 |
mandeep.dh |
4688 |
public void setSuccess(InventoryItem success) {
|
| 2832 |
chandransh |
4689 |
this.success = success;
|
|
|
4690 |
}
|
|
|
4691 |
|
|
|
4692 |
public void unsetSuccess() {
|
|
|
4693 |
this.success = null;
|
|
|
4694 |
}
|
|
|
4695 |
|
| 3430 |
rajveer |
4696 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2832 |
chandransh |
4697 |
public boolean isSetSuccess() {
|
|
|
4698 |
return this.success != null;
|
|
|
4699 |
}
|
|
|
4700 |
|
|
|
4701 |
public void setSuccessIsSet(boolean value) {
|
|
|
4702 |
if (!value) {
|
|
|
4703 |
this.success = null;
|
|
|
4704 |
}
|
|
|
4705 |
}
|
|
|
4706 |
|
| 4541 |
mandeep.dh |
4707 |
public WarehouseServiceException getWex() {
|
|
|
4708 |
return this.wex;
|
|
|
4709 |
}
|
|
|
4710 |
|
|
|
4711 |
public void setWex(WarehouseServiceException wex) {
|
|
|
4712 |
this.wex = wex;
|
|
|
4713 |
}
|
|
|
4714 |
|
|
|
4715 |
public void unsetWex() {
|
|
|
4716 |
this.wex = null;
|
|
|
4717 |
}
|
|
|
4718 |
|
|
|
4719 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
4720 |
public boolean isSetWex() {
|
|
|
4721 |
return this.wex != null;
|
|
|
4722 |
}
|
|
|
4723 |
|
|
|
4724 |
public void setWexIsSet(boolean value) {
|
|
|
4725 |
if (!value) {
|
|
|
4726 |
this.wex = null;
|
|
|
4727 |
}
|
|
|
4728 |
}
|
|
|
4729 |
|
| 2832 |
chandransh |
4730 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4731 |
switch (field) {
|
|
|
4732 |
case SUCCESS:
|
|
|
4733 |
if (value == null) {
|
|
|
4734 |
unsetSuccess();
|
|
|
4735 |
} else {
|
| 4496 |
mandeep.dh |
4736 |
setSuccess((InventoryItem)value);
|
| 2832 |
chandransh |
4737 |
}
|
|
|
4738 |
break;
|
|
|
4739 |
|
| 4541 |
mandeep.dh |
4740 |
case WEX:
|
|
|
4741 |
if (value == null) {
|
|
|
4742 |
unsetWex();
|
|
|
4743 |
} else {
|
|
|
4744 |
setWex((WarehouseServiceException)value);
|
|
|
4745 |
}
|
|
|
4746 |
break;
|
|
|
4747 |
|
| 2832 |
chandransh |
4748 |
}
|
|
|
4749 |
}
|
|
|
4750 |
|
|
|
4751 |
public Object getFieldValue(_Fields field) {
|
|
|
4752 |
switch (field) {
|
|
|
4753 |
case SUCCESS:
|
|
|
4754 |
return getSuccess();
|
|
|
4755 |
|
| 4541 |
mandeep.dh |
4756 |
case WEX:
|
|
|
4757 |
return getWex();
|
|
|
4758 |
|
| 2832 |
chandransh |
4759 |
}
|
|
|
4760 |
throw new IllegalStateException();
|
|
|
4761 |
}
|
|
|
4762 |
|
| 3430 |
rajveer |
4763 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4764 |
public boolean isSet(_Fields field) {
|
|
|
4765 |
if (field == null) {
|
|
|
4766 |
throw new IllegalArgumentException();
|
|
|
4767 |
}
|
| 2832 |
chandransh |
4768 |
|
|
|
4769 |
switch (field) {
|
|
|
4770 |
case SUCCESS:
|
|
|
4771 |
return isSetSuccess();
|
| 4541 |
mandeep.dh |
4772 |
case WEX:
|
|
|
4773 |
return isSetWex();
|
| 2832 |
chandransh |
4774 |
}
|
|
|
4775 |
throw new IllegalStateException();
|
|
|
4776 |
}
|
|
|
4777 |
|
|
|
4778 |
@Override
|
|
|
4779 |
public boolean equals(Object that) {
|
|
|
4780 |
if (that == null)
|
|
|
4781 |
return false;
|
| 4496 |
mandeep.dh |
4782 |
if (that instanceof getInventoryItem_result)
|
|
|
4783 |
return this.equals((getInventoryItem_result)that);
|
| 2832 |
chandransh |
4784 |
return false;
|
|
|
4785 |
}
|
|
|
4786 |
|
| 4496 |
mandeep.dh |
4787 |
public boolean equals(getInventoryItem_result that) {
|
| 2832 |
chandransh |
4788 |
if (that == null)
|
|
|
4789 |
return false;
|
|
|
4790 |
|
|
|
4791 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
4792 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
4793 |
if (this_present_success || that_present_success) {
|
|
|
4794 |
if (!(this_present_success && that_present_success))
|
|
|
4795 |
return false;
|
|
|
4796 |
if (!this.success.equals(that.success))
|
|
|
4797 |
return false;
|
|
|
4798 |
}
|
|
|
4799 |
|
| 4541 |
mandeep.dh |
4800 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
4801 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
4802 |
if (this_present_wex || that_present_wex) {
|
|
|
4803 |
if (!(this_present_wex && that_present_wex))
|
|
|
4804 |
return false;
|
|
|
4805 |
if (!this.wex.equals(that.wex))
|
|
|
4806 |
return false;
|
|
|
4807 |
}
|
|
|
4808 |
|
| 2832 |
chandransh |
4809 |
return true;
|
|
|
4810 |
}
|
|
|
4811 |
|
|
|
4812 |
@Override
|
|
|
4813 |
public int hashCode() {
|
|
|
4814 |
return 0;
|
|
|
4815 |
}
|
|
|
4816 |
|
| 4496 |
mandeep.dh |
4817 |
public int compareTo(getInventoryItem_result other) {
|
| 2832 |
chandransh |
4818 |
if (!getClass().equals(other.getClass())) {
|
|
|
4819 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4820 |
}
|
|
|
4821 |
|
|
|
4822 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
4823 |
getInventoryItem_result typedOther = (getInventoryItem_result)other;
|
| 2832 |
chandransh |
4824 |
|
| 3430 |
rajveer |
4825 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2832 |
chandransh |
4826 |
if (lastComparison != 0) {
|
|
|
4827 |
return lastComparison;
|
|
|
4828 |
}
|
| 3430 |
rajveer |
4829 |
if (isSetSuccess()) {
|
|
|
4830 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
4831 |
if (lastComparison != 0) {
|
|
|
4832 |
return lastComparison;
|
|
|
4833 |
}
|
| 2832 |
chandransh |
4834 |
}
|
| 4541 |
mandeep.dh |
4835 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
4836 |
if (lastComparison != 0) {
|
|
|
4837 |
return lastComparison;
|
|
|
4838 |
}
|
|
|
4839 |
if (isSetWex()) {
|
|
|
4840 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
4841 |
if (lastComparison != 0) {
|
|
|
4842 |
return lastComparison;
|
|
|
4843 |
}
|
|
|
4844 |
}
|
| 2832 |
chandransh |
4845 |
return 0;
|
|
|
4846 |
}
|
|
|
4847 |
|
| 3430 |
rajveer |
4848 |
public _Fields fieldForId(int fieldId) {
|
|
|
4849 |
return _Fields.findByThriftId(fieldId);
|
|
|
4850 |
}
|
|
|
4851 |
|
|
|
4852 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4853 |
org.apache.thrift.protocol.TField field;
|
| 2832 |
chandransh |
4854 |
iprot.readStructBegin();
|
|
|
4855 |
while (true)
|
|
|
4856 |
{
|
|
|
4857 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4858 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2832 |
chandransh |
4859 |
break;
|
|
|
4860 |
}
|
| 3430 |
rajveer |
4861 |
switch (field.id) {
|
|
|
4862 |
case 0: // SUCCESS
|
|
|
4863 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
| 4496 |
mandeep.dh |
4864 |
this.success = new InventoryItem();
|
| 3430 |
rajveer |
4865 |
this.success.read(iprot);
|
|
|
4866 |
} else {
|
|
|
4867 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4868 |
}
|
|
|
4869 |
break;
|
| 4541 |
mandeep.dh |
4870 |
case 1: // WEX
|
|
|
4871 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4872 |
this.wex = new WarehouseServiceException();
|
|
|
4873 |
this.wex.read(iprot);
|
|
|
4874 |
} else {
|
|
|
4875 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4876 |
}
|
|
|
4877 |
break;
|
| 3430 |
rajveer |
4878 |
default:
|
|
|
4879 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2832 |
chandransh |
4880 |
}
|
| 3430 |
rajveer |
4881 |
iprot.readFieldEnd();
|
| 2832 |
chandransh |
4882 |
}
|
|
|
4883 |
iprot.readStructEnd();
|
|
|
4884 |
validate();
|
|
|
4885 |
}
|
|
|
4886 |
|
| 3430 |
rajveer |
4887 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
4888 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4889 |
|
|
|
4890 |
if (this.isSetSuccess()) {
|
|
|
4891 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
4892 |
this.success.write(oprot);
|
|
|
4893 |
oprot.writeFieldEnd();
|
| 4541 |
mandeep.dh |
4894 |
} else if (this.isSetWex()) {
|
|
|
4895 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
4896 |
this.wex.write(oprot);
|
|
|
4897 |
oprot.writeFieldEnd();
|
| 2832 |
chandransh |
4898 |
}
|
|
|
4899 |
oprot.writeFieldStop();
|
|
|
4900 |
oprot.writeStructEnd();
|
|
|
4901 |
}
|
|
|
4902 |
|
|
|
4903 |
@Override
|
|
|
4904 |
public String toString() {
|
| 4496 |
mandeep.dh |
4905 |
StringBuilder sb = new StringBuilder("getInventoryItem_result(");
|
| 2832 |
chandransh |
4906 |
boolean first = true;
|
|
|
4907 |
|
|
|
4908 |
sb.append("success:");
|
|
|
4909 |
if (this.success == null) {
|
|
|
4910 |
sb.append("null");
|
|
|
4911 |
} else {
|
|
|
4912 |
sb.append(this.success);
|
|
|
4913 |
}
|
|
|
4914 |
first = false;
|
| 4541 |
mandeep.dh |
4915 |
if (!first) sb.append(", ");
|
|
|
4916 |
sb.append("wex:");
|
|
|
4917 |
if (this.wex == null) {
|
|
|
4918 |
sb.append("null");
|
|
|
4919 |
} else {
|
|
|
4920 |
sb.append(this.wex);
|
|
|
4921 |
}
|
|
|
4922 |
first = false;
|
| 2832 |
chandransh |
4923 |
sb.append(")");
|
|
|
4924 |
return sb.toString();
|
|
|
4925 |
}
|
|
|
4926 |
|
| 3430 |
rajveer |
4927 |
public void validate() throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
4928 |
// check for required fields
|
|
|
4929 |
}
|
|
|
4930 |
|
| 3430 |
rajveer |
4931 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4932 |
try {
|
|
|
4933 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4934 |
} catch (org.apache.thrift.TException te) {
|
|
|
4935 |
throw new java.io.IOException(te);
|
|
|
4936 |
}
|
|
|
4937 |
}
|
|
|
4938 |
|
|
|
4939 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4940 |
try {
|
|
|
4941 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4942 |
} catch (org.apache.thrift.TException te) {
|
|
|
4943 |
throw new java.io.IOException(te);
|
|
|
4944 |
}
|
|
|
4945 |
}
|
|
|
4946 |
|
| 2832 |
chandransh |
4947 |
}
|
|
|
4948 |
|
| 4496 |
mandeep.dh |
4949 |
public static class getNonSeralizedInventoryItems_args implements org.apache.thrift.TBase<getNonSeralizedInventoryItems_args, getNonSeralizedInventoryItems_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4950 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItems_args");
|
| 2820 |
chandransh |
4951 |
|
| 4496 |
mandeep.dh |
4952 |
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);
|
|
|
4953 |
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)2);
|
|
|
4954 |
private static final org.apache.thrift.protocol.TField SUPPLIER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierId", org.apache.thrift.protocol.TType.I64, (short)3);
|
| 2820 |
chandransh |
4955 |
|
| 4496 |
mandeep.dh |
4956 |
private long itemId; // required
|
|
|
4957 |
private long quantity; // required
|
|
|
4958 |
private long supplierId; // required
|
| 2820 |
chandransh |
4959 |
|
|
|
4960 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4961 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
4962 |
ITEM_ID((short)1, "itemId"),
|
|
|
4963 |
QUANTITY((short)2, "quantity"),
|
|
|
4964 |
SUPPLIER_ID((short)3, "supplierId");
|
| 2820 |
chandransh |
4965 |
|
|
|
4966 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4967 |
|
|
|
4968 |
static {
|
|
|
4969 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4970 |
byName.put(field.getFieldName(), field);
|
|
|
4971 |
}
|
|
|
4972 |
}
|
|
|
4973 |
|
|
|
4974 |
/**
|
|
|
4975 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4976 |
*/
|
|
|
4977 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4978 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
4979 |
case 1: // ITEM_ID
|
|
|
4980 |
return ITEM_ID;
|
|
|
4981 |
case 2: // QUANTITY
|
|
|
4982 |
return QUANTITY;
|
|
|
4983 |
case 3: // SUPPLIER_ID
|
|
|
4984 |
return SUPPLIER_ID;
|
| 3430 |
rajveer |
4985 |
default:
|
|
|
4986 |
return null;
|
|
|
4987 |
}
|
| 2820 |
chandransh |
4988 |
}
|
|
|
4989 |
|
|
|
4990 |
/**
|
|
|
4991 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4992 |
* if it is not found.
|
|
|
4993 |
*/
|
|
|
4994 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4995 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4996 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4997 |
return fields;
|
|
|
4998 |
}
|
|
|
4999 |
|
|
|
5000 |
/**
|
|
|
5001 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5002 |
*/
|
|
|
5003 |
public static _Fields findByName(String name) {
|
|
|
5004 |
return byName.get(name);
|
|
|
5005 |
}
|
|
|
5006 |
|
|
|
5007 |
private final short _thriftId;
|
|
|
5008 |
private final String _fieldName;
|
|
|
5009 |
|
|
|
5010 |
_Fields(short thriftId, String fieldName) {
|
|
|
5011 |
_thriftId = thriftId;
|
|
|
5012 |
_fieldName = fieldName;
|
|
|
5013 |
}
|
|
|
5014 |
|
|
|
5015 |
public short getThriftFieldId() {
|
|
|
5016 |
return _thriftId;
|
|
|
5017 |
}
|
|
|
5018 |
|
|
|
5019 |
public String getFieldName() {
|
|
|
5020 |
return _fieldName;
|
|
|
5021 |
}
|
|
|
5022 |
}
|
|
|
5023 |
|
|
|
5024 |
// isset id assignments
|
| 4496 |
mandeep.dh |
5025 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
5026 |
private static final int __QUANTITY_ISSET_ID = 1;
|
|
|
5027 |
private static final int __SUPPLIERID_ISSET_ID = 2;
|
|
|
5028 |
private BitSet __isset_bit_vector = new BitSet(3);
|
| 2820 |
chandransh |
5029 |
|
| 3430 |
rajveer |
5030 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
5031 |
static {
|
| 3430 |
rajveer |
5032 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
5033 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 3430 |
rajveer |
5034 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 4496 |
mandeep.dh |
5035 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5036 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5037 |
tmpMap.put(_Fields.SUPPLIER_ID, new org.apache.thrift.meta_data.FieldMetaData("supplierId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5038 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
5039 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
5040 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItems_args.class, metaDataMap);
|
| 2820 |
chandransh |
5041 |
}
|
|
|
5042 |
|
| 4496 |
mandeep.dh |
5043 |
public getNonSeralizedInventoryItems_args() {
|
| 2820 |
chandransh |
5044 |
}
|
|
|
5045 |
|
| 4496 |
mandeep.dh |
5046 |
public getNonSeralizedInventoryItems_args(
|
|
|
5047 |
long itemId,
|
|
|
5048 |
long quantity,
|
|
|
5049 |
long supplierId)
|
| 2820 |
chandransh |
5050 |
{
|
|
|
5051 |
this();
|
| 4496 |
mandeep.dh |
5052 |
this.itemId = itemId;
|
|
|
5053 |
setItemIdIsSet(true);
|
|
|
5054 |
this.quantity = quantity;
|
|
|
5055 |
setQuantityIsSet(true);
|
|
|
5056 |
this.supplierId = supplierId;
|
|
|
5057 |
setSupplierIdIsSet(true);
|
| 2820 |
chandransh |
5058 |
}
|
|
|
5059 |
|
|
|
5060 |
/**
|
|
|
5061 |
* Performs a deep copy on <i>other</i>.
|
|
|
5062 |
*/
|
| 4496 |
mandeep.dh |
5063 |
public getNonSeralizedInventoryItems_args(getNonSeralizedInventoryItems_args other) {
|
| 2820 |
chandransh |
5064 |
__isset_bit_vector.clear();
|
|
|
5065 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 4496 |
mandeep.dh |
5066 |
this.itemId = other.itemId;
|
|
|
5067 |
this.quantity = other.quantity;
|
|
|
5068 |
this.supplierId = other.supplierId;
|
| 2820 |
chandransh |
5069 |
}
|
|
|
5070 |
|
| 4496 |
mandeep.dh |
5071 |
public getNonSeralizedInventoryItems_args deepCopy() {
|
|
|
5072 |
return new getNonSeralizedInventoryItems_args(this);
|
| 2820 |
chandransh |
5073 |
}
|
|
|
5074 |
|
| 3430 |
rajveer |
5075 |
@Override
|
|
|
5076 |
public void clear() {
|
| 4496 |
mandeep.dh |
5077 |
setItemIdIsSet(false);
|
|
|
5078 |
this.itemId = 0;
|
|
|
5079 |
setQuantityIsSet(false);
|
|
|
5080 |
this.quantity = 0;
|
|
|
5081 |
setSupplierIdIsSet(false);
|
|
|
5082 |
this.supplierId = 0;
|
| 2820 |
chandransh |
5083 |
}
|
|
|
5084 |
|
| 4496 |
mandeep.dh |
5085 |
public long getItemId() {
|
|
|
5086 |
return this.itemId;
|
| 2820 |
chandransh |
5087 |
}
|
|
|
5088 |
|
| 4496 |
mandeep.dh |
5089 |
public void setItemId(long itemId) {
|
|
|
5090 |
this.itemId = itemId;
|
|
|
5091 |
setItemIdIsSet(true);
|
| 2820 |
chandransh |
5092 |
}
|
|
|
5093 |
|
| 4496 |
mandeep.dh |
5094 |
public void unsetItemId() {
|
|
|
5095 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
| 2820 |
chandransh |
5096 |
}
|
|
|
5097 |
|
| 4496 |
mandeep.dh |
5098 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
5099 |
public boolean isSetItemId() {
|
|
|
5100 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
| 2820 |
chandransh |
5101 |
}
|
|
|
5102 |
|
| 4496 |
mandeep.dh |
5103 |
public void setItemIdIsSet(boolean value) {
|
|
|
5104 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
| 2820 |
chandransh |
5105 |
}
|
|
|
5106 |
|
| 4496 |
mandeep.dh |
5107 |
public long getQuantity() {
|
|
|
5108 |
return this.quantity;
|
| 2820 |
chandransh |
5109 |
}
|
|
|
5110 |
|
| 4496 |
mandeep.dh |
5111 |
public void setQuantity(long quantity) {
|
|
|
5112 |
this.quantity = quantity;
|
|
|
5113 |
setQuantityIsSet(true);
|
| 2820 |
chandransh |
5114 |
}
|
|
|
5115 |
|
| 4496 |
mandeep.dh |
5116 |
public void unsetQuantity() {
|
|
|
5117 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
| 2820 |
chandransh |
5118 |
}
|
|
|
5119 |
|
| 4496 |
mandeep.dh |
5120 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
5121 |
public boolean isSetQuantity() {
|
|
|
5122 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
| 2820 |
chandransh |
5123 |
}
|
|
|
5124 |
|
| 4496 |
mandeep.dh |
5125 |
public void setQuantityIsSet(boolean value) {
|
|
|
5126 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
| 2820 |
chandransh |
5127 |
}
|
|
|
5128 |
|
| 4496 |
mandeep.dh |
5129 |
public long getSupplierId() {
|
|
|
5130 |
return this.supplierId;
|
| 2820 |
chandransh |
5131 |
}
|
|
|
5132 |
|
| 4496 |
mandeep.dh |
5133 |
public void setSupplierId(long supplierId) {
|
|
|
5134 |
this.supplierId = supplierId;
|
|
|
5135 |
setSupplierIdIsSet(true);
|
| 2820 |
chandransh |
5136 |
}
|
|
|
5137 |
|
| 4496 |
mandeep.dh |
5138 |
public void unsetSupplierId() {
|
|
|
5139 |
__isset_bit_vector.clear(__SUPPLIERID_ISSET_ID);
|
| 2820 |
chandransh |
5140 |
}
|
|
|
5141 |
|
| 4496 |
mandeep.dh |
5142 |
/** Returns true if field supplierId is set (has been assigned a value) and false otherwise */
|
|
|
5143 |
public boolean isSetSupplierId() {
|
|
|
5144 |
return __isset_bit_vector.get(__SUPPLIERID_ISSET_ID);
|
| 2820 |
chandransh |
5145 |
}
|
|
|
5146 |
|
| 4496 |
mandeep.dh |
5147 |
public void setSupplierIdIsSet(boolean value) {
|
|
|
5148 |
__isset_bit_vector.set(__SUPPLIERID_ISSET_ID, value);
|
| 2820 |
chandransh |
5149 |
}
|
|
|
5150 |
|
|
|
5151 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5152 |
switch (field) {
|
| 4496 |
mandeep.dh |
5153 |
case ITEM_ID:
|
| 2820 |
chandransh |
5154 |
if (value == null) {
|
| 4496 |
mandeep.dh |
5155 |
unsetItemId();
|
| 2820 |
chandransh |
5156 |
} else {
|
| 4496 |
mandeep.dh |
5157 |
setItemId((Long)value);
|
| 2820 |
chandransh |
5158 |
}
|
|
|
5159 |
break;
|
|
|
5160 |
|
| 4496 |
mandeep.dh |
5161 |
case QUANTITY:
|
| 2820 |
chandransh |
5162 |
if (value == null) {
|
| 4496 |
mandeep.dh |
5163 |
unsetQuantity();
|
| 2820 |
chandransh |
5164 |
} else {
|
| 4496 |
mandeep.dh |
5165 |
setQuantity((Long)value);
|
| 2820 |
chandransh |
5166 |
}
|
|
|
5167 |
break;
|
|
|
5168 |
|
| 4496 |
mandeep.dh |
5169 |
case SUPPLIER_ID:
|
| 2820 |
chandransh |
5170 |
if (value == null) {
|
| 4496 |
mandeep.dh |
5171 |
unsetSupplierId();
|
| 2820 |
chandransh |
5172 |
} else {
|
| 4496 |
mandeep.dh |
5173 |
setSupplierId((Long)value);
|
| 2820 |
chandransh |
5174 |
}
|
|
|
5175 |
break;
|
|
|
5176 |
|
|
|
5177 |
}
|
|
|
5178 |
}
|
|
|
5179 |
|
|
|
5180 |
public Object getFieldValue(_Fields field) {
|
|
|
5181 |
switch (field) {
|
| 4496 |
mandeep.dh |
5182 |
case ITEM_ID:
|
|
|
5183 |
return Long.valueOf(getItemId());
|
| 2820 |
chandransh |
5184 |
|
| 4496 |
mandeep.dh |
5185 |
case QUANTITY:
|
|
|
5186 |
return Long.valueOf(getQuantity());
|
| 2820 |
chandransh |
5187 |
|
| 4496 |
mandeep.dh |
5188 |
case SUPPLIER_ID:
|
|
|
5189 |
return Long.valueOf(getSupplierId());
|
| 2820 |
chandransh |
5190 |
|
|
|
5191 |
}
|
|
|
5192 |
throw new IllegalStateException();
|
|
|
5193 |
}
|
|
|
5194 |
|
| 3430 |
rajveer |
5195 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5196 |
public boolean isSet(_Fields field) {
|
|
|
5197 |
if (field == null) {
|
|
|
5198 |
throw new IllegalArgumentException();
|
|
|
5199 |
}
|
| 2820 |
chandransh |
5200 |
|
|
|
5201 |
switch (field) {
|
| 4496 |
mandeep.dh |
5202 |
case ITEM_ID:
|
|
|
5203 |
return isSetItemId();
|
|
|
5204 |
case QUANTITY:
|
|
|
5205 |
return isSetQuantity();
|
|
|
5206 |
case SUPPLIER_ID:
|
|
|
5207 |
return isSetSupplierId();
|
| 2820 |
chandransh |
5208 |
}
|
|
|
5209 |
throw new IllegalStateException();
|
|
|
5210 |
}
|
|
|
5211 |
|
|
|
5212 |
@Override
|
|
|
5213 |
public boolean equals(Object that) {
|
|
|
5214 |
if (that == null)
|
|
|
5215 |
return false;
|
| 4496 |
mandeep.dh |
5216 |
if (that instanceof getNonSeralizedInventoryItems_args)
|
|
|
5217 |
return this.equals((getNonSeralizedInventoryItems_args)that);
|
| 2820 |
chandransh |
5218 |
return false;
|
|
|
5219 |
}
|
|
|
5220 |
|
| 4496 |
mandeep.dh |
5221 |
public boolean equals(getNonSeralizedInventoryItems_args that) {
|
| 2820 |
chandransh |
5222 |
if (that == null)
|
|
|
5223 |
return false;
|
|
|
5224 |
|
| 4496 |
mandeep.dh |
5225 |
boolean this_present_itemId = true;
|
|
|
5226 |
boolean that_present_itemId = true;
|
|
|
5227 |
if (this_present_itemId || that_present_itemId) {
|
|
|
5228 |
if (!(this_present_itemId && that_present_itemId))
|
| 2820 |
chandransh |
5229 |
return false;
|
| 4496 |
mandeep.dh |
5230 |
if (this.itemId != that.itemId)
|
| 2820 |
chandransh |
5231 |
return false;
|
|
|
5232 |
}
|
|
|
5233 |
|
| 4496 |
mandeep.dh |
5234 |
boolean this_present_quantity = true;
|
|
|
5235 |
boolean that_present_quantity = true;
|
|
|
5236 |
if (this_present_quantity || that_present_quantity) {
|
|
|
5237 |
if (!(this_present_quantity && that_present_quantity))
|
| 2820 |
chandransh |
5238 |
return false;
|
| 4496 |
mandeep.dh |
5239 |
if (this.quantity != that.quantity)
|
| 2820 |
chandransh |
5240 |
return false;
|
|
|
5241 |
}
|
|
|
5242 |
|
| 4496 |
mandeep.dh |
5243 |
boolean this_present_supplierId = true;
|
|
|
5244 |
boolean that_present_supplierId = true;
|
|
|
5245 |
if (this_present_supplierId || that_present_supplierId) {
|
|
|
5246 |
if (!(this_present_supplierId && that_present_supplierId))
|
| 2820 |
chandransh |
5247 |
return false;
|
| 4496 |
mandeep.dh |
5248 |
if (this.supplierId != that.supplierId)
|
| 2820 |
chandransh |
5249 |
return false;
|
|
|
5250 |
}
|
|
|
5251 |
|
|
|
5252 |
return true;
|
|
|
5253 |
}
|
|
|
5254 |
|
|
|
5255 |
@Override
|
|
|
5256 |
public int hashCode() {
|
|
|
5257 |
return 0;
|
|
|
5258 |
}
|
|
|
5259 |
|
| 4496 |
mandeep.dh |
5260 |
public int compareTo(getNonSeralizedInventoryItems_args other) {
|
| 2820 |
chandransh |
5261 |
if (!getClass().equals(other.getClass())) {
|
|
|
5262 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5263 |
}
|
|
|
5264 |
|
|
|
5265 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
5266 |
getNonSeralizedInventoryItems_args typedOther = (getNonSeralizedInventoryItems_args)other;
|
| 2820 |
chandransh |
5267 |
|
| 4496 |
mandeep.dh |
5268 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
| 2820 |
chandransh |
5269 |
if (lastComparison != 0) {
|
|
|
5270 |
return lastComparison;
|
|
|
5271 |
}
|
| 4496 |
mandeep.dh |
5272 |
if (isSetItemId()) {
|
|
|
5273 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
| 3430 |
rajveer |
5274 |
if (lastComparison != 0) {
|
|
|
5275 |
return lastComparison;
|
|
|
5276 |
}
|
| 2820 |
chandransh |
5277 |
}
|
| 4496 |
mandeep.dh |
5278 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
| 2820 |
chandransh |
5279 |
if (lastComparison != 0) {
|
|
|
5280 |
return lastComparison;
|
|
|
5281 |
}
|
| 4496 |
mandeep.dh |
5282 |
if (isSetQuantity()) {
|
|
|
5283 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
| 3430 |
rajveer |
5284 |
if (lastComparison != 0) {
|
|
|
5285 |
return lastComparison;
|
|
|
5286 |
}
|
| 2820 |
chandransh |
5287 |
}
|
| 4496 |
mandeep.dh |
5288 |
lastComparison = Boolean.valueOf(isSetSupplierId()).compareTo(typedOther.isSetSupplierId());
|
| 2820 |
chandransh |
5289 |
if (lastComparison != 0) {
|
|
|
5290 |
return lastComparison;
|
|
|
5291 |
}
|
| 4496 |
mandeep.dh |
5292 |
if (isSetSupplierId()) {
|
|
|
5293 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supplierId, typedOther.supplierId);
|
| 3430 |
rajveer |
5294 |
if (lastComparison != 0) {
|
|
|
5295 |
return lastComparison;
|
|
|
5296 |
}
|
| 2820 |
chandransh |
5297 |
}
|
|
|
5298 |
return 0;
|
|
|
5299 |
}
|
|
|
5300 |
|
| 3430 |
rajveer |
5301 |
public _Fields fieldForId(int fieldId) {
|
|
|
5302 |
return _Fields.findByThriftId(fieldId);
|
|
|
5303 |
}
|
|
|
5304 |
|
|
|
5305 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5306 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
5307 |
iprot.readStructBegin();
|
|
|
5308 |
while (true)
|
|
|
5309 |
{
|
|
|
5310 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5311 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
5312 |
break;
|
|
|
5313 |
}
|
| 3430 |
rajveer |
5314 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
5315 |
case 1: // ITEM_ID
|
| 3430 |
rajveer |
5316 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 4496 |
mandeep.dh |
5317 |
this.itemId = iprot.readI64();
|
|
|
5318 |
setItemIdIsSet(true);
|
| 3430 |
rajveer |
5319 |
} else {
|
|
|
5320 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5321 |
}
|
|
|
5322 |
break;
|
| 4496 |
mandeep.dh |
5323 |
case 2: // QUANTITY
|
|
|
5324 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5325 |
this.quantity = iprot.readI64();
|
|
|
5326 |
setQuantityIsSet(true);
|
| 3430 |
rajveer |
5327 |
} else {
|
|
|
5328 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5329 |
}
|
|
|
5330 |
break;
|
| 4496 |
mandeep.dh |
5331 |
case 3: // SUPPLIER_ID
|
|
|
5332 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5333 |
this.supplierId = iprot.readI64();
|
|
|
5334 |
setSupplierIdIsSet(true);
|
| 3430 |
rajveer |
5335 |
} else {
|
|
|
5336 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5337 |
}
|
|
|
5338 |
break;
|
|
|
5339 |
default:
|
|
|
5340 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
5341 |
}
|
| 3430 |
rajveer |
5342 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
5343 |
}
|
|
|
5344 |
iprot.readStructEnd();
|
|
|
5345 |
validate();
|
|
|
5346 |
}
|
|
|
5347 |
|
| 3430 |
rajveer |
5348 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5349 |
validate();
|
|
|
5350 |
|
|
|
5351 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4496 |
mandeep.dh |
5352 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
5353 |
oprot.writeI64(this.itemId);
|
| 2820 |
chandransh |
5354 |
oprot.writeFieldEnd();
|
| 4496 |
mandeep.dh |
5355 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
5356 |
oprot.writeI64(this.quantity);
|
| 2820 |
chandransh |
5357 |
oprot.writeFieldEnd();
|
| 4496 |
mandeep.dh |
5358 |
oprot.writeFieldBegin(SUPPLIER_ID_FIELD_DESC);
|
|
|
5359 |
oprot.writeI64(this.supplierId);
|
|
|
5360 |
oprot.writeFieldEnd();
|
| 2820 |
chandransh |
5361 |
oprot.writeFieldStop();
|
|
|
5362 |
oprot.writeStructEnd();
|
|
|
5363 |
}
|
|
|
5364 |
|
|
|
5365 |
@Override
|
|
|
5366 |
public String toString() {
|
| 4496 |
mandeep.dh |
5367 |
StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItems_args(");
|
| 2820 |
chandransh |
5368 |
boolean first = true;
|
|
|
5369 |
|
| 4496 |
mandeep.dh |
5370 |
sb.append("itemId:");
|
|
|
5371 |
sb.append(this.itemId);
|
| 2820 |
chandransh |
5372 |
first = false;
|
|
|
5373 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
5374 |
sb.append("quantity:");
|
|
|
5375 |
sb.append(this.quantity);
|
| 2820 |
chandransh |
5376 |
first = false;
|
|
|
5377 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
5378 |
sb.append("supplierId:");
|
|
|
5379 |
sb.append(this.supplierId);
|
| 2820 |
chandransh |
5380 |
first = false;
|
|
|
5381 |
sb.append(")");
|
|
|
5382 |
return sb.toString();
|
|
|
5383 |
}
|
|
|
5384 |
|
| 3430 |
rajveer |
5385 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5386 |
// check for required fields
|
|
|
5387 |
}
|
|
|
5388 |
|
| 3430 |
rajveer |
5389 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5390 |
try {
|
|
|
5391 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5392 |
} catch (org.apache.thrift.TException te) {
|
|
|
5393 |
throw new java.io.IOException(te);
|
|
|
5394 |
}
|
|
|
5395 |
}
|
|
|
5396 |
|
|
|
5397 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5398 |
try {
|
| 4496 |
mandeep.dh |
5399 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
5400 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
5401 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5402 |
} catch (org.apache.thrift.TException te) {
|
|
|
5403 |
throw new java.io.IOException(te);
|
|
|
5404 |
}
|
|
|
5405 |
}
|
|
|
5406 |
|
| 2820 |
chandransh |
5407 |
}
|
|
|
5408 |
|
| 4496 |
mandeep.dh |
5409 |
public static class getNonSeralizedInventoryItems_result implements org.apache.thrift.TBase<getNonSeralizedInventoryItems_result, getNonSeralizedInventoryItems_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
5410 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItems_result");
|
| 2820 |
chandransh |
5411 |
|
| 4496 |
mandeep.dh |
5412 |
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);
|
| 2820 |
chandransh |
5413 |
|
| 4496 |
mandeep.dh |
5414 |
private List<InventoryItem> success; // required
|
| 2820 |
chandransh |
5415 |
|
|
|
5416 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5417 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
5418 |
SUCCESS((short)0, "success");
|
| 2820 |
chandransh |
5419 |
|
|
|
5420 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5421 |
|
|
|
5422 |
static {
|
|
|
5423 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5424 |
byName.put(field.getFieldName(), field);
|
|
|
5425 |
}
|
|
|
5426 |
}
|
|
|
5427 |
|
|
|
5428 |
/**
|
|
|
5429 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5430 |
*/
|
|
|
5431 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5432 |
switch(fieldId) {
|
|
|
5433 |
case 0: // SUCCESS
|
|
|
5434 |
return SUCCESS;
|
|
|
5435 |
default:
|
|
|
5436 |
return null;
|
|
|
5437 |
}
|
| 2820 |
chandransh |
5438 |
}
|
|
|
5439 |
|
|
|
5440 |
/**
|
|
|
5441 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5442 |
* if it is not found.
|
|
|
5443 |
*/
|
|
|
5444 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5445 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5446 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5447 |
return fields;
|
|
|
5448 |
}
|
|
|
5449 |
|
|
|
5450 |
/**
|
|
|
5451 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5452 |
*/
|
|
|
5453 |
public static _Fields findByName(String name) {
|
|
|
5454 |
return byName.get(name);
|
|
|
5455 |
}
|
|
|
5456 |
|
|
|
5457 |
private final short _thriftId;
|
|
|
5458 |
private final String _fieldName;
|
|
|
5459 |
|
|
|
5460 |
_Fields(short thriftId, String fieldName) {
|
|
|
5461 |
_thriftId = thriftId;
|
|
|
5462 |
_fieldName = fieldName;
|
|
|
5463 |
}
|
|
|
5464 |
|
|
|
5465 |
public short getThriftFieldId() {
|
|
|
5466 |
return _thriftId;
|
|
|
5467 |
}
|
|
|
5468 |
|
|
|
5469 |
public String getFieldName() {
|
|
|
5470 |
return _fieldName;
|
|
|
5471 |
}
|
|
|
5472 |
}
|
|
|
5473 |
|
|
|
5474 |
// isset id assignments
|
|
|
5475 |
|
| 3430 |
rajveer |
5476 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
5477 |
static {
|
| 3430 |
rajveer |
5478 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5479 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
5480 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
5481 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
|
| 3430 |
rajveer |
5482 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
5483 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItems_result.class, metaDataMap);
|
| 2820 |
chandransh |
5484 |
}
|
|
|
5485 |
|
| 4496 |
mandeep.dh |
5486 |
public getNonSeralizedInventoryItems_result() {
|
| 2820 |
chandransh |
5487 |
}
|
|
|
5488 |
|
| 4496 |
mandeep.dh |
5489 |
public getNonSeralizedInventoryItems_result(
|
|
|
5490 |
List<InventoryItem> success)
|
| 2820 |
chandransh |
5491 |
{
|
|
|
5492 |
this();
|
|
|
5493 |
this.success = success;
|
|
|
5494 |
}
|
|
|
5495 |
|
|
|
5496 |
/**
|
|
|
5497 |
* Performs a deep copy on <i>other</i>.
|
|
|
5498 |
*/
|
| 4496 |
mandeep.dh |
5499 |
public getNonSeralizedInventoryItems_result(getNonSeralizedInventoryItems_result other) {
|
|
|
5500 |
if (other.isSetSuccess()) {
|
|
|
5501 |
List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
|
|
|
5502 |
for (InventoryItem other_element : other.success) {
|
|
|
5503 |
__this__success.add(new InventoryItem(other_element));
|
|
|
5504 |
}
|
|
|
5505 |
this.success = __this__success;
|
| 2820 |
chandransh |
5506 |
}
|
|
|
5507 |
}
|
|
|
5508 |
|
| 4496 |
mandeep.dh |
5509 |
public getNonSeralizedInventoryItems_result deepCopy() {
|
|
|
5510 |
return new getNonSeralizedInventoryItems_result(this);
|
| 2820 |
chandransh |
5511 |
}
|
|
|
5512 |
|
| 3430 |
rajveer |
5513 |
@Override
|
|
|
5514 |
public void clear() {
|
| 4496 |
mandeep.dh |
5515 |
this.success = null;
|
| 2820 |
chandransh |
5516 |
}
|
|
|
5517 |
|
| 4496 |
mandeep.dh |
5518 |
public int getSuccessSize() {
|
|
|
5519 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
5520 |
}
|
|
|
5521 |
|
|
|
5522 |
public java.util.Iterator<InventoryItem> getSuccessIterator() {
|
|
|
5523 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
5524 |
}
|
|
|
5525 |
|
|
|
5526 |
public void addToSuccess(InventoryItem elem) {
|
|
|
5527 |
if (this.success == null) {
|
|
|
5528 |
this.success = new ArrayList<InventoryItem>();
|
|
|
5529 |
}
|
|
|
5530 |
this.success.add(elem);
|
|
|
5531 |
}
|
|
|
5532 |
|
|
|
5533 |
public List<InventoryItem> getSuccess() {
|
| 2820 |
chandransh |
5534 |
return this.success;
|
|
|
5535 |
}
|
|
|
5536 |
|
| 4496 |
mandeep.dh |
5537 |
public void setSuccess(List<InventoryItem> success) {
|
| 2820 |
chandransh |
5538 |
this.success = success;
|
|
|
5539 |
}
|
|
|
5540 |
|
|
|
5541 |
public void unsetSuccess() {
|
| 4496 |
mandeep.dh |
5542 |
this.success = null;
|
| 2820 |
chandransh |
5543 |
}
|
|
|
5544 |
|
| 3430 |
rajveer |
5545 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
5546 |
public boolean isSetSuccess() {
|
| 4496 |
mandeep.dh |
5547 |
return this.success != null;
|
| 2820 |
chandransh |
5548 |
}
|
|
|
5549 |
|
|
|
5550 |
public void setSuccessIsSet(boolean value) {
|
| 4496 |
mandeep.dh |
5551 |
if (!value) {
|
|
|
5552 |
this.success = null;
|
|
|
5553 |
}
|
| 2820 |
chandransh |
5554 |
}
|
|
|
5555 |
|
| 4496 |
mandeep.dh |
5556 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5557 |
switch (field) {
|
|
|
5558 |
case SUCCESS:
|
|
|
5559 |
if (value == null) {
|
|
|
5560 |
unsetSuccess();
|
|
|
5561 |
} else {
|
|
|
5562 |
setSuccess((List<InventoryItem>)value);
|
|
|
5563 |
}
|
|
|
5564 |
break;
|
|
|
5565 |
|
|
|
5566 |
}
|
| 2820 |
chandransh |
5567 |
}
|
|
|
5568 |
|
| 4496 |
mandeep.dh |
5569 |
public Object getFieldValue(_Fields field) {
|
|
|
5570 |
switch (field) {
|
|
|
5571 |
case SUCCESS:
|
|
|
5572 |
return getSuccess();
|
|
|
5573 |
|
|
|
5574 |
}
|
|
|
5575 |
throw new IllegalStateException();
|
| 2820 |
chandransh |
5576 |
}
|
|
|
5577 |
|
| 4496 |
mandeep.dh |
5578 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5579 |
public boolean isSet(_Fields field) {
|
|
|
5580 |
if (field == null) {
|
|
|
5581 |
throw new IllegalArgumentException();
|
|
|
5582 |
}
|
|
|
5583 |
|
|
|
5584 |
switch (field) {
|
|
|
5585 |
case SUCCESS:
|
|
|
5586 |
return isSetSuccess();
|
|
|
5587 |
}
|
|
|
5588 |
throw new IllegalStateException();
|
| 2820 |
chandransh |
5589 |
}
|
|
|
5590 |
|
| 4496 |
mandeep.dh |
5591 |
@Override
|
|
|
5592 |
public boolean equals(Object that) {
|
|
|
5593 |
if (that == null)
|
|
|
5594 |
return false;
|
|
|
5595 |
if (that instanceof getNonSeralizedInventoryItems_result)
|
|
|
5596 |
return this.equals((getNonSeralizedInventoryItems_result)that);
|
|
|
5597 |
return false;
|
| 2820 |
chandransh |
5598 |
}
|
|
|
5599 |
|
| 4496 |
mandeep.dh |
5600 |
public boolean equals(getNonSeralizedInventoryItems_result that) {
|
|
|
5601 |
if (that == null)
|
|
|
5602 |
return false;
|
|
|
5603 |
|
|
|
5604 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
5605 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
5606 |
if (this_present_success || that_present_success) {
|
|
|
5607 |
if (!(this_present_success && that_present_success))
|
|
|
5608 |
return false;
|
|
|
5609 |
if (!this.success.equals(that.success))
|
|
|
5610 |
return false;
|
| 2820 |
chandransh |
5611 |
}
|
| 4496 |
mandeep.dh |
5612 |
|
|
|
5613 |
return true;
|
| 2820 |
chandransh |
5614 |
}
|
|
|
5615 |
|
| 4496 |
mandeep.dh |
5616 |
@Override
|
|
|
5617 |
public int hashCode() {
|
|
|
5618 |
return 0;
|
|
|
5619 |
}
|
|
|
5620 |
|
|
|
5621 |
public int compareTo(getNonSeralizedInventoryItems_result other) {
|
|
|
5622 |
if (!getClass().equals(other.getClass())) {
|
|
|
5623 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5624 |
}
|
|
|
5625 |
|
|
|
5626 |
int lastComparison = 0;
|
|
|
5627 |
getNonSeralizedInventoryItems_result typedOther = (getNonSeralizedInventoryItems_result)other;
|
|
|
5628 |
|
|
|
5629 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
5630 |
if (lastComparison != 0) {
|
|
|
5631 |
return lastComparison;
|
|
|
5632 |
}
|
|
|
5633 |
if (isSetSuccess()) {
|
|
|
5634 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
5635 |
if (lastComparison != 0) {
|
|
|
5636 |
return lastComparison;
|
|
|
5637 |
}
|
|
|
5638 |
}
|
|
|
5639 |
return 0;
|
|
|
5640 |
}
|
|
|
5641 |
|
|
|
5642 |
public _Fields fieldForId(int fieldId) {
|
|
|
5643 |
return _Fields.findByThriftId(fieldId);
|
|
|
5644 |
}
|
|
|
5645 |
|
|
|
5646 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5647 |
org.apache.thrift.protocol.TField field;
|
|
|
5648 |
iprot.readStructBegin();
|
|
|
5649 |
while (true)
|
|
|
5650 |
{
|
|
|
5651 |
field = iprot.readFieldBegin();
|
|
|
5652 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
5653 |
break;
|
|
|
5654 |
}
|
|
|
5655 |
switch (field.id) {
|
|
|
5656 |
case 0: // SUCCESS
|
|
|
5657 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
5658 |
{
|
|
|
5659 |
org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
|
|
|
5660 |
this.success = new ArrayList<InventoryItem>(_list0.size);
|
|
|
5661 |
for (int _i1 = 0; _i1 < _list0.size; ++_i1)
|
|
|
5662 |
{
|
|
|
5663 |
InventoryItem _elem2; // required
|
|
|
5664 |
_elem2 = new InventoryItem();
|
|
|
5665 |
_elem2.read(iprot);
|
|
|
5666 |
this.success.add(_elem2);
|
|
|
5667 |
}
|
|
|
5668 |
iprot.readListEnd();
|
|
|
5669 |
}
|
|
|
5670 |
} else {
|
|
|
5671 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5672 |
}
|
|
|
5673 |
break;
|
|
|
5674 |
default:
|
|
|
5675 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5676 |
}
|
|
|
5677 |
iprot.readFieldEnd();
|
|
|
5678 |
}
|
|
|
5679 |
iprot.readStructEnd();
|
|
|
5680 |
validate();
|
|
|
5681 |
}
|
|
|
5682 |
|
|
|
5683 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
5684 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5685 |
|
|
|
5686 |
if (this.isSetSuccess()) {
|
|
|
5687 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
5688 |
{
|
|
|
5689 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
5690 |
for (InventoryItem _iter3 : this.success)
|
|
|
5691 |
{
|
|
|
5692 |
_iter3.write(oprot);
|
|
|
5693 |
}
|
|
|
5694 |
oprot.writeListEnd();
|
|
|
5695 |
}
|
|
|
5696 |
oprot.writeFieldEnd();
|
|
|
5697 |
}
|
|
|
5698 |
oprot.writeFieldStop();
|
|
|
5699 |
oprot.writeStructEnd();
|
|
|
5700 |
}
|
|
|
5701 |
|
|
|
5702 |
@Override
|
|
|
5703 |
public String toString() {
|
|
|
5704 |
StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItems_result(");
|
|
|
5705 |
boolean first = true;
|
|
|
5706 |
|
|
|
5707 |
sb.append("success:");
|
|
|
5708 |
if (this.success == null) {
|
|
|
5709 |
sb.append("null");
|
|
|
5710 |
} else {
|
|
|
5711 |
sb.append(this.success);
|
|
|
5712 |
}
|
|
|
5713 |
first = false;
|
|
|
5714 |
sb.append(")");
|
|
|
5715 |
return sb.toString();
|
|
|
5716 |
}
|
|
|
5717 |
|
|
|
5718 |
public void validate() throws org.apache.thrift.TException {
|
|
|
5719 |
// check for required fields
|
|
|
5720 |
}
|
|
|
5721 |
|
|
|
5722 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5723 |
try {
|
|
|
5724 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5725 |
} catch (org.apache.thrift.TException te) {
|
|
|
5726 |
throw new java.io.IOException(te);
|
|
|
5727 |
}
|
|
|
5728 |
}
|
|
|
5729 |
|
|
|
5730 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5731 |
try {
|
|
|
5732 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5733 |
} catch (org.apache.thrift.TException te) {
|
|
|
5734 |
throw new java.io.IOException(te);
|
|
|
5735 |
}
|
|
|
5736 |
}
|
|
|
5737 |
|
|
|
5738 |
}
|
|
|
5739 |
|
|
|
5740 |
public static class getInventoryItems_args implements org.apache.thrift.TBase<getInventoryItems_args, getInventoryItems_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
5741 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItems_args");
|
|
|
5742 |
|
|
|
5743 |
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);
|
|
|
5744 |
|
|
|
5745 |
private long itemId; // required
|
|
|
5746 |
|
|
|
5747 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
5748 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
5749 |
ITEM_ID((short)1, "itemId");
|
|
|
5750 |
|
|
|
5751 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5752 |
|
|
|
5753 |
static {
|
|
|
5754 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5755 |
byName.put(field.getFieldName(), field);
|
|
|
5756 |
}
|
|
|
5757 |
}
|
|
|
5758 |
|
|
|
5759 |
/**
|
|
|
5760 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5761 |
*/
|
|
|
5762 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
5763 |
switch(fieldId) {
|
|
|
5764 |
case 1: // ITEM_ID
|
|
|
5765 |
return ITEM_ID;
|
|
|
5766 |
default:
|
|
|
5767 |
return null;
|
|
|
5768 |
}
|
|
|
5769 |
}
|
|
|
5770 |
|
|
|
5771 |
/**
|
|
|
5772 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5773 |
* if it is not found.
|
|
|
5774 |
*/
|
|
|
5775 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5776 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5777 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5778 |
return fields;
|
|
|
5779 |
}
|
|
|
5780 |
|
|
|
5781 |
/**
|
|
|
5782 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5783 |
*/
|
|
|
5784 |
public static _Fields findByName(String name) {
|
|
|
5785 |
return byName.get(name);
|
|
|
5786 |
}
|
|
|
5787 |
|
|
|
5788 |
private final short _thriftId;
|
|
|
5789 |
private final String _fieldName;
|
|
|
5790 |
|
|
|
5791 |
_Fields(short thriftId, String fieldName) {
|
|
|
5792 |
_thriftId = thriftId;
|
|
|
5793 |
_fieldName = fieldName;
|
|
|
5794 |
}
|
|
|
5795 |
|
|
|
5796 |
public short getThriftFieldId() {
|
|
|
5797 |
return _thriftId;
|
|
|
5798 |
}
|
|
|
5799 |
|
|
|
5800 |
public String getFieldName() {
|
|
|
5801 |
return _fieldName;
|
|
|
5802 |
}
|
|
|
5803 |
}
|
|
|
5804 |
|
|
|
5805 |
// isset id assignments
|
|
|
5806 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
5807 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
5808 |
|
|
|
5809 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
5810 |
static {
|
|
|
5811 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5812 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5813 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5814 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5815 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItems_args.class, metaDataMap);
|
|
|
5816 |
}
|
|
|
5817 |
|
|
|
5818 |
public getInventoryItems_args() {
|
|
|
5819 |
}
|
|
|
5820 |
|
|
|
5821 |
public getInventoryItems_args(
|
|
|
5822 |
long itemId)
|
|
|
5823 |
{
|
|
|
5824 |
this();
|
|
|
5825 |
this.itemId = itemId;
|
|
|
5826 |
setItemIdIsSet(true);
|
|
|
5827 |
}
|
|
|
5828 |
|
|
|
5829 |
/**
|
|
|
5830 |
* Performs a deep copy on <i>other</i>.
|
|
|
5831 |
*/
|
|
|
5832 |
public getInventoryItems_args(getInventoryItems_args other) {
|
|
|
5833 |
__isset_bit_vector.clear();
|
|
|
5834 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
5835 |
this.itemId = other.itemId;
|
|
|
5836 |
}
|
|
|
5837 |
|
|
|
5838 |
public getInventoryItems_args deepCopy() {
|
|
|
5839 |
return new getInventoryItems_args(this);
|
|
|
5840 |
}
|
|
|
5841 |
|
|
|
5842 |
@Override
|
|
|
5843 |
public void clear() {
|
|
|
5844 |
setItemIdIsSet(false);
|
|
|
5845 |
this.itemId = 0;
|
|
|
5846 |
}
|
|
|
5847 |
|
|
|
5848 |
public long getItemId() {
|
|
|
5849 |
return this.itemId;
|
|
|
5850 |
}
|
|
|
5851 |
|
|
|
5852 |
public void setItemId(long itemId) {
|
|
|
5853 |
this.itemId = itemId;
|
|
|
5854 |
setItemIdIsSet(true);
|
|
|
5855 |
}
|
|
|
5856 |
|
|
|
5857 |
public void unsetItemId() {
|
|
|
5858 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
5859 |
}
|
|
|
5860 |
|
|
|
5861 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
5862 |
public boolean isSetItemId() {
|
|
|
5863 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
5864 |
}
|
|
|
5865 |
|
|
|
5866 |
public void setItemIdIsSet(boolean value) {
|
|
|
5867 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
5868 |
}
|
|
|
5869 |
|
| 2820 |
chandransh |
5870 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5871 |
switch (field) {
|
| 4496 |
mandeep.dh |
5872 |
case ITEM_ID:
|
| 2820 |
chandransh |
5873 |
if (value == null) {
|
| 4496 |
mandeep.dh |
5874 |
unsetItemId();
|
| 2820 |
chandransh |
5875 |
} else {
|
| 4496 |
mandeep.dh |
5876 |
setItemId((Long)value);
|
| 2820 |
chandransh |
5877 |
}
|
|
|
5878 |
break;
|
|
|
5879 |
|
| 4496 |
mandeep.dh |
5880 |
}
|
|
|
5881 |
}
|
|
|
5882 |
|
|
|
5883 |
public Object getFieldValue(_Fields field) {
|
|
|
5884 |
switch (field) {
|
|
|
5885 |
case ITEM_ID:
|
|
|
5886 |
return Long.valueOf(getItemId());
|
|
|
5887 |
|
|
|
5888 |
}
|
|
|
5889 |
throw new IllegalStateException();
|
|
|
5890 |
}
|
|
|
5891 |
|
|
|
5892 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5893 |
public boolean isSet(_Fields field) {
|
|
|
5894 |
if (field == null) {
|
|
|
5895 |
throw new IllegalArgumentException();
|
|
|
5896 |
}
|
|
|
5897 |
|
|
|
5898 |
switch (field) {
|
|
|
5899 |
case ITEM_ID:
|
|
|
5900 |
return isSetItemId();
|
|
|
5901 |
}
|
|
|
5902 |
throw new IllegalStateException();
|
|
|
5903 |
}
|
|
|
5904 |
|
|
|
5905 |
@Override
|
|
|
5906 |
public boolean equals(Object that) {
|
|
|
5907 |
if (that == null)
|
|
|
5908 |
return false;
|
|
|
5909 |
if (that instanceof getInventoryItems_args)
|
|
|
5910 |
return this.equals((getInventoryItems_args)that);
|
|
|
5911 |
return false;
|
|
|
5912 |
}
|
|
|
5913 |
|
|
|
5914 |
public boolean equals(getInventoryItems_args that) {
|
|
|
5915 |
if (that == null)
|
|
|
5916 |
return false;
|
|
|
5917 |
|
|
|
5918 |
boolean this_present_itemId = true;
|
|
|
5919 |
boolean that_present_itemId = true;
|
|
|
5920 |
if (this_present_itemId || that_present_itemId) {
|
|
|
5921 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
5922 |
return false;
|
|
|
5923 |
if (this.itemId != that.itemId)
|
|
|
5924 |
return false;
|
|
|
5925 |
}
|
|
|
5926 |
|
|
|
5927 |
return true;
|
|
|
5928 |
}
|
|
|
5929 |
|
|
|
5930 |
@Override
|
|
|
5931 |
public int hashCode() {
|
|
|
5932 |
return 0;
|
|
|
5933 |
}
|
|
|
5934 |
|
|
|
5935 |
public int compareTo(getInventoryItems_args other) {
|
|
|
5936 |
if (!getClass().equals(other.getClass())) {
|
|
|
5937 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5938 |
}
|
|
|
5939 |
|
|
|
5940 |
int lastComparison = 0;
|
|
|
5941 |
getInventoryItems_args typedOther = (getInventoryItems_args)other;
|
|
|
5942 |
|
|
|
5943 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
5944 |
if (lastComparison != 0) {
|
|
|
5945 |
return lastComparison;
|
|
|
5946 |
}
|
|
|
5947 |
if (isSetItemId()) {
|
|
|
5948 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
5949 |
if (lastComparison != 0) {
|
|
|
5950 |
return lastComparison;
|
|
|
5951 |
}
|
|
|
5952 |
}
|
|
|
5953 |
return 0;
|
|
|
5954 |
}
|
|
|
5955 |
|
|
|
5956 |
public _Fields fieldForId(int fieldId) {
|
|
|
5957 |
return _Fields.findByThriftId(fieldId);
|
|
|
5958 |
}
|
|
|
5959 |
|
|
|
5960 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5961 |
org.apache.thrift.protocol.TField field;
|
|
|
5962 |
iprot.readStructBegin();
|
|
|
5963 |
while (true)
|
|
|
5964 |
{
|
|
|
5965 |
field = iprot.readFieldBegin();
|
|
|
5966 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
5967 |
break;
|
|
|
5968 |
}
|
|
|
5969 |
switch (field.id) {
|
|
|
5970 |
case 1: // ITEM_ID
|
|
|
5971 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5972 |
this.itemId = iprot.readI64();
|
|
|
5973 |
setItemIdIsSet(true);
|
|
|
5974 |
} else {
|
|
|
5975 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5976 |
}
|
|
|
5977 |
break;
|
|
|
5978 |
default:
|
|
|
5979 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5980 |
}
|
|
|
5981 |
iprot.readFieldEnd();
|
|
|
5982 |
}
|
|
|
5983 |
iprot.readStructEnd();
|
|
|
5984 |
validate();
|
|
|
5985 |
}
|
|
|
5986 |
|
|
|
5987 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
5988 |
validate();
|
|
|
5989 |
|
|
|
5990 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5991 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
5992 |
oprot.writeI64(this.itemId);
|
|
|
5993 |
oprot.writeFieldEnd();
|
|
|
5994 |
oprot.writeFieldStop();
|
|
|
5995 |
oprot.writeStructEnd();
|
|
|
5996 |
}
|
|
|
5997 |
|
|
|
5998 |
@Override
|
|
|
5999 |
public String toString() {
|
|
|
6000 |
StringBuilder sb = new StringBuilder("getInventoryItems_args(");
|
|
|
6001 |
boolean first = true;
|
|
|
6002 |
|
|
|
6003 |
sb.append("itemId:");
|
|
|
6004 |
sb.append(this.itemId);
|
|
|
6005 |
first = false;
|
|
|
6006 |
sb.append(")");
|
|
|
6007 |
return sb.toString();
|
|
|
6008 |
}
|
|
|
6009 |
|
|
|
6010 |
public void validate() throws org.apache.thrift.TException {
|
|
|
6011 |
// check for required fields
|
|
|
6012 |
}
|
|
|
6013 |
|
|
|
6014 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6015 |
try {
|
|
|
6016 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6017 |
} catch (org.apache.thrift.TException te) {
|
|
|
6018 |
throw new java.io.IOException(te);
|
|
|
6019 |
}
|
|
|
6020 |
}
|
|
|
6021 |
|
|
|
6022 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6023 |
try {
|
|
|
6024 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
6025 |
__isset_bit_vector = new BitSet(1);
|
|
|
6026 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6027 |
} catch (org.apache.thrift.TException te) {
|
|
|
6028 |
throw new java.io.IOException(te);
|
|
|
6029 |
}
|
|
|
6030 |
}
|
|
|
6031 |
|
|
|
6032 |
}
|
|
|
6033 |
|
|
|
6034 |
public static class getInventoryItems_result implements org.apache.thrift.TBase<getInventoryItems_result, getInventoryItems_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6035 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItems_result");
|
|
|
6036 |
|
|
|
6037 |
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);
|
|
|
6038 |
|
|
|
6039 |
private List<InventoryItem> success; // required
|
|
|
6040 |
|
|
|
6041 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6042 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
6043 |
SUCCESS((short)0, "success");
|
|
|
6044 |
|
|
|
6045 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6046 |
|
|
|
6047 |
static {
|
|
|
6048 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6049 |
byName.put(field.getFieldName(), field);
|
|
|
6050 |
}
|
|
|
6051 |
}
|
|
|
6052 |
|
|
|
6053 |
/**
|
|
|
6054 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6055 |
*/
|
|
|
6056 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
6057 |
switch(fieldId) {
|
|
|
6058 |
case 0: // SUCCESS
|
|
|
6059 |
return SUCCESS;
|
|
|
6060 |
default:
|
|
|
6061 |
return null;
|
|
|
6062 |
}
|
|
|
6063 |
}
|
|
|
6064 |
|
|
|
6065 |
/**
|
|
|
6066 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6067 |
* if it is not found.
|
|
|
6068 |
*/
|
|
|
6069 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6070 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6071 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6072 |
return fields;
|
|
|
6073 |
}
|
|
|
6074 |
|
|
|
6075 |
/**
|
|
|
6076 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6077 |
*/
|
|
|
6078 |
public static _Fields findByName(String name) {
|
|
|
6079 |
return byName.get(name);
|
|
|
6080 |
}
|
|
|
6081 |
|
|
|
6082 |
private final short _thriftId;
|
|
|
6083 |
private final String _fieldName;
|
|
|
6084 |
|
|
|
6085 |
_Fields(short thriftId, String fieldName) {
|
|
|
6086 |
_thriftId = thriftId;
|
|
|
6087 |
_fieldName = fieldName;
|
|
|
6088 |
}
|
|
|
6089 |
|
|
|
6090 |
public short getThriftFieldId() {
|
|
|
6091 |
return _thriftId;
|
|
|
6092 |
}
|
|
|
6093 |
|
|
|
6094 |
public String getFieldName() {
|
|
|
6095 |
return _fieldName;
|
|
|
6096 |
}
|
|
|
6097 |
}
|
|
|
6098 |
|
|
|
6099 |
// isset id assignments
|
|
|
6100 |
|
|
|
6101 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
6102 |
static {
|
|
|
6103 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6104 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6105 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
6106 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
|
|
|
6107 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6108 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItems_result.class, metaDataMap);
|
|
|
6109 |
}
|
|
|
6110 |
|
|
|
6111 |
public getInventoryItems_result() {
|
|
|
6112 |
}
|
|
|
6113 |
|
|
|
6114 |
public getInventoryItems_result(
|
|
|
6115 |
List<InventoryItem> success)
|
|
|
6116 |
{
|
|
|
6117 |
this();
|
|
|
6118 |
this.success = success;
|
|
|
6119 |
}
|
|
|
6120 |
|
|
|
6121 |
/**
|
|
|
6122 |
* Performs a deep copy on <i>other</i>.
|
|
|
6123 |
*/
|
|
|
6124 |
public getInventoryItems_result(getInventoryItems_result other) {
|
|
|
6125 |
if (other.isSetSuccess()) {
|
|
|
6126 |
List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
|
|
|
6127 |
for (InventoryItem other_element : other.success) {
|
|
|
6128 |
__this__success.add(new InventoryItem(other_element));
|
|
|
6129 |
}
|
|
|
6130 |
this.success = __this__success;
|
|
|
6131 |
}
|
|
|
6132 |
}
|
|
|
6133 |
|
|
|
6134 |
public getInventoryItems_result deepCopy() {
|
|
|
6135 |
return new getInventoryItems_result(this);
|
|
|
6136 |
}
|
|
|
6137 |
|
|
|
6138 |
@Override
|
|
|
6139 |
public void clear() {
|
|
|
6140 |
this.success = null;
|
|
|
6141 |
}
|
|
|
6142 |
|
|
|
6143 |
public int getSuccessSize() {
|
|
|
6144 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
6145 |
}
|
|
|
6146 |
|
|
|
6147 |
public java.util.Iterator<InventoryItem> getSuccessIterator() {
|
|
|
6148 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
6149 |
}
|
|
|
6150 |
|
|
|
6151 |
public void addToSuccess(InventoryItem elem) {
|
|
|
6152 |
if (this.success == null) {
|
|
|
6153 |
this.success = new ArrayList<InventoryItem>();
|
|
|
6154 |
}
|
|
|
6155 |
this.success.add(elem);
|
|
|
6156 |
}
|
|
|
6157 |
|
|
|
6158 |
public List<InventoryItem> getSuccess() {
|
|
|
6159 |
return this.success;
|
|
|
6160 |
}
|
|
|
6161 |
|
|
|
6162 |
public void setSuccess(List<InventoryItem> success) {
|
|
|
6163 |
this.success = success;
|
|
|
6164 |
}
|
|
|
6165 |
|
|
|
6166 |
public void unsetSuccess() {
|
|
|
6167 |
this.success = null;
|
|
|
6168 |
}
|
|
|
6169 |
|
|
|
6170 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
6171 |
public boolean isSetSuccess() {
|
|
|
6172 |
return this.success != null;
|
|
|
6173 |
}
|
|
|
6174 |
|
|
|
6175 |
public void setSuccessIsSet(boolean value) {
|
|
|
6176 |
if (!value) {
|
|
|
6177 |
this.success = null;
|
|
|
6178 |
}
|
|
|
6179 |
}
|
|
|
6180 |
|
|
|
6181 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6182 |
switch (field) {
|
|
|
6183 |
case SUCCESS:
|
| 2820 |
chandransh |
6184 |
if (value == null) {
|
| 4496 |
mandeep.dh |
6185 |
unsetSuccess();
|
| 2820 |
chandransh |
6186 |
} else {
|
| 4496 |
mandeep.dh |
6187 |
setSuccess((List<InventoryItem>)value);
|
| 2820 |
chandransh |
6188 |
}
|
|
|
6189 |
break;
|
|
|
6190 |
|
|
|
6191 |
}
|
|
|
6192 |
}
|
|
|
6193 |
|
|
|
6194 |
public Object getFieldValue(_Fields field) {
|
|
|
6195 |
switch (field) {
|
|
|
6196 |
case SUCCESS:
|
| 4496 |
mandeep.dh |
6197 |
return getSuccess();
|
| 2820 |
chandransh |
6198 |
|
|
|
6199 |
}
|
|
|
6200 |
throw new IllegalStateException();
|
|
|
6201 |
}
|
|
|
6202 |
|
| 3430 |
rajveer |
6203 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6204 |
public boolean isSet(_Fields field) {
|
|
|
6205 |
if (field == null) {
|
|
|
6206 |
throw new IllegalArgumentException();
|
|
|
6207 |
}
|
| 2820 |
chandransh |
6208 |
|
|
|
6209 |
switch (field) {
|
|
|
6210 |
case SUCCESS:
|
|
|
6211 |
return isSetSuccess();
|
|
|
6212 |
}
|
|
|
6213 |
throw new IllegalStateException();
|
|
|
6214 |
}
|
|
|
6215 |
|
|
|
6216 |
@Override
|
|
|
6217 |
public boolean equals(Object that) {
|
|
|
6218 |
if (that == null)
|
|
|
6219 |
return false;
|
| 4496 |
mandeep.dh |
6220 |
if (that instanceof getInventoryItems_result)
|
|
|
6221 |
return this.equals((getInventoryItems_result)that);
|
| 2820 |
chandransh |
6222 |
return false;
|
|
|
6223 |
}
|
|
|
6224 |
|
| 4496 |
mandeep.dh |
6225 |
public boolean equals(getInventoryItems_result that) {
|
| 2820 |
chandransh |
6226 |
if (that == null)
|
|
|
6227 |
return false;
|
|
|
6228 |
|
| 4496 |
mandeep.dh |
6229 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
6230 |
boolean that_present_success = true && that.isSetSuccess();
|
| 2820 |
chandransh |
6231 |
if (this_present_success || that_present_success) {
|
|
|
6232 |
if (!(this_present_success && that_present_success))
|
|
|
6233 |
return false;
|
| 4496 |
mandeep.dh |
6234 |
if (!this.success.equals(that.success))
|
| 2820 |
chandransh |
6235 |
return false;
|
|
|
6236 |
}
|
|
|
6237 |
|
|
|
6238 |
return true;
|
|
|
6239 |
}
|
|
|
6240 |
|
|
|
6241 |
@Override
|
|
|
6242 |
public int hashCode() {
|
|
|
6243 |
return 0;
|
|
|
6244 |
}
|
|
|
6245 |
|
| 4496 |
mandeep.dh |
6246 |
public int compareTo(getInventoryItems_result other) {
|
| 2820 |
chandransh |
6247 |
if (!getClass().equals(other.getClass())) {
|
|
|
6248 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6249 |
}
|
|
|
6250 |
|
|
|
6251 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
6252 |
getInventoryItems_result typedOther = (getInventoryItems_result)other;
|
| 2820 |
chandransh |
6253 |
|
| 3430 |
rajveer |
6254 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2820 |
chandransh |
6255 |
if (lastComparison != 0) {
|
|
|
6256 |
return lastComparison;
|
|
|
6257 |
}
|
| 3430 |
rajveer |
6258 |
if (isSetSuccess()) {
|
|
|
6259 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
6260 |
if (lastComparison != 0) {
|
|
|
6261 |
return lastComparison;
|
|
|
6262 |
}
|
| 2820 |
chandransh |
6263 |
}
|
| 4496 |
mandeep.dh |
6264 |
return 0;
|
|
|
6265 |
}
|
|
|
6266 |
|
|
|
6267 |
public _Fields fieldForId(int fieldId) {
|
|
|
6268 |
return _Fields.findByThriftId(fieldId);
|
|
|
6269 |
}
|
|
|
6270 |
|
|
|
6271 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6272 |
org.apache.thrift.protocol.TField field;
|
|
|
6273 |
iprot.readStructBegin();
|
|
|
6274 |
while (true)
|
|
|
6275 |
{
|
|
|
6276 |
field = iprot.readFieldBegin();
|
|
|
6277 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
6278 |
break;
|
|
|
6279 |
}
|
|
|
6280 |
switch (field.id) {
|
|
|
6281 |
case 0: // SUCCESS
|
|
|
6282 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
6283 |
{
|
|
|
6284 |
org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
|
|
|
6285 |
this.success = new ArrayList<InventoryItem>(_list4.size);
|
|
|
6286 |
for (int _i5 = 0; _i5 < _list4.size; ++_i5)
|
|
|
6287 |
{
|
|
|
6288 |
InventoryItem _elem6; // required
|
|
|
6289 |
_elem6 = new InventoryItem();
|
|
|
6290 |
_elem6.read(iprot);
|
|
|
6291 |
this.success.add(_elem6);
|
|
|
6292 |
}
|
|
|
6293 |
iprot.readListEnd();
|
|
|
6294 |
}
|
|
|
6295 |
} else {
|
|
|
6296 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6297 |
}
|
|
|
6298 |
break;
|
|
|
6299 |
default:
|
|
|
6300 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6301 |
}
|
|
|
6302 |
iprot.readFieldEnd();
|
|
|
6303 |
}
|
|
|
6304 |
iprot.readStructEnd();
|
|
|
6305 |
validate();
|
|
|
6306 |
}
|
|
|
6307 |
|
|
|
6308 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
6309 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6310 |
|
|
|
6311 |
if (this.isSetSuccess()) {
|
|
|
6312 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
6313 |
{
|
|
|
6314 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
6315 |
for (InventoryItem _iter7 : this.success)
|
|
|
6316 |
{
|
|
|
6317 |
_iter7.write(oprot);
|
|
|
6318 |
}
|
|
|
6319 |
oprot.writeListEnd();
|
|
|
6320 |
}
|
|
|
6321 |
oprot.writeFieldEnd();
|
|
|
6322 |
}
|
|
|
6323 |
oprot.writeFieldStop();
|
|
|
6324 |
oprot.writeStructEnd();
|
|
|
6325 |
}
|
|
|
6326 |
|
|
|
6327 |
@Override
|
|
|
6328 |
public String toString() {
|
|
|
6329 |
StringBuilder sb = new StringBuilder("getInventoryItems_result(");
|
|
|
6330 |
boolean first = true;
|
|
|
6331 |
|
|
|
6332 |
sb.append("success:");
|
|
|
6333 |
if (this.success == null) {
|
|
|
6334 |
sb.append("null");
|
|
|
6335 |
} else {
|
|
|
6336 |
sb.append(this.success);
|
|
|
6337 |
}
|
|
|
6338 |
first = false;
|
|
|
6339 |
sb.append(")");
|
|
|
6340 |
return sb.toString();
|
|
|
6341 |
}
|
|
|
6342 |
|
|
|
6343 |
public void validate() throws org.apache.thrift.TException {
|
|
|
6344 |
// check for required fields
|
|
|
6345 |
}
|
|
|
6346 |
|
|
|
6347 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6348 |
try {
|
|
|
6349 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6350 |
} catch (org.apache.thrift.TException te) {
|
|
|
6351 |
throw new java.io.IOException(te);
|
|
|
6352 |
}
|
|
|
6353 |
}
|
|
|
6354 |
|
|
|
6355 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6356 |
try {
|
|
|
6357 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6358 |
} catch (org.apache.thrift.TException te) {
|
|
|
6359 |
throw new java.io.IOException(te);
|
|
|
6360 |
}
|
|
|
6361 |
}
|
|
|
6362 |
|
|
|
6363 |
}
|
|
|
6364 |
|
|
|
6365 |
public static class getScanForOrder_args implements org.apache.thrift.TBase<getScanForOrder_args, getScanForOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6366 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanForOrder_args");
|
|
|
6367 |
|
|
|
6368 |
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);
|
|
|
6369 |
|
|
|
6370 |
private long orderId; // required
|
|
|
6371 |
|
|
|
6372 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6373 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
6374 |
ORDER_ID((short)1, "orderId");
|
|
|
6375 |
|
|
|
6376 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6377 |
|
|
|
6378 |
static {
|
|
|
6379 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6380 |
byName.put(field.getFieldName(), field);
|
|
|
6381 |
}
|
|
|
6382 |
}
|
|
|
6383 |
|
|
|
6384 |
/**
|
|
|
6385 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6386 |
*/
|
|
|
6387 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
6388 |
switch(fieldId) {
|
|
|
6389 |
case 1: // ORDER_ID
|
|
|
6390 |
return ORDER_ID;
|
|
|
6391 |
default:
|
|
|
6392 |
return null;
|
|
|
6393 |
}
|
|
|
6394 |
}
|
|
|
6395 |
|
|
|
6396 |
/**
|
|
|
6397 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6398 |
* if it is not found.
|
|
|
6399 |
*/
|
|
|
6400 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6401 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6402 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6403 |
return fields;
|
|
|
6404 |
}
|
|
|
6405 |
|
|
|
6406 |
/**
|
|
|
6407 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6408 |
*/
|
|
|
6409 |
public static _Fields findByName(String name) {
|
|
|
6410 |
return byName.get(name);
|
|
|
6411 |
}
|
|
|
6412 |
|
|
|
6413 |
private final short _thriftId;
|
|
|
6414 |
private final String _fieldName;
|
|
|
6415 |
|
|
|
6416 |
_Fields(short thriftId, String fieldName) {
|
|
|
6417 |
_thriftId = thriftId;
|
|
|
6418 |
_fieldName = fieldName;
|
|
|
6419 |
}
|
|
|
6420 |
|
|
|
6421 |
public short getThriftFieldId() {
|
|
|
6422 |
return _thriftId;
|
|
|
6423 |
}
|
|
|
6424 |
|
|
|
6425 |
public String getFieldName() {
|
|
|
6426 |
return _fieldName;
|
|
|
6427 |
}
|
|
|
6428 |
}
|
|
|
6429 |
|
|
|
6430 |
// isset id assignments
|
|
|
6431 |
private static final int __ORDERID_ISSET_ID = 0;
|
|
|
6432 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
6433 |
|
|
|
6434 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
6435 |
static {
|
|
|
6436 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6437 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6438 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
6439 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6440 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanForOrder_args.class, metaDataMap);
|
|
|
6441 |
}
|
|
|
6442 |
|
|
|
6443 |
public getScanForOrder_args() {
|
|
|
6444 |
}
|
|
|
6445 |
|
|
|
6446 |
public getScanForOrder_args(
|
|
|
6447 |
long orderId)
|
|
|
6448 |
{
|
|
|
6449 |
this();
|
|
|
6450 |
this.orderId = orderId;
|
|
|
6451 |
setOrderIdIsSet(true);
|
|
|
6452 |
}
|
|
|
6453 |
|
|
|
6454 |
/**
|
|
|
6455 |
* Performs a deep copy on <i>other</i>.
|
|
|
6456 |
*/
|
|
|
6457 |
public getScanForOrder_args(getScanForOrder_args other) {
|
|
|
6458 |
__isset_bit_vector.clear();
|
|
|
6459 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
6460 |
this.orderId = other.orderId;
|
|
|
6461 |
}
|
|
|
6462 |
|
|
|
6463 |
public getScanForOrder_args deepCopy() {
|
|
|
6464 |
return new getScanForOrder_args(this);
|
|
|
6465 |
}
|
|
|
6466 |
|
|
|
6467 |
@Override
|
|
|
6468 |
public void clear() {
|
|
|
6469 |
setOrderIdIsSet(false);
|
|
|
6470 |
this.orderId = 0;
|
|
|
6471 |
}
|
|
|
6472 |
|
|
|
6473 |
public long getOrderId() {
|
|
|
6474 |
return this.orderId;
|
|
|
6475 |
}
|
|
|
6476 |
|
|
|
6477 |
public void setOrderId(long orderId) {
|
|
|
6478 |
this.orderId = orderId;
|
|
|
6479 |
setOrderIdIsSet(true);
|
|
|
6480 |
}
|
|
|
6481 |
|
|
|
6482 |
public void unsetOrderId() {
|
|
|
6483 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
6484 |
}
|
|
|
6485 |
|
|
|
6486 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
6487 |
public boolean isSetOrderId() {
|
|
|
6488 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
6489 |
}
|
|
|
6490 |
|
|
|
6491 |
public void setOrderIdIsSet(boolean value) {
|
|
|
6492 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
6493 |
}
|
|
|
6494 |
|
|
|
6495 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6496 |
switch (field) {
|
|
|
6497 |
case ORDER_ID:
|
|
|
6498 |
if (value == null) {
|
|
|
6499 |
unsetOrderId();
|
|
|
6500 |
} else {
|
|
|
6501 |
setOrderId((Long)value);
|
|
|
6502 |
}
|
|
|
6503 |
break;
|
|
|
6504 |
|
|
|
6505 |
}
|
|
|
6506 |
}
|
|
|
6507 |
|
|
|
6508 |
public Object getFieldValue(_Fields field) {
|
|
|
6509 |
switch (field) {
|
|
|
6510 |
case ORDER_ID:
|
|
|
6511 |
return Long.valueOf(getOrderId());
|
|
|
6512 |
|
|
|
6513 |
}
|
|
|
6514 |
throw new IllegalStateException();
|
|
|
6515 |
}
|
|
|
6516 |
|
|
|
6517 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6518 |
public boolean isSet(_Fields field) {
|
|
|
6519 |
if (field == null) {
|
|
|
6520 |
throw new IllegalArgumentException();
|
|
|
6521 |
}
|
|
|
6522 |
|
|
|
6523 |
switch (field) {
|
|
|
6524 |
case ORDER_ID:
|
|
|
6525 |
return isSetOrderId();
|
|
|
6526 |
}
|
|
|
6527 |
throw new IllegalStateException();
|
|
|
6528 |
}
|
|
|
6529 |
|
|
|
6530 |
@Override
|
|
|
6531 |
public boolean equals(Object that) {
|
|
|
6532 |
if (that == null)
|
|
|
6533 |
return false;
|
|
|
6534 |
if (that instanceof getScanForOrder_args)
|
|
|
6535 |
return this.equals((getScanForOrder_args)that);
|
|
|
6536 |
return false;
|
|
|
6537 |
}
|
|
|
6538 |
|
|
|
6539 |
public boolean equals(getScanForOrder_args that) {
|
|
|
6540 |
if (that == null)
|
|
|
6541 |
return false;
|
|
|
6542 |
|
|
|
6543 |
boolean this_present_orderId = true;
|
|
|
6544 |
boolean that_present_orderId = true;
|
|
|
6545 |
if (this_present_orderId || that_present_orderId) {
|
|
|
6546 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
6547 |
return false;
|
|
|
6548 |
if (this.orderId != that.orderId)
|
|
|
6549 |
return false;
|
|
|
6550 |
}
|
|
|
6551 |
|
|
|
6552 |
return true;
|
|
|
6553 |
}
|
|
|
6554 |
|
|
|
6555 |
@Override
|
|
|
6556 |
public int hashCode() {
|
|
|
6557 |
return 0;
|
|
|
6558 |
}
|
|
|
6559 |
|
|
|
6560 |
public int compareTo(getScanForOrder_args other) {
|
|
|
6561 |
if (!getClass().equals(other.getClass())) {
|
|
|
6562 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6563 |
}
|
|
|
6564 |
|
|
|
6565 |
int lastComparison = 0;
|
|
|
6566 |
getScanForOrder_args typedOther = (getScanForOrder_args)other;
|
|
|
6567 |
|
|
|
6568 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
| 2820 |
chandransh |
6569 |
if (lastComparison != 0) {
|
|
|
6570 |
return lastComparison;
|
|
|
6571 |
}
|
| 4496 |
mandeep.dh |
6572 |
if (isSetOrderId()) {
|
|
|
6573 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
| 3430 |
rajveer |
6574 |
if (lastComparison != 0) {
|
|
|
6575 |
return lastComparison;
|
|
|
6576 |
}
|
| 2820 |
chandransh |
6577 |
}
|
|
|
6578 |
return 0;
|
|
|
6579 |
}
|
|
|
6580 |
|
| 3430 |
rajveer |
6581 |
public _Fields fieldForId(int fieldId) {
|
|
|
6582 |
return _Fields.findByThriftId(fieldId);
|
|
|
6583 |
}
|
|
|
6584 |
|
|
|
6585 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6586 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
6587 |
iprot.readStructBegin();
|
|
|
6588 |
while (true)
|
|
|
6589 |
{
|
|
|
6590 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6591 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
6592 |
break;
|
|
|
6593 |
}
|
| 3430 |
rajveer |
6594 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
6595 |
case 1: // ORDER_ID
|
| 3430 |
rajveer |
6596 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 4496 |
mandeep.dh |
6597 |
this.orderId = iprot.readI64();
|
|
|
6598 |
setOrderIdIsSet(true);
|
| 3430 |
rajveer |
6599 |
} else {
|
|
|
6600 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6601 |
}
|
|
|
6602 |
break;
|
| 4496 |
mandeep.dh |
6603 |
default:
|
|
|
6604 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6605 |
}
|
|
|
6606 |
iprot.readFieldEnd();
|
|
|
6607 |
}
|
|
|
6608 |
iprot.readStructEnd();
|
|
|
6609 |
validate();
|
|
|
6610 |
}
|
|
|
6611 |
|
|
|
6612 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
6613 |
validate();
|
|
|
6614 |
|
|
|
6615 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6616 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
6617 |
oprot.writeI64(this.orderId);
|
|
|
6618 |
oprot.writeFieldEnd();
|
|
|
6619 |
oprot.writeFieldStop();
|
|
|
6620 |
oprot.writeStructEnd();
|
|
|
6621 |
}
|
|
|
6622 |
|
|
|
6623 |
@Override
|
|
|
6624 |
public String toString() {
|
|
|
6625 |
StringBuilder sb = new StringBuilder("getScanForOrder_args(");
|
|
|
6626 |
boolean first = true;
|
|
|
6627 |
|
|
|
6628 |
sb.append("orderId:");
|
|
|
6629 |
sb.append(this.orderId);
|
|
|
6630 |
first = false;
|
|
|
6631 |
sb.append(")");
|
|
|
6632 |
return sb.toString();
|
|
|
6633 |
}
|
|
|
6634 |
|
|
|
6635 |
public void validate() throws org.apache.thrift.TException {
|
|
|
6636 |
// check for required fields
|
|
|
6637 |
}
|
|
|
6638 |
|
|
|
6639 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6640 |
try {
|
|
|
6641 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6642 |
} catch (org.apache.thrift.TException te) {
|
|
|
6643 |
throw new java.io.IOException(te);
|
|
|
6644 |
}
|
|
|
6645 |
}
|
|
|
6646 |
|
|
|
6647 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6648 |
try {
|
|
|
6649 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
6650 |
__isset_bit_vector = new BitSet(1);
|
|
|
6651 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6652 |
} catch (org.apache.thrift.TException te) {
|
|
|
6653 |
throw new java.io.IOException(te);
|
|
|
6654 |
}
|
|
|
6655 |
}
|
|
|
6656 |
|
|
|
6657 |
}
|
|
|
6658 |
|
|
|
6659 |
public static class getScanForOrder_result implements org.apache.thrift.TBase<getScanForOrder_result, getScanForOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6660 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanForOrder_result");
|
|
|
6661 |
|
|
|
6662 |
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);
|
|
|
6663 |
|
|
|
6664 |
private List<Scan> success; // required
|
|
|
6665 |
|
|
|
6666 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6667 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
6668 |
SUCCESS((short)0, "success");
|
|
|
6669 |
|
|
|
6670 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6671 |
|
|
|
6672 |
static {
|
|
|
6673 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6674 |
byName.put(field.getFieldName(), field);
|
|
|
6675 |
}
|
|
|
6676 |
}
|
|
|
6677 |
|
|
|
6678 |
/**
|
|
|
6679 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6680 |
*/
|
|
|
6681 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
6682 |
switch(fieldId) {
|
|
|
6683 |
case 0: // SUCCESS
|
|
|
6684 |
return SUCCESS;
|
|
|
6685 |
default:
|
|
|
6686 |
return null;
|
|
|
6687 |
}
|
|
|
6688 |
}
|
|
|
6689 |
|
|
|
6690 |
/**
|
|
|
6691 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6692 |
* if it is not found.
|
|
|
6693 |
*/
|
|
|
6694 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6695 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6696 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6697 |
return fields;
|
|
|
6698 |
}
|
|
|
6699 |
|
|
|
6700 |
/**
|
|
|
6701 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6702 |
*/
|
|
|
6703 |
public static _Fields findByName(String name) {
|
|
|
6704 |
return byName.get(name);
|
|
|
6705 |
}
|
|
|
6706 |
|
|
|
6707 |
private final short _thriftId;
|
|
|
6708 |
private final String _fieldName;
|
|
|
6709 |
|
|
|
6710 |
_Fields(short thriftId, String fieldName) {
|
|
|
6711 |
_thriftId = thriftId;
|
|
|
6712 |
_fieldName = fieldName;
|
|
|
6713 |
}
|
|
|
6714 |
|
|
|
6715 |
public short getThriftFieldId() {
|
|
|
6716 |
return _thriftId;
|
|
|
6717 |
}
|
|
|
6718 |
|
|
|
6719 |
public String getFieldName() {
|
|
|
6720 |
return _fieldName;
|
|
|
6721 |
}
|
|
|
6722 |
}
|
|
|
6723 |
|
|
|
6724 |
// isset id assignments
|
|
|
6725 |
|
|
|
6726 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
6727 |
static {
|
|
|
6728 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6729 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6730 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
6731 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
|
|
|
6732 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6733 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanForOrder_result.class, metaDataMap);
|
|
|
6734 |
}
|
|
|
6735 |
|
|
|
6736 |
public getScanForOrder_result() {
|
|
|
6737 |
}
|
|
|
6738 |
|
|
|
6739 |
public getScanForOrder_result(
|
|
|
6740 |
List<Scan> success)
|
|
|
6741 |
{
|
|
|
6742 |
this();
|
|
|
6743 |
this.success = success;
|
|
|
6744 |
}
|
|
|
6745 |
|
|
|
6746 |
/**
|
|
|
6747 |
* Performs a deep copy on <i>other</i>.
|
|
|
6748 |
*/
|
|
|
6749 |
public getScanForOrder_result(getScanForOrder_result other) {
|
|
|
6750 |
if (other.isSetSuccess()) {
|
|
|
6751 |
List<Scan> __this__success = new ArrayList<Scan>();
|
|
|
6752 |
for (Scan other_element : other.success) {
|
|
|
6753 |
__this__success.add(new Scan(other_element));
|
|
|
6754 |
}
|
|
|
6755 |
this.success = __this__success;
|
|
|
6756 |
}
|
|
|
6757 |
}
|
|
|
6758 |
|
|
|
6759 |
public getScanForOrder_result deepCopy() {
|
|
|
6760 |
return new getScanForOrder_result(this);
|
|
|
6761 |
}
|
|
|
6762 |
|
|
|
6763 |
@Override
|
|
|
6764 |
public void clear() {
|
|
|
6765 |
this.success = null;
|
|
|
6766 |
}
|
|
|
6767 |
|
|
|
6768 |
public int getSuccessSize() {
|
|
|
6769 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
6770 |
}
|
|
|
6771 |
|
|
|
6772 |
public java.util.Iterator<Scan> getSuccessIterator() {
|
|
|
6773 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
6774 |
}
|
|
|
6775 |
|
|
|
6776 |
public void addToSuccess(Scan elem) {
|
|
|
6777 |
if (this.success == null) {
|
|
|
6778 |
this.success = new ArrayList<Scan>();
|
|
|
6779 |
}
|
|
|
6780 |
this.success.add(elem);
|
|
|
6781 |
}
|
|
|
6782 |
|
|
|
6783 |
public List<Scan> getSuccess() {
|
|
|
6784 |
return this.success;
|
|
|
6785 |
}
|
|
|
6786 |
|
|
|
6787 |
public void setSuccess(List<Scan> success) {
|
|
|
6788 |
this.success = success;
|
|
|
6789 |
}
|
|
|
6790 |
|
|
|
6791 |
public void unsetSuccess() {
|
|
|
6792 |
this.success = null;
|
|
|
6793 |
}
|
|
|
6794 |
|
|
|
6795 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
6796 |
public boolean isSetSuccess() {
|
|
|
6797 |
return this.success != null;
|
|
|
6798 |
}
|
|
|
6799 |
|
|
|
6800 |
public void setSuccessIsSet(boolean value) {
|
|
|
6801 |
if (!value) {
|
|
|
6802 |
this.success = null;
|
|
|
6803 |
}
|
|
|
6804 |
}
|
|
|
6805 |
|
|
|
6806 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6807 |
switch (field) {
|
|
|
6808 |
case SUCCESS:
|
|
|
6809 |
if (value == null) {
|
|
|
6810 |
unsetSuccess();
|
|
|
6811 |
} else {
|
|
|
6812 |
setSuccess((List<Scan>)value);
|
|
|
6813 |
}
|
|
|
6814 |
break;
|
|
|
6815 |
|
|
|
6816 |
}
|
|
|
6817 |
}
|
|
|
6818 |
|
|
|
6819 |
public Object getFieldValue(_Fields field) {
|
|
|
6820 |
switch (field) {
|
|
|
6821 |
case SUCCESS:
|
|
|
6822 |
return getSuccess();
|
|
|
6823 |
|
|
|
6824 |
}
|
|
|
6825 |
throw new IllegalStateException();
|
|
|
6826 |
}
|
|
|
6827 |
|
|
|
6828 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6829 |
public boolean isSet(_Fields field) {
|
|
|
6830 |
if (field == null) {
|
|
|
6831 |
throw new IllegalArgumentException();
|
|
|
6832 |
}
|
|
|
6833 |
|
|
|
6834 |
switch (field) {
|
|
|
6835 |
case SUCCESS:
|
|
|
6836 |
return isSetSuccess();
|
|
|
6837 |
}
|
|
|
6838 |
throw new IllegalStateException();
|
|
|
6839 |
}
|
|
|
6840 |
|
|
|
6841 |
@Override
|
|
|
6842 |
public boolean equals(Object that) {
|
|
|
6843 |
if (that == null)
|
|
|
6844 |
return false;
|
|
|
6845 |
if (that instanceof getScanForOrder_result)
|
|
|
6846 |
return this.equals((getScanForOrder_result)that);
|
|
|
6847 |
return false;
|
|
|
6848 |
}
|
|
|
6849 |
|
|
|
6850 |
public boolean equals(getScanForOrder_result that) {
|
|
|
6851 |
if (that == null)
|
|
|
6852 |
return false;
|
|
|
6853 |
|
|
|
6854 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
6855 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
6856 |
if (this_present_success || that_present_success) {
|
|
|
6857 |
if (!(this_present_success && that_present_success))
|
|
|
6858 |
return false;
|
|
|
6859 |
if (!this.success.equals(that.success))
|
|
|
6860 |
return false;
|
|
|
6861 |
}
|
|
|
6862 |
|
|
|
6863 |
return true;
|
|
|
6864 |
}
|
|
|
6865 |
|
|
|
6866 |
@Override
|
|
|
6867 |
public int hashCode() {
|
|
|
6868 |
return 0;
|
|
|
6869 |
}
|
|
|
6870 |
|
|
|
6871 |
public int compareTo(getScanForOrder_result other) {
|
|
|
6872 |
if (!getClass().equals(other.getClass())) {
|
|
|
6873 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6874 |
}
|
|
|
6875 |
|
|
|
6876 |
int lastComparison = 0;
|
|
|
6877 |
getScanForOrder_result typedOther = (getScanForOrder_result)other;
|
|
|
6878 |
|
|
|
6879 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
6880 |
if (lastComparison != 0) {
|
|
|
6881 |
return lastComparison;
|
|
|
6882 |
}
|
|
|
6883 |
if (isSetSuccess()) {
|
|
|
6884 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
6885 |
if (lastComparison != 0) {
|
|
|
6886 |
return lastComparison;
|
|
|
6887 |
}
|
|
|
6888 |
}
|
|
|
6889 |
return 0;
|
|
|
6890 |
}
|
|
|
6891 |
|
|
|
6892 |
public _Fields fieldForId(int fieldId) {
|
|
|
6893 |
return _Fields.findByThriftId(fieldId);
|
|
|
6894 |
}
|
|
|
6895 |
|
|
|
6896 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6897 |
org.apache.thrift.protocol.TField field;
|
|
|
6898 |
iprot.readStructBegin();
|
|
|
6899 |
while (true)
|
|
|
6900 |
{
|
|
|
6901 |
field = iprot.readFieldBegin();
|
|
|
6902 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
6903 |
break;
|
|
|
6904 |
}
|
|
|
6905 |
switch (field.id) {
|
|
|
6906 |
case 0: // SUCCESS
|
|
|
6907 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
6908 |
{
|
|
|
6909 |
org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
|
|
|
6910 |
this.success = new ArrayList<Scan>(_list8.size);
|
|
|
6911 |
for (int _i9 = 0; _i9 < _list8.size; ++_i9)
|
|
|
6912 |
{
|
|
|
6913 |
Scan _elem10; // required
|
|
|
6914 |
_elem10 = new Scan();
|
|
|
6915 |
_elem10.read(iprot);
|
|
|
6916 |
this.success.add(_elem10);
|
|
|
6917 |
}
|
|
|
6918 |
iprot.readListEnd();
|
|
|
6919 |
}
|
| 3430 |
rajveer |
6920 |
} else {
|
|
|
6921 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6922 |
}
|
|
|
6923 |
break;
|
|
|
6924 |
default:
|
|
|
6925 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
6926 |
}
|
| 3430 |
rajveer |
6927 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
6928 |
}
|
|
|
6929 |
iprot.readStructEnd();
|
|
|
6930 |
validate();
|
|
|
6931 |
}
|
|
|
6932 |
|
| 3430 |
rajveer |
6933 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6934 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6935 |
|
|
|
6936 |
if (this.isSetSuccess()) {
|
|
|
6937 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 4496 |
mandeep.dh |
6938 |
{
|
|
|
6939 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
6940 |
for (Scan _iter11 : this.success)
|
|
|
6941 |
{
|
|
|
6942 |
_iter11.write(oprot);
|
|
|
6943 |
}
|
|
|
6944 |
oprot.writeListEnd();
|
|
|
6945 |
}
|
| 2820 |
chandransh |
6946 |
oprot.writeFieldEnd();
|
|
|
6947 |
}
|
|
|
6948 |
oprot.writeFieldStop();
|
|
|
6949 |
oprot.writeStructEnd();
|
|
|
6950 |
}
|
|
|
6951 |
|
|
|
6952 |
@Override
|
|
|
6953 |
public String toString() {
|
| 4496 |
mandeep.dh |
6954 |
StringBuilder sb = new StringBuilder("getScanForOrder_result(");
|
| 2820 |
chandransh |
6955 |
boolean first = true;
|
|
|
6956 |
|
|
|
6957 |
sb.append("success:");
|
| 4496 |
mandeep.dh |
6958 |
if (this.success == null) {
|
| 2820 |
chandransh |
6959 |
sb.append("null");
|
|
|
6960 |
} else {
|
| 4496 |
mandeep.dh |
6961 |
sb.append(this.success);
|
| 2820 |
chandransh |
6962 |
}
|
|
|
6963 |
first = false;
|
|
|
6964 |
sb.append(")");
|
|
|
6965 |
return sb.toString();
|
|
|
6966 |
}
|
|
|
6967 |
|
| 3430 |
rajveer |
6968 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6969 |
// check for required fields
|
|
|
6970 |
}
|
|
|
6971 |
|
| 3430 |
rajveer |
6972 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6973 |
try {
|
|
|
6974 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6975 |
} catch (org.apache.thrift.TException te) {
|
|
|
6976 |
throw new java.io.IOException(te);
|
|
|
6977 |
}
|
|
|
6978 |
}
|
|
|
6979 |
|
|
|
6980 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6981 |
try {
|
|
|
6982 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6983 |
} catch (org.apache.thrift.TException te) {
|
|
|
6984 |
throw new java.io.IOException(te);
|
|
|
6985 |
}
|
|
|
6986 |
}
|
|
|
6987 |
|
| 2820 |
chandransh |
6988 |
}
|
|
|
6989 |
|
| 4496 |
mandeep.dh |
6990 |
public static class getScan_args implements org.apache.thrift.TBase<getScan_args, getScan_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6991 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScan_args");
|
| 2820 |
chandransh |
6992 |
|
| 4496 |
mandeep.dh |
6993 |
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);
|
| 2820 |
chandransh |
6994 |
|
| 4496 |
mandeep.dh |
6995 |
private long inventoryItemId; // required
|
| 2820 |
chandransh |
6996 |
|
|
|
6997 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6998 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
6999 |
INVENTORY_ITEM_ID((short)1, "inventoryItemId");
|
| 2820 |
chandransh |
7000 |
|
|
|
7001 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7002 |
|
|
|
7003 |
static {
|
|
|
7004 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7005 |
byName.put(field.getFieldName(), field);
|
|
|
7006 |
}
|
|
|
7007 |
}
|
|
|
7008 |
|
|
|
7009 |
/**
|
|
|
7010 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7011 |
*/
|
|
|
7012 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
7013 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
7014 |
case 1: // INVENTORY_ITEM_ID
|
|
|
7015 |
return INVENTORY_ITEM_ID;
|
| 3430 |
rajveer |
7016 |
default:
|
|
|
7017 |
return null;
|
|
|
7018 |
}
|
| 2820 |
chandransh |
7019 |
}
|
|
|
7020 |
|
|
|
7021 |
/**
|
|
|
7022 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7023 |
* if it is not found.
|
|
|
7024 |
*/
|
|
|
7025 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7026 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7027 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7028 |
return fields;
|
|
|
7029 |
}
|
|
|
7030 |
|
|
|
7031 |
/**
|
|
|
7032 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7033 |
*/
|
|
|
7034 |
public static _Fields findByName(String name) {
|
|
|
7035 |
return byName.get(name);
|
|
|
7036 |
}
|
|
|
7037 |
|
|
|
7038 |
private final short _thriftId;
|
|
|
7039 |
private final String _fieldName;
|
|
|
7040 |
|
|
|
7041 |
_Fields(short thriftId, String fieldName) {
|
|
|
7042 |
_thriftId = thriftId;
|
|
|
7043 |
_fieldName = fieldName;
|
|
|
7044 |
}
|
|
|
7045 |
|
|
|
7046 |
public short getThriftFieldId() {
|
|
|
7047 |
return _thriftId;
|
|
|
7048 |
}
|
|
|
7049 |
|
|
|
7050 |
public String getFieldName() {
|
|
|
7051 |
return _fieldName;
|
|
|
7052 |
}
|
|
|
7053 |
}
|
|
|
7054 |
|
|
|
7055 |
// isset id assignments
|
| 4496 |
mandeep.dh |
7056 |
private static final int __INVENTORYITEMID_ISSET_ID = 0;
|
| 2820 |
chandransh |
7057 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
7058 |
|
| 3430 |
rajveer |
7059 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
7060 |
static {
|
| 3430 |
rajveer |
7061 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
7062 |
tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 3430 |
rajveer |
7063 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
7064 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
7065 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScan_args.class, metaDataMap);
|
| 2820 |
chandransh |
7066 |
}
|
|
|
7067 |
|
| 4496 |
mandeep.dh |
7068 |
public getScan_args() {
|
| 2820 |
chandransh |
7069 |
}
|
|
|
7070 |
|
| 4496 |
mandeep.dh |
7071 |
public getScan_args(
|
|
|
7072 |
long inventoryItemId)
|
| 2820 |
chandransh |
7073 |
{
|
|
|
7074 |
this();
|
| 4496 |
mandeep.dh |
7075 |
this.inventoryItemId = inventoryItemId;
|
|
|
7076 |
setInventoryItemIdIsSet(true);
|
| 2820 |
chandransh |
7077 |
}
|
|
|
7078 |
|
|
|
7079 |
/**
|
|
|
7080 |
* Performs a deep copy on <i>other</i>.
|
|
|
7081 |
*/
|
| 4496 |
mandeep.dh |
7082 |
public getScan_args(getScan_args other) {
|
| 2820 |
chandransh |
7083 |
__isset_bit_vector.clear();
|
|
|
7084 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 4496 |
mandeep.dh |
7085 |
this.inventoryItemId = other.inventoryItemId;
|
| 2820 |
chandransh |
7086 |
}
|
|
|
7087 |
|
| 4496 |
mandeep.dh |
7088 |
public getScan_args deepCopy() {
|
|
|
7089 |
return new getScan_args(this);
|
| 2820 |
chandransh |
7090 |
}
|
|
|
7091 |
|
| 3430 |
rajveer |
7092 |
@Override
|
|
|
7093 |
public void clear() {
|
| 4496 |
mandeep.dh |
7094 |
setInventoryItemIdIsSet(false);
|
|
|
7095 |
this.inventoryItemId = 0;
|
| 2820 |
chandransh |
7096 |
}
|
|
|
7097 |
|
| 4496 |
mandeep.dh |
7098 |
public long getInventoryItemId() {
|
|
|
7099 |
return this.inventoryItemId;
|
| 2820 |
chandransh |
7100 |
}
|
|
|
7101 |
|
| 4496 |
mandeep.dh |
7102 |
public void setInventoryItemId(long inventoryItemId) {
|
|
|
7103 |
this.inventoryItemId = inventoryItemId;
|
|
|
7104 |
setInventoryItemIdIsSet(true);
|
| 2820 |
chandransh |
7105 |
}
|
|
|
7106 |
|
| 4496 |
mandeep.dh |
7107 |
public void unsetInventoryItemId() {
|
|
|
7108 |
__isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
|
| 2820 |
chandransh |
7109 |
}
|
|
|
7110 |
|
| 4496 |
mandeep.dh |
7111 |
/** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
|
|
|
7112 |
public boolean isSetInventoryItemId() {
|
|
|
7113 |
return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
|
| 2820 |
chandransh |
7114 |
}
|
|
|
7115 |
|
| 4496 |
mandeep.dh |
7116 |
public void setInventoryItemIdIsSet(boolean value) {
|
|
|
7117 |
__isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
|
| 2820 |
chandransh |
7118 |
}
|
|
|
7119 |
|
|
|
7120 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7121 |
switch (field) {
|
| 4496 |
mandeep.dh |
7122 |
case INVENTORY_ITEM_ID:
|
| 2820 |
chandransh |
7123 |
if (value == null) {
|
| 4496 |
mandeep.dh |
7124 |
unsetInventoryItemId();
|
| 2820 |
chandransh |
7125 |
} else {
|
| 4496 |
mandeep.dh |
7126 |
setInventoryItemId((Long)value);
|
| 2820 |
chandransh |
7127 |
}
|
|
|
7128 |
break;
|
|
|
7129 |
|
|
|
7130 |
}
|
|
|
7131 |
}
|
|
|
7132 |
|
|
|
7133 |
public Object getFieldValue(_Fields field) {
|
|
|
7134 |
switch (field) {
|
| 4496 |
mandeep.dh |
7135 |
case INVENTORY_ITEM_ID:
|
|
|
7136 |
return Long.valueOf(getInventoryItemId());
|
| 2820 |
chandransh |
7137 |
|
|
|
7138 |
}
|
|
|
7139 |
throw new IllegalStateException();
|
|
|
7140 |
}
|
|
|
7141 |
|
| 3430 |
rajveer |
7142 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7143 |
public boolean isSet(_Fields field) {
|
|
|
7144 |
if (field == null) {
|
|
|
7145 |
throw new IllegalArgumentException();
|
|
|
7146 |
}
|
| 2820 |
chandransh |
7147 |
|
|
|
7148 |
switch (field) {
|
| 4496 |
mandeep.dh |
7149 |
case INVENTORY_ITEM_ID:
|
|
|
7150 |
return isSetInventoryItemId();
|
| 2820 |
chandransh |
7151 |
}
|
|
|
7152 |
throw new IllegalStateException();
|
|
|
7153 |
}
|
|
|
7154 |
|
|
|
7155 |
@Override
|
|
|
7156 |
public boolean equals(Object that) {
|
|
|
7157 |
if (that == null)
|
|
|
7158 |
return false;
|
| 4496 |
mandeep.dh |
7159 |
if (that instanceof getScan_args)
|
|
|
7160 |
return this.equals((getScan_args)that);
|
| 2820 |
chandransh |
7161 |
return false;
|
|
|
7162 |
}
|
|
|
7163 |
|
| 4496 |
mandeep.dh |
7164 |
public boolean equals(getScan_args that) {
|
| 2820 |
chandransh |
7165 |
if (that == null)
|
|
|
7166 |
return false;
|
|
|
7167 |
|
| 4496 |
mandeep.dh |
7168 |
boolean this_present_inventoryItemId = true;
|
|
|
7169 |
boolean that_present_inventoryItemId = true;
|
|
|
7170 |
if (this_present_inventoryItemId || that_present_inventoryItemId) {
|
|
|
7171 |
if (!(this_present_inventoryItemId && that_present_inventoryItemId))
|
| 2820 |
chandransh |
7172 |
return false;
|
| 4496 |
mandeep.dh |
7173 |
if (this.inventoryItemId != that.inventoryItemId)
|
| 2820 |
chandransh |
7174 |
return false;
|
|
|
7175 |
}
|
|
|
7176 |
|
|
|
7177 |
return true;
|
|
|
7178 |
}
|
|
|
7179 |
|
|
|
7180 |
@Override
|
|
|
7181 |
public int hashCode() {
|
|
|
7182 |
return 0;
|
|
|
7183 |
}
|
|
|
7184 |
|
| 4496 |
mandeep.dh |
7185 |
public int compareTo(getScan_args other) {
|
| 2820 |
chandransh |
7186 |
if (!getClass().equals(other.getClass())) {
|
|
|
7187 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7188 |
}
|
|
|
7189 |
|
|
|
7190 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
7191 |
getScan_args typedOther = (getScan_args)other;
|
| 2820 |
chandransh |
7192 |
|
| 4496 |
mandeep.dh |
7193 |
lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
|
| 2820 |
chandransh |
7194 |
if (lastComparison != 0) {
|
|
|
7195 |
return lastComparison;
|
|
|
7196 |
}
|
| 4496 |
mandeep.dh |
7197 |
if (isSetInventoryItemId()) {
|
|
|
7198 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
|
| 3430 |
rajveer |
7199 |
if (lastComparison != 0) {
|
|
|
7200 |
return lastComparison;
|
|
|
7201 |
}
|
| 2820 |
chandransh |
7202 |
}
|
|
|
7203 |
return 0;
|
|
|
7204 |
}
|
|
|
7205 |
|
| 3430 |
rajveer |
7206 |
public _Fields fieldForId(int fieldId) {
|
|
|
7207 |
return _Fields.findByThriftId(fieldId);
|
|
|
7208 |
}
|
|
|
7209 |
|
|
|
7210 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7211 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
7212 |
iprot.readStructBegin();
|
|
|
7213 |
while (true)
|
|
|
7214 |
{
|
|
|
7215 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
7216 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
7217 |
break;
|
|
|
7218 |
}
|
| 3430 |
rajveer |
7219 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
7220 |
case 1: // INVENTORY_ITEM_ID
|
| 3430 |
rajveer |
7221 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 4496 |
mandeep.dh |
7222 |
this.inventoryItemId = iprot.readI64();
|
|
|
7223 |
setInventoryItemIdIsSet(true);
|
| 3430 |
rajveer |
7224 |
} else {
|
|
|
7225 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7226 |
}
|
|
|
7227 |
break;
|
|
|
7228 |
default:
|
|
|
7229 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
7230 |
}
|
| 3430 |
rajveer |
7231 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
7232 |
}
|
|
|
7233 |
iprot.readStructEnd();
|
|
|
7234 |
validate();
|
|
|
7235 |
}
|
|
|
7236 |
|
| 3430 |
rajveer |
7237 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
7238 |
validate();
|
|
|
7239 |
|
|
|
7240 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4496 |
mandeep.dh |
7241 |
oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
|
|
|
7242 |
oprot.writeI64(this.inventoryItemId);
|
| 2820 |
chandransh |
7243 |
oprot.writeFieldEnd();
|
|
|
7244 |
oprot.writeFieldStop();
|
|
|
7245 |
oprot.writeStructEnd();
|
|
|
7246 |
}
|
|
|
7247 |
|
|
|
7248 |
@Override
|
|
|
7249 |
public String toString() {
|
| 4496 |
mandeep.dh |
7250 |
StringBuilder sb = new StringBuilder("getScan_args(");
|
| 2820 |
chandransh |
7251 |
boolean first = true;
|
|
|
7252 |
|
| 4496 |
mandeep.dh |
7253 |
sb.append("inventoryItemId:");
|
|
|
7254 |
sb.append(this.inventoryItemId);
|
| 2820 |
chandransh |
7255 |
first = false;
|
|
|
7256 |
sb.append(")");
|
|
|
7257 |
return sb.toString();
|
|
|
7258 |
}
|
|
|
7259 |
|
| 3430 |
rajveer |
7260 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
7261 |
// check for required fields
|
|
|
7262 |
}
|
|
|
7263 |
|
| 3430 |
rajveer |
7264 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7265 |
try {
|
|
|
7266 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7267 |
} catch (org.apache.thrift.TException te) {
|
|
|
7268 |
throw new java.io.IOException(te);
|
|
|
7269 |
}
|
|
|
7270 |
}
|
|
|
7271 |
|
|
|
7272 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7273 |
try {
|
| 4496 |
mandeep.dh |
7274 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
7275 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
7276 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7277 |
} catch (org.apache.thrift.TException te) {
|
|
|
7278 |
throw new java.io.IOException(te);
|
|
|
7279 |
}
|
|
|
7280 |
}
|
|
|
7281 |
|
| 2820 |
chandransh |
7282 |
}
|
|
|
7283 |
|
| 4496 |
mandeep.dh |
7284 |
public static class getScan_result implements org.apache.thrift.TBase<getScan_result, getScan_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7285 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScan_result");
|
| 2820 |
chandransh |
7286 |
|
| 4496 |
mandeep.dh |
7287 |
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);
|
| 2820 |
chandransh |
7288 |
|
| 4496 |
mandeep.dh |
7289 |
private List<Scan> success; // required
|
| 2820 |
chandransh |
7290 |
|
|
|
7291 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
7292 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
7293 |
SUCCESS((short)0, "success");
|
| 2820 |
chandransh |
7294 |
|
|
|
7295 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7296 |
|
|
|
7297 |
static {
|
|
|
7298 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7299 |
byName.put(field.getFieldName(), field);
|
|
|
7300 |
}
|
|
|
7301 |
}
|
|
|
7302 |
|
|
|
7303 |
/**
|
|
|
7304 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7305 |
*/
|
|
|
7306 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
7307 |
switch(fieldId) {
|
|
|
7308 |
case 0: // SUCCESS
|
|
|
7309 |
return SUCCESS;
|
|
|
7310 |
default:
|
|
|
7311 |
return null;
|
|
|
7312 |
}
|
| 2820 |
chandransh |
7313 |
}
|
|
|
7314 |
|
|
|
7315 |
/**
|
|
|
7316 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7317 |
* if it is not found.
|
|
|
7318 |
*/
|
|
|
7319 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7320 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7321 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7322 |
return fields;
|
|
|
7323 |
}
|
|
|
7324 |
|
|
|
7325 |
/**
|
|
|
7326 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7327 |
*/
|
|
|
7328 |
public static _Fields findByName(String name) {
|
|
|
7329 |
return byName.get(name);
|
|
|
7330 |
}
|
|
|
7331 |
|
|
|
7332 |
private final short _thriftId;
|
|
|
7333 |
private final String _fieldName;
|
|
|
7334 |
|
|
|
7335 |
_Fields(short thriftId, String fieldName) {
|
|
|
7336 |
_thriftId = thriftId;
|
|
|
7337 |
_fieldName = fieldName;
|
|
|
7338 |
}
|
|
|
7339 |
|
|
|
7340 |
public short getThriftFieldId() {
|
|
|
7341 |
return _thriftId;
|
|
|
7342 |
}
|
|
|
7343 |
|
|
|
7344 |
public String getFieldName() {
|
|
|
7345 |
return _fieldName;
|
|
|
7346 |
}
|
|
|
7347 |
}
|
|
|
7348 |
|
|
|
7349 |
// isset id assignments
|
|
|
7350 |
|
| 3430 |
rajveer |
7351 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
7352 |
static {
|
| 3430 |
rajveer |
7353 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7354 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
7355 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
7356 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
|
| 3430 |
rajveer |
7357 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
7358 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScan_result.class, metaDataMap);
|
| 2820 |
chandransh |
7359 |
}
|
|
|
7360 |
|
| 4496 |
mandeep.dh |
7361 |
public getScan_result() {
|
| 2820 |
chandransh |
7362 |
}
|
|
|
7363 |
|
| 4496 |
mandeep.dh |
7364 |
public getScan_result(
|
|
|
7365 |
List<Scan> success)
|
| 2820 |
chandransh |
7366 |
{
|
|
|
7367 |
this();
|
|
|
7368 |
this.success = success;
|
|
|
7369 |
}
|
|
|
7370 |
|
|
|
7371 |
/**
|
|
|
7372 |
* Performs a deep copy on <i>other</i>.
|
|
|
7373 |
*/
|
| 4496 |
mandeep.dh |
7374 |
public getScan_result(getScan_result other) {
|
|
|
7375 |
if (other.isSetSuccess()) {
|
|
|
7376 |
List<Scan> __this__success = new ArrayList<Scan>();
|
|
|
7377 |
for (Scan other_element : other.success) {
|
|
|
7378 |
__this__success.add(new Scan(other_element));
|
|
|
7379 |
}
|
|
|
7380 |
this.success = __this__success;
|
| 2820 |
chandransh |
7381 |
}
|
|
|
7382 |
}
|
|
|
7383 |
|
| 4496 |
mandeep.dh |
7384 |
public getScan_result deepCopy() {
|
|
|
7385 |
return new getScan_result(this);
|
| 2820 |
chandransh |
7386 |
}
|
|
|
7387 |
|
| 3430 |
rajveer |
7388 |
@Override
|
|
|
7389 |
public void clear() {
|
| 4496 |
mandeep.dh |
7390 |
this.success = null;
|
| 2820 |
chandransh |
7391 |
}
|
|
|
7392 |
|
| 4496 |
mandeep.dh |
7393 |
public int getSuccessSize() {
|
|
|
7394 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
7395 |
}
|
|
|
7396 |
|
|
|
7397 |
public java.util.Iterator<Scan> getSuccessIterator() {
|
|
|
7398 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
7399 |
}
|
|
|
7400 |
|
|
|
7401 |
public void addToSuccess(Scan elem) {
|
|
|
7402 |
if (this.success == null) {
|
|
|
7403 |
this.success = new ArrayList<Scan>();
|
|
|
7404 |
}
|
|
|
7405 |
this.success.add(elem);
|
|
|
7406 |
}
|
|
|
7407 |
|
|
|
7408 |
public List<Scan> getSuccess() {
|
| 2820 |
chandransh |
7409 |
return this.success;
|
|
|
7410 |
}
|
|
|
7411 |
|
| 4496 |
mandeep.dh |
7412 |
public void setSuccess(List<Scan> success) {
|
| 2820 |
chandransh |
7413 |
this.success = success;
|
|
|
7414 |
}
|
|
|
7415 |
|
|
|
7416 |
public void unsetSuccess() {
|
| 4496 |
mandeep.dh |
7417 |
this.success = null;
|
| 2820 |
chandransh |
7418 |
}
|
|
|
7419 |
|
| 3430 |
rajveer |
7420 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
7421 |
public boolean isSetSuccess() {
|
| 4496 |
mandeep.dh |
7422 |
return this.success != null;
|
| 2820 |
chandransh |
7423 |
}
|
|
|
7424 |
|
|
|
7425 |
public void setSuccessIsSet(boolean value) {
|
| 4496 |
mandeep.dh |
7426 |
if (!value) {
|
|
|
7427 |
this.success = null;
|
|
|
7428 |
}
|
| 2820 |
chandransh |
7429 |
}
|
|
|
7430 |
|
| 4496 |
mandeep.dh |
7431 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7432 |
switch (field) {
|
|
|
7433 |
case SUCCESS:
|
|
|
7434 |
if (value == null) {
|
|
|
7435 |
unsetSuccess();
|
|
|
7436 |
} else {
|
|
|
7437 |
setSuccess((List<Scan>)value);
|
|
|
7438 |
}
|
|
|
7439 |
break;
|
|
|
7440 |
|
|
|
7441 |
}
|
|
|
7442 |
}
|
|
|
7443 |
|
|
|
7444 |
public Object getFieldValue(_Fields field) {
|
|
|
7445 |
switch (field) {
|
|
|
7446 |
case SUCCESS:
|
|
|
7447 |
return getSuccess();
|
|
|
7448 |
|
|
|
7449 |
}
|
|
|
7450 |
throw new IllegalStateException();
|
|
|
7451 |
}
|
|
|
7452 |
|
|
|
7453 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7454 |
public boolean isSet(_Fields field) {
|
|
|
7455 |
if (field == null) {
|
|
|
7456 |
throw new IllegalArgumentException();
|
|
|
7457 |
}
|
|
|
7458 |
|
|
|
7459 |
switch (field) {
|
|
|
7460 |
case SUCCESS:
|
|
|
7461 |
return isSetSuccess();
|
|
|
7462 |
}
|
|
|
7463 |
throw new IllegalStateException();
|
|
|
7464 |
}
|
|
|
7465 |
|
|
|
7466 |
@Override
|
|
|
7467 |
public boolean equals(Object that) {
|
|
|
7468 |
if (that == null)
|
|
|
7469 |
return false;
|
|
|
7470 |
if (that instanceof getScan_result)
|
|
|
7471 |
return this.equals((getScan_result)that);
|
|
|
7472 |
return false;
|
|
|
7473 |
}
|
|
|
7474 |
|
|
|
7475 |
public boolean equals(getScan_result that) {
|
|
|
7476 |
if (that == null)
|
|
|
7477 |
return false;
|
|
|
7478 |
|
|
|
7479 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
7480 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
7481 |
if (this_present_success || that_present_success) {
|
|
|
7482 |
if (!(this_present_success && that_present_success))
|
|
|
7483 |
return false;
|
|
|
7484 |
if (!this.success.equals(that.success))
|
|
|
7485 |
return false;
|
|
|
7486 |
}
|
|
|
7487 |
|
|
|
7488 |
return true;
|
|
|
7489 |
}
|
|
|
7490 |
|
|
|
7491 |
@Override
|
|
|
7492 |
public int hashCode() {
|
|
|
7493 |
return 0;
|
|
|
7494 |
}
|
|
|
7495 |
|
|
|
7496 |
public int compareTo(getScan_result other) {
|
|
|
7497 |
if (!getClass().equals(other.getClass())) {
|
|
|
7498 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7499 |
}
|
|
|
7500 |
|
|
|
7501 |
int lastComparison = 0;
|
|
|
7502 |
getScan_result typedOther = (getScan_result)other;
|
|
|
7503 |
|
|
|
7504 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
7505 |
if (lastComparison != 0) {
|
|
|
7506 |
return lastComparison;
|
|
|
7507 |
}
|
|
|
7508 |
if (isSetSuccess()) {
|
|
|
7509 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
7510 |
if (lastComparison != 0) {
|
|
|
7511 |
return lastComparison;
|
|
|
7512 |
}
|
|
|
7513 |
}
|
|
|
7514 |
return 0;
|
|
|
7515 |
}
|
|
|
7516 |
|
|
|
7517 |
public _Fields fieldForId(int fieldId) {
|
|
|
7518 |
return _Fields.findByThriftId(fieldId);
|
|
|
7519 |
}
|
|
|
7520 |
|
|
|
7521 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7522 |
org.apache.thrift.protocol.TField field;
|
|
|
7523 |
iprot.readStructBegin();
|
|
|
7524 |
while (true)
|
|
|
7525 |
{
|
|
|
7526 |
field = iprot.readFieldBegin();
|
|
|
7527 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7528 |
break;
|
|
|
7529 |
}
|
|
|
7530 |
switch (field.id) {
|
|
|
7531 |
case 0: // SUCCESS
|
|
|
7532 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
7533 |
{
|
|
|
7534 |
org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
|
|
|
7535 |
this.success = new ArrayList<Scan>(_list12.size);
|
|
|
7536 |
for (int _i13 = 0; _i13 < _list12.size; ++_i13)
|
|
|
7537 |
{
|
|
|
7538 |
Scan _elem14; // required
|
|
|
7539 |
_elem14 = new Scan();
|
|
|
7540 |
_elem14.read(iprot);
|
|
|
7541 |
this.success.add(_elem14);
|
|
|
7542 |
}
|
|
|
7543 |
iprot.readListEnd();
|
|
|
7544 |
}
|
|
|
7545 |
} else {
|
|
|
7546 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7547 |
}
|
|
|
7548 |
break;
|
|
|
7549 |
default:
|
|
|
7550 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7551 |
}
|
|
|
7552 |
iprot.readFieldEnd();
|
|
|
7553 |
}
|
|
|
7554 |
iprot.readStructEnd();
|
|
|
7555 |
validate();
|
|
|
7556 |
}
|
|
|
7557 |
|
|
|
7558 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7559 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7560 |
|
|
|
7561 |
if (this.isSetSuccess()) {
|
|
|
7562 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
7563 |
{
|
|
|
7564 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
7565 |
for (Scan _iter15 : this.success)
|
|
|
7566 |
{
|
|
|
7567 |
_iter15.write(oprot);
|
|
|
7568 |
}
|
|
|
7569 |
oprot.writeListEnd();
|
|
|
7570 |
}
|
|
|
7571 |
oprot.writeFieldEnd();
|
|
|
7572 |
}
|
|
|
7573 |
oprot.writeFieldStop();
|
|
|
7574 |
oprot.writeStructEnd();
|
|
|
7575 |
}
|
|
|
7576 |
|
|
|
7577 |
@Override
|
|
|
7578 |
public String toString() {
|
|
|
7579 |
StringBuilder sb = new StringBuilder("getScan_result(");
|
|
|
7580 |
boolean first = true;
|
|
|
7581 |
|
|
|
7582 |
sb.append("success:");
|
|
|
7583 |
if (this.success == null) {
|
|
|
7584 |
sb.append("null");
|
|
|
7585 |
} else {
|
|
|
7586 |
sb.append(this.success);
|
|
|
7587 |
}
|
|
|
7588 |
first = false;
|
|
|
7589 |
sb.append(")");
|
|
|
7590 |
return sb.toString();
|
|
|
7591 |
}
|
|
|
7592 |
|
|
|
7593 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7594 |
// check for required fields
|
|
|
7595 |
}
|
|
|
7596 |
|
|
|
7597 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7598 |
try {
|
|
|
7599 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7600 |
} catch (org.apache.thrift.TException te) {
|
|
|
7601 |
throw new java.io.IOException(te);
|
|
|
7602 |
}
|
|
|
7603 |
}
|
|
|
7604 |
|
|
|
7605 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7606 |
try {
|
|
|
7607 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7608 |
} catch (org.apache.thrift.TException te) {
|
|
|
7609 |
throw new java.io.IOException(te);
|
|
|
7610 |
}
|
|
|
7611 |
}
|
|
|
7612 |
|
|
|
7613 |
}
|
|
|
7614 |
|
|
|
7615 |
public static class scanSerializedItem_args implements org.apache.thrift.TBase<scanSerializedItem_args, scanSerializedItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
7616 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItem_args");
|
|
|
7617 |
|
| 5110 |
mandeep.dh |
7618 |
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 |
7619 |
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);
|
|
|
7620 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
7621 |
|
| 5110 |
mandeep.dh |
7622 |
private InventoryItem inventoryItem; // required
|
| 4496 |
mandeep.dh |
7623 |
private ScanType type; // required
|
|
|
7624 |
private long warehouseId; // required
|
|
|
7625 |
|
|
|
7626 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7627 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5110 |
mandeep.dh |
7628 |
INVENTORY_ITEM((short)1, "inventoryItem"),
|
| 4496 |
mandeep.dh |
7629 |
/**
|
|
|
7630 |
*
|
|
|
7631 |
* @see ScanType
|
|
|
7632 |
*/
|
|
|
7633 |
TYPE((short)2, "type"),
|
|
|
7634 |
WAREHOUSE_ID((short)3, "warehouseId");
|
|
|
7635 |
|
|
|
7636 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7637 |
|
|
|
7638 |
static {
|
|
|
7639 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7640 |
byName.put(field.getFieldName(), field);
|
|
|
7641 |
}
|
|
|
7642 |
}
|
|
|
7643 |
|
|
|
7644 |
/**
|
|
|
7645 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7646 |
*/
|
|
|
7647 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7648 |
switch(fieldId) {
|
| 5110 |
mandeep.dh |
7649 |
case 1: // INVENTORY_ITEM
|
|
|
7650 |
return INVENTORY_ITEM;
|
| 4496 |
mandeep.dh |
7651 |
case 2: // TYPE
|
|
|
7652 |
return TYPE;
|
|
|
7653 |
case 3: // WAREHOUSE_ID
|
|
|
7654 |
return WAREHOUSE_ID;
|
|
|
7655 |
default:
|
|
|
7656 |
return null;
|
|
|
7657 |
}
|
|
|
7658 |
}
|
|
|
7659 |
|
|
|
7660 |
/**
|
|
|
7661 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7662 |
* if it is not found.
|
|
|
7663 |
*/
|
|
|
7664 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7665 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7666 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7667 |
return fields;
|
|
|
7668 |
}
|
|
|
7669 |
|
|
|
7670 |
/**
|
|
|
7671 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7672 |
*/
|
|
|
7673 |
public static _Fields findByName(String name) {
|
|
|
7674 |
return byName.get(name);
|
|
|
7675 |
}
|
|
|
7676 |
|
|
|
7677 |
private final short _thriftId;
|
|
|
7678 |
private final String _fieldName;
|
|
|
7679 |
|
|
|
7680 |
_Fields(short thriftId, String fieldName) {
|
|
|
7681 |
_thriftId = thriftId;
|
|
|
7682 |
_fieldName = fieldName;
|
|
|
7683 |
}
|
|
|
7684 |
|
|
|
7685 |
public short getThriftFieldId() {
|
|
|
7686 |
return _thriftId;
|
|
|
7687 |
}
|
|
|
7688 |
|
|
|
7689 |
public String getFieldName() {
|
|
|
7690 |
return _fieldName;
|
|
|
7691 |
}
|
|
|
7692 |
}
|
|
|
7693 |
|
|
|
7694 |
// isset id assignments
|
| 5110 |
mandeep.dh |
7695 |
private static final int __WAREHOUSEID_ISSET_ID = 0;
|
|
|
7696 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 4496 |
mandeep.dh |
7697 |
|
|
|
7698 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7699 |
static {
|
|
|
7700 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5110 |
mandeep.dh |
7701 |
tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7702 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 4496 |
mandeep.dh |
7703 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7704 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
7705 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7706 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
7707 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7708 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItem_args.class, metaDataMap);
|
|
|
7709 |
}
|
|
|
7710 |
|
|
|
7711 |
public scanSerializedItem_args() {
|
|
|
7712 |
}
|
|
|
7713 |
|
|
|
7714 |
public scanSerializedItem_args(
|
| 5110 |
mandeep.dh |
7715 |
InventoryItem inventoryItem,
|
| 4496 |
mandeep.dh |
7716 |
ScanType type,
|
|
|
7717 |
long warehouseId)
|
|
|
7718 |
{
|
|
|
7719 |
this();
|
| 5110 |
mandeep.dh |
7720 |
this.inventoryItem = inventoryItem;
|
| 4496 |
mandeep.dh |
7721 |
this.type = type;
|
|
|
7722 |
this.warehouseId = warehouseId;
|
|
|
7723 |
setWarehouseIdIsSet(true);
|
|
|
7724 |
}
|
|
|
7725 |
|
|
|
7726 |
/**
|
|
|
7727 |
* Performs a deep copy on <i>other</i>.
|
|
|
7728 |
*/
|
|
|
7729 |
public scanSerializedItem_args(scanSerializedItem_args other) {
|
|
|
7730 |
__isset_bit_vector.clear();
|
|
|
7731 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5110 |
mandeep.dh |
7732 |
if (other.isSetInventoryItem()) {
|
|
|
7733 |
this.inventoryItem = new InventoryItem(other.inventoryItem);
|
|
|
7734 |
}
|
| 4496 |
mandeep.dh |
7735 |
if (other.isSetType()) {
|
|
|
7736 |
this.type = other.type;
|
|
|
7737 |
}
|
|
|
7738 |
this.warehouseId = other.warehouseId;
|
|
|
7739 |
}
|
|
|
7740 |
|
|
|
7741 |
public scanSerializedItem_args deepCopy() {
|
|
|
7742 |
return new scanSerializedItem_args(this);
|
|
|
7743 |
}
|
|
|
7744 |
|
|
|
7745 |
@Override
|
|
|
7746 |
public void clear() {
|
| 5110 |
mandeep.dh |
7747 |
this.inventoryItem = null;
|
| 4496 |
mandeep.dh |
7748 |
this.type = null;
|
|
|
7749 |
setWarehouseIdIsSet(false);
|
|
|
7750 |
this.warehouseId = 0;
|
|
|
7751 |
}
|
|
|
7752 |
|
| 5110 |
mandeep.dh |
7753 |
public InventoryItem getInventoryItem() {
|
|
|
7754 |
return this.inventoryItem;
|
| 4496 |
mandeep.dh |
7755 |
}
|
|
|
7756 |
|
| 5110 |
mandeep.dh |
7757 |
public void setInventoryItem(InventoryItem inventoryItem) {
|
|
|
7758 |
this.inventoryItem = inventoryItem;
|
| 4496 |
mandeep.dh |
7759 |
}
|
|
|
7760 |
|
| 5110 |
mandeep.dh |
7761 |
public void unsetInventoryItem() {
|
|
|
7762 |
this.inventoryItem = null;
|
| 4496 |
mandeep.dh |
7763 |
}
|
|
|
7764 |
|
| 5110 |
mandeep.dh |
7765 |
/** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
|
|
|
7766 |
public boolean isSetInventoryItem() {
|
|
|
7767 |
return this.inventoryItem != null;
|
| 4496 |
mandeep.dh |
7768 |
}
|
|
|
7769 |
|
| 5110 |
mandeep.dh |
7770 |
public void setInventoryItemIsSet(boolean value) {
|
|
|
7771 |
if (!value) {
|
|
|
7772 |
this.inventoryItem = null;
|
|
|
7773 |
}
|
| 4496 |
mandeep.dh |
7774 |
}
|
|
|
7775 |
|
|
|
7776 |
/**
|
|
|
7777 |
*
|
|
|
7778 |
* @see ScanType
|
|
|
7779 |
*/
|
|
|
7780 |
public ScanType getType() {
|
|
|
7781 |
return this.type;
|
|
|
7782 |
}
|
|
|
7783 |
|
|
|
7784 |
/**
|
|
|
7785 |
*
|
|
|
7786 |
* @see ScanType
|
|
|
7787 |
*/
|
|
|
7788 |
public void setType(ScanType type) {
|
|
|
7789 |
this.type = type;
|
|
|
7790 |
}
|
|
|
7791 |
|
|
|
7792 |
public void unsetType() {
|
|
|
7793 |
this.type = null;
|
|
|
7794 |
}
|
|
|
7795 |
|
|
|
7796 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
7797 |
public boolean isSetType() {
|
|
|
7798 |
return this.type != null;
|
|
|
7799 |
}
|
|
|
7800 |
|
|
|
7801 |
public void setTypeIsSet(boolean value) {
|
|
|
7802 |
if (!value) {
|
|
|
7803 |
this.type = null;
|
|
|
7804 |
}
|
|
|
7805 |
}
|
|
|
7806 |
|
|
|
7807 |
public long getWarehouseId() {
|
|
|
7808 |
return this.warehouseId;
|
|
|
7809 |
}
|
|
|
7810 |
|
|
|
7811 |
public void setWarehouseId(long warehouseId) {
|
|
|
7812 |
this.warehouseId = warehouseId;
|
|
|
7813 |
setWarehouseIdIsSet(true);
|
|
|
7814 |
}
|
|
|
7815 |
|
|
|
7816 |
public void unsetWarehouseId() {
|
|
|
7817 |
__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
|
|
|
7818 |
}
|
|
|
7819 |
|
|
|
7820 |
/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
|
|
|
7821 |
public boolean isSetWarehouseId() {
|
|
|
7822 |
return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
|
|
|
7823 |
}
|
|
|
7824 |
|
|
|
7825 |
public void setWarehouseIdIsSet(boolean value) {
|
|
|
7826 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
|
|
7827 |
}
|
|
|
7828 |
|
|
|
7829 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7830 |
switch (field) {
|
| 5110 |
mandeep.dh |
7831 |
case INVENTORY_ITEM:
|
| 4496 |
mandeep.dh |
7832 |
if (value == null) {
|
| 5110 |
mandeep.dh |
7833 |
unsetInventoryItem();
|
| 4496 |
mandeep.dh |
7834 |
} else {
|
| 5110 |
mandeep.dh |
7835 |
setInventoryItem((InventoryItem)value);
|
| 4496 |
mandeep.dh |
7836 |
}
|
|
|
7837 |
break;
|
|
|
7838 |
|
|
|
7839 |
case TYPE:
|
|
|
7840 |
if (value == null) {
|
|
|
7841 |
unsetType();
|
|
|
7842 |
} else {
|
|
|
7843 |
setType((ScanType)value);
|
|
|
7844 |
}
|
|
|
7845 |
break;
|
|
|
7846 |
|
|
|
7847 |
case WAREHOUSE_ID:
|
|
|
7848 |
if (value == null) {
|
|
|
7849 |
unsetWarehouseId();
|
|
|
7850 |
} else {
|
|
|
7851 |
setWarehouseId((Long)value);
|
|
|
7852 |
}
|
|
|
7853 |
break;
|
|
|
7854 |
|
|
|
7855 |
}
|
|
|
7856 |
}
|
|
|
7857 |
|
|
|
7858 |
public Object getFieldValue(_Fields field) {
|
|
|
7859 |
switch (field) {
|
| 5110 |
mandeep.dh |
7860 |
case INVENTORY_ITEM:
|
|
|
7861 |
return getInventoryItem();
|
| 4496 |
mandeep.dh |
7862 |
|
|
|
7863 |
case TYPE:
|
|
|
7864 |
return getType();
|
|
|
7865 |
|
|
|
7866 |
case WAREHOUSE_ID:
|
|
|
7867 |
return Long.valueOf(getWarehouseId());
|
|
|
7868 |
|
|
|
7869 |
}
|
|
|
7870 |
throw new IllegalStateException();
|
|
|
7871 |
}
|
|
|
7872 |
|
|
|
7873 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7874 |
public boolean isSet(_Fields field) {
|
|
|
7875 |
if (field == null) {
|
|
|
7876 |
throw new IllegalArgumentException();
|
|
|
7877 |
}
|
|
|
7878 |
|
|
|
7879 |
switch (field) {
|
| 5110 |
mandeep.dh |
7880 |
case INVENTORY_ITEM:
|
|
|
7881 |
return isSetInventoryItem();
|
| 4496 |
mandeep.dh |
7882 |
case TYPE:
|
|
|
7883 |
return isSetType();
|
|
|
7884 |
case WAREHOUSE_ID:
|
|
|
7885 |
return isSetWarehouseId();
|
|
|
7886 |
}
|
|
|
7887 |
throw new IllegalStateException();
|
|
|
7888 |
}
|
|
|
7889 |
|
|
|
7890 |
@Override
|
|
|
7891 |
public boolean equals(Object that) {
|
|
|
7892 |
if (that == null)
|
|
|
7893 |
return false;
|
|
|
7894 |
if (that instanceof scanSerializedItem_args)
|
|
|
7895 |
return this.equals((scanSerializedItem_args)that);
|
|
|
7896 |
return false;
|
|
|
7897 |
}
|
|
|
7898 |
|
|
|
7899 |
public boolean equals(scanSerializedItem_args that) {
|
|
|
7900 |
if (that == null)
|
|
|
7901 |
return false;
|
|
|
7902 |
|
| 5110 |
mandeep.dh |
7903 |
boolean this_present_inventoryItem = true && this.isSetInventoryItem();
|
|
|
7904 |
boolean that_present_inventoryItem = true && that.isSetInventoryItem();
|
|
|
7905 |
if (this_present_inventoryItem || that_present_inventoryItem) {
|
|
|
7906 |
if (!(this_present_inventoryItem && that_present_inventoryItem))
|
| 4496 |
mandeep.dh |
7907 |
return false;
|
| 5110 |
mandeep.dh |
7908 |
if (!this.inventoryItem.equals(that.inventoryItem))
|
| 4496 |
mandeep.dh |
7909 |
return false;
|
|
|
7910 |
}
|
|
|
7911 |
|
|
|
7912 |
boolean this_present_type = true && this.isSetType();
|
|
|
7913 |
boolean that_present_type = true && that.isSetType();
|
|
|
7914 |
if (this_present_type || that_present_type) {
|
|
|
7915 |
if (!(this_present_type && that_present_type))
|
|
|
7916 |
return false;
|
|
|
7917 |
if (!this.type.equals(that.type))
|
|
|
7918 |
return false;
|
|
|
7919 |
}
|
|
|
7920 |
|
|
|
7921 |
boolean this_present_warehouseId = true;
|
|
|
7922 |
boolean that_present_warehouseId = true;
|
|
|
7923 |
if (this_present_warehouseId || that_present_warehouseId) {
|
|
|
7924 |
if (!(this_present_warehouseId && that_present_warehouseId))
|
|
|
7925 |
return false;
|
|
|
7926 |
if (this.warehouseId != that.warehouseId)
|
|
|
7927 |
return false;
|
|
|
7928 |
}
|
|
|
7929 |
|
|
|
7930 |
return true;
|
|
|
7931 |
}
|
|
|
7932 |
|
|
|
7933 |
@Override
|
|
|
7934 |
public int hashCode() {
|
|
|
7935 |
return 0;
|
|
|
7936 |
}
|
|
|
7937 |
|
|
|
7938 |
public int compareTo(scanSerializedItem_args other) {
|
|
|
7939 |
if (!getClass().equals(other.getClass())) {
|
|
|
7940 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7941 |
}
|
|
|
7942 |
|
|
|
7943 |
int lastComparison = 0;
|
|
|
7944 |
scanSerializedItem_args typedOther = (scanSerializedItem_args)other;
|
|
|
7945 |
|
| 5110 |
mandeep.dh |
7946 |
lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
|
| 4496 |
mandeep.dh |
7947 |
if (lastComparison != 0) {
|
|
|
7948 |
return lastComparison;
|
|
|
7949 |
}
|
| 5110 |
mandeep.dh |
7950 |
if (isSetInventoryItem()) {
|
|
|
7951 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
|
| 4496 |
mandeep.dh |
7952 |
if (lastComparison != 0) {
|
|
|
7953 |
return lastComparison;
|
|
|
7954 |
}
|
|
|
7955 |
}
|
|
|
7956 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
|
|
7957 |
if (lastComparison != 0) {
|
|
|
7958 |
return lastComparison;
|
|
|
7959 |
}
|
|
|
7960 |
if (isSetType()) {
|
|
|
7961 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
7962 |
if (lastComparison != 0) {
|
|
|
7963 |
return lastComparison;
|
|
|
7964 |
}
|
|
|
7965 |
}
|
|
|
7966 |
lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
|
|
|
7967 |
if (lastComparison != 0) {
|
|
|
7968 |
return lastComparison;
|
|
|
7969 |
}
|
|
|
7970 |
if (isSetWarehouseId()) {
|
|
|
7971 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
|
|
7972 |
if (lastComparison != 0) {
|
|
|
7973 |
return lastComparison;
|
|
|
7974 |
}
|
|
|
7975 |
}
|
|
|
7976 |
return 0;
|
|
|
7977 |
}
|
|
|
7978 |
|
|
|
7979 |
public _Fields fieldForId(int fieldId) {
|
|
|
7980 |
return _Fields.findByThriftId(fieldId);
|
|
|
7981 |
}
|
|
|
7982 |
|
|
|
7983 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7984 |
org.apache.thrift.protocol.TField field;
|
|
|
7985 |
iprot.readStructBegin();
|
|
|
7986 |
while (true)
|
|
|
7987 |
{
|
|
|
7988 |
field = iprot.readFieldBegin();
|
|
|
7989 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7990 |
break;
|
|
|
7991 |
}
|
|
|
7992 |
switch (field.id) {
|
| 5110 |
mandeep.dh |
7993 |
case 1: // INVENTORY_ITEM
|
|
|
7994 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
7995 |
this.inventoryItem = new InventoryItem();
|
|
|
7996 |
this.inventoryItem.read(iprot);
|
| 4496 |
mandeep.dh |
7997 |
} else {
|
|
|
7998 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7999 |
}
|
|
|
8000 |
break;
|
|
|
8001 |
case 2: // TYPE
|
|
|
8002 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
8003 |
this.type = ScanType.findByValue(iprot.readI32());
|
|
|
8004 |
} else {
|
|
|
8005 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8006 |
}
|
|
|
8007 |
break;
|
|
|
8008 |
case 3: // WAREHOUSE_ID
|
|
|
8009 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
8010 |
this.warehouseId = iprot.readI64();
|
|
|
8011 |
setWarehouseIdIsSet(true);
|
|
|
8012 |
} else {
|
|
|
8013 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8014 |
}
|
|
|
8015 |
break;
|
|
|
8016 |
default:
|
|
|
8017 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8018 |
}
|
|
|
8019 |
iprot.readFieldEnd();
|
|
|
8020 |
}
|
|
|
8021 |
iprot.readStructEnd();
|
|
|
8022 |
validate();
|
|
|
8023 |
}
|
|
|
8024 |
|
|
|
8025 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8026 |
validate();
|
|
|
8027 |
|
|
|
8028 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5110 |
mandeep.dh |
8029 |
if (this.inventoryItem != null) {
|
|
|
8030 |
oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
|
|
|
8031 |
this.inventoryItem.write(oprot);
|
|
|
8032 |
oprot.writeFieldEnd();
|
|
|
8033 |
}
|
| 4496 |
mandeep.dh |
8034 |
if (this.type != null) {
|
|
|
8035 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
8036 |
oprot.writeI32(this.type.getValue());
|
|
|
8037 |
oprot.writeFieldEnd();
|
|
|
8038 |
}
|
|
|
8039 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
|
|
8040 |
oprot.writeI64(this.warehouseId);
|
|
|
8041 |
oprot.writeFieldEnd();
|
|
|
8042 |
oprot.writeFieldStop();
|
|
|
8043 |
oprot.writeStructEnd();
|
|
|
8044 |
}
|
|
|
8045 |
|
|
|
8046 |
@Override
|
|
|
8047 |
public String toString() {
|
|
|
8048 |
StringBuilder sb = new StringBuilder("scanSerializedItem_args(");
|
|
|
8049 |
boolean first = true;
|
|
|
8050 |
|
| 5110 |
mandeep.dh |
8051 |
sb.append("inventoryItem:");
|
|
|
8052 |
if (this.inventoryItem == null) {
|
|
|
8053 |
sb.append("null");
|
|
|
8054 |
} else {
|
|
|
8055 |
sb.append(this.inventoryItem);
|
|
|
8056 |
}
|
| 4496 |
mandeep.dh |
8057 |
first = false;
|
|
|
8058 |
if (!first) sb.append(", ");
|
|
|
8059 |
sb.append("type:");
|
|
|
8060 |
if (this.type == null) {
|
|
|
8061 |
sb.append("null");
|
|
|
8062 |
} else {
|
|
|
8063 |
sb.append(this.type);
|
|
|
8064 |
}
|
|
|
8065 |
first = false;
|
|
|
8066 |
if (!first) sb.append(", ");
|
|
|
8067 |
sb.append("warehouseId:");
|
|
|
8068 |
sb.append(this.warehouseId);
|
|
|
8069 |
first = false;
|
|
|
8070 |
sb.append(")");
|
|
|
8071 |
return sb.toString();
|
|
|
8072 |
}
|
|
|
8073 |
|
|
|
8074 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8075 |
// check for required fields
|
|
|
8076 |
}
|
|
|
8077 |
|
|
|
8078 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8079 |
try {
|
|
|
8080 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8081 |
} catch (org.apache.thrift.TException te) {
|
|
|
8082 |
throw new java.io.IOException(te);
|
|
|
8083 |
}
|
|
|
8084 |
}
|
|
|
8085 |
|
|
|
8086 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8087 |
try {
|
|
|
8088 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
8089 |
__isset_bit_vector = new BitSet(1);
|
|
|
8090 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8091 |
} catch (org.apache.thrift.TException te) {
|
|
|
8092 |
throw new java.io.IOException(te);
|
|
|
8093 |
}
|
|
|
8094 |
}
|
|
|
8095 |
|
|
|
8096 |
}
|
|
|
8097 |
|
|
|
8098 |
public static class scanSerializedItem_result implements org.apache.thrift.TBase<scanSerializedItem_result, scanSerializedItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8099 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItem_result");
|
|
|
8100 |
|
|
|
8101 |
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);
|
|
|
8102 |
|
|
|
8103 |
private WarehouseServiceException wex; // required
|
|
|
8104 |
|
|
|
8105 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8106 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8107 |
WEX((short)1, "wex");
|
|
|
8108 |
|
|
|
8109 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8110 |
|
|
|
8111 |
static {
|
|
|
8112 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8113 |
byName.put(field.getFieldName(), field);
|
|
|
8114 |
}
|
|
|
8115 |
}
|
|
|
8116 |
|
|
|
8117 |
/**
|
|
|
8118 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8119 |
*/
|
|
|
8120 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8121 |
switch(fieldId) {
|
|
|
8122 |
case 1: // WEX
|
|
|
8123 |
return WEX;
|
|
|
8124 |
default:
|
|
|
8125 |
return null;
|
|
|
8126 |
}
|
|
|
8127 |
}
|
|
|
8128 |
|
|
|
8129 |
/**
|
|
|
8130 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8131 |
* if it is not found.
|
|
|
8132 |
*/
|
|
|
8133 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8134 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8135 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8136 |
return fields;
|
|
|
8137 |
}
|
|
|
8138 |
|
|
|
8139 |
/**
|
|
|
8140 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8141 |
*/
|
|
|
8142 |
public static _Fields findByName(String name) {
|
|
|
8143 |
return byName.get(name);
|
|
|
8144 |
}
|
|
|
8145 |
|
|
|
8146 |
private final short _thriftId;
|
|
|
8147 |
private final String _fieldName;
|
|
|
8148 |
|
|
|
8149 |
_Fields(short thriftId, String fieldName) {
|
|
|
8150 |
_thriftId = thriftId;
|
|
|
8151 |
_fieldName = fieldName;
|
|
|
8152 |
}
|
|
|
8153 |
|
|
|
8154 |
public short getThriftFieldId() {
|
|
|
8155 |
return _thriftId;
|
|
|
8156 |
}
|
|
|
8157 |
|
|
|
8158 |
public String getFieldName() {
|
|
|
8159 |
return _fieldName;
|
|
|
8160 |
}
|
|
|
8161 |
}
|
|
|
8162 |
|
|
|
8163 |
// isset id assignments
|
|
|
8164 |
|
|
|
8165 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8166 |
static {
|
|
|
8167 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8168 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8169 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
8170 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8171 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItem_result.class, metaDataMap);
|
|
|
8172 |
}
|
|
|
8173 |
|
|
|
8174 |
public scanSerializedItem_result() {
|
|
|
8175 |
}
|
|
|
8176 |
|
|
|
8177 |
public scanSerializedItem_result(
|
|
|
8178 |
WarehouseServiceException wex)
|
|
|
8179 |
{
|
|
|
8180 |
this();
|
|
|
8181 |
this.wex = wex;
|
|
|
8182 |
}
|
|
|
8183 |
|
|
|
8184 |
/**
|
|
|
8185 |
* Performs a deep copy on <i>other</i>.
|
|
|
8186 |
*/
|
|
|
8187 |
public scanSerializedItem_result(scanSerializedItem_result other) {
|
|
|
8188 |
if (other.isSetWex()) {
|
|
|
8189 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
8190 |
}
|
|
|
8191 |
}
|
|
|
8192 |
|
|
|
8193 |
public scanSerializedItem_result deepCopy() {
|
|
|
8194 |
return new scanSerializedItem_result(this);
|
|
|
8195 |
}
|
|
|
8196 |
|
|
|
8197 |
@Override
|
|
|
8198 |
public void clear() {
|
|
|
8199 |
this.wex = null;
|
|
|
8200 |
}
|
|
|
8201 |
|
| 2820 |
chandransh |
8202 |
public WarehouseServiceException getWex() {
|
|
|
8203 |
return this.wex;
|
|
|
8204 |
}
|
|
|
8205 |
|
| 3430 |
rajveer |
8206 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
8207 |
this.wex = wex;
|
|
|
8208 |
}
|
|
|
8209 |
|
|
|
8210 |
public void unsetWex() {
|
|
|
8211 |
this.wex = null;
|
|
|
8212 |
}
|
|
|
8213 |
|
| 3430 |
rajveer |
8214 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
8215 |
public boolean isSetWex() {
|
|
|
8216 |
return this.wex != null;
|
|
|
8217 |
}
|
|
|
8218 |
|
|
|
8219 |
public void setWexIsSet(boolean value) {
|
|
|
8220 |
if (!value) {
|
|
|
8221 |
this.wex = null;
|
|
|
8222 |
}
|
|
|
8223 |
}
|
|
|
8224 |
|
|
|
8225 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8226 |
switch (field) {
|
|
|
8227 |
case WEX:
|
|
|
8228 |
if (value == null) {
|
|
|
8229 |
unsetWex();
|
|
|
8230 |
} else {
|
|
|
8231 |
setWex((WarehouseServiceException)value);
|
|
|
8232 |
}
|
|
|
8233 |
break;
|
|
|
8234 |
|
|
|
8235 |
}
|
|
|
8236 |
}
|
|
|
8237 |
|
|
|
8238 |
public Object getFieldValue(_Fields field) {
|
|
|
8239 |
switch (field) {
|
|
|
8240 |
case WEX:
|
|
|
8241 |
return getWex();
|
|
|
8242 |
|
|
|
8243 |
}
|
|
|
8244 |
throw new IllegalStateException();
|
|
|
8245 |
}
|
|
|
8246 |
|
| 3430 |
rajveer |
8247 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8248 |
public boolean isSet(_Fields field) {
|
|
|
8249 |
if (field == null) {
|
|
|
8250 |
throw new IllegalArgumentException();
|
|
|
8251 |
}
|
| 2820 |
chandransh |
8252 |
|
|
|
8253 |
switch (field) {
|
|
|
8254 |
case WEX:
|
|
|
8255 |
return isSetWex();
|
|
|
8256 |
}
|
|
|
8257 |
throw new IllegalStateException();
|
|
|
8258 |
}
|
|
|
8259 |
|
|
|
8260 |
@Override
|
|
|
8261 |
public boolean equals(Object that) {
|
|
|
8262 |
if (that == null)
|
|
|
8263 |
return false;
|
| 4496 |
mandeep.dh |
8264 |
if (that instanceof scanSerializedItem_result)
|
|
|
8265 |
return this.equals((scanSerializedItem_result)that);
|
| 2820 |
chandransh |
8266 |
return false;
|
|
|
8267 |
}
|
|
|
8268 |
|
| 4496 |
mandeep.dh |
8269 |
public boolean equals(scanSerializedItem_result that) {
|
| 2820 |
chandransh |
8270 |
if (that == null)
|
|
|
8271 |
return false;
|
|
|
8272 |
|
|
|
8273 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
8274 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
8275 |
if (this_present_wex || that_present_wex) {
|
|
|
8276 |
if (!(this_present_wex && that_present_wex))
|
|
|
8277 |
return false;
|
|
|
8278 |
if (!this.wex.equals(that.wex))
|
|
|
8279 |
return false;
|
|
|
8280 |
}
|
|
|
8281 |
|
|
|
8282 |
return true;
|
|
|
8283 |
}
|
|
|
8284 |
|
|
|
8285 |
@Override
|
|
|
8286 |
public int hashCode() {
|
|
|
8287 |
return 0;
|
|
|
8288 |
}
|
|
|
8289 |
|
| 4496 |
mandeep.dh |
8290 |
public int compareTo(scanSerializedItem_result other) {
|
| 2820 |
chandransh |
8291 |
if (!getClass().equals(other.getClass())) {
|
|
|
8292 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8293 |
}
|
|
|
8294 |
|
|
|
8295 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
8296 |
scanSerializedItem_result typedOther = (scanSerializedItem_result)other;
|
| 2820 |
chandransh |
8297 |
|
| 3430 |
rajveer |
8298 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
8299 |
if (lastComparison != 0) {
|
|
|
8300 |
return lastComparison;
|
|
|
8301 |
}
|
| 3430 |
rajveer |
8302 |
if (isSetWex()) {
|
|
|
8303 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
8304 |
if (lastComparison != 0) {
|
|
|
8305 |
return lastComparison;
|
|
|
8306 |
}
|
| 2820 |
chandransh |
8307 |
}
|
|
|
8308 |
return 0;
|
|
|
8309 |
}
|
|
|
8310 |
|
| 3430 |
rajveer |
8311 |
public _Fields fieldForId(int fieldId) {
|
|
|
8312 |
return _Fields.findByThriftId(fieldId);
|
|
|
8313 |
}
|
|
|
8314 |
|
|
|
8315 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8316 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
8317 |
iprot.readStructBegin();
|
|
|
8318 |
while (true)
|
|
|
8319 |
{
|
|
|
8320 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
8321 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
8322 |
break;
|
|
|
8323 |
}
|
| 3430 |
rajveer |
8324 |
switch (field.id) {
|
|
|
8325 |
case 1: // WEX
|
|
|
8326 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
8327 |
this.wex = new WarehouseServiceException();
|
|
|
8328 |
this.wex.read(iprot);
|
|
|
8329 |
} else {
|
|
|
8330 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8331 |
}
|
|
|
8332 |
break;
|
|
|
8333 |
default:
|
|
|
8334 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
8335 |
}
|
| 3430 |
rajveer |
8336 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
8337 |
}
|
|
|
8338 |
iprot.readStructEnd();
|
|
|
8339 |
validate();
|
|
|
8340 |
}
|
|
|
8341 |
|
| 3430 |
rajveer |
8342 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
8343 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8344 |
|
| 4496 |
mandeep.dh |
8345 |
if (this.isSetWex()) {
|
| 2820 |
chandransh |
8346 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
8347 |
this.wex.write(oprot);
|
|
|
8348 |
oprot.writeFieldEnd();
|
|
|
8349 |
}
|
|
|
8350 |
oprot.writeFieldStop();
|
|
|
8351 |
oprot.writeStructEnd();
|
|
|
8352 |
}
|
|
|
8353 |
|
|
|
8354 |
@Override
|
|
|
8355 |
public String toString() {
|
| 4496 |
mandeep.dh |
8356 |
StringBuilder sb = new StringBuilder("scanSerializedItem_result(");
|
| 2820 |
chandransh |
8357 |
boolean first = true;
|
|
|
8358 |
|
|
|
8359 |
sb.append("wex:");
|
|
|
8360 |
if (this.wex == null) {
|
|
|
8361 |
sb.append("null");
|
|
|
8362 |
} else {
|
|
|
8363 |
sb.append(this.wex);
|
|
|
8364 |
}
|
|
|
8365 |
first = false;
|
|
|
8366 |
sb.append(")");
|
|
|
8367 |
return sb.toString();
|
|
|
8368 |
}
|
|
|
8369 |
|
| 3430 |
rajveer |
8370 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
8371 |
// check for required fields
|
|
|
8372 |
}
|
|
|
8373 |
|
| 3430 |
rajveer |
8374 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8375 |
try {
|
|
|
8376 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8377 |
} catch (org.apache.thrift.TException te) {
|
|
|
8378 |
throw new java.io.IOException(te);
|
|
|
8379 |
}
|
|
|
8380 |
}
|
|
|
8381 |
|
|
|
8382 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8383 |
try {
|
|
|
8384 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8385 |
} catch (org.apache.thrift.TException te) {
|
|
|
8386 |
throw new java.io.IOException(te);
|
|
|
8387 |
}
|
|
|
8388 |
}
|
|
|
8389 |
|
| 2820 |
chandransh |
8390 |
}
|
|
|
8391 |
|
| 4496 |
mandeep.dh |
8392 |
public static class scan_args implements org.apache.thrift.TBase<scan_args, scan_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
8393 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_args");
|
| 3383 |
chandransh |
8394 |
|
| 4496 |
mandeep.dh |
8395 |
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);
|
|
|
8396 |
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);
|
|
|
8397 |
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);
|
|
|
8398 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)4);
|
| 3383 |
chandransh |
8399 |
|
| 4496 |
mandeep.dh |
8400 |
private long inventoryItemId; // required
|
|
|
8401 |
private ScanType type; // required
|
|
|
8402 |
private long quantity; // required
|
|
|
8403 |
private long warehouseId; // required
|
| 3383 |
chandransh |
8404 |
|
|
|
8405 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
8406 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
8407 |
INVENTORY_ITEM_ID((short)1, "inventoryItemId"),
|
|
|
8408 |
/**
|
|
|
8409 |
*
|
|
|
8410 |
* @see ScanType
|
|
|
8411 |
*/
|
|
|
8412 |
TYPE((short)2, "type"),
|
|
|
8413 |
QUANTITY((short)3, "quantity"),
|
|
|
8414 |
WAREHOUSE_ID((short)4, "warehouseId");
|
| 3383 |
chandransh |
8415 |
|
|
|
8416 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8417 |
|
|
|
8418 |
static {
|
|
|
8419 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8420 |
byName.put(field.getFieldName(), field);
|
|
|
8421 |
}
|
|
|
8422 |
}
|
|
|
8423 |
|
|
|
8424 |
/**
|
|
|
8425 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8426 |
*/
|
|
|
8427 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
8428 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
8429 |
case 1: // INVENTORY_ITEM_ID
|
|
|
8430 |
return INVENTORY_ITEM_ID;
|
|
|
8431 |
case 2: // TYPE
|
|
|
8432 |
return TYPE;
|
|
|
8433 |
case 3: // QUANTITY
|
|
|
8434 |
return QUANTITY;
|
|
|
8435 |
case 4: // WAREHOUSE_ID
|
|
|
8436 |
return WAREHOUSE_ID;
|
| 3430 |
rajveer |
8437 |
default:
|
|
|
8438 |
return null;
|
|
|
8439 |
}
|
| 3383 |
chandransh |
8440 |
}
|
|
|
8441 |
|
|
|
8442 |
/**
|
|
|
8443 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8444 |
* if it is not found.
|
|
|
8445 |
*/
|
|
|
8446 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8447 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8448 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8449 |
return fields;
|
|
|
8450 |
}
|
|
|
8451 |
|
|
|
8452 |
/**
|
|
|
8453 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8454 |
*/
|
|
|
8455 |
public static _Fields findByName(String name) {
|
|
|
8456 |
return byName.get(name);
|
|
|
8457 |
}
|
|
|
8458 |
|
|
|
8459 |
private final short _thriftId;
|
|
|
8460 |
private final String _fieldName;
|
|
|
8461 |
|
|
|
8462 |
_Fields(short thriftId, String fieldName) {
|
|
|
8463 |
_thriftId = thriftId;
|
|
|
8464 |
_fieldName = fieldName;
|
|
|
8465 |
}
|
|
|
8466 |
|
|
|
8467 |
public short getThriftFieldId() {
|
|
|
8468 |
return _thriftId;
|
|
|
8469 |
}
|
|
|
8470 |
|
|
|
8471 |
public String getFieldName() {
|
|
|
8472 |
return _fieldName;
|
|
|
8473 |
}
|
|
|
8474 |
}
|
|
|
8475 |
|
|
|
8476 |
// isset id assignments
|
| 4496 |
mandeep.dh |
8477 |
private static final int __INVENTORYITEMID_ISSET_ID = 0;
|
|
|
8478 |
private static final int __QUANTITY_ISSET_ID = 1;
|
|
|
8479 |
private static final int __WAREHOUSEID_ISSET_ID = 2;
|
|
|
8480 |
private BitSet __isset_bit_vector = new BitSet(3);
|
| 3383 |
chandransh |
8481 |
|
| 3430 |
rajveer |
8482 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
8483 |
static {
|
| 3430 |
rajveer |
8484 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
8485 |
tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 3430 |
rajveer |
8486 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 4496 |
mandeep.dh |
8487 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8488 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
8489 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8490 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
8491 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8492 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
8493 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
8494 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap);
|
| 3383 |
chandransh |
8495 |
}
|
|
|
8496 |
|
| 4496 |
mandeep.dh |
8497 |
public scan_args() {
|
| 3383 |
chandransh |
8498 |
}
|
|
|
8499 |
|
| 4496 |
mandeep.dh |
8500 |
public scan_args(
|
|
|
8501 |
long inventoryItemId,
|
|
|
8502 |
ScanType type,
|
|
|
8503 |
long quantity,
|
|
|
8504 |
long warehouseId)
|
| 3383 |
chandransh |
8505 |
{
|
|
|
8506 |
this();
|
| 4496 |
mandeep.dh |
8507 |
this.inventoryItemId = inventoryItemId;
|
|
|
8508 |
setInventoryItemIdIsSet(true);
|
|
|
8509 |
this.type = type;
|
|
|
8510 |
this.quantity = quantity;
|
|
|
8511 |
setQuantityIsSet(true);
|
|
|
8512 |
this.warehouseId = warehouseId;
|
|
|
8513 |
setWarehouseIdIsSet(true);
|
| 3383 |
chandransh |
8514 |
}
|
|
|
8515 |
|
|
|
8516 |
/**
|
|
|
8517 |
* Performs a deep copy on <i>other</i>.
|
|
|
8518 |
*/
|
| 4496 |
mandeep.dh |
8519 |
public scan_args(scan_args other) {
|
| 3383 |
chandransh |
8520 |
__isset_bit_vector.clear();
|
|
|
8521 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 4496 |
mandeep.dh |
8522 |
this.inventoryItemId = other.inventoryItemId;
|
|
|
8523 |
if (other.isSetType()) {
|
|
|
8524 |
this.type = other.type;
|
|
|
8525 |
}
|
|
|
8526 |
this.quantity = other.quantity;
|
|
|
8527 |
this.warehouseId = other.warehouseId;
|
| 3383 |
chandransh |
8528 |
}
|
|
|
8529 |
|
| 4496 |
mandeep.dh |
8530 |
public scan_args deepCopy() {
|
|
|
8531 |
return new scan_args(this);
|
| 3383 |
chandransh |
8532 |
}
|
|
|
8533 |
|
| 3430 |
rajveer |
8534 |
@Override
|
|
|
8535 |
public void clear() {
|
| 4496 |
mandeep.dh |
8536 |
setInventoryItemIdIsSet(false);
|
|
|
8537 |
this.inventoryItemId = 0;
|
|
|
8538 |
this.type = null;
|
|
|
8539 |
setQuantityIsSet(false);
|
|
|
8540 |
this.quantity = 0;
|
|
|
8541 |
setWarehouseIdIsSet(false);
|
|
|
8542 |
this.warehouseId = 0;
|
| 3383 |
chandransh |
8543 |
}
|
|
|
8544 |
|
| 4496 |
mandeep.dh |
8545 |
public long getInventoryItemId() {
|
|
|
8546 |
return this.inventoryItemId;
|
| 3383 |
chandransh |
8547 |
}
|
|
|
8548 |
|
| 4496 |
mandeep.dh |
8549 |
public void setInventoryItemId(long inventoryItemId) {
|
|
|
8550 |
this.inventoryItemId = inventoryItemId;
|
|
|
8551 |
setInventoryItemIdIsSet(true);
|
| 3383 |
chandransh |
8552 |
}
|
|
|
8553 |
|
| 4496 |
mandeep.dh |
8554 |
public void unsetInventoryItemId() {
|
|
|
8555 |
__isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
|
| 3383 |
chandransh |
8556 |
}
|
|
|
8557 |
|
| 4496 |
mandeep.dh |
8558 |
/** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
|
|
|
8559 |
public boolean isSetInventoryItemId() {
|
|
|
8560 |
return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
|
| 3383 |
chandransh |
8561 |
}
|
|
|
8562 |
|
| 4496 |
mandeep.dh |
8563 |
public void setInventoryItemIdIsSet(boolean value) {
|
|
|
8564 |
__isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
|
| 3383 |
chandransh |
8565 |
}
|
|
|
8566 |
|
| 4496 |
mandeep.dh |
8567 |
/**
|
|
|
8568 |
*
|
|
|
8569 |
* @see ScanType
|
|
|
8570 |
*/
|
|
|
8571 |
public ScanType getType() {
|
|
|
8572 |
return this.type;
|
| 3383 |
chandransh |
8573 |
}
|
|
|
8574 |
|
| 4496 |
mandeep.dh |
8575 |
/**
|
|
|
8576 |
*
|
|
|
8577 |
* @see ScanType
|
|
|
8578 |
*/
|
|
|
8579 |
public void setType(ScanType type) {
|
|
|
8580 |
this.type = type;
|
| 3383 |
chandransh |
8581 |
}
|
|
|
8582 |
|
| 4496 |
mandeep.dh |
8583 |
public void unsetType() {
|
|
|
8584 |
this.type = null;
|
| 3383 |
chandransh |
8585 |
}
|
|
|
8586 |
|
| 4496 |
mandeep.dh |
8587 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
8588 |
public boolean isSetType() {
|
|
|
8589 |
return this.type != null;
|
| 3383 |
chandransh |
8590 |
}
|
|
|
8591 |
|
| 4496 |
mandeep.dh |
8592 |
public void setTypeIsSet(boolean value) {
|
|
|
8593 |
if (!value) {
|
|
|
8594 |
this.type = null;
|
|
|
8595 |
}
|
| 3383 |
chandransh |
8596 |
}
|
|
|
8597 |
|
| 4496 |
mandeep.dh |
8598 |
public long getQuantity() {
|
|
|
8599 |
return this.quantity;
|
|
|
8600 |
}
|
|
|
8601 |
|
|
|
8602 |
public void setQuantity(long quantity) {
|
|
|
8603 |
this.quantity = quantity;
|
|
|
8604 |
setQuantityIsSet(true);
|
|
|
8605 |
}
|
|
|
8606 |
|
|
|
8607 |
public void unsetQuantity() {
|
|
|
8608 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
8609 |
}
|
|
|
8610 |
|
|
|
8611 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
8612 |
public boolean isSetQuantity() {
|
|
|
8613 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
8614 |
}
|
|
|
8615 |
|
|
|
8616 |
public void setQuantityIsSet(boolean value) {
|
|
|
8617 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
8618 |
}
|
|
|
8619 |
|
|
|
8620 |
public long getWarehouseId() {
|
|
|
8621 |
return this.warehouseId;
|
|
|
8622 |
}
|
|
|
8623 |
|
|
|
8624 |
public void setWarehouseId(long warehouseId) {
|
|
|
8625 |
this.warehouseId = warehouseId;
|
|
|
8626 |
setWarehouseIdIsSet(true);
|
|
|
8627 |
}
|
|
|
8628 |
|
|
|
8629 |
public void unsetWarehouseId() {
|
|
|
8630 |
__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
|
|
|
8631 |
}
|
|
|
8632 |
|
|
|
8633 |
/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
|
|
|
8634 |
public boolean isSetWarehouseId() {
|
|
|
8635 |
return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
|
|
|
8636 |
}
|
|
|
8637 |
|
|
|
8638 |
public void setWarehouseIdIsSet(boolean value) {
|
|
|
8639 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
|
|
8640 |
}
|
|
|
8641 |
|
| 3383 |
chandransh |
8642 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8643 |
switch (field) {
|
| 4496 |
mandeep.dh |
8644 |
case INVENTORY_ITEM_ID:
|
| 3383 |
chandransh |
8645 |
if (value == null) {
|
| 4496 |
mandeep.dh |
8646 |
unsetInventoryItemId();
|
| 3383 |
chandransh |
8647 |
} else {
|
| 4496 |
mandeep.dh |
8648 |
setInventoryItemId((Long)value);
|
| 3383 |
chandransh |
8649 |
}
|
|
|
8650 |
break;
|
|
|
8651 |
|
| 4496 |
mandeep.dh |
8652 |
case TYPE:
|
| 3383 |
chandransh |
8653 |
if (value == null) {
|
| 4496 |
mandeep.dh |
8654 |
unsetType();
|
| 3383 |
chandransh |
8655 |
} else {
|
| 4496 |
mandeep.dh |
8656 |
setType((ScanType)value);
|
| 3383 |
chandransh |
8657 |
}
|
|
|
8658 |
break;
|
|
|
8659 |
|
| 4496 |
mandeep.dh |
8660 |
case QUANTITY:
|
|
|
8661 |
if (value == null) {
|
|
|
8662 |
unsetQuantity();
|
|
|
8663 |
} else {
|
|
|
8664 |
setQuantity((Long)value);
|
|
|
8665 |
}
|
|
|
8666 |
break;
|
|
|
8667 |
|
|
|
8668 |
case WAREHOUSE_ID:
|
|
|
8669 |
if (value == null) {
|
|
|
8670 |
unsetWarehouseId();
|
|
|
8671 |
} else {
|
|
|
8672 |
setWarehouseId((Long)value);
|
|
|
8673 |
}
|
|
|
8674 |
break;
|
|
|
8675 |
|
| 3383 |
chandransh |
8676 |
}
|
|
|
8677 |
}
|
|
|
8678 |
|
|
|
8679 |
public Object getFieldValue(_Fields field) {
|
|
|
8680 |
switch (field) {
|
| 4496 |
mandeep.dh |
8681 |
case INVENTORY_ITEM_ID:
|
|
|
8682 |
return Long.valueOf(getInventoryItemId());
|
| 3383 |
chandransh |
8683 |
|
| 4496 |
mandeep.dh |
8684 |
case TYPE:
|
|
|
8685 |
return getType();
|
| 3383 |
chandransh |
8686 |
|
| 4496 |
mandeep.dh |
8687 |
case QUANTITY:
|
|
|
8688 |
return Long.valueOf(getQuantity());
|
|
|
8689 |
|
|
|
8690 |
case WAREHOUSE_ID:
|
|
|
8691 |
return Long.valueOf(getWarehouseId());
|
|
|
8692 |
|
| 3383 |
chandransh |
8693 |
}
|
|
|
8694 |
throw new IllegalStateException();
|
|
|
8695 |
}
|
|
|
8696 |
|
| 3430 |
rajveer |
8697 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8698 |
public boolean isSet(_Fields field) {
|
|
|
8699 |
if (field == null) {
|
|
|
8700 |
throw new IllegalArgumentException();
|
|
|
8701 |
}
|
| 3383 |
chandransh |
8702 |
|
|
|
8703 |
switch (field) {
|
| 4496 |
mandeep.dh |
8704 |
case INVENTORY_ITEM_ID:
|
|
|
8705 |
return isSetInventoryItemId();
|
|
|
8706 |
case TYPE:
|
|
|
8707 |
return isSetType();
|
|
|
8708 |
case QUANTITY:
|
|
|
8709 |
return isSetQuantity();
|
|
|
8710 |
case WAREHOUSE_ID:
|
|
|
8711 |
return isSetWarehouseId();
|
| 3383 |
chandransh |
8712 |
}
|
|
|
8713 |
throw new IllegalStateException();
|
|
|
8714 |
}
|
|
|
8715 |
|
|
|
8716 |
@Override
|
|
|
8717 |
public boolean equals(Object that) {
|
|
|
8718 |
if (that == null)
|
|
|
8719 |
return false;
|
| 4496 |
mandeep.dh |
8720 |
if (that instanceof scan_args)
|
|
|
8721 |
return this.equals((scan_args)that);
|
| 3383 |
chandransh |
8722 |
return false;
|
|
|
8723 |
}
|
|
|
8724 |
|
| 4496 |
mandeep.dh |
8725 |
public boolean equals(scan_args that) {
|
| 3383 |
chandransh |
8726 |
if (that == null)
|
|
|
8727 |
return false;
|
|
|
8728 |
|
| 4496 |
mandeep.dh |
8729 |
boolean this_present_inventoryItemId = true;
|
|
|
8730 |
boolean that_present_inventoryItemId = true;
|
|
|
8731 |
if (this_present_inventoryItemId || that_present_inventoryItemId) {
|
|
|
8732 |
if (!(this_present_inventoryItemId && that_present_inventoryItemId))
|
| 3383 |
chandransh |
8733 |
return false;
|
| 4496 |
mandeep.dh |
8734 |
if (this.inventoryItemId != that.inventoryItemId)
|
| 3383 |
chandransh |
8735 |
return false;
|
|
|
8736 |
}
|
|
|
8737 |
|
| 4496 |
mandeep.dh |
8738 |
boolean this_present_type = true && this.isSetType();
|
|
|
8739 |
boolean that_present_type = true && that.isSetType();
|
|
|
8740 |
if (this_present_type || that_present_type) {
|
|
|
8741 |
if (!(this_present_type && that_present_type))
|
| 3383 |
chandransh |
8742 |
return false;
|
| 4496 |
mandeep.dh |
8743 |
if (!this.type.equals(that.type))
|
| 3383 |
chandransh |
8744 |
return false;
|
|
|
8745 |
}
|
|
|
8746 |
|
| 4496 |
mandeep.dh |
8747 |
boolean this_present_quantity = true;
|
|
|
8748 |
boolean that_present_quantity = true;
|
|
|
8749 |
if (this_present_quantity || that_present_quantity) {
|
|
|
8750 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
8751 |
return false;
|
|
|
8752 |
if (this.quantity != that.quantity)
|
|
|
8753 |
return false;
|
|
|
8754 |
}
|
|
|
8755 |
|
|
|
8756 |
boolean this_present_warehouseId = true;
|
|
|
8757 |
boolean that_present_warehouseId = true;
|
|
|
8758 |
if (this_present_warehouseId || that_present_warehouseId) {
|
|
|
8759 |
if (!(this_present_warehouseId && that_present_warehouseId))
|
|
|
8760 |
return false;
|
|
|
8761 |
if (this.warehouseId != that.warehouseId)
|
|
|
8762 |
return false;
|
|
|
8763 |
}
|
|
|
8764 |
|
| 3383 |
chandransh |
8765 |
return true;
|
|
|
8766 |
}
|
|
|
8767 |
|
|
|
8768 |
@Override
|
|
|
8769 |
public int hashCode() {
|
|
|
8770 |
return 0;
|
|
|
8771 |
}
|
|
|
8772 |
|
| 4496 |
mandeep.dh |
8773 |
public int compareTo(scan_args other) {
|
| 3383 |
chandransh |
8774 |
if (!getClass().equals(other.getClass())) {
|
|
|
8775 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8776 |
}
|
|
|
8777 |
|
|
|
8778 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
8779 |
scan_args typedOther = (scan_args)other;
|
| 3383 |
chandransh |
8780 |
|
| 4496 |
mandeep.dh |
8781 |
lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
|
| 3383 |
chandransh |
8782 |
if (lastComparison != 0) {
|
|
|
8783 |
return lastComparison;
|
|
|
8784 |
}
|
| 4496 |
mandeep.dh |
8785 |
if (isSetInventoryItemId()) {
|
|
|
8786 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
|
| 3430 |
rajveer |
8787 |
if (lastComparison != 0) {
|
|
|
8788 |
return lastComparison;
|
|
|
8789 |
}
|
| 3383 |
chandransh |
8790 |
}
|
| 4496 |
mandeep.dh |
8791 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 3383 |
chandransh |
8792 |
if (lastComparison != 0) {
|
|
|
8793 |
return lastComparison;
|
|
|
8794 |
}
|
| 4496 |
mandeep.dh |
8795 |
if (isSetType()) {
|
|
|
8796 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
8797 |
if (lastComparison != 0) {
|
|
|
8798 |
return lastComparison;
|
|
|
8799 |
}
|
| 3383 |
chandransh |
8800 |
}
|
| 4496 |
mandeep.dh |
8801 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
|
|
8802 |
if (lastComparison != 0) {
|
|
|
8803 |
return lastComparison;
|
|
|
8804 |
}
|
|
|
8805 |
if (isSetQuantity()) {
|
|
|
8806 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
|
|
8807 |
if (lastComparison != 0) {
|
|
|
8808 |
return lastComparison;
|
|
|
8809 |
}
|
|
|
8810 |
}
|
|
|
8811 |
lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
|
|
|
8812 |
if (lastComparison != 0) {
|
|
|
8813 |
return lastComparison;
|
|
|
8814 |
}
|
|
|
8815 |
if (isSetWarehouseId()) {
|
|
|
8816 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
|
|
8817 |
if (lastComparison != 0) {
|
|
|
8818 |
return lastComparison;
|
|
|
8819 |
}
|
|
|
8820 |
}
|
| 3383 |
chandransh |
8821 |
return 0;
|
|
|
8822 |
}
|
|
|
8823 |
|
| 3430 |
rajveer |
8824 |
public _Fields fieldForId(int fieldId) {
|
|
|
8825 |
return _Fields.findByThriftId(fieldId);
|
|
|
8826 |
}
|
|
|
8827 |
|
|
|
8828 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8829 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
8830 |
iprot.readStructBegin();
|
|
|
8831 |
while (true)
|
|
|
8832 |
{
|
|
|
8833 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
8834 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
8835 |
break;
|
|
|
8836 |
}
|
| 3430 |
rajveer |
8837 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
8838 |
case 1: // INVENTORY_ITEM_ID
|
| 3430 |
rajveer |
8839 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 4496 |
mandeep.dh |
8840 |
this.inventoryItemId = iprot.readI64();
|
|
|
8841 |
setInventoryItemIdIsSet(true);
|
| 3430 |
rajveer |
8842 |
} else {
|
|
|
8843 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8844 |
}
|
|
|
8845 |
break;
|
| 4496 |
mandeep.dh |
8846 |
case 2: // TYPE
|
|
|
8847 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
8848 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
8849 |
} else {
|
|
|
8850 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8851 |
}
|
|
|
8852 |
break;
|
| 4496 |
mandeep.dh |
8853 |
case 3: // QUANTITY
|
|
|
8854 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
8855 |
this.quantity = iprot.readI64();
|
|
|
8856 |
setQuantityIsSet(true);
|
|
|
8857 |
} else {
|
|
|
8858 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8859 |
}
|
|
|
8860 |
break;
|
|
|
8861 |
case 4: // WAREHOUSE_ID
|
|
|
8862 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
8863 |
this.warehouseId = iprot.readI64();
|
|
|
8864 |
setWarehouseIdIsSet(true);
|
|
|
8865 |
} else {
|
|
|
8866 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8867 |
}
|
|
|
8868 |
break;
|
| 3430 |
rajveer |
8869 |
default:
|
|
|
8870 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
8871 |
}
|
| 3430 |
rajveer |
8872 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
8873 |
}
|
|
|
8874 |
iprot.readStructEnd();
|
|
|
8875 |
validate();
|
|
|
8876 |
}
|
|
|
8877 |
|
| 3430 |
rajveer |
8878 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
8879 |
validate();
|
|
|
8880 |
|
|
|
8881 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4496 |
mandeep.dh |
8882 |
oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
|
|
|
8883 |
oprot.writeI64(this.inventoryItemId);
|
| 3383 |
chandransh |
8884 |
oprot.writeFieldEnd();
|
| 4496 |
mandeep.dh |
8885 |
if (this.type != null) {
|
|
|
8886 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
8887 |
oprot.writeI32(this.type.getValue());
|
|
|
8888 |
oprot.writeFieldEnd();
|
|
|
8889 |
}
|
|
|
8890 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
8891 |
oprot.writeI64(this.quantity);
|
| 3383 |
chandransh |
8892 |
oprot.writeFieldEnd();
|
| 4496 |
mandeep.dh |
8893 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
|
|
8894 |
oprot.writeI64(this.warehouseId);
|
|
|
8895 |
oprot.writeFieldEnd();
|
| 3383 |
chandransh |
8896 |
oprot.writeFieldStop();
|
|
|
8897 |
oprot.writeStructEnd();
|
|
|
8898 |
}
|
|
|
8899 |
|
|
|
8900 |
@Override
|
|
|
8901 |
public String toString() {
|
| 4496 |
mandeep.dh |
8902 |
StringBuilder sb = new StringBuilder("scan_args(");
|
| 3383 |
chandransh |
8903 |
boolean first = true;
|
|
|
8904 |
|
| 4496 |
mandeep.dh |
8905 |
sb.append("inventoryItemId:");
|
|
|
8906 |
sb.append(this.inventoryItemId);
|
| 3383 |
chandransh |
8907 |
first = false;
|
|
|
8908 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
8909 |
sb.append("type:");
|
|
|
8910 |
if (this.type == null) {
|
|
|
8911 |
sb.append("null");
|
|
|
8912 |
} else {
|
|
|
8913 |
sb.append(this.type);
|
|
|
8914 |
}
|
| 3383 |
chandransh |
8915 |
first = false;
|
| 4496 |
mandeep.dh |
8916 |
if (!first) sb.append(", ");
|
|
|
8917 |
sb.append("quantity:");
|
|
|
8918 |
sb.append(this.quantity);
|
|
|
8919 |
first = false;
|
|
|
8920 |
if (!first) sb.append(", ");
|
|
|
8921 |
sb.append("warehouseId:");
|
|
|
8922 |
sb.append(this.warehouseId);
|
|
|
8923 |
first = false;
|
| 3383 |
chandransh |
8924 |
sb.append(")");
|
|
|
8925 |
return sb.toString();
|
|
|
8926 |
}
|
|
|
8927 |
|
| 3430 |
rajveer |
8928 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
8929 |
// check for required fields
|
|
|
8930 |
}
|
|
|
8931 |
|
| 3430 |
rajveer |
8932 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8933 |
try {
|
|
|
8934 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8935 |
} catch (org.apache.thrift.TException te) {
|
|
|
8936 |
throw new java.io.IOException(te);
|
|
|
8937 |
}
|
|
|
8938 |
}
|
|
|
8939 |
|
|
|
8940 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8941 |
try {
|
| 4496 |
mandeep.dh |
8942 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
8943 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
8944 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8945 |
} catch (org.apache.thrift.TException te) {
|
|
|
8946 |
throw new java.io.IOException(te);
|
|
|
8947 |
}
|
|
|
8948 |
}
|
|
|
8949 |
|
| 3383 |
chandransh |
8950 |
}
|
|
|
8951 |
|
| 4496 |
mandeep.dh |
8952 |
public static class scan_result implements org.apache.thrift.TBase<scan_result, scan_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8953 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_result");
|
| 3383 |
chandransh |
8954 |
|
| 3430 |
rajveer |
8955 |
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 |
8956 |
|
| 3430 |
rajveer |
8957 |
private WarehouseServiceException wex; // required
|
| 3383 |
chandransh |
8958 |
|
|
|
8959 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
8960 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3383 |
chandransh |
8961 |
WEX((short)1, "wex");
|
|
|
8962 |
|
|
|
8963 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8964 |
|
|
|
8965 |
static {
|
|
|
8966 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8967 |
byName.put(field.getFieldName(), field);
|
|
|
8968 |
}
|
|
|
8969 |
}
|
|
|
8970 |
|
|
|
8971 |
/**
|
|
|
8972 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8973 |
*/
|
|
|
8974 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
8975 |
switch(fieldId) {
|
|
|
8976 |
case 1: // WEX
|
|
|
8977 |
return WEX;
|
|
|
8978 |
default:
|
|
|
8979 |
return null;
|
|
|
8980 |
}
|
| 3383 |
chandransh |
8981 |
}
|
|
|
8982 |
|
|
|
8983 |
/**
|
|
|
8984 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8985 |
* if it is not found.
|
|
|
8986 |
*/
|
|
|
8987 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8988 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8989 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8990 |
return fields;
|
|
|
8991 |
}
|
|
|
8992 |
|
|
|
8993 |
/**
|
|
|
8994 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8995 |
*/
|
|
|
8996 |
public static _Fields findByName(String name) {
|
|
|
8997 |
return byName.get(name);
|
|
|
8998 |
}
|
|
|
8999 |
|
|
|
9000 |
private final short _thriftId;
|
|
|
9001 |
private final String _fieldName;
|
|
|
9002 |
|
|
|
9003 |
_Fields(short thriftId, String fieldName) {
|
|
|
9004 |
_thriftId = thriftId;
|
|
|
9005 |
_fieldName = fieldName;
|
|
|
9006 |
}
|
|
|
9007 |
|
|
|
9008 |
public short getThriftFieldId() {
|
|
|
9009 |
return _thriftId;
|
|
|
9010 |
}
|
|
|
9011 |
|
|
|
9012 |
public String getFieldName() {
|
|
|
9013 |
return _fieldName;
|
|
|
9014 |
}
|
|
|
9015 |
}
|
|
|
9016 |
|
|
|
9017 |
// isset id assignments
|
|
|
9018 |
|
| 3430 |
rajveer |
9019 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
9020 |
static {
|
| 3430 |
rajveer |
9021 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9022 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9023 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
9024 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
9025 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_result.class, metaDataMap);
|
| 3383 |
chandransh |
9026 |
}
|
|
|
9027 |
|
| 4496 |
mandeep.dh |
9028 |
public scan_result() {
|
| 3383 |
chandransh |
9029 |
}
|
|
|
9030 |
|
| 4496 |
mandeep.dh |
9031 |
public scan_result(
|
| 3383 |
chandransh |
9032 |
WarehouseServiceException wex)
|
|
|
9033 |
{
|
|
|
9034 |
this();
|
|
|
9035 |
this.wex = wex;
|
|
|
9036 |
}
|
|
|
9037 |
|
|
|
9038 |
/**
|
|
|
9039 |
* Performs a deep copy on <i>other</i>.
|
|
|
9040 |
*/
|
| 4496 |
mandeep.dh |
9041 |
public scan_result(scan_result other) {
|
| 3383 |
chandransh |
9042 |
if (other.isSetWex()) {
|
|
|
9043 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
9044 |
}
|
|
|
9045 |
}
|
|
|
9046 |
|
| 4496 |
mandeep.dh |
9047 |
public scan_result deepCopy() {
|
|
|
9048 |
return new scan_result(this);
|
| 3383 |
chandransh |
9049 |
}
|
|
|
9050 |
|
| 3430 |
rajveer |
9051 |
@Override
|
|
|
9052 |
public void clear() {
|
|
|
9053 |
this.wex = null;
|
| 3383 |
chandransh |
9054 |
}
|
|
|
9055 |
|
|
|
9056 |
public WarehouseServiceException getWex() {
|
|
|
9057 |
return this.wex;
|
|
|
9058 |
}
|
|
|
9059 |
|
| 3430 |
rajveer |
9060 |
public void setWex(WarehouseServiceException wex) {
|
| 3383 |
chandransh |
9061 |
this.wex = wex;
|
|
|
9062 |
}
|
|
|
9063 |
|
|
|
9064 |
public void unsetWex() {
|
|
|
9065 |
this.wex = null;
|
|
|
9066 |
}
|
|
|
9067 |
|
| 3430 |
rajveer |
9068 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 3383 |
chandransh |
9069 |
public boolean isSetWex() {
|
|
|
9070 |
return this.wex != null;
|
|
|
9071 |
}
|
|
|
9072 |
|
|
|
9073 |
public void setWexIsSet(boolean value) {
|
|
|
9074 |
if (!value) {
|
|
|
9075 |
this.wex = null;
|
|
|
9076 |
}
|
|
|
9077 |
}
|
|
|
9078 |
|
|
|
9079 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9080 |
switch (field) {
|
|
|
9081 |
case WEX:
|
|
|
9082 |
if (value == null) {
|
|
|
9083 |
unsetWex();
|
|
|
9084 |
} else {
|
|
|
9085 |
setWex((WarehouseServiceException)value);
|
|
|
9086 |
}
|
|
|
9087 |
break;
|
|
|
9088 |
|
|
|
9089 |
}
|
|
|
9090 |
}
|
|
|
9091 |
|
|
|
9092 |
public Object getFieldValue(_Fields field) {
|
|
|
9093 |
switch (field) {
|
|
|
9094 |
case WEX:
|
|
|
9095 |
return getWex();
|
|
|
9096 |
|
|
|
9097 |
}
|
|
|
9098 |
throw new IllegalStateException();
|
|
|
9099 |
}
|
|
|
9100 |
|
| 3430 |
rajveer |
9101 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9102 |
public boolean isSet(_Fields field) {
|
|
|
9103 |
if (field == null) {
|
|
|
9104 |
throw new IllegalArgumentException();
|
|
|
9105 |
}
|
| 3383 |
chandransh |
9106 |
|
|
|
9107 |
switch (field) {
|
|
|
9108 |
case WEX:
|
|
|
9109 |
return isSetWex();
|
|
|
9110 |
}
|
|
|
9111 |
throw new IllegalStateException();
|
|
|
9112 |
}
|
|
|
9113 |
|
|
|
9114 |
@Override
|
|
|
9115 |
public boolean equals(Object that) {
|
|
|
9116 |
if (that == null)
|
|
|
9117 |
return false;
|
| 4496 |
mandeep.dh |
9118 |
if (that instanceof scan_result)
|
|
|
9119 |
return this.equals((scan_result)that);
|
| 3383 |
chandransh |
9120 |
return false;
|
|
|
9121 |
}
|
|
|
9122 |
|
| 4496 |
mandeep.dh |
9123 |
public boolean equals(scan_result that) {
|
| 3383 |
chandransh |
9124 |
if (that == null)
|
|
|
9125 |
return false;
|
|
|
9126 |
|
|
|
9127 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
9128 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
9129 |
if (this_present_wex || that_present_wex) {
|
|
|
9130 |
if (!(this_present_wex && that_present_wex))
|
|
|
9131 |
return false;
|
|
|
9132 |
if (!this.wex.equals(that.wex))
|
|
|
9133 |
return false;
|
|
|
9134 |
}
|
|
|
9135 |
|
|
|
9136 |
return true;
|
|
|
9137 |
}
|
|
|
9138 |
|
|
|
9139 |
@Override
|
|
|
9140 |
public int hashCode() {
|
|
|
9141 |
return 0;
|
|
|
9142 |
}
|
|
|
9143 |
|
| 4496 |
mandeep.dh |
9144 |
public int compareTo(scan_result other) {
|
| 3383 |
chandransh |
9145 |
if (!getClass().equals(other.getClass())) {
|
|
|
9146 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9147 |
}
|
|
|
9148 |
|
|
|
9149 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
9150 |
scan_result typedOther = (scan_result)other;
|
| 3383 |
chandransh |
9151 |
|
| 3430 |
rajveer |
9152 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 3383 |
chandransh |
9153 |
if (lastComparison != 0) {
|
|
|
9154 |
return lastComparison;
|
|
|
9155 |
}
|
| 3430 |
rajveer |
9156 |
if (isSetWex()) {
|
|
|
9157 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
9158 |
if (lastComparison != 0) {
|
|
|
9159 |
return lastComparison;
|
|
|
9160 |
}
|
| 3383 |
chandransh |
9161 |
}
|
|
|
9162 |
return 0;
|
|
|
9163 |
}
|
|
|
9164 |
|
| 3430 |
rajveer |
9165 |
public _Fields fieldForId(int fieldId) {
|
|
|
9166 |
return _Fields.findByThriftId(fieldId);
|
|
|
9167 |
}
|
|
|
9168 |
|
|
|
9169 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9170 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
9171 |
iprot.readStructBegin();
|
|
|
9172 |
while (true)
|
|
|
9173 |
{
|
|
|
9174 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
9175 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
9176 |
break;
|
|
|
9177 |
}
|
| 3430 |
rajveer |
9178 |
switch (field.id) {
|
|
|
9179 |
case 1: // WEX
|
|
|
9180 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
9181 |
this.wex = new WarehouseServiceException();
|
|
|
9182 |
this.wex.read(iprot);
|
|
|
9183 |
} else {
|
|
|
9184 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9185 |
}
|
|
|
9186 |
break;
|
|
|
9187 |
default:
|
|
|
9188 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
9189 |
}
|
| 3430 |
rajveer |
9190 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
9191 |
}
|
|
|
9192 |
iprot.readStructEnd();
|
|
|
9193 |
validate();
|
|
|
9194 |
}
|
|
|
9195 |
|
| 3430 |
rajveer |
9196 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
9197 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9198 |
|
| 4496 |
mandeep.dh |
9199 |
if (this.isSetWex()) {
|
| 3383 |
chandransh |
9200 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
9201 |
this.wex.write(oprot);
|
|
|
9202 |
oprot.writeFieldEnd();
|
|
|
9203 |
}
|
|
|
9204 |
oprot.writeFieldStop();
|
|
|
9205 |
oprot.writeStructEnd();
|
|
|
9206 |
}
|
|
|
9207 |
|
|
|
9208 |
@Override
|
|
|
9209 |
public String toString() {
|
| 4496 |
mandeep.dh |
9210 |
StringBuilder sb = new StringBuilder("scan_result(");
|
| 3383 |
chandransh |
9211 |
boolean first = true;
|
|
|
9212 |
|
|
|
9213 |
sb.append("wex:");
|
|
|
9214 |
if (this.wex == null) {
|
|
|
9215 |
sb.append("null");
|
|
|
9216 |
} else {
|
|
|
9217 |
sb.append(this.wex);
|
|
|
9218 |
}
|
|
|
9219 |
first = false;
|
|
|
9220 |
sb.append(")");
|
|
|
9221 |
return sb.toString();
|
|
|
9222 |
}
|
|
|
9223 |
|
| 3430 |
rajveer |
9224 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
9225 |
// check for required fields
|
|
|
9226 |
}
|
|
|
9227 |
|
| 3430 |
rajveer |
9228 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9229 |
try {
|
|
|
9230 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9231 |
} catch (org.apache.thrift.TException te) {
|
|
|
9232 |
throw new java.io.IOException(te);
|
|
|
9233 |
}
|
|
|
9234 |
}
|
|
|
9235 |
|
|
|
9236 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9237 |
try {
|
|
|
9238 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9239 |
} catch (org.apache.thrift.TException te) {
|
|
|
9240 |
throw new java.io.IOException(te);
|
|
|
9241 |
}
|
|
|
9242 |
}
|
|
|
9243 |
|
| 3383 |
chandransh |
9244 |
}
|
|
|
9245 |
|
| 4496 |
mandeep.dh |
9246 |
public static class scanSerializedItemForOrder_args implements org.apache.thrift.TBase<scanSerializedItemForOrder_args, scanSerializedItemForOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
9247 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
|
| 2820 |
chandransh |
9248 |
|
| 4555 |
mandeep.dh |
9249 |
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 |
9250 |
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);
|
|
|
9251 |
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 |
9252 |
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);
|
|
|
9253 |
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);
|
|
|
9254 |
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 |
9255 |
|
| 4555 |
mandeep.dh |
9256 |
private String serialNumber; // required
|
| 3430 |
rajveer |
9257 |
private ScanType type; // required
|
| 4496 |
mandeep.dh |
9258 |
private long orderId; // required
|
| 5110 |
mandeep.dh |
9259 |
private long fulfilmentWarehouseId; // required
|
|
|
9260 |
private double quantity; // required
|
|
|
9261 |
private long billingWarehouseId; // required
|
| 2820 |
chandransh |
9262 |
|
|
|
9263 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
9264 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4555 |
mandeep.dh |
9265 |
SERIAL_NUMBER((short)1, "serialNumber"),
|
| 2820 |
chandransh |
9266 |
/**
|
|
|
9267 |
*
|
|
|
9268 |
* @see ScanType
|
|
|
9269 |
*/
|
| 4496 |
mandeep.dh |
9270 |
TYPE((short)2, "type"),
|
|
|
9271 |
ORDER_ID((short)3, "orderId"),
|
| 5110 |
mandeep.dh |
9272 |
FULFILMENT_WAREHOUSE_ID((short)4, "fulfilmentWarehouseId"),
|
|
|
9273 |
QUANTITY((short)5, "quantity"),
|
|
|
9274 |
BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
|
| 2820 |
chandransh |
9275 |
|
|
|
9276 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9277 |
|
|
|
9278 |
static {
|
|
|
9279 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9280 |
byName.put(field.getFieldName(), field);
|
|
|
9281 |
}
|
|
|
9282 |
}
|
|
|
9283 |
|
|
|
9284 |
/**
|
|
|
9285 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9286 |
*/
|
|
|
9287 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
9288 |
switch(fieldId) {
|
| 4555 |
mandeep.dh |
9289 |
case 1: // SERIAL_NUMBER
|
|
|
9290 |
return SERIAL_NUMBER;
|
| 4496 |
mandeep.dh |
9291 |
case 2: // TYPE
|
| 3430 |
rajveer |
9292 |
return TYPE;
|
| 4496 |
mandeep.dh |
9293 |
case 3: // ORDER_ID
|
|
|
9294 |
return ORDER_ID;
|
| 5110 |
mandeep.dh |
9295 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
|
|
9296 |
return FULFILMENT_WAREHOUSE_ID;
|
|
|
9297 |
case 5: // QUANTITY
|
|
|
9298 |
return QUANTITY;
|
|
|
9299 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
9300 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
9301 |
default:
|
|
|
9302 |
return null;
|
|
|
9303 |
}
|
| 2820 |
chandransh |
9304 |
}
|
|
|
9305 |
|
|
|
9306 |
/**
|
|
|
9307 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9308 |
* if it is not found.
|
|
|
9309 |
*/
|
|
|
9310 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9311 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9312 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9313 |
return fields;
|
|
|
9314 |
}
|
|
|
9315 |
|
|
|
9316 |
/**
|
|
|
9317 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9318 |
*/
|
|
|
9319 |
public static _Fields findByName(String name) {
|
|
|
9320 |
return byName.get(name);
|
|
|
9321 |
}
|
|
|
9322 |
|
|
|
9323 |
private final short _thriftId;
|
|
|
9324 |
private final String _fieldName;
|
|
|
9325 |
|
|
|
9326 |
_Fields(short thriftId, String fieldName) {
|
|
|
9327 |
_thriftId = thriftId;
|
|
|
9328 |
_fieldName = fieldName;
|
|
|
9329 |
}
|
|
|
9330 |
|
|
|
9331 |
public short getThriftFieldId() {
|
|
|
9332 |
return _thriftId;
|
|
|
9333 |
}
|
|
|
9334 |
|
|
|
9335 |
public String getFieldName() {
|
|
|
9336 |
return _fieldName;
|
|
|
9337 |
}
|
|
|
9338 |
}
|
|
|
9339 |
|
|
|
9340 |
// isset id assignments
|
| 4555 |
mandeep.dh |
9341 |
private static final int __ORDERID_ISSET_ID = 0;
|
| 5110 |
mandeep.dh |
9342 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
|
|
|
9343 |
private static final int __QUANTITY_ISSET_ID = 2;
|
|
|
9344 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
|
|
|
9345 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 2820 |
chandransh |
9346 |
|
| 3430 |
rajveer |
9347 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
9348 |
static {
|
| 3430 |
rajveer |
9349 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4555 |
mandeep.dh |
9350 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9351 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 3430 |
rajveer |
9352 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9353 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 4496 |
mandeep.dh |
9354 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9355 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
9356 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
9357 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
9358 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9359 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
9360 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9361 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
9362 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
9363 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_args.class, metaDataMap);
|
| 2820 |
chandransh |
9364 |
}
|
|
|
9365 |
|
| 4496 |
mandeep.dh |
9366 |
public scanSerializedItemForOrder_args() {
|
| 2820 |
chandransh |
9367 |
}
|
|
|
9368 |
|
| 4496 |
mandeep.dh |
9369 |
public scanSerializedItemForOrder_args(
|
| 4555 |
mandeep.dh |
9370 |
String serialNumber,
|
| 4496 |
mandeep.dh |
9371 |
ScanType type,
|
|
|
9372 |
long orderId,
|
| 5110 |
mandeep.dh |
9373 |
long fulfilmentWarehouseId,
|
|
|
9374 |
double quantity,
|
|
|
9375 |
long billingWarehouseId)
|
| 2820 |
chandransh |
9376 |
{
|
|
|
9377 |
this();
|
| 4555 |
mandeep.dh |
9378 |
this.serialNumber = serialNumber;
|
| 2820 |
chandransh |
9379 |
this.type = type;
|
| 4496 |
mandeep.dh |
9380 |
this.orderId = orderId;
|
|
|
9381 |
setOrderIdIsSet(true);
|
| 5110 |
mandeep.dh |
9382 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
9383 |
setFulfilmentWarehouseIdIsSet(true);
|
|
|
9384 |
this.quantity = quantity;
|
|
|
9385 |
setQuantityIsSet(true);
|
|
|
9386 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
9387 |
setBillingWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
9388 |
}
|
|
|
9389 |
|
|
|
9390 |
/**
|
|
|
9391 |
* Performs a deep copy on <i>other</i>.
|
|
|
9392 |
*/
|
| 4496 |
mandeep.dh |
9393 |
public scanSerializedItemForOrder_args(scanSerializedItemForOrder_args other) {
|
| 2820 |
chandransh |
9394 |
__isset_bit_vector.clear();
|
|
|
9395 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 4555 |
mandeep.dh |
9396 |
if (other.isSetSerialNumber()) {
|
|
|
9397 |
this.serialNumber = other.serialNumber;
|
|
|
9398 |
}
|
| 2820 |
chandransh |
9399 |
if (other.isSetType()) {
|
|
|
9400 |
this.type = other.type;
|
|
|
9401 |
}
|
| 4496 |
mandeep.dh |
9402 |
this.orderId = other.orderId;
|
| 5110 |
mandeep.dh |
9403 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
|
|
9404 |
this.quantity = other.quantity;
|
|
|
9405 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 2820 |
chandransh |
9406 |
}
|
|
|
9407 |
|
| 4496 |
mandeep.dh |
9408 |
public scanSerializedItemForOrder_args deepCopy() {
|
|
|
9409 |
return new scanSerializedItemForOrder_args(this);
|
| 2820 |
chandransh |
9410 |
}
|
|
|
9411 |
|
| 3430 |
rajveer |
9412 |
@Override
|
|
|
9413 |
public void clear() {
|
| 4555 |
mandeep.dh |
9414 |
this.serialNumber = null;
|
| 3430 |
rajveer |
9415 |
this.type = null;
|
| 4496 |
mandeep.dh |
9416 |
setOrderIdIsSet(false);
|
|
|
9417 |
this.orderId = 0;
|
| 5110 |
mandeep.dh |
9418 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
9419 |
this.fulfilmentWarehouseId = 0;
|
|
|
9420 |
setQuantityIsSet(false);
|
|
|
9421 |
this.quantity = 0.0;
|
|
|
9422 |
setBillingWarehouseIdIsSet(false);
|
|
|
9423 |
this.billingWarehouseId = 0;
|
| 2820 |
chandransh |
9424 |
}
|
|
|
9425 |
|
| 4555 |
mandeep.dh |
9426 |
public String getSerialNumber() {
|
|
|
9427 |
return this.serialNumber;
|
| 2820 |
chandransh |
9428 |
}
|
|
|
9429 |
|
| 4555 |
mandeep.dh |
9430 |
public void setSerialNumber(String serialNumber) {
|
|
|
9431 |
this.serialNumber = serialNumber;
|
| 2820 |
chandransh |
9432 |
}
|
|
|
9433 |
|
| 4555 |
mandeep.dh |
9434 |
public void unsetSerialNumber() {
|
|
|
9435 |
this.serialNumber = null;
|
| 2820 |
chandransh |
9436 |
}
|
|
|
9437 |
|
| 4555 |
mandeep.dh |
9438 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
9439 |
public boolean isSetSerialNumber() {
|
|
|
9440 |
return this.serialNumber != null;
|
| 2820 |
chandransh |
9441 |
}
|
|
|
9442 |
|
| 4555 |
mandeep.dh |
9443 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
9444 |
if (!value) {
|
|
|
9445 |
this.serialNumber = null;
|
|
|
9446 |
}
|
| 2820 |
chandransh |
9447 |
}
|
|
|
9448 |
|
| 4496 |
mandeep.dh |
9449 |
/**
|
|
|
9450 |
*
|
|
|
9451 |
* @see ScanType
|
|
|
9452 |
*/
|
|
|
9453 |
public ScanType getType() {
|
|
|
9454 |
return this.type;
|
| 2820 |
chandransh |
9455 |
}
|
|
|
9456 |
|
| 4496 |
mandeep.dh |
9457 |
/**
|
|
|
9458 |
*
|
|
|
9459 |
* @see ScanType
|
|
|
9460 |
*/
|
|
|
9461 |
public void setType(ScanType type) {
|
|
|
9462 |
this.type = type;
|
| 2820 |
chandransh |
9463 |
}
|
|
|
9464 |
|
| 4496 |
mandeep.dh |
9465 |
public void unsetType() {
|
|
|
9466 |
this.type = null;
|
| 2820 |
chandransh |
9467 |
}
|
|
|
9468 |
|
| 4496 |
mandeep.dh |
9469 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
9470 |
public boolean isSetType() {
|
|
|
9471 |
return this.type != null;
|
| 2820 |
chandransh |
9472 |
}
|
|
|
9473 |
|
| 4496 |
mandeep.dh |
9474 |
public void setTypeIsSet(boolean value) {
|
| 2820 |
chandransh |
9475 |
if (!value) {
|
| 4496 |
mandeep.dh |
9476 |
this.type = null;
|
| 2820 |
chandransh |
9477 |
}
|
|
|
9478 |
}
|
|
|
9479 |
|
| 4496 |
mandeep.dh |
9480 |
public long getOrderId() {
|
|
|
9481 |
return this.orderId;
|
| 2820 |
chandransh |
9482 |
}
|
|
|
9483 |
|
| 4496 |
mandeep.dh |
9484 |
public void setOrderId(long orderId) {
|
|
|
9485 |
this.orderId = orderId;
|
|
|
9486 |
setOrderIdIsSet(true);
|
| 2820 |
chandransh |
9487 |
}
|
|
|
9488 |
|
| 4496 |
mandeep.dh |
9489 |
public void unsetOrderId() {
|
|
|
9490 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
| 2820 |
chandransh |
9491 |
}
|
|
|
9492 |
|
| 4496 |
mandeep.dh |
9493 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
9494 |
public boolean isSetOrderId() {
|
|
|
9495 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
| 2820 |
chandransh |
9496 |
}
|
|
|
9497 |
|
| 4496 |
mandeep.dh |
9498 |
public void setOrderIdIsSet(boolean value) {
|
|
|
9499 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
| 2820 |
chandransh |
9500 |
}
|
|
|
9501 |
|
| 5110 |
mandeep.dh |
9502 |
public long getFulfilmentWarehouseId() {
|
|
|
9503 |
return this.fulfilmentWarehouseId;
|
| 2820 |
chandransh |
9504 |
}
|
|
|
9505 |
|
| 5110 |
mandeep.dh |
9506 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
9507 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
9508 |
setFulfilmentWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
9509 |
}
|
|
|
9510 |
|
| 5110 |
mandeep.dh |
9511 |
public void unsetFulfilmentWarehouseId() {
|
|
|
9512 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
9513 |
}
|
|
|
9514 |
|
| 5110 |
mandeep.dh |
9515 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
9516 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
9517 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
9518 |
}
|
|
|
9519 |
|
| 5110 |
mandeep.dh |
9520 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
9521 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 2820 |
chandransh |
9522 |
}
|
|
|
9523 |
|
| 5110 |
mandeep.dh |
9524 |
public double getQuantity() {
|
|
|
9525 |
return this.quantity;
|
|
|
9526 |
}
|
|
|
9527 |
|
|
|
9528 |
public void setQuantity(double quantity) {
|
|
|
9529 |
this.quantity = quantity;
|
|
|
9530 |
setQuantityIsSet(true);
|
|
|
9531 |
}
|
|
|
9532 |
|
|
|
9533 |
public void unsetQuantity() {
|
|
|
9534 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
9535 |
}
|
|
|
9536 |
|
|
|
9537 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
9538 |
public boolean isSetQuantity() {
|
|
|
9539 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
9540 |
}
|
|
|
9541 |
|
|
|
9542 |
public void setQuantityIsSet(boolean value) {
|
|
|
9543 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
9544 |
}
|
|
|
9545 |
|
|
|
9546 |
public long getBillingWarehouseId() {
|
|
|
9547 |
return this.billingWarehouseId;
|
|
|
9548 |
}
|
|
|
9549 |
|
|
|
9550 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
9551 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
9552 |
setBillingWarehouseIdIsSet(true);
|
|
|
9553 |
}
|
|
|
9554 |
|
|
|
9555 |
public void unsetBillingWarehouseId() {
|
|
|
9556 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
9557 |
}
|
|
|
9558 |
|
|
|
9559 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
9560 |
public boolean isSetBillingWarehouseId() {
|
|
|
9561 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
9562 |
}
|
|
|
9563 |
|
|
|
9564 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
9565 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
|
|
9566 |
}
|
|
|
9567 |
|
| 2820 |
chandransh |
9568 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9569 |
switch (field) {
|
| 4555 |
mandeep.dh |
9570 |
case SERIAL_NUMBER:
|
| 2820 |
chandransh |
9571 |
if (value == null) {
|
| 4555 |
mandeep.dh |
9572 |
unsetSerialNumber();
|
| 2820 |
chandransh |
9573 |
} else {
|
| 4555 |
mandeep.dh |
9574 |
setSerialNumber((String)value);
|
| 2820 |
chandransh |
9575 |
}
|
|
|
9576 |
break;
|
|
|
9577 |
|
| 4496 |
mandeep.dh |
9578 |
case TYPE:
|
| 2820 |
chandransh |
9579 |
if (value == null) {
|
| 4496 |
mandeep.dh |
9580 |
unsetType();
|
| 2820 |
chandransh |
9581 |
} else {
|
| 4496 |
mandeep.dh |
9582 |
setType((ScanType)value);
|
| 2820 |
chandransh |
9583 |
}
|
|
|
9584 |
break;
|
|
|
9585 |
|
| 4496 |
mandeep.dh |
9586 |
case ORDER_ID:
|
| 2820 |
chandransh |
9587 |
if (value == null) {
|
| 4496 |
mandeep.dh |
9588 |
unsetOrderId();
|
| 2820 |
chandransh |
9589 |
} else {
|
| 4496 |
mandeep.dh |
9590 |
setOrderId((Long)value);
|
| 2820 |
chandransh |
9591 |
}
|
|
|
9592 |
break;
|
|
|
9593 |
|
| 5110 |
mandeep.dh |
9594 |
case FULFILMENT_WAREHOUSE_ID:
|
| 2820 |
chandransh |
9595 |
if (value == null) {
|
| 5110 |
mandeep.dh |
9596 |
unsetFulfilmentWarehouseId();
|
| 2820 |
chandransh |
9597 |
} else {
|
| 5110 |
mandeep.dh |
9598 |
setFulfilmentWarehouseId((Long)value);
|
| 2820 |
chandransh |
9599 |
}
|
|
|
9600 |
break;
|
|
|
9601 |
|
| 5110 |
mandeep.dh |
9602 |
case QUANTITY:
|
|
|
9603 |
if (value == null) {
|
|
|
9604 |
unsetQuantity();
|
|
|
9605 |
} else {
|
|
|
9606 |
setQuantity((Double)value);
|
|
|
9607 |
}
|
|
|
9608 |
break;
|
|
|
9609 |
|
|
|
9610 |
case BILLING_WAREHOUSE_ID:
|
|
|
9611 |
if (value == null) {
|
|
|
9612 |
unsetBillingWarehouseId();
|
|
|
9613 |
} else {
|
|
|
9614 |
setBillingWarehouseId((Long)value);
|
|
|
9615 |
}
|
|
|
9616 |
break;
|
|
|
9617 |
|
| 2820 |
chandransh |
9618 |
}
|
|
|
9619 |
}
|
|
|
9620 |
|
|
|
9621 |
public Object getFieldValue(_Fields field) {
|
|
|
9622 |
switch (field) {
|
| 4555 |
mandeep.dh |
9623 |
case SERIAL_NUMBER:
|
|
|
9624 |
return getSerialNumber();
|
| 2820 |
chandransh |
9625 |
|
|
|
9626 |
case TYPE:
|
|
|
9627 |
return getType();
|
|
|
9628 |
|
| 4496 |
mandeep.dh |
9629 |
case ORDER_ID:
|
|
|
9630 |
return Long.valueOf(getOrderId());
|
|
|
9631 |
|
| 5110 |
mandeep.dh |
9632 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
9633 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
9634 |
|
| 5110 |
mandeep.dh |
9635 |
case QUANTITY:
|
|
|
9636 |
return Double.valueOf(getQuantity());
|
|
|
9637 |
|
|
|
9638 |
case BILLING_WAREHOUSE_ID:
|
|
|
9639 |
return Long.valueOf(getBillingWarehouseId());
|
|
|
9640 |
|
| 2820 |
chandransh |
9641 |
}
|
|
|
9642 |
throw new IllegalStateException();
|
|
|
9643 |
}
|
|
|
9644 |
|
| 3430 |
rajveer |
9645 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9646 |
public boolean isSet(_Fields field) {
|
|
|
9647 |
if (field == null) {
|
|
|
9648 |
throw new IllegalArgumentException();
|
|
|
9649 |
}
|
| 2820 |
chandransh |
9650 |
|
|
|
9651 |
switch (field) {
|
| 4555 |
mandeep.dh |
9652 |
case SERIAL_NUMBER:
|
|
|
9653 |
return isSetSerialNumber();
|
| 2820 |
chandransh |
9654 |
case TYPE:
|
|
|
9655 |
return isSetType();
|
| 4496 |
mandeep.dh |
9656 |
case ORDER_ID:
|
|
|
9657 |
return isSetOrderId();
|
| 5110 |
mandeep.dh |
9658 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
9659 |
return isSetFulfilmentWarehouseId();
|
|
|
9660 |
case QUANTITY:
|
|
|
9661 |
return isSetQuantity();
|
|
|
9662 |
case BILLING_WAREHOUSE_ID:
|
|
|
9663 |
return isSetBillingWarehouseId();
|
| 2820 |
chandransh |
9664 |
}
|
|
|
9665 |
throw new IllegalStateException();
|
|
|
9666 |
}
|
|
|
9667 |
|
|
|
9668 |
@Override
|
|
|
9669 |
public boolean equals(Object that) {
|
|
|
9670 |
if (that == null)
|
|
|
9671 |
return false;
|
| 4496 |
mandeep.dh |
9672 |
if (that instanceof scanSerializedItemForOrder_args)
|
|
|
9673 |
return this.equals((scanSerializedItemForOrder_args)that);
|
| 2820 |
chandransh |
9674 |
return false;
|
|
|
9675 |
}
|
|
|
9676 |
|
| 4496 |
mandeep.dh |
9677 |
public boolean equals(scanSerializedItemForOrder_args that) {
|
| 2820 |
chandransh |
9678 |
if (that == null)
|
|
|
9679 |
return false;
|
|
|
9680 |
|
| 4555 |
mandeep.dh |
9681 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
9682 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
9683 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
9684 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
| 2820 |
chandransh |
9685 |
return false;
|
| 4555 |
mandeep.dh |
9686 |
if (!this.serialNumber.equals(that.serialNumber))
|
| 2820 |
chandransh |
9687 |
return false;
|
|
|
9688 |
}
|
|
|
9689 |
|
| 4496 |
mandeep.dh |
9690 |
boolean this_present_type = true && this.isSetType();
|
|
|
9691 |
boolean that_present_type = true && that.isSetType();
|
|
|
9692 |
if (this_present_type || that_present_type) {
|
|
|
9693 |
if (!(this_present_type && that_present_type))
|
| 2820 |
chandransh |
9694 |
return false;
|
| 4496 |
mandeep.dh |
9695 |
if (!this.type.equals(that.type))
|
| 2820 |
chandransh |
9696 |
return false;
|
|
|
9697 |
}
|
|
|
9698 |
|
| 4496 |
mandeep.dh |
9699 |
boolean this_present_orderId = true;
|
|
|
9700 |
boolean that_present_orderId = true;
|
|
|
9701 |
if (this_present_orderId || that_present_orderId) {
|
|
|
9702 |
if (!(this_present_orderId && that_present_orderId))
|
| 2820 |
chandransh |
9703 |
return false;
|
| 4496 |
mandeep.dh |
9704 |
if (this.orderId != that.orderId)
|
| 2820 |
chandransh |
9705 |
return false;
|
|
|
9706 |
}
|
|
|
9707 |
|
| 5110 |
mandeep.dh |
9708 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
9709 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
9710 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
9711 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 2820 |
chandransh |
9712 |
return false;
|
| 5110 |
mandeep.dh |
9713 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 2820 |
chandransh |
9714 |
return false;
|
|
|
9715 |
}
|
|
|
9716 |
|
| 5110 |
mandeep.dh |
9717 |
boolean this_present_quantity = true;
|
|
|
9718 |
boolean that_present_quantity = true;
|
|
|
9719 |
if (this_present_quantity || that_present_quantity) {
|
|
|
9720 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
9721 |
return false;
|
|
|
9722 |
if (this.quantity != that.quantity)
|
|
|
9723 |
return false;
|
|
|
9724 |
}
|
|
|
9725 |
|
|
|
9726 |
boolean this_present_billingWarehouseId = true;
|
|
|
9727 |
boolean that_present_billingWarehouseId = true;
|
|
|
9728 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
9729 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
|
|
9730 |
return false;
|
|
|
9731 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
|
|
9732 |
return false;
|
|
|
9733 |
}
|
|
|
9734 |
|
| 2820 |
chandransh |
9735 |
return true;
|
|
|
9736 |
}
|
|
|
9737 |
|
|
|
9738 |
@Override
|
|
|
9739 |
public int hashCode() {
|
|
|
9740 |
return 0;
|
|
|
9741 |
}
|
|
|
9742 |
|
| 4496 |
mandeep.dh |
9743 |
public int compareTo(scanSerializedItemForOrder_args other) {
|
| 2820 |
chandransh |
9744 |
if (!getClass().equals(other.getClass())) {
|
|
|
9745 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9746 |
}
|
|
|
9747 |
|
|
|
9748 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
9749 |
scanSerializedItemForOrder_args typedOther = (scanSerializedItemForOrder_args)other;
|
| 2820 |
chandransh |
9750 |
|
| 4555 |
mandeep.dh |
9751 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
| 2820 |
chandransh |
9752 |
if (lastComparison != 0) {
|
|
|
9753 |
return lastComparison;
|
|
|
9754 |
}
|
| 4555 |
mandeep.dh |
9755 |
if (isSetSerialNumber()) {
|
|
|
9756 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
| 3430 |
rajveer |
9757 |
if (lastComparison != 0) {
|
|
|
9758 |
return lastComparison;
|
|
|
9759 |
}
|
| 2820 |
chandransh |
9760 |
}
|
| 4496 |
mandeep.dh |
9761 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 2820 |
chandransh |
9762 |
if (lastComparison != 0) {
|
|
|
9763 |
return lastComparison;
|
|
|
9764 |
}
|
| 4496 |
mandeep.dh |
9765 |
if (isSetType()) {
|
|
|
9766 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
9767 |
if (lastComparison != 0) {
|
|
|
9768 |
return lastComparison;
|
|
|
9769 |
}
|
| 2820 |
chandransh |
9770 |
}
|
| 4496 |
mandeep.dh |
9771 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
| 2820 |
chandransh |
9772 |
if (lastComparison != 0) {
|
|
|
9773 |
return lastComparison;
|
|
|
9774 |
}
|
| 4496 |
mandeep.dh |
9775 |
if (isSetOrderId()) {
|
|
|
9776 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
| 3430 |
rajveer |
9777 |
if (lastComparison != 0) {
|
|
|
9778 |
return lastComparison;
|
|
|
9779 |
}
|
| 2820 |
chandransh |
9780 |
}
|
| 5110 |
mandeep.dh |
9781 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 2820 |
chandransh |
9782 |
if (lastComparison != 0) {
|
|
|
9783 |
return lastComparison;
|
|
|
9784 |
}
|
| 5110 |
mandeep.dh |
9785 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
9786 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 3430 |
rajveer |
9787 |
if (lastComparison != 0) {
|
|
|
9788 |
return lastComparison;
|
|
|
9789 |
}
|
| 2820 |
chandransh |
9790 |
}
|
| 5110 |
mandeep.dh |
9791 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
|
|
9792 |
if (lastComparison != 0) {
|
|
|
9793 |
return lastComparison;
|
|
|
9794 |
}
|
|
|
9795 |
if (isSetQuantity()) {
|
|
|
9796 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
|
|
9797 |
if (lastComparison != 0) {
|
|
|
9798 |
return lastComparison;
|
|
|
9799 |
}
|
|
|
9800 |
}
|
|
|
9801 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
|
|
9802 |
if (lastComparison != 0) {
|
|
|
9803 |
return lastComparison;
|
|
|
9804 |
}
|
|
|
9805 |
if (isSetBillingWarehouseId()) {
|
|
|
9806 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
|
|
9807 |
if (lastComparison != 0) {
|
|
|
9808 |
return lastComparison;
|
|
|
9809 |
}
|
|
|
9810 |
}
|
| 2820 |
chandransh |
9811 |
return 0;
|
|
|
9812 |
}
|
|
|
9813 |
|
| 3430 |
rajveer |
9814 |
public _Fields fieldForId(int fieldId) {
|
|
|
9815 |
return _Fields.findByThriftId(fieldId);
|
|
|
9816 |
}
|
|
|
9817 |
|
|
|
9818 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9819 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
9820 |
iprot.readStructBegin();
|
|
|
9821 |
while (true)
|
|
|
9822 |
{
|
|
|
9823 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
9824 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
9825 |
break;
|
|
|
9826 |
}
|
| 3430 |
rajveer |
9827 |
switch (field.id) {
|
| 4555 |
mandeep.dh |
9828 |
case 1: // SERIAL_NUMBER
|
|
|
9829 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
9830 |
this.serialNumber = iprot.readString();
|
| 3430 |
rajveer |
9831 |
} else {
|
|
|
9832 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9833 |
}
|
|
|
9834 |
break;
|
| 4496 |
mandeep.dh |
9835 |
case 2: // TYPE
|
|
|
9836 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
9837 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
9838 |
} else {
|
|
|
9839 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9840 |
}
|
|
|
9841 |
break;
|
| 4496 |
mandeep.dh |
9842 |
case 3: // ORDER_ID
|
|
|
9843 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
9844 |
this.orderId = iprot.readI64();
|
|
|
9845 |
setOrderIdIsSet(true);
|
| 3430 |
rajveer |
9846 |
} else {
|
|
|
9847 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9848 |
}
|
|
|
9849 |
break;
|
| 5110 |
mandeep.dh |
9850 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
9851 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5110 |
mandeep.dh |
9852 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
9853 |
setFulfilmentWarehouseIdIsSet(true);
|
| 3430 |
rajveer |
9854 |
} else {
|
|
|
9855 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9856 |
}
|
|
|
9857 |
break;
|
| 5110 |
mandeep.dh |
9858 |
case 5: // QUANTITY
|
|
|
9859 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
9860 |
this.quantity = iprot.readDouble();
|
|
|
9861 |
setQuantityIsSet(true);
|
|
|
9862 |
} else {
|
|
|
9863 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9864 |
}
|
|
|
9865 |
break;
|
|
|
9866 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
9867 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
9868 |
this.billingWarehouseId = iprot.readI64();
|
|
|
9869 |
setBillingWarehouseIdIsSet(true);
|
|
|
9870 |
} else {
|
|
|
9871 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9872 |
}
|
|
|
9873 |
break;
|
| 3430 |
rajveer |
9874 |
default:
|
|
|
9875 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
9876 |
}
|
| 3430 |
rajveer |
9877 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
9878 |
}
|
|
|
9879 |
iprot.readStructEnd();
|
|
|
9880 |
validate();
|
|
|
9881 |
}
|
|
|
9882 |
|
| 3430 |
rajveer |
9883 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
9884 |
validate();
|
|
|
9885 |
|
|
|
9886 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4555 |
mandeep.dh |
9887 |
if (this.serialNumber != null) {
|
|
|
9888 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
9889 |
oprot.writeString(this.serialNumber);
|
|
|
9890 |
oprot.writeFieldEnd();
|
|
|
9891 |
}
|
| 2820 |
chandransh |
9892 |
if (this.type != null) {
|
|
|
9893 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
9894 |
oprot.writeI32(this.type.getValue());
|
|
|
9895 |
oprot.writeFieldEnd();
|
|
|
9896 |
}
|
| 4496 |
mandeep.dh |
9897 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
9898 |
oprot.writeI64(this.orderId);
|
|
|
9899 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
9900 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
9901 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
9902 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
9903 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
9904 |
oprot.writeDouble(this.quantity);
|
|
|
9905 |
oprot.writeFieldEnd();
|
|
|
9906 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
9907 |
oprot.writeI64(this.billingWarehouseId);
|
|
|
9908 |
oprot.writeFieldEnd();
|
| 2820 |
chandransh |
9909 |
oprot.writeFieldStop();
|
|
|
9910 |
oprot.writeStructEnd();
|
|
|
9911 |
}
|
|
|
9912 |
|
|
|
9913 |
@Override
|
|
|
9914 |
public String toString() {
|
| 4496 |
mandeep.dh |
9915 |
StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_args(");
|
| 2820 |
chandransh |
9916 |
boolean first = true;
|
|
|
9917 |
|
| 4555 |
mandeep.dh |
9918 |
sb.append("serialNumber:");
|
|
|
9919 |
if (this.serialNumber == null) {
|
|
|
9920 |
sb.append("null");
|
|
|
9921 |
} else {
|
|
|
9922 |
sb.append(this.serialNumber);
|
|
|
9923 |
}
|
| 2820 |
chandransh |
9924 |
first = false;
|
|
|
9925 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
9926 |
sb.append("type:");
|
|
|
9927 |
if (this.type == null) {
|
| 2820 |
chandransh |
9928 |
sb.append("null");
|
|
|
9929 |
} else {
|
| 4496 |
mandeep.dh |
9930 |
sb.append(this.type);
|
| 2820 |
chandransh |
9931 |
}
|
|
|
9932 |
first = false;
|
|
|
9933 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
9934 |
sb.append("orderId:");
|
|
|
9935 |
sb.append(this.orderId);
|
| 2820 |
chandransh |
9936 |
first = false;
|
|
|
9937 |
if (!first) sb.append(", ");
|
| 5110 |
mandeep.dh |
9938 |
sb.append("fulfilmentWarehouseId:");
|
|
|
9939 |
sb.append(this.fulfilmentWarehouseId);
|
| 2820 |
chandransh |
9940 |
first = false;
|
| 5110 |
mandeep.dh |
9941 |
if (!first) sb.append(", ");
|
|
|
9942 |
sb.append("quantity:");
|
|
|
9943 |
sb.append(this.quantity);
|
|
|
9944 |
first = false;
|
|
|
9945 |
if (!first) sb.append(", ");
|
|
|
9946 |
sb.append("billingWarehouseId:");
|
|
|
9947 |
sb.append(this.billingWarehouseId);
|
|
|
9948 |
first = false;
|
| 2820 |
chandransh |
9949 |
sb.append(")");
|
|
|
9950 |
return sb.toString();
|
|
|
9951 |
}
|
|
|
9952 |
|
| 3430 |
rajveer |
9953 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
9954 |
// check for required fields
|
|
|
9955 |
}
|
|
|
9956 |
|
| 3430 |
rajveer |
9957 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9958 |
try {
|
|
|
9959 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9960 |
} catch (org.apache.thrift.TException te) {
|
|
|
9961 |
throw new java.io.IOException(te);
|
|
|
9962 |
}
|
|
|
9963 |
}
|
|
|
9964 |
|
|
|
9965 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9966 |
try {
|
|
|
9967 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9968 |
} catch (org.apache.thrift.TException te) {
|
|
|
9969 |
throw new java.io.IOException(te);
|
|
|
9970 |
}
|
|
|
9971 |
}
|
|
|
9972 |
|
| 2820 |
chandransh |
9973 |
}
|
|
|
9974 |
|
| 4496 |
mandeep.dh |
9975 |
public static class scanSerializedItemForOrder_result implements org.apache.thrift.TBase<scanSerializedItemForOrder_result, scanSerializedItemForOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
9976 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_result");
|
| 2820 |
chandransh |
9977 |
|
| 4555 |
mandeep.dh |
9978 |
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 |
9979 |
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 |
9980 |
|
| 4555 |
mandeep.dh |
9981 |
private InventoryItem success; // required
|
| 3430 |
rajveer |
9982 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
9983 |
|
|
|
9984 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
9985 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
9986 |
SUCCESS((short)0, "success"),
|
| 2820 |
chandransh |
9987 |
WEX((short)1, "wex");
|
|
|
9988 |
|
|
|
9989 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9990 |
|
|
|
9991 |
static {
|
|
|
9992 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9993 |
byName.put(field.getFieldName(), field);
|
|
|
9994 |
}
|
|
|
9995 |
}
|
|
|
9996 |
|
|
|
9997 |
/**
|
|
|
9998 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9999 |
*/
|
|
|
10000 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
10001 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
10002 |
case 0: // SUCCESS
|
|
|
10003 |
return SUCCESS;
|
| 3430 |
rajveer |
10004 |
case 1: // WEX
|
|
|
10005 |
return WEX;
|
|
|
10006 |
default:
|
|
|
10007 |
return null;
|
|
|
10008 |
}
|
| 2820 |
chandransh |
10009 |
}
|
|
|
10010 |
|
|
|
10011 |
/**
|
|
|
10012 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10013 |
* if it is not found.
|
|
|
10014 |
*/
|
|
|
10015 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10016 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10017 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10018 |
return fields;
|
|
|
10019 |
}
|
|
|
10020 |
|
|
|
10021 |
/**
|
|
|
10022 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10023 |
*/
|
|
|
10024 |
public static _Fields findByName(String name) {
|
|
|
10025 |
return byName.get(name);
|
|
|
10026 |
}
|
|
|
10027 |
|
|
|
10028 |
private final short _thriftId;
|
|
|
10029 |
private final String _fieldName;
|
|
|
10030 |
|
|
|
10031 |
_Fields(short thriftId, String fieldName) {
|
|
|
10032 |
_thriftId = thriftId;
|
|
|
10033 |
_fieldName = fieldName;
|
|
|
10034 |
}
|
|
|
10035 |
|
|
|
10036 |
public short getThriftFieldId() {
|
|
|
10037 |
return _thriftId;
|
|
|
10038 |
}
|
|
|
10039 |
|
|
|
10040 |
public String getFieldName() {
|
|
|
10041 |
return _fieldName;
|
|
|
10042 |
}
|
|
|
10043 |
}
|
|
|
10044 |
|
|
|
10045 |
// isset id assignments
|
|
|
10046 |
|
| 3430 |
rajveer |
10047 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
10048 |
static {
|
| 3430 |
rajveer |
10049 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
10050 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4555 |
mandeep.dh |
10051 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
10052 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10053 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
10054 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
10055 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_result.class, metaDataMap);
|
| 2820 |
chandransh |
10056 |
}
|
|
|
10057 |
|
| 4496 |
mandeep.dh |
10058 |
public scanSerializedItemForOrder_result() {
|
| 2820 |
chandransh |
10059 |
}
|
|
|
10060 |
|
| 4496 |
mandeep.dh |
10061 |
public scanSerializedItemForOrder_result(
|
| 4555 |
mandeep.dh |
10062 |
InventoryItem success,
|
| 2820 |
chandransh |
10063 |
WarehouseServiceException wex)
|
|
|
10064 |
{
|
|
|
10065 |
this();
|
| 4496 |
mandeep.dh |
10066 |
this.success = success;
|
| 2820 |
chandransh |
10067 |
this.wex = wex;
|
|
|
10068 |
}
|
|
|
10069 |
|
|
|
10070 |
/**
|
|
|
10071 |
* Performs a deep copy on <i>other</i>.
|
|
|
10072 |
*/
|
| 4496 |
mandeep.dh |
10073 |
public scanSerializedItemForOrder_result(scanSerializedItemForOrder_result other) {
|
| 4555 |
mandeep.dh |
10074 |
if (other.isSetSuccess()) {
|
|
|
10075 |
this.success = new InventoryItem(other.success);
|
|
|
10076 |
}
|
| 2820 |
chandransh |
10077 |
if (other.isSetWex()) {
|
|
|
10078 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
10079 |
}
|
|
|
10080 |
}
|
|
|
10081 |
|
| 4496 |
mandeep.dh |
10082 |
public scanSerializedItemForOrder_result deepCopy() {
|
|
|
10083 |
return new scanSerializedItemForOrder_result(this);
|
| 2820 |
chandransh |
10084 |
}
|
|
|
10085 |
|
| 3430 |
rajveer |
10086 |
@Override
|
|
|
10087 |
public void clear() {
|
| 4555 |
mandeep.dh |
10088 |
this.success = null;
|
| 3430 |
rajveer |
10089 |
this.wex = null;
|
| 2820 |
chandransh |
10090 |
}
|
|
|
10091 |
|
| 4555 |
mandeep.dh |
10092 |
public InventoryItem getSuccess() {
|
| 4496 |
mandeep.dh |
10093 |
return this.success;
|
|
|
10094 |
}
|
|
|
10095 |
|
| 4555 |
mandeep.dh |
10096 |
public void setSuccess(InventoryItem success) {
|
| 4496 |
mandeep.dh |
10097 |
this.success = success;
|
|
|
10098 |
}
|
|
|
10099 |
|
|
|
10100 |
public void unsetSuccess() {
|
| 4555 |
mandeep.dh |
10101 |
this.success = null;
|
| 4496 |
mandeep.dh |
10102 |
}
|
|
|
10103 |
|
|
|
10104 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
10105 |
public boolean isSetSuccess() {
|
| 4555 |
mandeep.dh |
10106 |
return this.success != null;
|
| 4496 |
mandeep.dh |
10107 |
}
|
|
|
10108 |
|
|
|
10109 |
public void setSuccessIsSet(boolean value) {
|
| 4555 |
mandeep.dh |
10110 |
if (!value) {
|
|
|
10111 |
this.success = null;
|
|
|
10112 |
}
|
| 4496 |
mandeep.dh |
10113 |
}
|
|
|
10114 |
|
| 2820 |
chandransh |
10115 |
public WarehouseServiceException getWex() {
|
|
|
10116 |
return this.wex;
|
|
|
10117 |
}
|
|
|
10118 |
|
| 3430 |
rajveer |
10119 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
10120 |
this.wex = wex;
|
|
|
10121 |
}
|
|
|
10122 |
|
|
|
10123 |
public void unsetWex() {
|
|
|
10124 |
this.wex = null;
|
|
|
10125 |
}
|
|
|
10126 |
|
| 3430 |
rajveer |
10127 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
10128 |
public boolean isSetWex() {
|
|
|
10129 |
return this.wex != null;
|
|
|
10130 |
}
|
|
|
10131 |
|
|
|
10132 |
public void setWexIsSet(boolean value) {
|
|
|
10133 |
if (!value) {
|
|
|
10134 |
this.wex = null;
|
|
|
10135 |
}
|
|
|
10136 |
}
|
|
|
10137 |
|
|
|
10138 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10139 |
switch (field) {
|
| 4496 |
mandeep.dh |
10140 |
case SUCCESS:
|
|
|
10141 |
if (value == null) {
|
|
|
10142 |
unsetSuccess();
|
|
|
10143 |
} else {
|
| 4555 |
mandeep.dh |
10144 |
setSuccess((InventoryItem)value);
|
| 4496 |
mandeep.dh |
10145 |
}
|
|
|
10146 |
break;
|
|
|
10147 |
|
| 2820 |
chandransh |
10148 |
case WEX:
|
|
|
10149 |
if (value == null) {
|
|
|
10150 |
unsetWex();
|
|
|
10151 |
} else {
|
|
|
10152 |
setWex((WarehouseServiceException)value);
|
|
|
10153 |
}
|
|
|
10154 |
break;
|
|
|
10155 |
|
|
|
10156 |
}
|
|
|
10157 |
}
|
|
|
10158 |
|
|
|
10159 |
public Object getFieldValue(_Fields field) {
|
|
|
10160 |
switch (field) {
|
| 4496 |
mandeep.dh |
10161 |
case SUCCESS:
|
| 4555 |
mandeep.dh |
10162 |
return getSuccess();
|
| 4496 |
mandeep.dh |
10163 |
|
| 2820 |
chandransh |
10164 |
case WEX:
|
|
|
10165 |
return getWex();
|
|
|
10166 |
|
|
|
10167 |
}
|
|
|
10168 |
throw new IllegalStateException();
|
|
|
10169 |
}
|
|
|
10170 |
|
| 3430 |
rajveer |
10171 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10172 |
public boolean isSet(_Fields field) {
|
|
|
10173 |
if (field == null) {
|
|
|
10174 |
throw new IllegalArgumentException();
|
|
|
10175 |
}
|
| 2820 |
chandransh |
10176 |
|
|
|
10177 |
switch (field) {
|
| 4496 |
mandeep.dh |
10178 |
case SUCCESS:
|
|
|
10179 |
return isSetSuccess();
|
| 2820 |
chandransh |
10180 |
case WEX:
|
|
|
10181 |
return isSetWex();
|
|
|
10182 |
}
|
|
|
10183 |
throw new IllegalStateException();
|
|
|
10184 |
}
|
|
|
10185 |
|
|
|
10186 |
@Override
|
|
|
10187 |
public boolean equals(Object that) {
|
|
|
10188 |
if (that == null)
|
|
|
10189 |
return false;
|
| 4496 |
mandeep.dh |
10190 |
if (that instanceof scanSerializedItemForOrder_result)
|
|
|
10191 |
return this.equals((scanSerializedItemForOrder_result)that);
|
| 2820 |
chandransh |
10192 |
return false;
|
|
|
10193 |
}
|
|
|
10194 |
|
| 4496 |
mandeep.dh |
10195 |
public boolean equals(scanSerializedItemForOrder_result that) {
|
| 2820 |
chandransh |
10196 |
if (that == null)
|
|
|
10197 |
return false;
|
|
|
10198 |
|
| 4555 |
mandeep.dh |
10199 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
10200 |
boolean that_present_success = true && that.isSetSuccess();
|
| 4496 |
mandeep.dh |
10201 |
if (this_present_success || that_present_success) {
|
|
|
10202 |
if (!(this_present_success && that_present_success))
|
|
|
10203 |
return false;
|
| 4555 |
mandeep.dh |
10204 |
if (!this.success.equals(that.success))
|
| 4496 |
mandeep.dh |
10205 |
return false;
|
|
|
10206 |
}
|
|
|
10207 |
|
| 2820 |
chandransh |
10208 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
10209 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
10210 |
if (this_present_wex || that_present_wex) {
|
|
|
10211 |
if (!(this_present_wex && that_present_wex))
|
|
|
10212 |
return false;
|
|
|
10213 |
if (!this.wex.equals(that.wex))
|
|
|
10214 |
return false;
|
|
|
10215 |
}
|
|
|
10216 |
|
|
|
10217 |
return true;
|
|
|
10218 |
}
|
|
|
10219 |
|
|
|
10220 |
@Override
|
|
|
10221 |
public int hashCode() {
|
|
|
10222 |
return 0;
|
|
|
10223 |
}
|
|
|
10224 |
|
| 4496 |
mandeep.dh |
10225 |
public int compareTo(scanSerializedItemForOrder_result other) {
|
| 2820 |
chandransh |
10226 |
if (!getClass().equals(other.getClass())) {
|
|
|
10227 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10228 |
}
|
|
|
10229 |
|
|
|
10230 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
10231 |
scanSerializedItemForOrder_result typedOther = (scanSerializedItemForOrder_result)other;
|
| 2820 |
chandransh |
10232 |
|
| 4496 |
mandeep.dh |
10233 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
10234 |
if (lastComparison != 0) {
|
|
|
10235 |
return lastComparison;
|
|
|
10236 |
}
|
|
|
10237 |
if (isSetSuccess()) {
|
|
|
10238 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
10239 |
if (lastComparison != 0) {
|
|
|
10240 |
return lastComparison;
|
|
|
10241 |
}
|
|
|
10242 |
}
|
| 3430 |
rajveer |
10243 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
10244 |
if (lastComparison != 0) {
|
|
|
10245 |
return lastComparison;
|
|
|
10246 |
}
|
| 3430 |
rajveer |
10247 |
if (isSetWex()) {
|
|
|
10248 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
10249 |
if (lastComparison != 0) {
|
|
|
10250 |
return lastComparison;
|
|
|
10251 |
}
|
| 2820 |
chandransh |
10252 |
}
|
|
|
10253 |
return 0;
|
|
|
10254 |
}
|
|
|
10255 |
|
| 3430 |
rajveer |
10256 |
public _Fields fieldForId(int fieldId) {
|
|
|
10257 |
return _Fields.findByThriftId(fieldId);
|
|
|
10258 |
}
|
|
|
10259 |
|
|
|
10260 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10261 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
10262 |
iprot.readStructBegin();
|
|
|
10263 |
while (true)
|
|
|
10264 |
{
|
|
|
10265 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
10266 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
10267 |
break;
|
|
|
10268 |
}
|
| 3430 |
rajveer |
10269 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
10270 |
case 0: // SUCCESS
|
| 4555 |
mandeep.dh |
10271 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
10272 |
this.success = new InventoryItem();
|
|
|
10273 |
this.success.read(iprot);
|
| 4496 |
mandeep.dh |
10274 |
} else {
|
|
|
10275 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10276 |
}
|
|
|
10277 |
break;
|
| 3430 |
rajveer |
10278 |
case 1: // WEX
|
|
|
10279 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
10280 |
this.wex = new WarehouseServiceException();
|
|
|
10281 |
this.wex.read(iprot);
|
|
|
10282 |
} else {
|
|
|
10283 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10284 |
}
|
|
|
10285 |
break;
|
|
|
10286 |
default:
|
|
|
10287 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
10288 |
}
|
| 3430 |
rajveer |
10289 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
10290 |
}
|
|
|
10291 |
iprot.readStructEnd();
|
|
|
10292 |
validate();
|
|
|
10293 |
}
|
|
|
10294 |
|
| 3430 |
rajveer |
10295 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
10296 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10297 |
|
| 4496 |
mandeep.dh |
10298 |
if (this.isSetSuccess()) {
|
|
|
10299 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 4555 |
mandeep.dh |
10300 |
this.success.write(oprot);
|
| 4496 |
mandeep.dh |
10301 |
oprot.writeFieldEnd();
|
|
|
10302 |
} else if (this.isSetWex()) {
|
| 2820 |
chandransh |
10303 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
10304 |
this.wex.write(oprot);
|
|
|
10305 |
oprot.writeFieldEnd();
|
|
|
10306 |
}
|
|
|
10307 |
oprot.writeFieldStop();
|
|
|
10308 |
oprot.writeStructEnd();
|
|
|
10309 |
}
|
|
|
10310 |
|
|
|
10311 |
@Override
|
|
|
10312 |
public String toString() {
|
| 4496 |
mandeep.dh |
10313 |
StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_result(");
|
| 2820 |
chandransh |
10314 |
boolean first = true;
|
|
|
10315 |
|
| 4496 |
mandeep.dh |
10316 |
sb.append("success:");
|
| 4555 |
mandeep.dh |
10317 |
if (this.success == null) {
|
|
|
10318 |
sb.append("null");
|
|
|
10319 |
} else {
|
|
|
10320 |
sb.append(this.success);
|
|
|
10321 |
}
|
| 4496 |
mandeep.dh |
10322 |
first = false;
|
|
|
10323 |
if (!first) sb.append(", ");
|
| 2820 |
chandransh |
10324 |
sb.append("wex:");
|
|
|
10325 |
if (this.wex == null) {
|
|
|
10326 |
sb.append("null");
|
|
|
10327 |
} else {
|
|
|
10328 |
sb.append(this.wex);
|
|
|
10329 |
}
|
|
|
10330 |
first = false;
|
|
|
10331 |
sb.append(")");
|
|
|
10332 |
return sb.toString();
|
|
|
10333 |
}
|
|
|
10334 |
|
| 3430 |
rajveer |
10335 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
10336 |
// check for required fields
|
|
|
10337 |
}
|
|
|
10338 |
|
| 3430 |
rajveer |
10339 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10340 |
try {
|
|
|
10341 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10342 |
} catch (org.apache.thrift.TException te) {
|
|
|
10343 |
throw new java.io.IOException(te);
|
|
|
10344 |
}
|
|
|
10345 |
}
|
|
|
10346 |
|
|
|
10347 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10348 |
try {
|
|
|
10349 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10350 |
} catch (org.apache.thrift.TException te) {
|
|
|
10351 |
throw new java.io.IOException(te);
|
|
|
10352 |
}
|
|
|
10353 |
}
|
|
|
10354 |
|
| 2820 |
chandransh |
10355 |
}
|
|
|
10356 |
|
| 4496 |
mandeep.dh |
10357 |
public static class scanForOrder_args implements org.apache.thrift.TBase<scanForOrder_args, scanForOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
10358 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_args");
|
| 2820 |
chandransh |
10359 |
|
| 4496 |
mandeep.dh |
10360 |
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);
|
|
|
10361 |
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);
|
|
|
10362 |
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);
|
|
|
10363 |
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 |
10364 |
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);
|
| 2820 |
chandransh |
10365 |
|
| 4496 |
mandeep.dh |
10366 |
private long inventoryItemId; // required
|
| 3430 |
rajveer |
10367 |
private ScanType type; // required
|
| 4496 |
mandeep.dh |
10368 |
private long quantity; // required
|
|
|
10369 |
private long orderId; // required
|
| 5110 |
mandeep.dh |
10370 |
private long fulfilmentWarehouseId; // required
|
| 2820 |
chandransh |
10371 |
|
|
|
10372 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
10373 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
10374 |
INVENTORY_ITEM_ID((short)1, "inventoryItemId"),
|
| 2820 |
chandransh |
10375 |
/**
|
|
|
10376 |
*
|
|
|
10377 |
* @see ScanType
|
|
|
10378 |
*/
|
| 4496 |
mandeep.dh |
10379 |
TYPE((short)2, "type"),
|
|
|
10380 |
QUANTITY((short)3, "quantity"),
|
|
|
10381 |
ORDER_ID((short)4, "orderId"),
|
| 5110 |
mandeep.dh |
10382 |
FULFILMENT_WAREHOUSE_ID((short)5, "fulfilmentWarehouseId");
|
| 2820 |
chandransh |
10383 |
|
|
|
10384 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10385 |
|
|
|
10386 |
static {
|
|
|
10387 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10388 |
byName.put(field.getFieldName(), field);
|
|
|
10389 |
}
|
|
|
10390 |
}
|
|
|
10391 |
|
|
|
10392 |
/**
|
|
|
10393 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10394 |
*/
|
|
|
10395 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
10396 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
10397 |
case 1: // INVENTORY_ITEM_ID
|
|
|
10398 |
return INVENTORY_ITEM_ID;
|
|
|
10399 |
case 2: // TYPE
|
| 3430 |
rajveer |
10400 |
return TYPE;
|
| 4496 |
mandeep.dh |
10401 |
case 3: // QUANTITY
|
|
|
10402 |
return QUANTITY;
|
|
|
10403 |
case 4: // ORDER_ID
|
|
|
10404 |
return ORDER_ID;
|
| 5110 |
mandeep.dh |
10405 |
case 5: // FULFILMENT_WAREHOUSE_ID
|
|
|
10406 |
return FULFILMENT_WAREHOUSE_ID;
|
| 3430 |
rajveer |
10407 |
default:
|
|
|
10408 |
return null;
|
|
|
10409 |
}
|
| 2820 |
chandransh |
10410 |
}
|
|
|
10411 |
|
|
|
10412 |
/**
|
|
|
10413 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10414 |
* if it is not found.
|
|
|
10415 |
*/
|
|
|
10416 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10417 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10418 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10419 |
return fields;
|
|
|
10420 |
}
|
|
|
10421 |
|
|
|
10422 |
/**
|
|
|
10423 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10424 |
*/
|
|
|
10425 |
public static _Fields findByName(String name) {
|
|
|
10426 |
return byName.get(name);
|
|
|
10427 |
}
|
|
|
10428 |
|
|
|
10429 |
private final short _thriftId;
|
|
|
10430 |
private final String _fieldName;
|
|
|
10431 |
|
|
|
10432 |
_Fields(short thriftId, String fieldName) {
|
|
|
10433 |
_thriftId = thriftId;
|
|
|
10434 |
_fieldName = fieldName;
|
|
|
10435 |
}
|
|
|
10436 |
|
|
|
10437 |
public short getThriftFieldId() {
|
|
|
10438 |
return _thriftId;
|
|
|
10439 |
}
|
|
|
10440 |
|
|
|
10441 |
public String getFieldName() {
|
|
|
10442 |
return _fieldName;
|
|
|
10443 |
}
|
|
|
10444 |
}
|
|
|
10445 |
|
|
|
10446 |
// isset id assignments
|
| 4496 |
mandeep.dh |
10447 |
private static final int __INVENTORYITEMID_ISSET_ID = 0;
|
|
|
10448 |
private static final int __QUANTITY_ISSET_ID = 1;
|
|
|
10449 |
private static final int __ORDERID_ISSET_ID = 2;
|
| 5110 |
mandeep.dh |
10450 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 3;
|
| 4496 |
mandeep.dh |
10451 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 2820 |
chandransh |
10452 |
|
| 3430 |
rajveer |
10453 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
10454 |
static {
|
| 3430 |
rajveer |
10455 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
10456 |
tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10457 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
10458 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10459 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 4496 |
mandeep.dh |
10460 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10461 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
10462 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10463 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
10464 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
10465 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
10466 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
10467 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_args.class, metaDataMap);
|
| 2820 |
chandransh |
10468 |
}
|
|
|
10469 |
|
| 4496 |
mandeep.dh |
10470 |
public scanForOrder_args() {
|
| 2820 |
chandransh |
10471 |
}
|
|
|
10472 |
|
| 4496 |
mandeep.dh |
10473 |
public scanForOrder_args(
|
|
|
10474 |
long inventoryItemId,
|
|
|
10475 |
ScanType type,
|
|
|
10476 |
long quantity,
|
|
|
10477 |
long orderId,
|
| 5110 |
mandeep.dh |
10478 |
long fulfilmentWarehouseId)
|
| 2820 |
chandransh |
10479 |
{
|
|
|
10480 |
this();
|
| 4496 |
mandeep.dh |
10481 |
this.inventoryItemId = inventoryItemId;
|
|
|
10482 |
setInventoryItemIdIsSet(true);
|
| 2820 |
chandransh |
10483 |
this.type = type;
|
| 4496 |
mandeep.dh |
10484 |
this.quantity = quantity;
|
|
|
10485 |
setQuantityIsSet(true);
|
|
|
10486 |
this.orderId = orderId;
|
|
|
10487 |
setOrderIdIsSet(true);
|
| 5110 |
mandeep.dh |
10488 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
10489 |
setFulfilmentWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
10490 |
}
|
|
|
10491 |
|
|
|
10492 |
/**
|
|
|
10493 |
* Performs a deep copy on <i>other</i>.
|
|
|
10494 |
*/
|
| 4496 |
mandeep.dh |
10495 |
public scanForOrder_args(scanForOrder_args other) {
|
|
|
10496 |
__isset_bit_vector.clear();
|
|
|
10497 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
10498 |
this.inventoryItemId = other.inventoryItemId;
|
| 2820 |
chandransh |
10499 |
if (other.isSetType()) {
|
|
|
10500 |
this.type = other.type;
|
|
|
10501 |
}
|
| 4496 |
mandeep.dh |
10502 |
this.quantity = other.quantity;
|
|
|
10503 |
this.orderId = other.orderId;
|
| 5110 |
mandeep.dh |
10504 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
| 2820 |
chandransh |
10505 |
}
|
|
|
10506 |
|
| 4496 |
mandeep.dh |
10507 |
public scanForOrder_args deepCopy() {
|
|
|
10508 |
return new scanForOrder_args(this);
|
| 2820 |
chandransh |
10509 |
}
|
|
|
10510 |
|
| 3430 |
rajveer |
10511 |
@Override
|
|
|
10512 |
public void clear() {
|
| 4496 |
mandeep.dh |
10513 |
setInventoryItemIdIsSet(false);
|
|
|
10514 |
this.inventoryItemId = 0;
|
| 3430 |
rajveer |
10515 |
this.type = null;
|
| 4496 |
mandeep.dh |
10516 |
setQuantityIsSet(false);
|
|
|
10517 |
this.quantity = 0;
|
|
|
10518 |
setOrderIdIsSet(false);
|
|
|
10519 |
this.orderId = 0;
|
| 5110 |
mandeep.dh |
10520 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
10521 |
this.fulfilmentWarehouseId = 0;
|
| 2820 |
chandransh |
10522 |
}
|
|
|
10523 |
|
| 4496 |
mandeep.dh |
10524 |
public long getInventoryItemId() {
|
|
|
10525 |
return this.inventoryItemId;
|
| 2820 |
chandransh |
10526 |
}
|
|
|
10527 |
|
| 4496 |
mandeep.dh |
10528 |
public void setInventoryItemId(long inventoryItemId) {
|
|
|
10529 |
this.inventoryItemId = inventoryItemId;
|
|
|
10530 |
setInventoryItemIdIsSet(true);
|
| 2820 |
chandransh |
10531 |
}
|
|
|
10532 |
|
| 4496 |
mandeep.dh |
10533 |
public void unsetInventoryItemId() {
|
|
|
10534 |
__isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
|
| 2820 |
chandransh |
10535 |
}
|
|
|
10536 |
|
| 4496 |
mandeep.dh |
10537 |
/** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
|
|
|
10538 |
public boolean isSetInventoryItemId() {
|
|
|
10539 |
return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
|
| 2820 |
chandransh |
10540 |
}
|
|
|
10541 |
|
| 4496 |
mandeep.dh |
10542 |
public void setInventoryItemIdIsSet(boolean value) {
|
|
|
10543 |
__isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
|
| 2820 |
chandransh |
10544 |
}
|
|
|
10545 |
|
|
|
10546 |
/**
|
|
|
10547 |
*
|
|
|
10548 |
* @see ScanType
|
|
|
10549 |
*/
|
|
|
10550 |
public ScanType getType() {
|
|
|
10551 |
return this.type;
|
|
|
10552 |
}
|
|
|
10553 |
|
|
|
10554 |
/**
|
|
|
10555 |
*
|
|
|
10556 |
* @see ScanType
|
|
|
10557 |
*/
|
| 3430 |
rajveer |
10558 |
public void setType(ScanType type) {
|
| 2820 |
chandransh |
10559 |
this.type = type;
|
|
|
10560 |
}
|
|
|
10561 |
|
|
|
10562 |
public void unsetType() {
|
|
|
10563 |
this.type = null;
|
|
|
10564 |
}
|
|
|
10565 |
|
| 3430 |
rajveer |
10566 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
10567 |
public boolean isSetType() {
|
|
|
10568 |
return this.type != null;
|
|
|
10569 |
}
|
|
|
10570 |
|
|
|
10571 |
public void setTypeIsSet(boolean value) {
|
|
|
10572 |
if (!value) {
|
|
|
10573 |
this.type = null;
|
|
|
10574 |
}
|
|
|
10575 |
}
|
|
|
10576 |
|
| 4496 |
mandeep.dh |
10577 |
public long getQuantity() {
|
|
|
10578 |
return this.quantity;
|
|
|
10579 |
}
|
|
|
10580 |
|
|
|
10581 |
public void setQuantity(long quantity) {
|
|
|
10582 |
this.quantity = quantity;
|
|
|
10583 |
setQuantityIsSet(true);
|
|
|
10584 |
}
|
|
|
10585 |
|
|
|
10586 |
public void unsetQuantity() {
|
|
|
10587 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
10588 |
}
|
|
|
10589 |
|
|
|
10590 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
10591 |
public boolean isSetQuantity() {
|
|
|
10592 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
10593 |
}
|
|
|
10594 |
|
|
|
10595 |
public void setQuantityIsSet(boolean value) {
|
|
|
10596 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
10597 |
}
|
|
|
10598 |
|
|
|
10599 |
public long getOrderId() {
|
|
|
10600 |
return this.orderId;
|
|
|
10601 |
}
|
|
|
10602 |
|
|
|
10603 |
public void setOrderId(long orderId) {
|
|
|
10604 |
this.orderId = orderId;
|
|
|
10605 |
setOrderIdIsSet(true);
|
|
|
10606 |
}
|
|
|
10607 |
|
|
|
10608 |
public void unsetOrderId() {
|
|
|
10609 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
10610 |
}
|
|
|
10611 |
|
|
|
10612 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
10613 |
public boolean isSetOrderId() {
|
|
|
10614 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
10615 |
}
|
|
|
10616 |
|
|
|
10617 |
public void setOrderIdIsSet(boolean value) {
|
|
|
10618 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
10619 |
}
|
|
|
10620 |
|
| 5110 |
mandeep.dh |
10621 |
public long getFulfilmentWarehouseId() {
|
|
|
10622 |
return this.fulfilmentWarehouseId;
|
| 4496 |
mandeep.dh |
10623 |
}
|
|
|
10624 |
|
| 5110 |
mandeep.dh |
10625 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
10626 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
10627 |
setFulfilmentWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
10628 |
}
|
|
|
10629 |
|
| 5110 |
mandeep.dh |
10630 |
public void unsetFulfilmentWarehouseId() {
|
|
|
10631 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
10632 |
}
|
|
|
10633 |
|
| 5110 |
mandeep.dh |
10634 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
10635 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
10636 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
10637 |
}
|
|
|
10638 |
|
| 5110 |
mandeep.dh |
10639 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
10640 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 4496 |
mandeep.dh |
10641 |
}
|
|
|
10642 |
|
| 2820 |
chandransh |
10643 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10644 |
switch (field) {
|
| 4496 |
mandeep.dh |
10645 |
case INVENTORY_ITEM_ID:
|
| 2820 |
chandransh |
10646 |
if (value == null) {
|
| 4496 |
mandeep.dh |
10647 |
unsetInventoryItemId();
|
| 2820 |
chandransh |
10648 |
} else {
|
| 4496 |
mandeep.dh |
10649 |
setInventoryItemId((Long)value);
|
| 2820 |
chandransh |
10650 |
}
|
|
|
10651 |
break;
|
|
|
10652 |
|
| 4496 |
mandeep.dh |
10653 |
case TYPE:
|
| 2820 |
chandransh |
10654 |
if (value == null) {
|
| 4496 |
mandeep.dh |
10655 |
unsetType();
|
| 2820 |
chandransh |
10656 |
} else {
|
| 4496 |
mandeep.dh |
10657 |
setType((ScanType)value);
|
| 2820 |
chandransh |
10658 |
}
|
|
|
10659 |
break;
|
|
|
10660 |
|
| 4496 |
mandeep.dh |
10661 |
case QUANTITY:
|
| 2820 |
chandransh |
10662 |
if (value == null) {
|
| 4496 |
mandeep.dh |
10663 |
unsetQuantity();
|
| 2820 |
chandransh |
10664 |
} else {
|
| 4496 |
mandeep.dh |
10665 |
setQuantity((Long)value);
|
| 2820 |
chandransh |
10666 |
}
|
|
|
10667 |
break;
|
|
|
10668 |
|
| 4496 |
mandeep.dh |
10669 |
case ORDER_ID:
|
|
|
10670 |
if (value == null) {
|
|
|
10671 |
unsetOrderId();
|
|
|
10672 |
} else {
|
|
|
10673 |
setOrderId((Long)value);
|
|
|
10674 |
}
|
|
|
10675 |
break;
|
|
|
10676 |
|
| 5110 |
mandeep.dh |
10677 |
case FULFILMENT_WAREHOUSE_ID:
|
| 4496 |
mandeep.dh |
10678 |
if (value == null) {
|
| 5110 |
mandeep.dh |
10679 |
unsetFulfilmentWarehouseId();
|
| 4496 |
mandeep.dh |
10680 |
} else {
|
| 5110 |
mandeep.dh |
10681 |
setFulfilmentWarehouseId((Long)value);
|
| 4496 |
mandeep.dh |
10682 |
}
|
|
|
10683 |
break;
|
|
|
10684 |
|
| 2820 |
chandransh |
10685 |
}
|
|
|
10686 |
}
|
|
|
10687 |
|
|
|
10688 |
public Object getFieldValue(_Fields field) {
|
|
|
10689 |
switch (field) {
|
| 4496 |
mandeep.dh |
10690 |
case INVENTORY_ITEM_ID:
|
|
|
10691 |
return Long.valueOf(getInventoryItemId());
|
| 2820 |
chandransh |
10692 |
|
|
|
10693 |
case TYPE:
|
|
|
10694 |
return getType();
|
|
|
10695 |
|
| 4496 |
mandeep.dh |
10696 |
case QUANTITY:
|
|
|
10697 |
return Long.valueOf(getQuantity());
|
|
|
10698 |
|
|
|
10699 |
case ORDER_ID:
|
|
|
10700 |
return Long.valueOf(getOrderId());
|
|
|
10701 |
|
| 5110 |
mandeep.dh |
10702 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
10703 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
10704 |
|
| 2820 |
chandransh |
10705 |
}
|
|
|
10706 |
throw new IllegalStateException();
|
|
|
10707 |
}
|
|
|
10708 |
|
| 3430 |
rajveer |
10709 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10710 |
public boolean isSet(_Fields field) {
|
|
|
10711 |
if (field == null) {
|
|
|
10712 |
throw new IllegalArgumentException();
|
|
|
10713 |
}
|
| 2820 |
chandransh |
10714 |
|
|
|
10715 |
switch (field) {
|
| 4496 |
mandeep.dh |
10716 |
case INVENTORY_ITEM_ID:
|
|
|
10717 |
return isSetInventoryItemId();
|
| 2820 |
chandransh |
10718 |
case TYPE:
|
|
|
10719 |
return isSetType();
|
| 4496 |
mandeep.dh |
10720 |
case QUANTITY:
|
|
|
10721 |
return isSetQuantity();
|
|
|
10722 |
case ORDER_ID:
|
|
|
10723 |
return isSetOrderId();
|
| 5110 |
mandeep.dh |
10724 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
10725 |
return isSetFulfilmentWarehouseId();
|
| 2820 |
chandransh |
10726 |
}
|
|
|
10727 |
throw new IllegalStateException();
|
|
|
10728 |
}
|
|
|
10729 |
|
|
|
10730 |
@Override
|
|
|
10731 |
public boolean equals(Object that) {
|
|
|
10732 |
if (that == null)
|
|
|
10733 |
return false;
|
| 4496 |
mandeep.dh |
10734 |
if (that instanceof scanForOrder_args)
|
|
|
10735 |
return this.equals((scanForOrder_args)that);
|
| 2820 |
chandransh |
10736 |
return false;
|
|
|
10737 |
}
|
|
|
10738 |
|
| 4496 |
mandeep.dh |
10739 |
public boolean equals(scanForOrder_args that) {
|
| 2820 |
chandransh |
10740 |
if (that == null)
|
|
|
10741 |
return false;
|
|
|
10742 |
|
| 4496 |
mandeep.dh |
10743 |
boolean this_present_inventoryItemId = true;
|
|
|
10744 |
boolean that_present_inventoryItemId = true;
|
|
|
10745 |
if (this_present_inventoryItemId || that_present_inventoryItemId) {
|
|
|
10746 |
if (!(this_present_inventoryItemId && that_present_inventoryItemId))
|
| 2820 |
chandransh |
10747 |
return false;
|
| 4496 |
mandeep.dh |
10748 |
if (this.inventoryItemId != that.inventoryItemId)
|
| 2820 |
chandransh |
10749 |
return false;
|
|
|
10750 |
}
|
|
|
10751 |
|
|
|
10752 |
boolean this_present_type = true && this.isSetType();
|
|
|
10753 |
boolean that_present_type = true && that.isSetType();
|
|
|
10754 |
if (this_present_type || that_present_type) {
|
|
|
10755 |
if (!(this_present_type && that_present_type))
|
|
|
10756 |
return false;
|
|
|
10757 |
if (!this.type.equals(that.type))
|
|
|
10758 |
return false;
|
|
|
10759 |
}
|
|
|
10760 |
|
| 4496 |
mandeep.dh |
10761 |
boolean this_present_quantity = true;
|
|
|
10762 |
boolean that_present_quantity = true;
|
|
|
10763 |
if (this_present_quantity || that_present_quantity) {
|
|
|
10764 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
10765 |
return false;
|
|
|
10766 |
if (this.quantity != that.quantity)
|
|
|
10767 |
return false;
|
|
|
10768 |
}
|
|
|
10769 |
|
|
|
10770 |
boolean this_present_orderId = true;
|
|
|
10771 |
boolean that_present_orderId = true;
|
|
|
10772 |
if (this_present_orderId || that_present_orderId) {
|
|
|
10773 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
10774 |
return false;
|
|
|
10775 |
if (this.orderId != that.orderId)
|
|
|
10776 |
return false;
|
|
|
10777 |
}
|
|
|
10778 |
|
| 5110 |
mandeep.dh |
10779 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
10780 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
10781 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
10782 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 4496 |
mandeep.dh |
10783 |
return false;
|
| 5110 |
mandeep.dh |
10784 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 4496 |
mandeep.dh |
10785 |
return false;
|
|
|
10786 |
}
|
|
|
10787 |
|
| 2820 |
chandransh |
10788 |
return true;
|
|
|
10789 |
}
|
|
|
10790 |
|
|
|
10791 |
@Override
|
|
|
10792 |
public int hashCode() {
|
|
|
10793 |
return 0;
|
|
|
10794 |
}
|
|
|
10795 |
|
| 4496 |
mandeep.dh |
10796 |
public int compareTo(scanForOrder_args other) {
|
| 2820 |
chandransh |
10797 |
if (!getClass().equals(other.getClass())) {
|
|
|
10798 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10799 |
}
|
|
|
10800 |
|
|
|
10801 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
10802 |
scanForOrder_args typedOther = (scanForOrder_args)other;
|
| 2820 |
chandransh |
10803 |
|
| 4496 |
mandeep.dh |
10804 |
lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
|
| 2820 |
chandransh |
10805 |
if (lastComparison != 0) {
|
|
|
10806 |
return lastComparison;
|
|
|
10807 |
}
|
| 4496 |
mandeep.dh |
10808 |
if (isSetInventoryItemId()) {
|
|
|
10809 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
|
| 3430 |
rajveer |
10810 |
if (lastComparison != 0) {
|
|
|
10811 |
return lastComparison;
|
|
|
10812 |
}
|
| 2820 |
chandransh |
10813 |
}
|
| 4496 |
mandeep.dh |
10814 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 2820 |
chandransh |
10815 |
if (lastComparison != 0) {
|
|
|
10816 |
return lastComparison;
|
|
|
10817 |
}
|
| 4496 |
mandeep.dh |
10818 |
if (isSetType()) {
|
|
|
10819 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
10820 |
if (lastComparison != 0) {
|
|
|
10821 |
return lastComparison;
|
|
|
10822 |
}
|
| 2820 |
chandransh |
10823 |
}
|
| 4496 |
mandeep.dh |
10824 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
| 2820 |
chandransh |
10825 |
if (lastComparison != 0) {
|
|
|
10826 |
return lastComparison;
|
|
|
10827 |
}
|
| 4496 |
mandeep.dh |
10828 |
if (isSetQuantity()) {
|
|
|
10829 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
| 3430 |
rajveer |
10830 |
if (lastComparison != 0) {
|
|
|
10831 |
return lastComparison;
|
|
|
10832 |
}
|
| 2820 |
chandransh |
10833 |
}
|
| 4496 |
mandeep.dh |
10834 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
10835 |
if (lastComparison != 0) {
|
|
|
10836 |
return lastComparison;
|
|
|
10837 |
}
|
|
|
10838 |
if (isSetOrderId()) {
|
|
|
10839 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
10840 |
if (lastComparison != 0) {
|
|
|
10841 |
return lastComparison;
|
|
|
10842 |
}
|
|
|
10843 |
}
|
| 5110 |
mandeep.dh |
10844 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
10845 |
if (lastComparison != 0) {
|
|
|
10846 |
return lastComparison;
|
|
|
10847 |
}
|
| 5110 |
mandeep.dh |
10848 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
10849 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
10850 |
if (lastComparison != 0) {
|
|
|
10851 |
return lastComparison;
|
|
|
10852 |
}
|
|
|
10853 |
}
|
| 2820 |
chandransh |
10854 |
return 0;
|
|
|
10855 |
}
|
|
|
10856 |
|
| 3430 |
rajveer |
10857 |
public _Fields fieldForId(int fieldId) {
|
|
|
10858 |
return _Fields.findByThriftId(fieldId);
|
|
|
10859 |
}
|
|
|
10860 |
|
|
|
10861 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10862 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
10863 |
iprot.readStructBegin();
|
|
|
10864 |
while (true)
|
|
|
10865 |
{
|
|
|
10866 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
10867 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
10868 |
break;
|
|
|
10869 |
}
|
| 3430 |
rajveer |
10870 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
10871 |
case 1: // INVENTORY_ITEM_ID
|
|
|
10872 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10873 |
this.inventoryItemId = iprot.readI64();
|
|
|
10874 |
setInventoryItemIdIsSet(true);
|
| 3430 |
rajveer |
10875 |
} else {
|
|
|
10876 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10877 |
}
|
|
|
10878 |
break;
|
| 4496 |
mandeep.dh |
10879 |
case 2: // TYPE
|
|
|
10880 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
10881 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
10882 |
} else {
|
|
|
10883 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10884 |
}
|
|
|
10885 |
break;
|
| 4496 |
mandeep.dh |
10886 |
case 3: // QUANTITY
|
|
|
10887 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10888 |
this.quantity = iprot.readI64();
|
|
|
10889 |
setQuantityIsSet(true);
|
| 3430 |
rajveer |
10890 |
} else {
|
|
|
10891 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10892 |
}
|
|
|
10893 |
break;
|
| 4496 |
mandeep.dh |
10894 |
case 4: // ORDER_ID
|
|
|
10895 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10896 |
this.orderId = iprot.readI64();
|
|
|
10897 |
setOrderIdIsSet(true);
|
|
|
10898 |
} else {
|
|
|
10899 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10900 |
}
|
|
|
10901 |
break;
|
| 5110 |
mandeep.dh |
10902 |
case 5: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
10903 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5110 |
mandeep.dh |
10904 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
10905 |
setFulfilmentWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
10906 |
} else {
|
|
|
10907 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10908 |
}
|
|
|
10909 |
break;
|
| 3430 |
rajveer |
10910 |
default:
|
|
|
10911 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
10912 |
}
|
| 3430 |
rajveer |
10913 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
10914 |
}
|
|
|
10915 |
iprot.readStructEnd();
|
|
|
10916 |
validate();
|
|
|
10917 |
}
|
|
|
10918 |
|
| 3430 |
rajveer |
10919 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
10920 |
validate();
|
|
|
10921 |
|
|
|
10922 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4496 |
mandeep.dh |
10923 |
oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
|
|
|
10924 |
oprot.writeI64(this.inventoryItemId);
|
|
|
10925 |
oprot.writeFieldEnd();
|
| 2820 |
chandransh |
10926 |
if (this.type != null) {
|
|
|
10927 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
10928 |
oprot.writeI32(this.type.getValue());
|
|
|
10929 |
oprot.writeFieldEnd();
|
|
|
10930 |
}
|
| 4496 |
mandeep.dh |
10931 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
10932 |
oprot.writeI64(this.quantity);
|
|
|
10933 |
oprot.writeFieldEnd();
|
|
|
10934 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
10935 |
oprot.writeI64(this.orderId);
|
|
|
10936 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
10937 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
10938 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
10939 |
oprot.writeFieldEnd();
|
| 2820 |
chandransh |
10940 |
oprot.writeFieldStop();
|
|
|
10941 |
oprot.writeStructEnd();
|
|
|
10942 |
}
|
|
|
10943 |
|
|
|
10944 |
@Override
|
|
|
10945 |
public String toString() {
|
| 4496 |
mandeep.dh |
10946 |
StringBuilder sb = new StringBuilder("scanForOrder_args(");
|
| 2820 |
chandransh |
10947 |
boolean first = true;
|
|
|
10948 |
|
| 4496 |
mandeep.dh |
10949 |
sb.append("inventoryItemId:");
|
|
|
10950 |
sb.append(this.inventoryItemId);
|
| 2820 |
chandransh |
10951 |
first = false;
|
|
|
10952 |
if (!first) sb.append(", ");
|
|
|
10953 |
sb.append("type:");
|
|
|
10954 |
if (this.type == null) {
|
|
|
10955 |
sb.append("null");
|
|
|
10956 |
} else {
|
|
|
10957 |
sb.append(this.type);
|
|
|
10958 |
}
|
|
|
10959 |
first = false;
|
| 4496 |
mandeep.dh |
10960 |
if (!first) sb.append(", ");
|
|
|
10961 |
sb.append("quantity:");
|
|
|
10962 |
sb.append(this.quantity);
|
|
|
10963 |
first = false;
|
|
|
10964 |
if (!first) sb.append(", ");
|
|
|
10965 |
sb.append("orderId:");
|
|
|
10966 |
sb.append(this.orderId);
|
|
|
10967 |
first = false;
|
|
|
10968 |
if (!first) sb.append(", ");
|
| 5110 |
mandeep.dh |
10969 |
sb.append("fulfilmentWarehouseId:");
|
|
|
10970 |
sb.append(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
10971 |
first = false;
|
| 2820 |
chandransh |
10972 |
sb.append(")");
|
|
|
10973 |
return sb.toString();
|
|
|
10974 |
}
|
|
|
10975 |
|
| 3430 |
rajveer |
10976 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
10977 |
// check for required fields
|
|
|
10978 |
}
|
|
|
10979 |
|
| 3430 |
rajveer |
10980 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10981 |
try {
|
|
|
10982 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10983 |
} catch (org.apache.thrift.TException te) {
|
|
|
10984 |
throw new java.io.IOException(te);
|
|
|
10985 |
}
|
|
|
10986 |
}
|
|
|
10987 |
|
|
|
10988 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10989 |
try {
|
| 4496 |
mandeep.dh |
10990 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
10991 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
10992 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10993 |
} catch (org.apache.thrift.TException te) {
|
|
|
10994 |
throw new java.io.IOException(te);
|
|
|
10995 |
}
|
|
|
10996 |
}
|
|
|
10997 |
|
| 2820 |
chandransh |
10998 |
}
|
|
|
10999 |
|
| 4496 |
mandeep.dh |
11000 |
public static class scanForOrder_result implements org.apache.thrift.TBase<scanForOrder_result, scanForOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
11001 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_result");
|
| 2820 |
chandransh |
11002 |
|
| 3430 |
rajveer |
11003 |
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 |
11004 |
|
| 3430 |
rajveer |
11005 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
11006 |
|
|
|
11007 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
11008 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2820 |
chandransh |
11009 |
WEX((short)1, "wex");
|
|
|
11010 |
|
|
|
11011 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11012 |
|
|
|
11013 |
static {
|
|
|
11014 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11015 |
byName.put(field.getFieldName(), field);
|
|
|
11016 |
}
|
|
|
11017 |
}
|
|
|
11018 |
|
|
|
11019 |
/**
|
|
|
11020 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11021 |
*/
|
|
|
11022 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
11023 |
switch(fieldId) {
|
|
|
11024 |
case 1: // WEX
|
|
|
11025 |
return WEX;
|
|
|
11026 |
default:
|
|
|
11027 |
return null;
|
|
|
11028 |
}
|
| 2820 |
chandransh |
11029 |
}
|
|
|
11030 |
|
|
|
11031 |
/**
|
|
|
11032 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11033 |
* if it is not found.
|
|
|
11034 |
*/
|
|
|
11035 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11036 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11037 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11038 |
return fields;
|
|
|
11039 |
}
|
|
|
11040 |
|
|
|
11041 |
/**
|
|
|
11042 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11043 |
*/
|
|
|
11044 |
public static _Fields findByName(String name) {
|
|
|
11045 |
return byName.get(name);
|
|
|
11046 |
}
|
|
|
11047 |
|
|
|
11048 |
private final short _thriftId;
|
|
|
11049 |
private final String _fieldName;
|
|
|
11050 |
|
|
|
11051 |
_Fields(short thriftId, String fieldName) {
|
|
|
11052 |
_thriftId = thriftId;
|
|
|
11053 |
_fieldName = fieldName;
|
|
|
11054 |
}
|
|
|
11055 |
|
|
|
11056 |
public short getThriftFieldId() {
|
|
|
11057 |
return _thriftId;
|
|
|
11058 |
}
|
|
|
11059 |
|
|
|
11060 |
public String getFieldName() {
|
|
|
11061 |
return _fieldName;
|
|
|
11062 |
}
|
|
|
11063 |
}
|
|
|
11064 |
|
|
|
11065 |
// isset id assignments
|
|
|
11066 |
|
| 3430 |
rajveer |
11067 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
11068 |
static {
|
| 3430 |
rajveer |
11069 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11070 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11071 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
11072 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
11073 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_result.class, metaDataMap);
|
| 2820 |
chandransh |
11074 |
}
|
|
|
11075 |
|
| 4496 |
mandeep.dh |
11076 |
public scanForOrder_result() {
|
| 2820 |
chandransh |
11077 |
}
|
|
|
11078 |
|
| 4496 |
mandeep.dh |
11079 |
public scanForOrder_result(
|
| 2820 |
chandransh |
11080 |
WarehouseServiceException wex)
|
|
|
11081 |
{
|
|
|
11082 |
this();
|
|
|
11083 |
this.wex = wex;
|
|
|
11084 |
}
|
|
|
11085 |
|
|
|
11086 |
/**
|
|
|
11087 |
* Performs a deep copy on <i>other</i>.
|
|
|
11088 |
*/
|
| 4496 |
mandeep.dh |
11089 |
public scanForOrder_result(scanForOrder_result other) {
|
| 2820 |
chandransh |
11090 |
if (other.isSetWex()) {
|
|
|
11091 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
11092 |
}
|
|
|
11093 |
}
|
|
|
11094 |
|
| 4496 |
mandeep.dh |
11095 |
public scanForOrder_result deepCopy() {
|
|
|
11096 |
return new scanForOrder_result(this);
|
| 2820 |
chandransh |
11097 |
}
|
|
|
11098 |
|
| 3430 |
rajveer |
11099 |
@Override
|
|
|
11100 |
public void clear() {
|
|
|
11101 |
this.wex = null;
|
| 2820 |
chandransh |
11102 |
}
|
|
|
11103 |
|
|
|
11104 |
public WarehouseServiceException getWex() {
|
|
|
11105 |
return this.wex;
|
|
|
11106 |
}
|
|
|
11107 |
|
| 3430 |
rajveer |
11108 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
11109 |
this.wex = wex;
|
|
|
11110 |
}
|
|
|
11111 |
|
|
|
11112 |
public void unsetWex() {
|
|
|
11113 |
this.wex = null;
|
|
|
11114 |
}
|
|
|
11115 |
|
| 3430 |
rajveer |
11116 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
11117 |
public boolean isSetWex() {
|
|
|
11118 |
return this.wex != null;
|
|
|
11119 |
}
|
|
|
11120 |
|
|
|
11121 |
public void setWexIsSet(boolean value) {
|
|
|
11122 |
if (!value) {
|
|
|
11123 |
this.wex = null;
|
|
|
11124 |
}
|
|
|
11125 |
}
|
|
|
11126 |
|
|
|
11127 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11128 |
switch (field) {
|
|
|
11129 |
case WEX:
|
|
|
11130 |
if (value == null) {
|
|
|
11131 |
unsetWex();
|
|
|
11132 |
} else {
|
|
|
11133 |
setWex((WarehouseServiceException)value);
|
|
|
11134 |
}
|
|
|
11135 |
break;
|
|
|
11136 |
|
|
|
11137 |
}
|
|
|
11138 |
}
|
|
|
11139 |
|
|
|
11140 |
public Object getFieldValue(_Fields field) {
|
|
|
11141 |
switch (field) {
|
|
|
11142 |
case WEX:
|
|
|
11143 |
return getWex();
|
|
|
11144 |
|
|
|
11145 |
}
|
|
|
11146 |
throw new IllegalStateException();
|
|
|
11147 |
}
|
|
|
11148 |
|
| 3430 |
rajveer |
11149 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11150 |
public boolean isSet(_Fields field) {
|
|
|
11151 |
if (field == null) {
|
|
|
11152 |
throw new IllegalArgumentException();
|
|
|
11153 |
}
|
| 2820 |
chandransh |
11154 |
|
|
|
11155 |
switch (field) {
|
|
|
11156 |
case WEX:
|
|
|
11157 |
return isSetWex();
|
|
|
11158 |
}
|
|
|
11159 |
throw new IllegalStateException();
|
|
|
11160 |
}
|
|
|
11161 |
|
|
|
11162 |
@Override
|
|
|
11163 |
public boolean equals(Object that) {
|
|
|
11164 |
if (that == null)
|
|
|
11165 |
return false;
|
| 4496 |
mandeep.dh |
11166 |
if (that instanceof scanForOrder_result)
|
|
|
11167 |
return this.equals((scanForOrder_result)that);
|
| 2820 |
chandransh |
11168 |
return false;
|
|
|
11169 |
}
|
|
|
11170 |
|
| 4496 |
mandeep.dh |
11171 |
public boolean equals(scanForOrder_result that) {
|
| 2820 |
chandransh |
11172 |
if (that == null)
|
|
|
11173 |
return false;
|
|
|
11174 |
|
|
|
11175 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
11176 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
11177 |
if (this_present_wex || that_present_wex) {
|
|
|
11178 |
if (!(this_present_wex && that_present_wex))
|
|
|
11179 |
return false;
|
|
|
11180 |
if (!this.wex.equals(that.wex))
|
|
|
11181 |
return false;
|
|
|
11182 |
}
|
|
|
11183 |
|
|
|
11184 |
return true;
|
|
|
11185 |
}
|
|
|
11186 |
|
|
|
11187 |
@Override
|
|
|
11188 |
public int hashCode() {
|
|
|
11189 |
return 0;
|
|
|
11190 |
}
|
|
|
11191 |
|
| 4496 |
mandeep.dh |
11192 |
public int compareTo(scanForOrder_result other) {
|
| 2820 |
chandransh |
11193 |
if (!getClass().equals(other.getClass())) {
|
|
|
11194 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11195 |
}
|
|
|
11196 |
|
|
|
11197 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
11198 |
scanForOrder_result typedOther = (scanForOrder_result)other;
|
| 2820 |
chandransh |
11199 |
|
| 3430 |
rajveer |
11200 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
11201 |
if (lastComparison != 0) {
|
|
|
11202 |
return lastComparison;
|
|
|
11203 |
}
|
| 3430 |
rajveer |
11204 |
if (isSetWex()) {
|
|
|
11205 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
11206 |
if (lastComparison != 0) {
|
|
|
11207 |
return lastComparison;
|
|
|
11208 |
}
|
| 2820 |
chandransh |
11209 |
}
|
|
|
11210 |
return 0;
|
|
|
11211 |
}
|
|
|
11212 |
|
| 3430 |
rajveer |
11213 |
public _Fields fieldForId(int fieldId) {
|
|
|
11214 |
return _Fields.findByThriftId(fieldId);
|
|
|
11215 |
}
|
|
|
11216 |
|
|
|
11217 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11218 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
11219 |
iprot.readStructBegin();
|
|
|
11220 |
while (true)
|
|
|
11221 |
{
|
|
|
11222 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
11223 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
11224 |
break;
|
|
|
11225 |
}
|
| 3430 |
rajveer |
11226 |
switch (field.id) {
|
|
|
11227 |
case 1: // WEX
|
|
|
11228 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
11229 |
this.wex = new WarehouseServiceException();
|
|
|
11230 |
this.wex.read(iprot);
|
|
|
11231 |
} else {
|
|
|
11232 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11233 |
}
|
|
|
11234 |
break;
|
|
|
11235 |
default:
|
|
|
11236 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
11237 |
}
|
| 3430 |
rajveer |
11238 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
11239 |
}
|
|
|
11240 |
iprot.readStructEnd();
|
|
|
11241 |
validate();
|
|
|
11242 |
}
|
|
|
11243 |
|
| 3430 |
rajveer |
11244 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
11245 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11246 |
|
|
|
11247 |
if (this.isSetWex()) {
|
|
|
11248 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
11249 |
this.wex.write(oprot);
|
|
|
11250 |
oprot.writeFieldEnd();
|
|
|
11251 |
}
|
|
|
11252 |
oprot.writeFieldStop();
|
|
|
11253 |
oprot.writeStructEnd();
|
|
|
11254 |
}
|
|
|
11255 |
|
|
|
11256 |
@Override
|
|
|
11257 |
public String toString() {
|
| 4496 |
mandeep.dh |
11258 |
StringBuilder sb = new StringBuilder("scanForOrder_result(");
|
| 2820 |
chandransh |
11259 |
boolean first = true;
|
|
|
11260 |
|
|
|
11261 |
sb.append("wex:");
|
|
|
11262 |
if (this.wex == null) {
|
|
|
11263 |
sb.append("null");
|
|
|
11264 |
} else {
|
|
|
11265 |
sb.append(this.wex);
|
|
|
11266 |
}
|
|
|
11267 |
first = false;
|
|
|
11268 |
sb.append(")");
|
|
|
11269 |
return sb.toString();
|
|
|
11270 |
}
|
|
|
11271 |
|
| 3430 |
rajveer |
11272 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
11273 |
// check for required fields
|
|
|
11274 |
}
|
|
|
11275 |
|
| 3430 |
rajveer |
11276 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11277 |
try {
|
|
|
11278 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11279 |
} catch (org.apache.thrift.TException te) {
|
|
|
11280 |
throw new java.io.IOException(te);
|
|
|
11281 |
}
|
|
|
11282 |
}
|
|
|
11283 |
|
|
|
11284 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11285 |
try {
|
|
|
11286 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11287 |
} catch (org.apache.thrift.TException te) {
|
|
|
11288 |
throw new java.io.IOException(te);
|
|
|
11289 |
}
|
|
|
11290 |
}
|
|
|
11291 |
|
| 2820 |
chandransh |
11292 |
}
|
|
|
11293 |
|
| 4496 |
mandeep.dh |
11294 |
public static class createItemNumberMapping_args implements org.apache.thrift.TBase<createItemNumberMapping_args, createItemNumberMapping_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
11295 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_args");
|
|
|
11296 |
|
|
|
11297 |
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);
|
|
|
11298 |
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);
|
|
|
11299 |
|
|
|
11300 |
private String itemNumber; // required
|
|
|
11301 |
private long itemId; // required
|
|
|
11302 |
|
|
|
11303 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11304 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11305 |
ITEM_NUMBER((short)1, "itemNumber"),
|
|
|
11306 |
ITEM_ID((short)2, "itemId");
|
|
|
11307 |
|
|
|
11308 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11309 |
|
|
|
11310 |
static {
|
|
|
11311 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11312 |
byName.put(field.getFieldName(), field);
|
|
|
11313 |
}
|
|
|
11314 |
}
|
|
|
11315 |
|
|
|
11316 |
/**
|
|
|
11317 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11318 |
*/
|
|
|
11319 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11320 |
switch(fieldId) {
|
|
|
11321 |
case 1: // ITEM_NUMBER
|
|
|
11322 |
return ITEM_NUMBER;
|
|
|
11323 |
case 2: // ITEM_ID
|
|
|
11324 |
return ITEM_ID;
|
|
|
11325 |
default:
|
|
|
11326 |
return null;
|
|
|
11327 |
}
|
|
|
11328 |
}
|
|
|
11329 |
|
|
|
11330 |
/**
|
|
|
11331 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11332 |
* if it is not found.
|
|
|
11333 |
*/
|
|
|
11334 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11335 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11336 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11337 |
return fields;
|
|
|
11338 |
}
|
|
|
11339 |
|
|
|
11340 |
/**
|
|
|
11341 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11342 |
*/
|
|
|
11343 |
public static _Fields findByName(String name) {
|
|
|
11344 |
return byName.get(name);
|
|
|
11345 |
}
|
|
|
11346 |
|
|
|
11347 |
private final short _thriftId;
|
|
|
11348 |
private final String _fieldName;
|
|
|
11349 |
|
|
|
11350 |
_Fields(short thriftId, String fieldName) {
|
|
|
11351 |
_thriftId = thriftId;
|
|
|
11352 |
_fieldName = fieldName;
|
|
|
11353 |
}
|
|
|
11354 |
|
|
|
11355 |
public short getThriftFieldId() {
|
|
|
11356 |
return _thriftId;
|
|
|
11357 |
}
|
|
|
11358 |
|
|
|
11359 |
public String getFieldName() {
|
|
|
11360 |
return _fieldName;
|
|
|
11361 |
}
|
|
|
11362 |
}
|
|
|
11363 |
|
|
|
11364 |
// isset id assignments
|
|
|
11365 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
11366 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
11367 |
|
|
|
11368 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11369 |
static {
|
|
|
11370 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11371 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11372 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
11373 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11374 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
11375 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11376 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_args.class, metaDataMap);
|
|
|
11377 |
}
|
|
|
11378 |
|
|
|
11379 |
public createItemNumberMapping_args() {
|
|
|
11380 |
}
|
|
|
11381 |
|
|
|
11382 |
public createItemNumberMapping_args(
|
|
|
11383 |
String itemNumber,
|
|
|
11384 |
long itemId)
|
|
|
11385 |
{
|
|
|
11386 |
this();
|
|
|
11387 |
this.itemNumber = itemNumber;
|
|
|
11388 |
this.itemId = itemId;
|
|
|
11389 |
setItemIdIsSet(true);
|
|
|
11390 |
}
|
|
|
11391 |
|
|
|
11392 |
/**
|
|
|
11393 |
* Performs a deep copy on <i>other</i>.
|
|
|
11394 |
*/
|
|
|
11395 |
public createItemNumberMapping_args(createItemNumberMapping_args other) {
|
|
|
11396 |
__isset_bit_vector.clear();
|
|
|
11397 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
11398 |
if (other.isSetItemNumber()) {
|
|
|
11399 |
this.itemNumber = other.itemNumber;
|
|
|
11400 |
}
|
|
|
11401 |
this.itemId = other.itemId;
|
|
|
11402 |
}
|
|
|
11403 |
|
|
|
11404 |
public createItemNumberMapping_args deepCopy() {
|
|
|
11405 |
return new createItemNumberMapping_args(this);
|
|
|
11406 |
}
|
|
|
11407 |
|
|
|
11408 |
@Override
|
|
|
11409 |
public void clear() {
|
|
|
11410 |
this.itemNumber = null;
|
|
|
11411 |
setItemIdIsSet(false);
|
|
|
11412 |
this.itemId = 0;
|
|
|
11413 |
}
|
|
|
11414 |
|
|
|
11415 |
public String getItemNumber() {
|
|
|
11416 |
return this.itemNumber;
|
|
|
11417 |
}
|
|
|
11418 |
|
|
|
11419 |
public void setItemNumber(String itemNumber) {
|
|
|
11420 |
this.itemNumber = itemNumber;
|
|
|
11421 |
}
|
|
|
11422 |
|
|
|
11423 |
public void unsetItemNumber() {
|
|
|
11424 |
this.itemNumber = null;
|
|
|
11425 |
}
|
|
|
11426 |
|
|
|
11427 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
11428 |
public boolean isSetItemNumber() {
|
|
|
11429 |
return this.itemNumber != null;
|
|
|
11430 |
}
|
|
|
11431 |
|
|
|
11432 |
public void setItemNumberIsSet(boolean value) {
|
|
|
11433 |
if (!value) {
|
|
|
11434 |
this.itemNumber = null;
|
|
|
11435 |
}
|
|
|
11436 |
}
|
|
|
11437 |
|
|
|
11438 |
public long getItemId() {
|
|
|
11439 |
return this.itemId;
|
|
|
11440 |
}
|
|
|
11441 |
|
|
|
11442 |
public void setItemId(long itemId) {
|
|
|
11443 |
this.itemId = itemId;
|
|
|
11444 |
setItemIdIsSet(true);
|
|
|
11445 |
}
|
|
|
11446 |
|
|
|
11447 |
public void unsetItemId() {
|
|
|
11448 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
11449 |
}
|
|
|
11450 |
|
|
|
11451 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
11452 |
public boolean isSetItemId() {
|
|
|
11453 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
11454 |
}
|
|
|
11455 |
|
|
|
11456 |
public void setItemIdIsSet(boolean value) {
|
|
|
11457 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
11458 |
}
|
|
|
11459 |
|
|
|
11460 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11461 |
switch (field) {
|
|
|
11462 |
case ITEM_NUMBER:
|
|
|
11463 |
if (value == null) {
|
|
|
11464 |
unsetItemNumber();
|
|
|
11465 |
} else {
|
|
|
11466 |
setItemNumber((String)value);
|
|
|
11467 |
}
|
|
|
11468 |
break;
|
|
|
11469 |
|
|
|
11470 |
case ITEM_ID:
|
|
|
11471 |
if (value == null) {
|
|
|
11472 |
unsetItemId();
|
|
|
11473 |
} else {
|
|
|
11474 |
setItemId((Long)value);
|
|
|
11475 |
}
|
|
|
11476 |
break;
|
|
|
11477 |
|
|
|
11478 |
}
|
|
|
11479 |
}
|
|
|
11480 |
|
|
|
11481 |
public Object getFieldValue(_Fields field) {
|
|
|
11482 |
switch (field) {
|
|
|
11483 |
case ITEM_NUMBER:
|
|
|
11484 |
return getItemNumber();
|
|
|
11485 |
|
|
|
11486 |
case ITEM_ID:
|
|
|
11487 |
return Long.valueOf(getItemId());
|
|
|
11488 |
|
|
|
11489 |
}
|
|
|
11490 |
throw new IllegalStateException();
|
|
|
11491 |
}
|
|
|
11492 |
|
|
|
11493 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11494 |
public boolean isSet(_Fields field) {
|
|
|
11495 |
if (field == null) {
|
|
|
11496 |
throw new IllegalArgumentException();
|
|
|
11497 |
}
|
|
|
11498 |
|
|
|
11499 |
switch (field) {
|
|
|
11500 |
case ITEM_NUMBER:
|
|
|
11501 |
return isSetItemNumber();
|
|
|
11502 |
case ITEM_ID:
|
|
|
11503 |
return isSetItemId();
|
|
|
11504 |
}
|
|
|
11505 |
throw new IllegalStateException();
|
|
|
11506 |
}
|
|
|
11507 |
|
|
|
11508 |
@Override
|
|
|
11509 |
public boolean equals(Object that) {
|
|
|
11510 |
if (that == null)
|
|
|
11511 |
return false;
|
|
|
11512 |
if (that instanceof createItemNumberMapping_args)
|
|
|
11513 |
return this.equals((createItemNumberMapping_args)that);
|
|
|
11514 |
return false;
|
|
|
11515 |
}
|
|
|
11516 |
|
|
|
11517 |
public boolean equals(createItemNumberMapping_args that) {
|
|
|
11518 |
if (that == null)
|
|
|
11519 |
return false;
|
|
|
11520 |
|
|
|
11521 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
11522 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
11523 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
11524 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
11525 |
return false;
|
|
|
11526 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
11527 |
return false;
|
|
|
11528 |
}
|
|
|
11529 |
|
|
|
11530 |
boolean this_present_itemId = true;
|
|
|
11531 |
boolean that_present_itemId = true;
|
|
|
11532 |
if (this_present_itemId || that_present_itemId) {
|
|
|
11533 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
11534 |
return false;
|
|
|
11535 |
if (this.itemId != that.itemId)
|
|
|
11536 |
return false;
|
|
|
11537 |
}
|
|
|
11538 |
|
|
|
11539 |
return true;
|
|
|
11540 |
}
|
|
|
11541 |
|
|
|
11542 |
@Override
|
|
|
11543 |
public int hashCode() {
|
|
|
11544 |
return 0;
|
|
|
11545 |
}
|
|
|
11546 |
|
|
|
11547 |
public int compareTo(createItemNumberMapping_args other) {
|
|
|
11548 |
if (!getClass().equals(other.getClass())) {
|
|
|
11549 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11550 |
}
|
|
|
11551 |
|
|
|
11552 |
int lastComparison = 0;
|
|
|
11553 |
createItemNumberMapping_args typedOther = (createItemNumberMapping_args)other;
|
|
|
11554 |
|
|
|
11555 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
11556 |
if (lastComparison != 0) {
|
|
|
11557 |
return lastComparison;
|
|
|
11558 |
}
|
|
|
11559 |
if (isSetItemNumber()) {
|
|
|
11560 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
11561 |
if (lastComparison != 0) {
|
|
|
11562 |
return lastComparison;
|
|
|
11563 |
}
|
|
|
11564 |
}
|
|
|
11565 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
11566 |
if (lastComparison != 0) {
|
|
|
11567 |
return lastComparison;
|
|
|
11568 |
}
|
|
|
11569 |
if (isSetItemId()) {
|
|
|
11570 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
11571 |
if (lastComparison != 0) {
|
|
|
11572 |
return lastComparison;
|
|
|
11573 |
}
|
|
|
11574 |
}
|
|
|
11575 |
return 0;
|
|
|
11576 |
}
|
|
|
11577 |
|
|
|
11578 |
public _Fields fieldForId(int fieldId) {
|
|
|
11579 |
return _Fields.findByThriftId(fieldId);
|
|
|
11580 |
}
|
|
|
11581 |
|
|
|
11582 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11583 |
org.apache.thrift.protocol.TField field;
|
|
|
11584 |
iprot.readStructBegin();
|
|
|
11585 |
while (true)
|
|
|
11586 |
{
|
|
|
11587 |
field = iprot.readFieldBegin();
|
|
|
11588 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11589 |
break;
|
|
|
11590 |
}
|
|
|
11591 |
switch (field.id) {
|
|
|
11592 |
case 1: // ITEM_NUMBER
|
|
|
11593 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
11594 |
this.itemNumber = iprot.readString();
|
|
|
11595 |
} else {
|
|
|
11596 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11597 |
}
|
|
|
11598 |
break;
|
|
|
11599 |
case 2: // ITEM_ID
|
|
|
11600 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
11601 |
this.itemId = iprot.readI64();
|
|
|
11602 |
setItemIdIsSet(true);
|
|
|
11603 |
} else {
|
|
|
11604 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11605 |
}
|
|
|
11606 |
break;
|
|
|
11607 |
default:
|
|
|
11608 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11609 |
}
|
|
|
11610 |
iprot.readFieldEnd();
|
|
|
11611 |
}
|
|
|
11612 |
iprot.readStructEnd();
|
|
|
11613 |
validate();
|
|
|
11614 |
}
|
|
|
11615 |
|
|
|
11616 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11617 |
validate();
|
|
|
11618 |
|
|
|
11619 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11620 |
if (this.itemNumber != null) {
|
|
|
11621 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
11622 |
oprot.writeString(this.itemNumber);
|
|
|
11623 |
oprot.writeFieldEnd();
|
|
|
11624 |
}
|
|
|
11625 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
11626 |
oprot.writeI64(this.itemId);
|
|
|
11627 |
oprot.writeFieldEnd();
|
|
|
11628 |
oprot.writeFieldStop();
|
|
|
11629 |
oprot.writeStructEnd();
|
|
|
11630 |
}
|
|
|
11631 |
|
|
|
11632 |
@Override
|
|
|
11633 |
public String toString() {
|
|
|
11634 |
StringBuilder sb = new StringBuilder("createItemNumberMapping_args(");
|
|
|
11635 |
boolean first = true;
|
|
|
11636 |
|
|
|
11637 |
sb.append("itemNumber:");
|
|
|
11638 |
if (this.itemNumber == null) {
|
|
|
11639 |
sb.append("null");
|
|
|
11640 |
} else {
|
|
|
11641 |
sb.append(this.itemNumber);
|
|
|
11642 |
}
|
|
|
11643 |
first = false;
|
|
|
11644 |
if (!first) sb.append(", ");
|
|
|
11645 |
sb.append("itemId:");
|
|
|
11646 |
sb.append(this.itemId);
|
|
|
11647 |
first = false;
|
|
|
11648 |
sb.append(")");
|
|
|
11649 |
return sb.toString();
|
|
|
11650 |
}
|
|
|
11651 |
|
|
|
11652 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11653 |
// check for required fields
|
|
|
11654 |
}
|
|
|
11655 |
|
|
|
11656 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11657 |
try {
|
|
|
11658 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11659 |
} catch (org.apache.thrift.TException te) {
|
|
|
11660 |
throw new java.io.IOException(te);
|
|
|
11661 |
}
|
|
|
11662 |
}
|
|
|
11663 |
|
|
|
11664 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11665 |
try {
|
|
|
11666 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
11667 |
__isset_bit_vector = new BitSet(1);
|
|
|
11668 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11669 |
} catch (org.apache.thrift.TException te) {
|
|
|
11670 |
throw new java.io.IOException(te);
|
|
|
11671 |
}
|
|
|
11672 |
}
|
|
|
11673 |
|
|
|
11674 |
}
|
|
|
11675 |
|
|
|
11676 |
public static class createItemNumberMapping_result implements org.apache.thrift.TBase<createItemNumberMapping_result, createItemNumberMapping_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
11677 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_result");
|
|
|
11678 |
|
|
|
11679 |
|
|
|
11680 |
|
|
|
11681 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11682 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11683 |
;
|
|
|
11684 |
|
|
|
11685 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11686 |
|
|
|
11687 |
static {
|
|
|
11688 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11689 |
byName.put(field.getFieldName(), field);
|
|
|
11690 |
}
|
|
|
11691 |
}
|
|
|
11692 |
|
|
|
11693 |
/**
|
|
|
11694 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11695 |
*/
|
|
|
11696 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11697 |
switch(fieldId) {
|
|
|
11698 |
default:
|
|
|
11699 |
return null;
|
|
|
11700 |
}
|
|
|
11701 |
}
|
|
|
11702 |
|
|
|
11703 |
/**
|
|
|
11704 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11705 |
* if it is not found.
|
|
|
11706 |
*/
|
|
|
11707 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11708 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11709 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11710 |
return fields;
|
|
|
11711 |
}
|
|
|
11712 |
|
|
|
11713 |
/**
|
|
|
11714 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11715 |
*/
|
|
|
11716 |
public static _Fields findByName(String name) {
|
|
|
11717 |
return byName.get(name);
|
|
|
11718 |
}
|
|
|
11719 |
|
|
|
11720 |
private final short _thriftId;
|
|
|
11721 |
private final String _fieldName;
|
|
|
11722 |
|
|
|
11723 |
_Fields(short thriftId, String fieldName) {
|
|
|
11724 |
_thriftId = thriftId;
|
|
|
11725 |
_fieldName = fieldName;
|
|
|
11726 |
}
|
|
|
11727 |
|
|
|
11728 |
public short getThriftFieldId() {
|
|
|
11729 |
return _thriftId;
|
|
|
11730 |
}
|
|
|
11731 |
|
|
|
11732 |
public String getFieldName() {
|
|
|
11733 |
return _fieldName;
|
|
|
11734 |
}
|
|
|
11735 |
}
|
|
|
11736 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11737 |
static {
|
|
|
11738 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11739 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11740 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_result.class, metaDataMap);
|
|
|
11741 |
}
|
|
|
11742 |
|
|
|
11743 |
public createItemNumberMapping_result() {
|
|
|
11744 |
}
|
|
|
11745 |
|
|
|
11746 |
/**
|
|
|
11747 |
* Performs a deep copy on <i>other</i>.
|
|
|
11748 |
*/
|
|
|
11749 |
public createItemNumberMapping_result(createItemNumberMapping_result other) {
|
|
|
11750 |
}
|
|
|
11751 |
|
|
|
11752 |
public createItemNumberMapping_result deepCopy() {
|
|
|
11753 |
return new createItemNumberMapping_result(this);
|
|
|
11754 |
}
|
|
|
11755 |
|
|
|
11756 |
@Override
|
|
|
11757 |
public void clear() {
|
|
|
11758 |
}
|
|
|
11759 |
|
|
|
11760 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11761 |
switch (field) {
|
|
|
11762 |
}
|
|
|
11763 |
}
|
|
|
11764 |
|
|
|
11765 |
public Object getFieldValue(_Fields field) {
|
|
|
11766 |
switch (field) {
|
|
|
11767 |
}
|
|
|
11768 |
throw new IllegalStateException();
|
|
|
11769 |
}
|
|
|
11770 |
|
|
|
11771 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11772 |
public boolean isSet(_Fields field) {
|
|
|
11773 |
if (field == null) {
|
|
|
11774 |
throw new IllegalArgumentException();
|
|
|
11775 |
}
|
|
|
11776 |
|
|
|
11777 |
switch (field) {
|
|
|
11778 |
}
|
|
|
11779 |
throw new IllegalStateException();
|
|
|
11780 |
}
|
|
|
11781 |
|
|
|
11782 |
@Override
|
|
|
11783 |
public boolean equals(Object that) {
|
|
|
11784 |
if (that == null)
|
|
|
11785 |
return false;
|
|
|
11786 |
if (that instanceof createItemNumberMapping_result)
|
|
|
11787 |
return this.equals((createItemNumberMapping_result)that);
|
|
|
11788 |
return false;
|
|
|
11789 |
}
|
|
|
11790 |
|
|
|
11791 |
public boolean equals(createItemNumberMapping_result that) {
|
|
|
11792 |
if (that == null)
|
|
|
11793 |
return false;
|
|
|
11794 |
|
|
|
11795 |
return true;
|
|
|
11796 |
}
|
|
|
11797 |
|
|
|
11798 |
@Override
|
|
|
11799 |
public int hashCode() {
|
|
|
11800 |
return 0;
|
|
|
11801 |
}
|
|
|
11802 |
|
|
|
11803 |
public int compareTo(createItemNumberMapping_result other) {
|
|
|
11804 |
if (!getClass().equals(other.getClass())) {
|
|
|
11805 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11806 |
}
|
|
|
11807 |
|
|
|
11808 |
int lastComparison = 0;
|
|
|
11809 |
createItemNumberMapping_result typedOther = (createItemNumberMapping_result)other;
|
|
|
11810 |
|
|
|
11811 |
return 0;
|
|
|
11812 |
}
|
|
|
11813 |
|
|
|
11814 |
public _Fields fieldForId(int fieldId) {
|
|
|
11815 |
return _Fields.findByThriftId(fieldId);
|
|
|
11816 |
}
|
|
|
11817 |
|
|
|
11818 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11819 |
org.apache.thrift.protocol.TField field;
|
|
|
11820 |
iprot.readStructBegin();
|
|
|
11821 |
while (true)
|
|
|
11822 |
{
|
|
|
11823 |
field = iprot.readFieldBegin();
|
|
|
11824 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11825 |
break;
|
|
|
11826 |
}
|
|
|
11827 |
switch (field.id) {
|
|
|
11828 |
default:
|
|
|
11829 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11830 |
}
|
|
|
11831 |
iprot.readFieldEnd();
|
|
|
11832 |
}
|
|
|
11833 |
iprot.readStructEnd();
|
|
|
11834 |
validate();
|
|
|
11835 |
}
|
|
|
11836 |
|
|
|
11837 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11838 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11839 |
|
|
|
11840 |
oprot.writeFieldStop();
|
|
|
11841 |
oprot.writeStructEnd();
|
|
|
11842 |
}
|
|
|
11843 |
|
|
|
11844 |
@Override
|
|
|
11845 |
public String toString() {
|
|
|
11846 |
StringBuilder sb = new StringBuilder("createItemNumberMapping_result(");
|
|
|
11847 |
boolean first = true;
|
|
|
11848 |
|
|
|
11849 |
sb.append(")");
|
|
|
11850 |
return sb.toString();
|
|
|
11851 |
}
|
|
|
11852 |
|
|
|
11853 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11854 |
// check for required fields
|
|
|
11855 |
}
|
|
|
11856 |
|
|
|
11857 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11858 |
try {
|
|
|
11859 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11860 |
} catch (org.apache.thrift.TException te) {
|
|
|
11861 |
throw new java.io.IOException(te);
|
|
|
11862 |
}
|
|
|
11863 |
}
|
|
|
11864 |
|
|
|
11865 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11866 |
try {
|
|
|
11867 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11868 |
} catch (org.apache.thrift.TException te) {
|
|
|
11869 |
throw new java.io.IOException(te);
|
|
|
11870 |
}
|
|
|
11871 |
}
|
|
|
11872 |
|
|
|
11873 |
}
|
|
|
11874 |
|
| 4622 |
amit.gupta |
11875 |
public static class getItemNumbers_args implements org.apache.thrift.TBase<getItemNumbers_args, getItemNumbers_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
11876 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_args");
|
|
|
11877 |
|
|
|
11878 |
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);
|
|
|
11879 |
|
|
|
11880 |
private long itemId; // required
|
|
|
11881 |
|
|
|
11882 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11883 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11884 |
ITEM_ID((short)1, "itemId");
|
|
|
11885 |
|
|
|
11886 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11887 |
|
|
|
11888 |
static {
|
|
|
11889 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11890 |
byName.put(field.getFieldName(), field);
|
|
|
11891 |
}
|
|
|
11892 |
}
|
|
|
11893 |
|
|
|
11894 |
/**
|
|
|
11895 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11896 |
*/
|
|
|
11897 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11898 |
switch(fieldId) {
|
|
|
11899 |
case 1: // ITEM_ID
|
|
|
11900 |
return ITEM_ID;
|
|
|
11901 |
default:
|
|
|
11902 |
return null;
|
|
|
11903 |
}
|
|
|
11904 |
}
|
|
|
11905 |
|
|
|
11906 |
/**
|
|
|
11907 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11908 |
* if it is not found.
|
|
|
11909 |
*/
|
|
|
11910 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11911 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11912 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11913 |
return fields;
|
|
|
11914 |
}
|
|
|
11915 |
|
|
|
11916 |
/**
|
|
|
11917 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11918 |
*/
|
|
|
11919 |
public static _Fields findByName(String name) {
|
|
|
11920 |
return byName.get(name);
|
|
|
11921 |
}
|
|
|
11922 |
|
|
|
11923 |
private final short _thriftId;
|
|
|
11924 |
private final String _fieldName;
|
|
|
11925 |
|
|
|
11926 |
_Fields(short thriftId, String fieldName) {
|
|
|
11927 |
_thriftId = thriftId;
|
|
|
11928 |
_fieldName = fieldName;
|
|
|
11929 |
}
|
|
|
11930 |
|
|
|
11931 |
public short getThriftFieldId() {
|
|
|
11932 |
return _thriftId;
|
|
|
11933 |
}
|
|
|
11934 |
|
|
|
11935 |
public String getFieldName() {
|
|
|
11936 |
return _fieldName;
|
|
|
11937 |
}
|
|
|
11938 |
}
|
|
|
11939 |
|
|
|
11940 |
// isset id assignments
|
|
|
11941 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
11942 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
11943 |
|
|
|
11944 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11945 |
static {
|
|
|
11946 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11947 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11948 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
11949 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11950 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_args.class, metaDataMap);
|
|
|
11951 |
}
|
|
|
11952 |
|
|
|
11953 |
public getItemNumbers_args() {
|
|
|
11954 |
}
|
|
|
11955 |
|
|
|
11956 |
public getItemNumbers_args(
|
|
|
11957 |
long itemId)
|
|
|
11958 |
{
|
|
|
11959 |
this();
|
|
|
11960 |
this.itemId = itemId;
|
|
|
11961 |
setItemIdIsSet(true);
|
|
|
11962 |
}
|
|
|
11963 |
|
|
|
11964 |
/**
|
|
|
11965 |
* Performs a deep copy on <i>other</i>.
|
|
|
11966 |
*/
|
|
|
11967 |
public getItemNumbers_args(getItemNumbers_args other) {
|
|
|
11968 |
__isset_bit_vector.clear();
|
|
|
11969 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
11970 |
this.itemId = other.itemId;
|
|
|
11971 |
}
|
|
|
11972 |
|
|
|
11973 |
public getItemNumbers_args deepCopy() {
|
|
|
11974 |
return new getItemNumbers_args(this);
|
|
|
11975 |
}
|
|
|
11976 |
|
|
|
11977 |
@Override
|
|
|
11978 |
public void clear() {
|
|
|
11979 |
setItemIdIsSet(false);
|
|
|
11980 |
this.itemId = 0;
|
|
|
11981 |
}
|
|
|
11982 |
|
|
|
11983 |
public long getItemId() {
|
|
|
11984 |
return this.itemId;
|
|
|
11985 |
}
|
|
|
11986 |
|
|
|
11987 |
public void setItemId(long itemId) {
|
|
|
11988 |
this.itemId = itemId;
|
|
|
11989 |
setItemIdIsSet(true);
|
|
|
11990 |
}
|
|
|
11991 |
|
|
|
11992 |
public void unsetItemId() {
|
|
|
11993 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
11994 |
}
|
|
|
11995 |
|
|
|
11996 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
11997 |
public boolean isSetItemId() {
|
|
|
11998 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
11999 |
}
|
|
|
12000 |
|
|
|
12001 |
public void setItemIdIsSet(boolean value) {
|
|
|
12002 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
12003 |
}
|
|
|
12004 |
|
|
|
12005 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12006 |
switch (field) {
|
|
|
12007 |
case ITEM_ID:
|
|
|
12008 |
if (value == null) {
|
|
|
12009 |
unsetItemId();
|
|
|
12010 |
} else {
|
|
|
12011 |
setItemId((Long)value);
|
|
|
12012 |
}
|
|
|
12013 |
break;
|
|
|
12014 |
|
|
|
12015 |
}
|
|
|
12016 |
}
|
|
|
12017 |
|
|
|
12018 |
public Object getFieldValue(_Fields field) {
|
|
|
12019 |
switch (field) {
|
|
|
12020 |
case ITEM_ID:
|
|
|
12021 |
return Long.valueOf(getItemId());
|
|
|
12022 |
|
|
|
12023 |
}
|
|
|
12024 |
throw new IllegalStateException();
|
|
|
12025 |
}
|
|
|
12026 |
|
|
|
12027 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12028 |
public boolean isSet(_Fields field) {
|
|
|
12029 |
if (field == null) {
|
|
|
12030 |
throw new IllegalArgumentException();
|
|
|
12031 |
}
|
|
|
12032 |
|
|
|
12033 |
switch (field) {
|
|
|
12034 |
case ITEM_ID:
|
|
|
12035 |
return isSetItemId();
|
|
|
12036 |
}
|
|
|
12037 |
throw new IllegalStateException();
|
|
|
12038 |
}
|
|
|
12039 |
|
|
|
12040 |
@Override
|
|
|
12041 |
public boolean equals(Object that) {
|
|
|
12042 |
if (that == null)
|
|
|
12043 |
return false;
|
|
|
12044 |
if (that instanceof getItemNumbers_args)
|
|
|
12045 |
return this.equals((getItemNumbers_args)that);
|
|
|
12046 |
return false;
|
|
|
12047 |
}
|
|
|
12048 |
|
|
|
12049 |
public boolean equals(getItemNumbers_args that) {
|
|
|
12050 |
if (that == null)
|
|
|
12051 |
return false;
|
|
|
12052 |
|
|
|
12053 |
boolean this_present_itemId = true;
|
|
|
12054 |
boolean that_present_itemId = true;
|
|
|
12055 |
if (this_present_itemId || that_present_itemId) {
|
|
|
12056 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
12057 |
return false;
|
|
|
12058 |
if (this.itemId != that.itemId)
|
|
|
12059 |
return false;
|
|
|
12060 |
}
|
|
|
12061 |
|
|
|
12062 |
return true;
|
|
|
12063 |
}
|
|
|
12064 |
|
|
|
12065 |
@Override
|
|
|
12066 |
public int hashCode() {
|
|
|
12067 |
return 0;
|
|
|
12068 |
}
|
|
|
12069 |
|
|
|
12070 |
public int compareTo(getItemNumbers_args other) {
|
|
|
12071 |
if (!getClass().equals(other.getClass())) {
|
|
|
12072 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12073 |
}
|
|
|
12074 |
|
|
|
12075 |
int lastComparison = 0;
|
|
|
12076 |
getItemNumbers_args typedOther = (getItemNumbers_args)other;
|
|
|
12077 |
|
|
|
12078 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
12079 |
if (lastComparison != 0) {
|
|
|
12080 |
return lastComparison;
|
|
|
12081 |
}
|
|
|
12082 |
if (isSetItemId()) {
|
|
|
12083 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
12084 |
if (lastComparison != 0) {
|
|
|
12085 |
return lastComparison;
|
|
|
12086 |
}
|
|
|
12087 |
}
|
|
|
12088 |
return 0;
|
|
|
12089 |
}
|
|
|
12090 |
|
|
|
12091 |
public _Fields fieldForId(int fieldId) {
|
|
|
12092 |
return _Fields.findByThriftId(fieldId);
|
|
|
12093 |
}
|
|
|
12094 |
|
|
|
12095 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12096 |
org.apache.thrift.protocol.TField field;
|
|
|
12097 |
iprot.readStructBegin();
|
|
|
12098 |
while (true)
|
|
|
12099 |
{
|
|
|
12100 |
field = iprot.readFieldBegin();
|
|
|
12101 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12102 |
break;
|
|
|
12103 |
}
|
|
|
12104 |
switch (field.id) {
|
|
|
12105 |
case 1: // ITEM_ID
|
|
|
12106 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
12107 |
this.itemId = iprot.readI64();
|
|
|
12108 |
setItemIdIsSet(true);
|
|
|
12109 |
} else {
|
|
|
12110 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12111 |
}
|
|
|
12112 |
break;
|
|
|
12113 |
default:
|
|
|
12114 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12115 |
}
|
|
|
12116 |
iprot.readFieldEnd();
|
|
|
12117 |
}
|
|
|
12118 |
iprot.readStructEnd();
|
|
|
12119 |
validate();
|
|
|
12120 |
}
|
|
|
12121 |
|
|
|
12122 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12123 |
validate();
|
|
|
12124 |
|
|
|
12125 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12126 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
12127 |
oprot.writeI64(this.itemId);
|
|
|
12128 |
oprot.writeFieldEnd();
|
|
|
12129 |
oprot.writeFieldStop();
|
|
|
12130 |
oprot.writeStructEnd();
|
|
|
12131 |
}
|
|
|
12132 |
|
|
|
12133 |
@Override
|
|
|
12134 |
public String toString() {
|
|
|
12135 |
StringBuilder sb = new StringBuilder("getItemNumbers_args(");
|
|
|
12136 |
boolean first = true;
|
|
|
12137 |
|
|
|
12138 |
sb.append("itemId:");
|
|
|
12139 |
sb.append(this.itemId);
|
|
|
12140 |
first = false;
|
|
|
12141 |
sb.append(")");
|
|
|
12142 |
return sb.toString();
|
|
|
12143 |
}
|
|
|
12144 |
|
|
|
12145 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12146 |
// check for required fields
|
|
|
12147 |
}
|
|
|
12148 |
|
|
|
12149 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12150 |
try {
|
|
|
12151 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12152 |
} catch (org.apache.thrift.TException te) {
|
|
|
12153 |
throw new java.io.IOException(te);
|
|
|
12154 |
}
|
|
|
12155 |
}
|
|
|
12156 |
|
|
|
12157 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12158 |
try {
|
|
|
12159 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
12160 |
__isset_bit_vector = new BitSet(1);
|
|
|
12161 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12162 |
} catch (org.apache.thrift.TException te) {
|
|
|
12163 |
throw new java.io.IOException(te);
|
|
|
12164 |
}
|
|
|
12165 |
}
|
|
|
12166 |
|
|
|
12167 |
}
|
|
|
12168 |
|
|
|
12169 |
public static class getItemNumbers_result implements org.apache.thrift.TBase<getItemNumbers_result, getItemNumbers_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
12170 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_result");
|
|
|
12171 |
|
|
|
12172 |
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);
|
|
|
12173 |
|
|
|
12174 |
private List<String> success; // required
|
|
|
12175 |
|
|
|
12176 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12177 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12178 |
SUCCESS((short)0, "success");
|
|
|
12179 |
|
|
|
12180 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12181 |
|
|
|
12182 |
static {
|
|
|
12183 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12184 |
byName.put(field.getFieldName(), field);
|
|
|
12185 |
}
|
|
|
12186 |
}
|
|
|
12187 |
|
|
|
12188 |
/**
|
|
|
12189 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12190 |
*/
|
|
|
12191 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12192 |
switch(fieldId) {
|
|
|
12193 |
case 0: // SUCCESS
|
|
|
12194 |
return SUCCESS;
|
|
|
12195 |
default:
|
|
|
12196 |
return null;
|
|
|
12197 |
}
|
|
|
12198 |
}
|
|
|
12199 |
|
|
|
12200 |
/**
|
|
|
12201 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12202 |
* if it is not found.
|
|
|
12203 |
*/
|
|
|
12204 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12205 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12206 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12207 |
return fields;
|
|
|
12208 |
}
|
|
|
12209 |
|
|
|
12210 |
/**
|
|
|
12211 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12212 |
*/
|
|
|
12213 |
public static _Fields findByName(String name) {
|
|
|
12214 |
return byName.get(name);
|
|
|
12215 |
}
|
|
|
12216 |
|
|
|
12217 |
private final short _thriftId;
|
|
|
12218 |
private final String _fieldName;
|
|
|
12219 |
|
|
|
12220 |
_Fields(short thriftId, String fieldName) {
|
|
|
12221 |
_thriftId = thriftId;
|
|
|
12222 |
_fieldName = fieldName;
|
|
|
12223 |
}
|
|
|
12224 |
|
|
|
12225 |
public short getThriftFieldId() {
|
|
|
12226 |
return _thriftId;
|
|
|
12227 |
}
|
|
|
12228 |
|
|
|
12229 |
public String getFieldName() {
|
|
|
12230 |
return _fieldName;
|
|
|
12231 |
}
|
|
|
12232 |
}
|
|
|
12233 |
|
|
|
12234 |
// isset id assignments
|
|
|
12235 |
|
|
|
12236 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12237 |
static {
|
|
|
12238 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12239 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12240 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
12241 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
|
|
|
12242 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12243 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_result.class, metaDataMap);
|
|
|
12244 |
}
|
|
|
12245 |
|
|
|
12246 |
public getItemNumbers_result() {
|
|
|
12247 |
}
|
|
|
12248 |
|
|
|
12249 |
public getItemNumbers_result(
|
|
|
12250 |
List<String> success)
|
|
|
12251 |
{
|
|
|
12252 |
this();
|
|
|
12253 |
this.success = success;
|
|
|
12254 |
}
|
|
|
12255 |
|
|
|
12256 |
/**
|
|
|
12257 |
* Performs a deep copy on <i>other</i>.
|
|
|
12258 |
*/
|
|
|
12259 |
public getItemNumbers_result(getItemNumbers_result other) {
|
|
|
12260 |
if (other.isSetSuccess()) {
|
|
|
12261 |
List<String> __this__success = new ArrayList<String>();
|
|
|
12262 |
for (String other_element : other.success) {
|
|
|
12263 |
__this__success.add(other_element);
|
|
|
12264 |
}
|
|
|
12265 |
this.success = __this__success;
|
|
|
12266 |
}
|
|
|
12267 |
}
|
|
|
12268 |
|
|
|
12269 |
public getItemNumbers_result deepCopy() {
|
|
|
12270 |
return new getItemNumbers_result(this);
|
|
|
12271 |
}
|
|
|
12272 |
|
|
|
12273 |
@Override
|
|
|
12274 |
public void clear() {
|
|
|
12275 |
this.success = null;
|
|
|
12276 |
}
|
|
|
12277 |
|
|
|
12278 |
public int getSuccessSize() {
|
|
|
12279 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
12280 |
}
|
|
|
12281 |
|
|
|
12282 |
public java.util.Iterator<String> getSuccessIterator() {
|
|
|
12283 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
12284 |
}
|
|
|
12285 |
|
|
|
12286 |
public void addToSuccess(String elem) {
|
|
|
12287 |
if (this.success == null) {
|
|
|
12288 |
this.success = new ArrayList<String>();
|
|
|
12289 |
}
|
|
|
12290 |
this.success.add(elem);
|
|
|
12291 |
}
|
|
|
12292 |
|
|
|
12293 |
public List<String> getSuccess() {
|
|
|
12294 |
return this.success;
|
|
|
12295 |
}
|
|
|
12296 |
|
|
|
12297 |
public void setSuccess(List<String> success) {
|
|
|
12298 |
this.success = success;
|
|
|
12299 |
}
|
|
|
12300 |
|
|
|
12301 |
public void unsetSuccess() {
|
|
|
12302 |
this.success = null;
|
|
|
12303 |
}
|
|
|
12304 |
|
|
|
12305 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
12306 |
public boolean isSetSuccess() {
|
|
|
12307 |
return this.success != null;
|
|
|
12308 |
}
|
|
|
12309 |
|
|
|
12310 |
public void setSuccessIsSet(boolean value) {
|
|
|
12311 |
if (!value) {
|
|
|
12312 |
this.success = null;
|
|
|
12313 |
}
|
|
|
12314 |
}
|
|
|
12315 |
|
|
|
12316 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12317 |
switch (field) {
|
|
|
12318 |
case SUCCESS:
|
|
|
12319 |
if (value == null) {
|
|
|
12320 |
unsetSuccess();
|
|
|
12321 |
} else {
|
|
|
12322 |
setSuccess((List<String>)value);
|
|
|
12323 |
}
|
|
|
12324 |
break;
|
|
|
12325 |
|
|
|
12326 |
}
|
|
|
12327 |
}
|
|
|
12328 |
|
|
|
12329 |
public Object getFieldValue(_Fields field) {
|
|
|
12330 |
switch (field) {
|
|
|
12331 |
case SUCCESS:
|
|
|
12332 |
return getSuccess();
|
|
|
12333 |
|
|
|
12334 |
}
|
|
|
12335 |
throw new IllegalStateException();
|
|
|
12336 |
}
|
|
|
12337 |
|
|
|
12338 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12339 |
public boolean isSet(_Fields field) {
|
|
|
12340 |
if (field == null) {
|
|
|
12341 |
throw new IllegalArgumentException();
|
|
|
12342 |
}
|
|
|
12343 |
|
|
|
12344 |
switch (field) {
|
|
|
12345 |
case SUCCESS:
|
|
|
12346 |
return isSetSuccess();
|
|
|
12347 |
}
|
|
|
12348 |
throw new IllegalStateException();
|
|
|
12349 |
}
|
|
|
12350 |
|
|
|
12351 |
@Override
|
|
|
12352 |
public boolean equals(Object that) {
|
|
|
12353 |
if (that == null)
|
|
|
12354 |
return false;
|
|
|
12355 |
if (that instanceof getItemNumbers_result)
|
|
|
12356 |
return this.equals((getItemNumbers_result)that);
|
|
|
12357 |
return false;
|
|
|
12358 |
}
|
|
|
12359 |
|
|
|
12360 |
public boolean equals(getItemNumbers_result that) {
|
|
|
12361 |
if (that == null)
|
|
|
12362 |
return false;
|
|
|
12363 |
|
|
|
12364 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
12365 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
12366 |
if (this_present_success || that_present_success) {
|
|
|
12367 |
if (!(this_present_success && that_present_success))
|
|
|
12368 |
return false;
|
|
|
12369 |
if (!this.success.equals(that.success))
|
|
|
12370 |
return false;
|
|
|
12371 |
}
|
|
|
12372 |
|
|
|
12373 |
return true;
|
|
|
12374 |
}
|
|
|
12375 |
|
|
|
12376 |
@Override
|
|
|
12377 |
public int hashCode() {
|
|
|
12378 |
return 0;
|
|
|
12379 |
}
|
|
|
12380 |
|
|
|
12381 |
public int compareTo(getItemNumbers_result other) {
|
|
|
12382 |
if (!getClass().equals(other.getClass())) {
|
|
|
12383 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12384 |
}
|
|
|
12385 |
|
|
|
12386 |
int lastComparison = 0;
|
|
|
12387 |
getItemNumbers_result typedOther = (getItemNumbers_result)other;
|
|
|
12388 |
|
|
|
12389 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
12390 |
if (lastComparison != 0) {
|
|
|
12391 |
return lastComparison;
|
|
|
12392 |
}
|
|
|
12393 |
if (isSetSuccess()) {
|
|
|
12394 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
12395 |
if (lastComparison != 0) {
|
|
|
12396 |
return lastComparison;
|
|
|
12397 |
}
|
|
|
12398 |
}
|
|
|
12399 |
return 0;
|
|
|
12400 |
}
|
|
|
12401 |
|
|
|
12402 |
public _Fields fieldForId(int fieldId) {
|
|
|
12403 |
return _Fields.findByThriftId(fieldId);
|
|
|
12404 |
}
|
|
|
12405 |
|
|
|
12406 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12407 |
org.apache.thrift.protocol.TField field;
|
|
|
12408 |
iprot.readStructBegin();
|
|
|
12409 |
while (true)
|
|
|
12410 |
{
|
|
|
12411 |
field = iprot.readFieldBegin();
|
|
|
12412 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12413 |
break;
|
|
|
12414 |
}
|
|
|
12415 |
switch (field.id) {
|
|
|
12416 |
case 0: // SUCCESS
|
|
|
12417 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
12418 |
{
|
|
|
12419 |
org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
|
|
|
12420 |
this.success = new ArrayList<String>(_list16.size);
|
|
|
12421 |
for (int _i17 = 0; _i17 < _list16.size; ++_i17)
|
|
|
12422 |
{
|
|
|
12423 |
String _elem18; // required
|
|
|
12424 |
_elem18 = iprot.readString();
|
|
|
12425 |
this.success.add(_elem18);
|
|
|
12426 |
}
|
|
|
12427 |
iprot.readListEnd();
|
|
|
12428 |
}
|
|
|
12429 |
} else {
|
|
|
12430 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12431 |
}
|
|
|
12432 |
break;
|
|
|
12433 |
default:
|
|
|
12434 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12435 |
}
|
|
|
12436 |
iprot.readFieldEnd();
|
|
|
12437 |
}
|
|
|
12438 |
iprot.readStructEnd();
|
|
|
12439 |
validate();
|
|
|
12440 |
}
|
|
|
12441 |
|
|
|
12442 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12443 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12444 |
|
|
|
12445 |
if (this.isSetSuccess()) {
|
|
|
12446 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
12447 |
{
|
|
|
12448 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
|
|
|
12449 |
for (String _iter19 : this.success)
|
|
|
12450 |
{
|
|
|
12451 |
oprot.writeString(_iter19);
|
|
|
12452 |
}
|
|
|
12453 |
oprot.writeListEnd();
|
|
|
12454 |
}
|
|
|
12455 |
oprot.writeFieldEnd();
|
|
|
12456 |
}
|
|
|
12457 |
oprot.writeFieldStop();
|
|
|
12458 |
oprot.writeStructEnd();
|
|
|
12459 |
}
|
|
|
12460 |
|
|
|
12461 |
@Override
|
|
|
12462 |
public String toString() {
|
|
|
12463 |
StringBuilder sb = new StringBuilder("getItemNumbers_result(");
|
|
|
12464 |
boolean first = true;
|
|
|
12465 |
|
|
|
12466 |
sb.append("success:");
|
|
|
12467 |
if (this.success == null) {
|
|
|
12468 |
sb.append("null");
|
|
|
12469 |
} else {
|
|
|
12470 |
sb.append(this.success);
|
|
|
12471 |
}
|
|
|
12472 |
first = false;
|
|
|
12473 |
sb.append(")");
|
|
|
12474 |
return sb.toString();
|
|
|
12475 |
}
|
|
|
12476 |
|
|
|
12477 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12478 |
// check for required fields
|
|
|
12479 |
}
|
|
|
12480 |
|
|
|
12481 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12482 |
try {
|
|
|
12483 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12484 |
} catch (org.apache.thrift.TException te) {
|
|
|
12485 |
throw new java.io.IOException(te);
|
|
|
12486 |
}
|
|
|
12487 |
}
|
|
|
12488 |
|
|
|
12489 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12490 |
try {
|
|
|
12491 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12492 |
} catch (org.apache.thrift.TException te) {
|
|
|
12493 |
throw new java.io.IOException(te);
|
|
|
12494 |
}
|
|
|
12495 |
}
|
|
|
12496 |
|
|
|
12497 |
}
|
|
|
12498 |
|
| 5110 |
mandeep.dh |
12499 |
public static class getItemIds_args implements org.apache.thrift.TBase<getItemIds_args, getItemIds_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
12500 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_args");
|
|
|
12501 |
|
|
|
12502 |
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);
|
|
|
12503 |
|
|
|
12504 |
private String itemNumber; // required
|
|
|
12505 |
|
|
|
12506 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12507 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12508 |
ITEM_NUMBER((short)1, "itemNumber");
|
|
|
12509 |
|
|
|
12510 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12511 |
|
|
|
12512 |
static {
|
|
|
12513 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12514 |
byName.put(field.getFieldName(), field);
|
|
|
12515 |
}
|
|
|
12516 |
}
|
|
|
12517 |
|
|
|
12518 |
/**
|
|
|
12519 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12520 |
*/
|
|
|
12521 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12522 |
switch(fieldId) {
|
|
|
12523 |
case 1: // ITEM_NUMBER
|
|
|
12524 |
return ITEM_NUMBER;
|
|
|
12525 |
default:
|
|
|
12526 |
return null;
|
|
|
12527 |
}
|
|
|
12528 |
}
|
|
|
12529 |
|
|
|
12530 |
/**
|
|
|
12531 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12532 |
* if it is not found.
|
|
|
12533 |
*/
|
|
|
12534 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12535 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12536 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12537 |
return fields;
|
|
|
12538 |
}
|
|
|
12539 |
|
|
|
12540 |
/**
|
|
|
12541 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12542 |
*/
|
|
|
12543 |
public static _Fields findByName(String name) {
|
|
|
12544 |
return byName.get(name);
|
|
|
12545 |
}
|
|
|
12546 |
|
|
|
12547 |
private final short _thriftId;
|
|
|
12548 |
private final String _fieldName;
|
|
|
12549 |
|
|
|
12550 |
_Fields(short thriftId, String fieldName) {
|
|
|
12551 |
_thriftId = thriftId;
|
|
|
12552 |
_fieldName = fieldName;
|
|
|
12553 |
}
|
|
|
12554 |
|
|
|
12555 |
public short getThriftFieldId() {
|
|
|
12556 |
return _thriftId;
|
|
|
12557 |
}
|
|
|
12558 |
|
|
|
12559 |
public String getFieldName() {
|
|
|
12560 |
return _fieldName;
|
|
|
12561 |
}
|
|
|
12562 |
}
|
|
|
12563 |
|
|
|
12564 |
// isset id assignments
|
|
|
12565 |
|
|
|
12566 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12567 |
static {
|
|
|
12568 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12569 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12570 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
12571 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12572 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_args.class, metaDataMap);
|
|
|
12573 |
}
|
|
|
12574 |
|
|
|
12575 |
public getItemIds_args() {
|
|
|
12576 |
}
|
|
|
12577 |
|
|
|
12578 |
public getItemIds_args(
|
|
|
12579 |
String itemNumber)
|
|
|
12580 |
{
|
|
|
12581 |
this();
|
|
|
12582 |
this.itemNumber = itemNumber;
|
|
|
12583 |
}
|
|
|
12584 |
|
|
|
12585 |
/**
|
|
|
12586 |
* Performs a deep copy on <i>other</i>.
|
|
|
12587 |
*/
|
|
|
12588 |
public getItemIds_args(getItemIds_args other) {
|
|
|
12589 |
if (other.isSetItemNumber()) {
|
|
|
12590 |
this.itemNumber = other.itemNumber;
|
|
|
12591 |
}
|
|
|
12592 |
}
|
|
|
12593 |
|
|
|
12594 |
public getItemIds_args deepCopy() {
|
|
|
12595 |
return new getItemIds_args(this);
|
|
|
12596 |
}
|
|
|
12597 |
|
|
|
12598 |
@Override
|
|
|
12599 |
public void clear() {
|
|
|
12600 |
this.itemNumber = null;
|
|
|
12601 |
}
|
|
|
12602 |
|
|
|
12603 |
public String getItemNumber() {
|
|
|
12604 |
return this.itemNumber;
|
|
|
12605 |
}
|
|
|
12606 |
|
|
|
12607 |
public void setItemNumber(String itemNumber) {
|
|
|
12608 |
this.itemNumber = itemNumber;
|
|
|
12609 |
}
|
|
|
12610 |
|
|
|
12611 |
public void unsetItemNumber() {
|
|
|
12612 |
this.itemNumber = null;
|
|
|
12613 |
}
|
|
|
12614 |
|
|
|
12615 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
12616 |
public boolean isSetItemNumber() {
|
|
|
12617 |
return this.itemNumber != null;
|
|
|
12618 |
}
|
|
|
12619 |
|
|
|
12620 |
public void setItemNumberIsSet(boolean value) {
|
|
|
12621 |
if (!value) {
|
|
|
12622 |
this.itemNumber = null;
|
|
|
12623 |
}
|
|
|
12624 |
}
|
|
|
12625 |
|
|
|
12626 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12627 |
switch (field) {
|
|
|
12628 |
case ITEM_NUMBER:
|
|
|
12629 |
if (value == null) {
|
|
|
12630 |
unsetItemNumber();
|
|
|
12631 |
} else {
|
|
|
12632 |
setItemNumber((String)value);
|
|
|
12633 |
}
|
|
|
12634 |
break;
|
|
|
12635 |
|
|
|
12636 |
}
|
|
|
12637 |
}
|
|
|
12638 |
|
|
|
12639 |
public Object getFieldValue(_Fields field) {
|
|
|
12640 |
switch (field) {
|
|
|
12641 |
case ITEM_NUMBER:
|
|
|
12642 |
return getItemNumber();
|
|
|
12643 |
|
|
|
12644 |
}
|
|
|
12645 |
throw new IllegalStateException();
|
|
|
12646 |
}
|
|
|
12647 |
|
|
|
12648 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12649 |
public boolean isSet(_Fields field) {
|
|
|
12650 |
if (field == null) {
|
|
|
12651 |
throw new IllegalArgumentException();
|
|
|
12652 |
}
|
|
|
12653 |
|
|
|
12654 |
switch (field) {
|
|
|
12655 |
case ITEM_NUMBER:
|
|
|
12656 |
return isSetItemNumber();
|
|
|
12657 |
}
|
|
|
12658 |
throw new IllegalStateException();
|
|
|
12659 |
}
|
|
|
12660 |
|
|
|
12661 |
@Override
|
|
|
12662 |
public boolean equals(Object that) {
|
|
|
12663 |
if (that == null)
|
|
|
12664 |
return false;
|
|
|
12665 |
if (that instanceof getItemIds_args)
|
|
|
12666 |
return this.equals((getItemIds_args)that);
|
|
|
12667 |
return false;
|
|
|
12668 |
}
|
|
|
12669 |
|
|
|
12670 |
public boolean equals(getItemIds_args that) {
|
|
|
12671 |
if (that == null)
|
|
|
12672 |
return false;
|
|
|
12673 |
|
|
|
12674 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
12675 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
12676 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
12677 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
12678 |
return false;
|
|
|
12679 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
12680 |
return false;
|
|
|
12681 |
}
|
|
|
12682 |
|
|
|
12683 |
return true;
|
|
|
12684 |
}
|
|
|
12685 |
|
|
|
12686 |
@Override
|
|
|
12687 |
public int hashCode() {
|
|
|
12688 |
return 0;
|
|
|
12689 |
}
|
|
|
12690 |
|
|
|
12691 |
public int compareTo(getItemIds_args other) {
|
|
|
12692 |
if (!getClass().equals(other.getClass())) {
|
|
|
12693 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12694 |
}
|
|
|
12695 |
|
|
|
12696 |
int lastComparison = 0;
|
|
|
12697 |
getItemIds_args typedOther = (getItemIds_args)other;
|
|
|
12698 |
|
|
|
12699 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
12700 |
if (lastComparison != 0) {
|
|
|
12701 |
return lastComparison;
|
|
|
12702 |
}
|
|
|
12703 |
if (isSetItemNumber()) {
|
|
|
12704 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
12705 |
if (lastComparison != 0) {
|
|
|
12706 |
return lastComparison;
|
|
|
12707 |
}
|
|
|
12708 |
}
|
|
|
12709 |
return 0;
|
|
|
12710 |
}
|
|
|
12711 |
|
|
|
12712 |
public _Fields fieldForId(int fieldId) {
|
|
|
12713 |
return _Fields.findByThriftId(fieldId);
|
|
|
12714 |
}
|
|
|
12715 |
|
|
|
12716 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12717 |
org.apache.thrift.protocol.TField field;
|
|
|
12718 |
iprot.readStructBegin();
|
|
|
12719 |
while (true)
|
|
|
12720 |
{
|
|
|
12721 |
field = iprot.readFieldBegin();
|
|
|
12722 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12723 |
break;
|
|
|
12724 |
}
|
|
|
12725 |
switch (field.id) {
|
|
|
12726 |
case 1: // ITEM_NUMBER
|
|
|
12727 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
12728 |
this.itemNumber = iprot.readString();
|
|
|
12729 |
} else {
|
|
|
12730 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12731 |
}
|
|
|
12732 |
break;
|
|
|
12733 |
default:
|
|
|
12734 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12735 |
}
|
|
|
12736 |
iprot.readFieldEnd();
|
|
|
12737 |
}
|
|
|
12738 |
iprot.readStructEnd();
|
|
|
12739 |
validate();
|
|
|
12740 |
}
|
|
|
12741 |
|
|
|
12742 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12743 |
validate();
|
|
|
12744 |
|
|
|
12745 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12746 |
if (this.itemNumber != null) {
|
|
|
12747 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
12748 |
oprot.writeString(this.itemNumber);
|
|
|
12749 |
oprot.writeFieldEnd();
|
|
|
12750 |
}
|
|
|
12751 |
oprot.writeFieldStop();
|
|
|
12752 |
oprot.writeStructEnd();
|
|
|
12753 |
}
|
|
|
12754 |
|
|
|
12755 |
@Override
|
|
|
12756 |
public String toString() {
|
|
|
12757 |
StringBuilder sb = new StringBuilder("getItemIds_args(");
|
|
|
12758 |
boolean first = true;
|
|
|
12759 |
|
|
|
12760 |
sb.append("itemNumber:");
|
|
|
12761 |
if (this.itemNumber == null) {
|
|
|
12762 |
sb.append("null");
|
|
|
12763 |
} else {
|
|
|
12764 |
sb.append(this.itemNumber);
|
|
|
12765 |
}
|
|
|
12766 |
first = false;
|
|
|
12767 |
sb.append(")");
|
|
|
12768 |
return sb.toString();
|
|
|
12769 |
}
|
|
|
12770 |
|
|
|
12771 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12772 |
// check for required fields
|
|
|
12773 |
}
|
|
|
12774 |
|
|
|
12775 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12776 |
try {
|
|
|
12777 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12778 |
} catch (org.apache.thrift.TException te) {
|
|
|
12779 |
throw new java.io.IOException(te);
|
|
|
12780 |
}
|
|
|
12781 |
}
|
|
|
12782 |
|
|
|
12783 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12784 |
try {
|
|
|
12785 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12786 |
} catch (org.apache.thrift.TException te) {
|
|
|
12787 |
throw new java.io.IOException(te);
|
|
|
12788 |
}
|
|
|
12789 |
}
|
|
|
12790 |
|
|
|
12791 |
}
|
|
|
12792 |
|
|
|
12793 |
public static class getItemIds_result implements org.apache.thrift.TBase<getItemIds_result, getItemIds_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
12794 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_result");
|
|
|
12795 |
|
|
|
12796 |
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);
|
|
|
12797 |
|
|
|
12798 |
private List<Long> success; // required
|
|
|
12799 |
|
|
|
12800 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12801 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12802 |
SUCCESS((short)0, "success");
|
|
|
12803 |
|
|
|
12804 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12805 |
|
|
|
12806 |
static {
|
|
|
12807 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12808 |
byName.put(field.getFieldName(), field);
|
|
|
12809 |
}
|
|
|
12810 |
}
|
|
|
12811 |
|
|
|
12812 |
/**
|
|
|
12813 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12814 |
*/
|
|
|
12815 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12816 |
switch(fieldId) {
|
|
|
12817 |
case 0: // SUCCESS
|
|
|
12818 |
return SUCCESS;
|
|
|
12819 |
default:
|
|
|
12820 |
return null;
|
|
|
12821 |
}
|
|
|
12822 |
}
|
|
|
12823 |
|
|
|
12824 |
/**
|
|
|
12825 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12826 |
* if it is not found.
|
|
|
12827 |
*/
|
|
|
12828 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12829 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12830 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12831 |
return fields;
|
|
|
12832 |
}
|
|
|
12833 |
|
|
|
12834 |
/**
|
|
|
12835 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12836 |
*/
|
|
|
12837 |
public static _Fields findByName(String name) {
|
|
|
12838 |
return byName.get(name);
|
|
|
12839 |
}
|
|
|
12840 |
|
|
|
12841 |
private final short _thriftId;
|
|
|
12842 |
private final String _fieldName;
|
|
|
12843 |
|
|
|
12844 |
_Fields(short thriftId, String fieldName) {
|
|
|
12845 |
_thriftId = thriftId;
|
|
|
12846 |
_fieldName = fieldName;
|
|
|
12847 |
}
|
|
|
12848 |
|
|
|
12849 |
public short getThriftFieldId() {
|
|
|
12850 |
return _thriftId;
|
|
|
12851 |
}
|
|
|
12852 |
|
|
|
12853 |
public String getFieldName() {
|
|
|
12854 |
return _fieldName;
|
|
|
12855 |
}
|
|
|
12856 |
}
|
|
|
12857 |
|
|
|
12858 |
// isset id assignments
|
|
|
12859 |
|
|
|
12860 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12861 |
static {
|
|
|
12862 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12863 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12864 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
12865 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
|
|
|
12866 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12867 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_result.class, metaDataMap);
|
|
|
12868 |
}
|
|
|
12869 |
|
|
|
12870 |
public getItemIds_result() {
|
|
|
12871 |
}
|
|
|
12872 |
|
|
|
12873 |
public getItemIds_result(
|
|
|
12874 |
List<Long> success)
|
|
|
12875 |
{
|
|
|
12876 |
this();
|
|
|
12877 |
this.success = success;
|
|
|
12878 |
}
|
|
|
12879 |
|
|
|
12880 |
/**
|
|
|
12881 |
* Performs a deep copy on <i>other</i>.
|
|
|
12882 |
*/
|
|
|
12883 |
public getItemIds_result(getItemIds_result other) {
|
|
|
12884 |
if (other.isSetSuccess()) {
|
|
|
12885 |
List<Long> __this__success = new ArrayList<Long>();
|
|
|
12886 |
for (Long other_element : other.success) {
|
|
|
12887 |
__this__success.add(other_element);
|
|
|
12888 |
}
|
|
|
12889 |
this.success = __this__success;
|
|
|
12890 |
}
|
|
|
12891 |
}
|
|
|
12892 |
|
|
|
12893 |
public getItemIds_result deepCopy() {
|
|
|
12894 |
return new getItemIds_result(this);
|
|
|
12895 |
}
|
|
|
12896 |
|
|
|
12897 |
@Override
|
|
|
12898 |
public void clear() {
|
|
|
12899 |
this.success = null;
|
|
|
12900 |
}
|
|
|
12901 |
|
|
|
12902 |
public int getSuccessSize() {
|
|
|
12903 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
12904 |
}
|
|
|
12905 |
|
|
|
12906 |
public java.util.Iterator<Long> getSuccessIterator() {
|
|
|
12907 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
12908 |
}
|
|
|
12909 |
|
|
|
12910 |
public void addToSuccess(long elem) {
|
|
|
12911 |
if (this.success == null) {
|
|
|
12912 |
this.success = new ArrayList<Long>();
|
|
|
12913 |
}
|
|
|
12914 |
this.success.add(elem);
|
|
|
12915 |
}
|
|
|
12916 |
|
|
|
12917 |
public List<Long> getSuccess() {
|
|
|
12918 |
return this.success;
|
|
|
12919 |
}
|
|
|
12920 |
|
|
|
12921 |
public void setSuccess(List<Long> success) {
|
|
|
12922 |
this.success = success;
|
|
|
12923 |
}
|
|
|
12924 |
|
|
|
12925 |
public void unsetSuccess() {
|
|
|
12926 |
this.success = null;
|
|
|
12927 |
}
|
|
|
12928 |
|
|
|
12929 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
12930 |
public boolean isSetSuccess() {
|
|
|
12931 |
return this.success != null;
|
|
|
12932 |
}
|
|
|
12933 |
|
|
|
12934 |
public void setSuccessIsSet(boolean value) {
|
|
|
12935 |
if (!value) {
|
|
|
12936 |
this.success = null;
|
|
|
12937 |
}
|
|
|
12938 |
}
|
|
|
12939 |
|
|
|
12940 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12941 |
switch (field) {
|
|
|
12942 |
case SUCCESS:
|
|
|
12943 |
if (value == null) {
|
|
|
12944 |
unsetSuccess();
|
|
|
12945 |
} else {
|
|
|
12946 |
setSuccess((List<Long>)value);
|
|
|
12947 |
}
|
|
|
12948 |
break;
|
|
|
12949 |
|
|
|
12950 |
}
|
|
|
12951 |
}
|
|
|
12952 |
|
|
|
12953 |
public Object getFieldValue(_Fields field) {
|
|
|
12954 |
switch (field) {
|
|
|
12955 |
case SUCCESS:
|
|
|
12956 |
return getSuccess();
|
|
|
12957 |
|
|
|
12958 |
}
|
|
|
12959 |
throw new IllegalStateException();
|
|
|
12960 |
}
|
|
|
12961 |
|
|
|
12962 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12963 |
public boolean isSet(_Fields field) {
|
|
|
12964 |
if (field == null) {
|
|
|
12965 |
throw new IllegalArgumentException();
|
|
|
12966 |
}
|
|
|
12967 |
|
|
|
12968 |
switch (field) {
|
|
|
12969 |
case SUCCESS:
|
|
|
12970 |
return isSetSuccess();
|
|
|
12971 |
}
|
|
|
12972 |
throw new IllegalStateException();
|
|
|
12973 |
}
|
|
|
12974 |
|
|
|
12975 |
@Override
|
|
|
12976 |
public boolean equals(Object that) {
|
|
|
12977 |
if (that == null)
|
|
|
12978 |
return false;
|
|
|
12979 |
if (that instanceof getItemIds_result)
|
|
|
12980 |
return this.equals((getItemIds_result)that);
|
|
|
12981 |
return false;
|
|
|
12982 |
}
|
|
|
12983 |
|
|
|
12984 |
public boolean equals(getItemIds_result that) {
|
|
|
12985 |
if (that == null)
|
|
|
12986 |
return false;
|
|
|
12987 |
|
|
|
12988 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
12989 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
12990 |
if (this_present_success || that_present_success) {
|
|
|
12991 |
if (!(this_present_success && that_present_success))
|
|
|
12992 |
return false;
|
|
|
12993 |
if (!this.success.equals(that.success))
|
|
|
12994 |
return false;
|
|
|
12995 |
}
|
|
|
12996 |
|
|
|
12997 |
return true;
|
|
|
12998 |
}
|
|
|
12999 |
|
|
|
13000 |
@Override
|
|
|
13001 |
public int hashCode() {
|
|
|
13002 |
return 0;
|
|
|
13003 |
}
|
|
|
13004 |
|
|
|
13005 |
public int compareTo(getItemIds_result other) {
|
|
|
13006 |
if (!getClass().equals(other.getClass())) {
|
|
|
13007 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13008 |
}
|
|
|
13009 |
|
|
|
13010 |
int lastComparison = 0;
|
|
|
13011 |
getItemIds_result typedOther = (getItemIds_result)other;
|
|
|
13012 |
|
|
|
13013 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
13014 |
if (lastComparison != 0) {
|
|
|
13015 |
return lastComparison;
|
|
|
13016 |
}
|
|
|
13017 |
if (isSetSuccess()) {
|
|
|
13018 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
13019 |
if (lastComparison != 0) {
|
|
|
13020 |
return lastComparison;
|
|
|
13021 |
}
|
|
|
13022 |
}
|
|
|
13023 |
return 0;
|
|
|
13024 |
}
|
|
|
13025 |
|
|
|
13026 |
public _Fields fieldForId(int fieldId) {
|
|
|
13027 |
return _Fields.findByThriftId(fieldId);
|
|
|
13028 |
}
|
|
|
13029 |
|
|
|
13030 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13031 |
org.apache.thrift.protocol.TField field;
|
|
|
13032 |
iprot.readStructBegin();
|
|
|
13033 |
while (true)
|
|
|
13034 |
{
|
|
|
13035 |
field = iprot.readFieldBegin();
|
|
|
13036 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13037 |
break;
|
|
|
13038 |
}
|
|
|
13039 |
switch (field.id) {
|
|
|
13040 |
case 0: // SUCCESS
|
|
|
13041 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
13042 |
{
|
|
|
13043 |
org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
|
|
|
13044 |
this.success = new ArrayList<Long>(_list20.size);
|
|
|
13045 |
for (int _i21 = 0; _i21 < _list20.size; ++_i21)
|
|
|
13046 |
{
|
|
|
13047 |
long _elem22; // required
|
|
|
13048 |
_elem22 = iprot.readI64();
|
|
|
13049 |
this.success.add(_elem22);
|
|
|
13050 |
}
|
|
|
13051 |
iprot.readListEnd();
|
|
|
13052 |
}
|
|
|
13053 |
} else {
|
|
|
13054 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13055 |
}
|
|
|
13056 |
break;
|
|
|
13057 |
default:
|
|
|
13058 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13059 |
}
|
|
|
13060 |
iprot.readFieldEnd();
|
|
|
13061 |
}
|
|
|
13062 |
iprot.readStructEnd();
|
|
|
13063 |
validate();
|
|
|
13064 |
}
|
|
|
13065 |
|
|
|
13066 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13067 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13068 |
|
|
|
13069 |
if (this.isSetSuccess()) {
|
|
|
13070 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
13071 |
{
|
|
|
13072 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
|
|
|
13073 |
for (long _iter23 : this.success)
|
|
|
13074 |
{
|
|
|
13075 |
oprot.writeI64(_iter23);
|
|
|
13076 |
}
|
|
|
13077 |
oprot.writeListEnd();
|
|
|
13078 |
}
|
|
|
13079 |
oprot.writeFieldEnd();
|
|
|
13080 |
}
|
|
|
13081 |
oprot.writeFieldStop();
|
|
|
13082 |
oprot.writeStructEnd();
|
|
|
13083 |
}
|
|
|
13084 |
|
|
|
13085 |
@Override
|
|
|
13086 |
public String toString() {
|
|
|
13087 |
StringBuilder sb = new StringBuilder("getItemIds_result(");
|
|
|
13088 |
boolean first = true;
|
|
|
13089 |
|
|
|
13090 |
sb.append("success:");
|
|
|
13091 |
if (this.success == null) {
|
|
|
13092 |
sb.append("null");
|
|
|
13093 |
} else {
|
|
|
13094 |
sb.append(this.success);
|
|
|
13095 |
}
|
|
|
13096 |
first = false;
|
|
|
13097 |
sb.append(")");
|
|
|
13098 |
return sb.toString();
|
|
|
13099 |
}
|
|
|
13100 |
|
|
|
13101 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13102 |
// check for required fields
|
|
|
13103 |
}
|
|
|
13104 |
|
|
|
13105 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13106 |
try {
|
|
|
13107 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13108 |
} catch (org.apache.thrift.TException te) {
|
|
|
13109 |
throw new java.io.IOException(te);
|
|
|
13110 |
}
|
|
|
13111 |
}
|
|
|
13112 |
|
|
|
13113 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13114 |
try {
|
|
|
13115 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13116 |
} catch (org.apache.thrift.TException te) {
|
|
|
13117 |
throw new java.io.IOException(te);
|
|
|
13118 |
}
|
|
|
13119 |
}
|
|
|
13120 |
|
|
|
13121 |
}
|
|
|
13122 |
|
| 5185 |
mandeep.dh |
13123 |
public static class getInventoryItemsFromLastScanType_args implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_args, getInventoryItemsFromLastScanType_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
13124 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_args");
|
|
|
13125 |
|
|
|
13126 |
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);
|
|
|
13127 |
|
|
|
13128 |
private ScanType lastScanType; // required
|
|
|
13129 |
|
|
|
13130 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13131 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13132 |
/**
|
|
|
13133 |
*
|
|
|
13134 |
* @see ScanType
|
|
|
13135 |
*/
|
|
|
13136 |
LAST_SCAN_TYPE((short)1, "lastScanType");
|
|
|
13137 |
|
|
|
13138 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13139 |
|
|
|
13140 |
static {
|
|
|
13141 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13142 |
byName.put(field.getFieldName(), field);
|
|
|
13143 |
}
|
|
|
13144 |
}
|
|
|
13145 |
|
|
|
13146 |
/**
|
|
|
13147 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13148 |
*/
|
|
|
13149 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13150 |
switch(fieldId) {
|
|
|
13151 |
case 1: // LAST_SCAN_TYPE
|
|
|
13152 |
return LAST_SCAN_TYPE;
|
|
|
13153 |
default:
|
|
|
13154 |
return null;
|
|
|
13155 |
}
|
|
|
13156 |
}
|
|
|
13157 |
|
|
|
13158 |
/**
|
|
|
13159 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13160 |
* if it is not found.
|
|
|
13161 |
*/
|
|
|
13162 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13163 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13164 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13165 |
return fields;
|
|
|
13166 |
}
|
|
|
13167 |
|
|
|
13168 |
/**
|
|
|
13169 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13170 |
*/
|
|
|
13171 |
public static _Fields findByName(String name) {
|
|
|
13172 |
return byName.get(name);
|
|
|
13173 |
}
|
|
|
13174 |
|
|
|
13175 |
private final short _thriftId;
|
|
|
13176 |
private final String _fieldName;
|
|
|
13177 |
|
|
|
13178 |
_Fields(short thriftId, String fieldName) {
|
|
|
13179 |
_thriftId = thriftId;
|
|
|
13180 |
_fieldName = fieldName;
|
|
|
13181 |
}
|
|
|
13182 |
|
|
|
13183 |
public short getThriftFieldId() {
|
|
|
13184 |
return _thriftId;
|
|
|
13185 |
}
|
|
|
13186 |
|
|
|
13187 |
public String getFieldName() {
|
|
|
13188 |
return _fieldName;
|
|
|
13189 |
}
|
|
|
13190 |
}
|
|
|
13191 |
|
|
|
13192 |
// isset id assignments
|
|
|
13193 |
|
|
|
13194 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13195 |
static {
|
|
|
13196 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13197 |
tmpMap.put(_Fields.LAST_SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("lastScanType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13198 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
13199 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13200 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_args.class, metaDataMap);
|
|
|
13201 |
}
|
|
|
13202 |
|
|
|
13203 |
public getInventoryItemsFromLastScanType_args() {
|
|
|
13204 |
}
|
|
|
13205 |
|
|
|
13206 |
public getInventoryItemsFromLastScanType_args(
|
|
|
13207 |
ScanType lastScanType)
|
|
|
13208 |
{
|
|
|
13209 |
this();
|
|
|
13210 |
this.lastScanType = lastScanType;
|
|
|
13211 |
}
|
|
|
13212 |
|
|
|
13213 |
/**
|
|
|
13214 |
* Performs a deep copy on <i>other</i>.
|
|
|
13215 |
*/
|
|
|
13216 |
public getInventoryItemsFromLastScanType_args(getInventoryItemsFromLastScanType_args other) {
|
|
|
13217 |
if (other.isSetLastScanType()) {
|
|
|
13218 |
this.lastScanType = other.lastScanType;
|
|
|
13219 |
}
|
|
|
13220 |
}
|
|
|
13221 |
|
|
|
13222 |
public getInventoryItemsFromLastScanType_args deepCopy() {
|
|
|
13223 |
return new getInventoryItemsFromLastScanType_args(this);
|
|
|
13224 |
}
|
|
|
13225 |
|
|
|
13226 |
@Override
|
|
|
13227 |
public void clear() {
|
|
|
13228 |
this.lastScanType = null;
|
|
|
13229 |
}
|
|
|
13230 |
|
|
|
13231 |
/**
|
|
|
13232 |
*
|
|
|
13233 |
* @see ScanType
|
|
|
13234 |
*/
|
|
|
13235 |
public ScanType getLastScanType() {
|
|
|
13236 |
return this.lastScanType;
|
|
|
13237 |
}
|
|
|
13238 |
|
|
|
13239 |
/**
|
|
|
13240 |
*
|
|
|
13241 |
* @see ScanType
|
|
|
13242 |
*/
|
|
|
13243 |
public void setLastScanType(ScanType lastScanType) {
|
|
|
13244 |
this.lastScanType = lastScanType;
|
|
|
13245 |
}
|
|
|
13246 |
|
|
|
13247 |
public void unsetLastScanType() {
|
|
|
13248 |
this.lastScanType = null;
|
|
|
13249 |
}
|
|
|
13250 |
|
|
|
13251 |
/** Returns true if field lastScanType is set (has been assigned a value) and false otherwise */
|
|
|
13252 |
public boolean isSetLastScanType() {
|
|
|
13253 |
return this.lastScanType != null;
|
|
|
13254 |
}
|
|
|
13255 |
|
|
|
13256 |
public void setLastScanTypeIsSet(boolean value) {
|
|
|
13257 |
if (!value) {
|
|
|
13258 |
this.lastScanType = null;
|
|
|
13259 |
}
|
|
|
13260 |
}
|
|
|
13261 |
|
|
|
13262 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13263 |
switch (field) {
|
|
|
13264 |
case LAST_SCAN_TYPE:
|
|
|
13265 |
if (value == null) {
|
|
|
13266 |
unsetLastScanType();
|
|
|
13267 |
} else {
|
|
|
13268 |
setLastScanType((ScanType)value);
|
|
|
13269 |
}
|
|
|
13270 |
break;
|
|
|
13271 |
|
|
|
13272 |
}
|
|
|
13273 |
}
|
|
|
13274 |
|
|
|
13275 |
public Object getFieldValue(_Fields field) {
|
|
|
13276 |
switch (field) {
|
|
|
13277 |
case LAST_SCAN_TYPE:
|
|
|
13278 |
return getLastScanType();
|
|
|
13279 |
|
|
|
13280 |
}
|
|
|
13281 |
throw new IllegalStateException();
|
|
|
13282 |
}
|
|
|
13283 |
|
|
|
13284 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13285 |
public boolean isSet(_Fields field) {
|
|
|
13286 |
if (field == null) {
|
|
|
13287 |
throw new IllegalArgumentException();
|
|
|
13288 |
}
|
|
|
13289 |
|
|
|
13290 |
switch (field) {
|
|
|
13291 |
case LAST_SCAN_TYPE:
|
|
|
13292 |
return isSetLastScanType();
|
|
|
13293 |
}
|
|
|
13294 |
throw new IllegalStateException();
|
|
|
13295 |
}
|
|
|
13296 |
|
|
|
13297 |
@Override
|
|
|
13298 |
public boolean equals(Object that) {
|
|
|
13299 |
if (that == null)
|
|
|
13300 |
return false;
|
|
|
13301 |
if (that instanceof getInventoryItemsFromLastScanType_args)
|
|
|
13302 |
return this.equals((getInventoryItemsFromLastScanType_args)that);
|
|
|
13303 |
return false;
|
|
|
13304 |
}
|
|
|
13305 |
|
|
|
13306 |
public boolean equals(getInventoryItemsFromLastScanType_args that) {
|
|
|
13307 |
if (that == null)
|
|
|
13308 |
return false;
|
|
|
13309 |
|
|
|
13310 |
boolean this_present_lastScanType = true && this.isSetLastScanType();
|
|
|
13311 |
boolean that_present_lastScanType = true && that.isSetLastScanType();
|
|
|
13312 |
if (this_present_lastScanType || that_present_lastScanType) {
|
|
|
13313 |
if (!(this_present_lastScanType && that_present_lastScanType))
|
|
|
13314 |
return false;
|
|
|
13315 |
if (!this.lastScanType.equals(that.lastScanType))
|
|
|
13316 |
return false;
|
|
|
13317 |
}
|
|
|
13318 |
|
|
|
13319 |
return true;
|
|
|
13320 |
}
|
|
|
13321 |
|
|
|
13322 |
@Override
|
|
|
13323 |
public int hashCode() {
|
|
|
13324 |
return 0;
|
|
|
13325 |
}
|
|
|
13326 |
|
|
|
13327 |
public int compareTo(getInventoryItemsFromLastScanType_args other) {
|
|
|
13328 |
if (!getClass().equals(other.getClass())) {
|
|
|
13329 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13330 |
}
|
|
|
13331 |
|
|
|
13332 |
int lastComparison = 0;
|
|
|
13333 |
getInventoryItemsFromLastScanType_args typedOther = (getInventoryItemsFromLastScanType_args)other;
|
|
|
13334 |
|
|
|
13335 |
lastComparison = Boolean.valueOf(isSetLastScanType()).compareTo(typedOther.isSetLastScanType());
|
|
|
13336 |
if (lastComparison != 0) {
|
|
|
13337 |
return lastComparison;
|
|
|
13338 |
}
|
|
|
13339 |
if (isSetLastScanType()) {
|
|
|
13340 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastScanType, typedOther.lastScanType);
|
|
|
13341 |
if (lastComparison != 0) {
|
|
|
13342 |
return lastComparison;
|
|
|
13343 |
}
|
|
|
13344 |
}
|
|
|
13345 |
return 0;
|
|
|
13346 |
}
|
|
|
13347 |
|
|
|
13348 |
public _Fields fieldForId(int fieldId) {
|
|
|
13349 |
return _Fields.findByThriftId(fieldId);
|
|
|
13350 |
}
|
|
|
13351 |
|
|
|
13352 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13353 |
org.apache.thrift.protocol.TField field;
|
|
|
13354 |
iprot.readStructBegin();
|
|
|
13355 |
while (true)
|
|
|
13356 |
{
|
|
|
13357 |
field = iprot.readFieldBegin();
|
|
|
13358 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13359 |
break;
|
|
|
13360 |
}
|
|
|
13361 |
switch (field.id) {
|
|
|
13362 |
case 1: // LAST_SCAN_TYPE
|
|
|
13363 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
13364 |
this.lastScanType = ScanType.findByValue(iprot.readI32());
|
|
|
13365 |
} else {
|
|
|
13366 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13367 |
}
|
|
|
13368 |
break;
|
|
|
13369 |
default:
|
|
|
13370 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13371 |
}
|
|
|
13372 |
iprot.readFieldEnd();
|
|
|
13373 |
}
|
|
|
13374 |
iprot.readStructEnd();
|
|
|
13375 |
validate();
|
|
|
13376 |
}
|
|
|
13377 |
|
|
|
13378 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13379 |
validate();
|
|
|
13380 |
|
|
|
13381 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13382 |
if (this.lastScanType != null) {
|
|
|
13383 |
oprot.writeFieldBegin(LAST_SCAN_TYPE_FIELD_DESC);
|
|
|
13384 |
oprot.writeI32(this.lastScanType.getValue());
|
|
|
13385 |
oprot.writeFieldEnd();
|
|
|
13386 |
}
|
|
|
13387 |
oprot.writeFieldStop();
|
|
|
13388 |
oprot.writeStructEnd();
|
|
|
13389 |
}
|
|
|
13390 |
|
|
|
13391 |
@Override
|
|
|
13392 |
public String toString() {
|
|
|
13393 |
StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_args(");
|
|
|
13394 |
boolean first = true;
|
|
|
13395 |
|
|
|
13396 |
sb.append("lastScanType:");
|
|
|
13397 |
if (this.lastScanType == null) {
|
|
|
13398 |
sb.append("null");
|
|
|
13399 |
} else {
|
|
|
13400 |
sb.append(this.lastScanType);
|
|
|
13401 |
}
|
|
|
13402 |
first = false;
|
|
|
13403 |
sb.append(")");
|
|
|
13404 |
return sb.toString();
|
|
|
13405 |
}
|
|
|
13406 |
|
|
|
13407 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13408 |
// check for required fields
|
|
|
13409 |
}
|
|
|
13410 |
|
|
|
13411 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13412 |
try {
|
|
|
13413 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13414 |
} catch (org.apache.thrift.TException te) {
|
|
|
13415 |
throw new java.io.IOException(te);
|
|
|
13416 |
}
|
|
|
13417 |
}
|
|
|
13418 |
|
|
|
13419 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13420 |
try {
|
|
|
13421 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13422 |
} catch (org.apache.thrift.TException te) {
|
|
|
13423 |
throw new java.io.IOException(te);
|
|
|
13424 |
}
|
|
|
13425 |
}
|
|
|
13426 |
|
|
|
13427 |
}
|
|
|
13428 |
|
|
|
13429 |
public static class getInventoryItemsFromLastScanType_result implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_result, getInventoryItemsFromLastScanType_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
13430 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_result");
|
|
|
13431 |
|
|
|
13432 |
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);
|
|
|
13433 |
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);
|
|
|
13434 |
|
|
|
13435 |
private List<InventoryItem> success; // required
|
|
|
13436 |
private WarehouseServiceException wex; // required
|
|
|
13437 |
|
|
|
13438 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13439 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13440 |
SUCCESS((short)0, "success"),
|
|
|
13441 |
WEX((short)1, "wex");
|
|
|
13442 |
|
|
|
13443 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13444 |
|
|
|
13445 |
static {
|
|
|
13446 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13447 |
byName.put(field.getFieldName(), field);
|
|
|
13448 |
}
|
|
|
13449 |
}
|
|
|
13450 |
|
|
|
13451 |
/**
|
|
|
13452 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13453 |
*/
|
|
|
13454 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13455 |
switch(fieldId) {
|
|
|
13456 |
case 0: // SUCCESS
|
|
|
13457 |
return SUCCESS;
|
|
|
13458 |
case 1: // WEX
|
|
|
13459 |
return WEX;
|
|
|
13460 |
default:
|
|
|
13461 |
return null;
|
|
|
13462 |
}
|
|
|
13463 |
}
|
|
|
13464 |
|
|
|
13465 |
/**
|
|
|
13466 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13467 |
* if it is not found.
|
|
|
13468 |
*/
|
|
|
13469 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13470 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13471 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13472 |
return fields;
|
|
|
13473 |
}
|
|
|
13474 |
|
|
|
13475 |
/**
|
|
|
13476 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13477 |
*/
|
|
|
13478 |
public static _Fields findByName(String name) {
|
|
|
13479 |
return byName.get(name);
|
|
|
13480 |
}
|
|
|
13481 |
|
|
|
13482 |
private final short _thriftId;
|
|
|
13483 |
private final String _fieldName;
|
|
|
13484 |
|
|
|
13485 |
_Fields(short thriftId, String fieldName) {
|
|
|
13486 |
_thriftId = thriftId;
|
|
|
13487 |
_fieldName = fieldName;
|
|
|
13488 |
}
|
|
|
13489 |
|
|
|
13490 |
public short getThriftFieldId() {
|
|
|
13491 |
return _thriftId;
|
|
|
13492 |
}
|
|
|
13493 |
|
|
|
13494 |
public String getFieldName() {
|
|
|
13495 |
return _fieldName;
|
|
|
13496 |
}
|
|
|
13497 |
}
|
|
|
13498 |
|
|
|
13499 |
// isset id assignments
|
|
|
13500 |
|
|
|
13501 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13502 |
static {
|
|
|
13503 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13504 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13505 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
13506 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
|
|
|
13507 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13508 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
13509 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13510 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_result.class, metaDataMap);
|
|
|
13511 |
}
|
|
|
13512 |
|
|
|
13513 |
public getInventoryItemsFromLastScanType_result() {
|
|
|
13514 |
}
|
|
|
13515 |
|
|
|
13516 |
public getInventoryItemsFromLastScanType_result(
|
|
|
13517 |
List<InventoryItem> success,
|
|
|
13518 |
WarehouseServiceException wex)
|
|
|
13519 |
{
|
|
|
13520 |
this();
|
|
|
13521 |
this.success = success;
|
|
|
13522 |
this.wex = wex;
|
|
|
13523 |
}
|
|
|
13524 |
|
|
|
13525 |
/**
|
|
|
13526 |
* Performs a deep copy on <i>other</i>.
|
|
|
13527 |
*/
|
|
|
13528 |
public getInventoryItemsFromLastScanType_result(getInventoryItemsFromLastScanType_result other) {
|
|
|
13529 |
if (other.isSetSuccess()) {
|
|
|
13530 |
List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
|
|
|
13531 |
for (InventoryItem other_element : other.success) {
|
|
|
13532 |
__this__success.add(new InventoryItem(other_element));
|
|
|
13533 |
}
|
|
|
13534 |
this.success = __this__success;
|
|
|
13535 |
}
|
|
|
13536 |
if (other.isSetWex()) {
|
|
|
13537 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
13538 |
}
|
|
|
13539 |
}
|
|
|
13540 |
|
|
|
13541 |
public getInventoryItemsFromLastScanType_result deepCopy() {
|
|
|
13542 |
return new getInventoryItemsFromLastScanType_result(this);
|
|
|
13543 |
}
|
|
|
13544 |
|
|
|
13545 |
@Override
|
|
|
13546 |
public void clear() {
|
|
|
13547 |
this.success = null;
|
|
|
13548 |
this.wex = null;
|
|
|
13549 |
}
|
|
|
13550 |
|
|
|
13551 |
public int getSuccessSize() {
|
|
|
13552 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
13553 |
}
|
|
|
13554 |
|
|
|
13555 |
public java.util.Iterator<InventoryItem> getSuccessIterator() {
|
|
|
13556 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
13557 |
}
|
|
|
13558 |
|
|
|
13559 |
public void addToSuccess(InventoryItem elem) {
|
|
|
13560 |
if (this.success == null) {
|
|
|
13561 |
this.success = new ArrayList<InventoryItem>();
|
|
|
13562 |
}
|
|
|
13563 |
this.success.add(elem);
|
|
|
13564 |
}
|
|
|
13565 |
|
|
|
13566 |
public List<InventoryItem> getSuccess() {
|
|
|
13567 |
return this.success;
|
|
|
13568 |
}
|
|
|
13569 |
|
|
|
13570 |
public void setSuccess(List<InventoryItem> success) {
|
|
|
13571 |
this.success = success;
|
|
|
13572 |
}
|
|
|
13573 |
|
|
|
13574 |
public void unsetSuccess() {
|
|
|
13575 |
this.success = null;
|
|
|
13576 |
}
|
|
|
13577 |
|
|
|
13578 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
13579 |
public boolean isSetSuccess() {
|
|
|
13580 |
return this.success != null;
|
|
|
13581 |
}
|
|
|
13582 |
|
|
|
13583 |
public void setSuccessIsSet(boolean value) {
|
|
|
13584 |
if (!value) {
|
|
|
13585 |
this.success = null;
|
|
|
13586 |
}
|
|
|
13587 |
}
|
|
|
13588 |
|
|
|
13589 |
public WarehouseServiceException getWex() {
|
|
|
13590 |
return this.wex;
|
|
|
13591 |
}
|
|
|
13592 |
|
|
|
13593 |
public void setWex(WarehouseServiceException wex) {
|
|
|
13594 |
this.wex = wex;
|
|
|
13595 |
}
|
|
|
13596 |
|
|
|
13597 |
public void unsetWex() {
|
|
|
13598 |
this.wex = null;
|
|
|
13599 |
}
|
|
|
13600 |
|
|
|
13601 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
13602 |
public boolean isSetWex() {
|
|
|
13603 |
return this.wex != null;
|
|
|
13604 |
}
|
|
|
13605 |
|
|
|
13606 |
public void setWexIsSet(boolean value) {
|
|
|
13607 |
if (!value) {
|
|
|
13608 |
this.wex = null;
|
|
|
13609 |
}
|
|
|
13610 |
}
|
|
|
13611 |
|
|
|
13612 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13613 |
switch (field) {
|
|
|
13614 |
case SUCCESS:
|
|
|
13615 |
if (value == null) {
|
|
|
13616 |
unsetSuccess();
|
|
|
13617 |
} else {
|
|
|
13618 |
setSuccess((List<InventoryItem>)value);
|
|
|
13619 |
}
|
|
|
13620 |
break;
|
|
|
13621 |
|
|
|
13622 |
case WEX:
|
|
|
13623 |
if (value == null) {
|
|
|
13624 |
unsetWex();
|
|
|
13625 |
} else {
|
|
|
13626 |
setWex((WarehouseServiceException)value);
|
|
|
13627 |
}
|
|
|
13628 |
break;
|
|
|
13629 |
|
|
|
13630 |
}
|
|
|
13631 |
}
|
|
|
13632 |
|
|
|
13633 |
public Object getFieldValue(_Fields field) {
|
|
|
13634 |
switch (field) {
|
|
|
13635 |
case SUCCESS:
|
|
|
13636 |
return getSuccess();
|
|
|
13637 |
|
|
|
13638 |
case WEX:
|
|
|
13639 |
return getWex();
|
|
|
13640 |
|
|
|
13641 |
}
|
|
|
13642 |
throw new IllegalStateException();
|
|
|
13643 |
}
|
|
|
13644 |
|
|
|
13645 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13646 |
public boolean isSet(_Fields field) {
|
|
|
13647 |
if (field == null) {
|
|
|
13648 |
throw new IllegalArgumentException();
|
|
|
13649 |
}
|
|
|
13650 |
|
|
|
13651 |
switch (field) {
|
|
|
13652 |
case SUCCESS:
|
|
|
13653 |
return isSetSuccess();
|
|
|
13654 |
case WEX:
|
|
|
13655 |
return isSetWex();
|
|
|
13656 |
}
|
|
|
13657 |
throw new IllegalStateException();
|
|
|
13658 |
}
|
|
|
13659 |
|
|
|
13660 |
@Override
|
|
|
13661 |
public boolean equals(Object that) {
|
|
|
13662 |
if (that == null)
|
|
|
13663 |
return false;
|
|
|
13664 |
if (that instanceof getInventoryItemsFromLastScanType_result)
|
|
|
13665 |
return this.equals((getInventoryItemsFromLastScanType_result)that);
|
|
|
13666 |
return false;
|
|
|
13667 |
}
|
|
|
13668 |
|
|
|
13669 |
public boolean equals(getInventoryItemsFromLastScanType_result that) {
|
|
|
13670 |
if (that == null)
|
|
|
13671 |
return false;
|
|
|
13672 |
|
|
|
13673 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
13674 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
13675 |
if (this_present_success || that_present_success) {
|
|
|
13676 |
if (!(this_present_success && that_present_success))
|
|
|
13677 |
return false;
|
|
|
13678 |
if (!this.success.equals(that.success))
|
|
|
13679 |
return false;
|
|
|
13680 |
}
|
|
|
13681 |
|
|
|
13682 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
13683 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
13684 |
if (this_present_wex || that_present_wex) {
|
|
|
13685 |
if (!(this_present_wex && that_present_wex))
|
|
|
13686 |
return false;
|
|
|
13687 |
if (!this.wex.equals(that.wex))
|
|
|
13688 |
return false;
|
|
|
13689 |
}
|
|
|
13690 |
|
|
|
13691 |
return true;
|
|
|
13692 |
}
|
|
|
13693 |
|
|
|
13694 |
@Override
|
|
|
13695 |
public int hashCode() {
|
|
|
13696 |
return 0;
|
|
|
13697 |
}
|
|
|
13698 |
|
|
|
13699 |
public int compareTo(getInventoryItemsFromLastScanType_result other) {
|
|
|
13700 |
if (!getClass().equals(other.getClass())) {
|
|
|
13701 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13702 |
}
|
|
|
13703 |
|
|
|
13704 |
int lastComparison = 0;
|
|
|
13705 |
getInventoryItemsFromLastScanType_result typedOther = (getInventoryItemsFromLastScanType_result)other;
|
|
|
13706 |
|
|
|
13707 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
13708 |
if (lastComparison != 0) {
|
|
|
13709 |
return lastComparison;
|
|
|
13710 |
}
|
|
|
13711 |
if (isSetSuccess()) {
|
|
|
13712 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
13713 |
if (lastComparison != 0) {
|
|
|
13714 |
return lastComparison;
|
|
|
13715 |
}
|
|
|
13716 |
}
|
|
|
13717 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
13718 |
if (lastComparison != 0) {
|
|
|
13719 |
return lastComparison;
|
|
|
13720 |
}
|
|
|
13721 |
if (isSetWex()) {
|
|
|
13722 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
13723 |
if (lastComparison != 0) {
|
|
|
13724 |
return lastComparison;
|
|
|
13725 |
}
|
|
|
13726 |
}
|
|
|
13727 |
return 0;
|
|
|
13728 |
}
|
|
|
13729 |
|
|
|
13730 |
public _Fields fieldForId(int fieldId) {
|
|
|
13731 |
return _Fields.findByThriftId(fieldId);
|
|
|
13732 |
}
|
|
|
13733 |
|
|
|
13734 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13735 |
org.apache.thrift.protocol.TField field;
|
|
|
13736 |
iprot.readStructBegin();
|
|
|
13737 |
while (true)
|
|
|
13738 |
{
|
|
|
13739 |
field = iprot.readFieldBegin();
|
|
|
13740 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13741 |
break;
|
|
|
13742 |
}
|
|
|
13743 |
switch (field.id) {
|
|
|
13744 |
case 0: // SUCCESS
|
|
|
13745 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
13746 |
{
|
|
|
13747 |
org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
|
|
|
13748 |
this.success = new ArrayList<InventoryItem>(_list24.size);
|
|
|
13749 |
for (int _i25 = 0; _i25 < _list24.size; ++_i25)
|
|
|
13750 |
{
|
|
|
13751 |
InventoryItem _elem26; // required
|
|
|
13752 |
_elem26 = new InventoryItem();
|
|
|
13753 |
_elem26.read(iprot);
|
|
|
13754 |
this.success.add(_elem26);
|
|
|
13755 |
}
|
|
|
13756 |
iprot.readListEnd();
|
|
|
13757 |
}
|
|
|
13758 |
} else {
|
|
|
13759 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13760 |
}
|
|
|
13761 |
break;
|
|
|
13762 |
case 1: // WEX
|
|
|
13763 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
13764 |
this.wex = new WarehouseServiceException();
|
|
|
13765 |
this.wex.read(iprot);
|
|
|
13766 |
} else {
|
|
|
13767 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13768 |
}
|
|
|
13769 |
break;
|
|
|
13770 |
default:
|
|
|
13771 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13772 |
}
|
|
|
13773 |
iprot.readFieldEnd();
|
|
|
13774 |
}
|
|
|
13775 |
iprot.readStructEnd();
|
|
|
13776 |
validate();
|
|
|
13777 |
}
|
|
|
13778 |
|
|
|
13779 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13780 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13781 |
|
|
|
13782 |
if (this.isSetSuccess()) {
|
|
|
13783 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
13784 |
{
|
|
|
13785 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
13786 |
for (InventoryItem _iter27 : this.success)
|
|
|
13787 |
{
|
|
|
13788 |
_iter27.write(oprot);
|
|
|
13789 |
}
|
|
|
13790 |
oprot.writeListEnd();
|
|
|
13791 |
}
|
|
|
13792 |
oprot.writeFieldEnd();
|
|
|
13793 |
} else if (this.isSetWex()) {
|
|
|
13794 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
13795 |
this.wex.write(oprot);
|
|
|
13796 |
oprot.writeFieldEnd();
|
|
|
13797 |
}
|
|
|
13798 |
oprot.writeFieldStop();
|
|
|
13799 |
oprot.writeStructEnd();
|
|
|
13800 |
}
|
|
|
13801 |
|
|
|
13802 |
@Override
|
|
|
13803 |
public String toString() {
|
|
|
13804 |
StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_result(");
|
|
|
13805 |
boolean first = true;
|
|
|
13806 |
|
|
|
13807 |
sb.append("success:");
|
|
|
13808 |
if (this.success == null) {
|
|
|
13809 |
sb.append("null");
|
|
|
13810 |
} else {
|
|
|
13811 |
sb.append(this.success);
|
|
|
13812 |
}
|
|
|
13813 |
first = false;
|
|
|
13814 |
if (!first) sb.append(", ");
|
|
|
13815 |
sb.append("wex:");
|
|
|
13816 |
if (this.wex == null) {
|
|
|
13817 |
sb.append("null");
|
|
|
13818 |
} else {
|
|
|
13819 |
sb.append(this.wex);
|
|
|
13820 |
}
|
|
|
13821 |
first = false;
|
|
|
13822 |
sb.append(")");
|
|
|
13823 |
return sb.toString();
|
|
|
13824 |
}
|
|
|
13825 |
|
|
|
13826 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13827 |
// check for required fields
|
|
|
13828 |
}
|
|
|
13829 |
|
|
|
13830 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13831 |
try {
|
|
|
13832 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13833 |
} catch (org.apache.thrift.TException te) {
|
|
|
13834 |
throw new java.io.IOException(te);
|
|
|
13835 |
}
|
|
|
13836 |
}
|
|
|
13837 |
|
|
|
13838 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13839 |
try {
|
|
|
13840 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13841 |
} catch (org.apache.thrift.TException te) {
|
|
|
13842 |
throw new java.io.IOException(te);
|
|
|
13843 |
}
|
|
|
13844 |
}
|
|
|
13845 |
|
|
|
13846 |
}
|
|
|
13847 |
|
|
|
13848 |
public static class getInventoryItemFromId_args implements org.apache.thrift.TBase<getInventoryItemFromId_args, getInventoryItemFromId_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
13849 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_args");
|
|
|
13850 |
|
|
|
13851 |
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);
|
|
|
13852 |
|
|
|
13853 |
private long inventoryItemId; // required
|
|
|
13854 |
|
|
|
13855 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13856 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13857 |
INVENTORY_ITEM_ID((short)1, "inventoryItemId");
|
|
|
13858 |
|
|
|
13859 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13860 |
|
|
|
13861 |
static {
|
|
|
13862 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13863 |
byName.put(field.getFieldName(), field);
|
|
|
13864 |
}
|
|
|
13865 |
}
|
|
|
13866 |
|
|
|
13867 |
/**
|
|
|
13868 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13869 |
*/
|
|
|
13870 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13871 |
switch(fieldId) {
|
|
|
13872 |
case 1: // INVENTORY_ITEM_ID
|
|
|
13873 |
return INVENTORY_ITEM_ID;
|
|
|
13874 |
default:
|
|
|
13875 |
return null;
|
|
|
13876 |
}
|
|
|
13877 |
}
|
|
|
13878 |
|
|
|
13879 |
/**
|
|
|
13880 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13881 |
* if it is not found.
|
|
|
13882 |
*/
|
|
|
13883 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13884 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13885 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13886 |
return fields;
|
|
|
13887 |
}
|
|
|
13888 |
|
|
|
13889 |
/**
|
|
|
13890 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13891 |
*/
|
|
|
13892 |
public static _Fields findByName(String name) {
|
|
|
13893 |
return byName.get(name);
|
|
|
13894 |
}
|
|
|
13895 |
|
|
|
13896 |
private final short _thriftId;
|
|
|
13897 |
private final String _fieldName;
|
|
|
13898 |
|
|
|
13899 |
_Fields(short thriftId, String fieldName) {
|
|
|
13900 |
_thriftId = thriftId;
|
|
|
13901 |
_fieldName = fieldName;
|
|
|
13902 |
}
|
|
|
13903 |
|
|
|
13904 |
public short getThriftFieldId() {
|
|
|
13905 |
return _thriftId;
|
|
|
13906 |
}
|
|
|
13907 |
|
|
|
13908 |
public String getFieldName() {
|
|
|
13909 |
return _fieldName;
|
|
|
13910 |
}
|
|
|
13911 |
}
|
|
|
13912 |
|
|
|
13913 |
// isset id assignments
|
|
|
13914 |
private static final int __INVENTORYITEMID_ISSET_ID = 0;
|
|
|
13915 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
13916 |
|
|
|
13917 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13918 |
static {
|
|
|
13919 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13920 |
tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13921 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
13922 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13923 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_args.class, metaDataMap);
|
|
|
13924 |
}
|
|
|
13925 |
|
|
|
13926 |
public getInventoryItemFromId_args() {
|
|
|
13927 |
}
|
|
|
13928 |
|
|
|
13929 |
public getInventoryItemFromId_args(
|
|
|
13930 |
long inventoryItemId)
|
|
|
13931 |
{
|
|
|
13932 |
this();
|
|
|
13933 |
this.inventoryItemId = inventoryItemId;
|
|
|
13934 |
setInventoryItemIdIsSet(true);
|
|
|
13935 |
}
|
|
|
13936 |
|
|
|
13937 |
/**
|
|
|
13938 |
* Performs a deep copy on <i>other</i>.
|
|
|
13939 |
*/
|
|
|
13940 |
public getInventoryItemFromId_args(getInventoryItemFromId_args other) {
|
|
|
13941 |
__isset_bit_vector.clear();
|
|
|
13942 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
13943 |
this.inventoryItemId = other.inventoryItemId;
|
|
|
13944 |
}
|
|
|
13945 |
|
|
|
13946 |
public getInventoryItemFromId_args deepCopy() {
|
|
|
13947 |
return new getInventoryItemFromId_args(this);
|
|
|
13948 |
}
|
|
|
13949 |
|
|
|
13950 |
@Override
|
|
|
13951 |
public void clear() {
|
|
|
13952 |
setInventoryItemIdIsSet(false);
|
|
|
13953 |
this.inventoryItemId = 0;
|
|
|
13954 |
}
|
|
|
13955 |
|
|
|
13956 |
public long getInventoryItemId() {
|
|
|
13957 |
return this.inventoryItemId;
|
|
|
13958 |
}
|
|
|
13959 |
|
|
|
13960 |
public void setInventoryItemId(long inventoryItemId) {
|
|
|
13961 |
this.inventoryItemId = inventoryItemId;
|
|
|
13962 |
setInventoryItemIdIsSet(true);
|
|
|
13963 |
}
|
|
|
13964 |
|
|
|
13965 |
public void unsetInventoryItemId() {
|
|
|
13966 |
__isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
|
|
|
13967 |
}
|
|
|
13968 |
|
|
|
13969 |
/** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
|
|
|
13970 |
public boolean isSetInventoryItemId() {
|
|
|
13971 |
return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
|
|
|
13972 |
}
|
|
|
13973 |
|
|
|
13974 |
public void setInventoryItemIdIsSet(boolean value) {
|
|
|
13975 |
__isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
|
|
|
13976 |
}
|
|
|
13977 |
|
|
|
13978 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13979 |
switch (field) {
|
|
|
13980 |
case INVENTORY_ITEM_ID:
|
|
|
13981 |
if (value == null) {
|
|
|
13982 |
unsetInventoryItemId();
|
|
|
13983 |
} else {
|
|
|
13984 |
setInventoryItemId((Long)value);
|
|
|
13985 |
}
|
|
|
13986 |
break;
|
|
|
13987 |
|
|
|
13988 |
}
|
|
|
13989 |
}
|
|
|
13990 |
|
|
|
13991 |
public Object getFieldValue(_Fields field) {
|
|
|
13992 |
switch (field) {
|
|
|
13993 |
case INVENTORY_ITEM_ID:
|
|
|
13994 |
return Long.valueOf(getInventoryItemId());
|
|
|
13995 |
|
|
|
13996 |
}
|
|
|
13997 |
throw new IllegalStateException();
|
|
|
13998 |
}
|
|
|
13999 |
|
|
|
14000 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14001 |
public boolean isSet(_Fields field) {
|
|
|
14002 |
if (field == null) {
|
|
|
14003 |
throw new IllegalArgumentException();
|
|
|
14004 |
}
|
|
|
14005 |
|
|
|
14006 |
switch (field) {
|
|
|
14007 |
case INVENTORY_ITEM_ID:
|
|
|
14008 |
return isSetInventoryItemId();
|
|
|
14009 |
}
|
|
|
14010 |
throw new IllegalStateException();
|
|
|
14011 |
}
|
|
|
14012 |
|
|
|
14013 |
@Override
|
|
|
14014 |
public boolean equals(Object that) {
|
|
|
14015 |
if (that == null)
|
|
|
14016 |
return false;
|
|
|
14017 |
if (that instanceof getInventoryItemFromId_args)
|
|
|
14018 |
return this.equals((getInventoryItemFromId_args)that);
|
|
|
14019 |
return false;
|
|
|
14020 |
}
|
|
|
14021 |
|
|
|
14022 |
public boolean equals(getInventoryItemFromId_args that) {
|
|
|
14023 |
if (that == null)
|
|
|
14024 |
return false;
|
|
|
14025 |
|
|
|
14026 |
boolean this_present_inventoryItemId = true;
|
|
|
14027 |
boolean that_present_inventoryItemId = true;
|
|
|
14028 |
if (this_present_inventoryItemId || that_present_inventoryItemId) {
|
|
|
14029 |
if (!(this_present_inventoryItemId && that_present_inventoryItemId))
|
|
|
14030 |
return false;
|
|
|
14031 |
if (this.inventoryItemId != that.inventoryItemId)
|
|
|
14032 |
return false;
|
|
|
14033 |
}
|
|
|
14034 |
|
|
|
14035 |
return true;
|
|
|
14036 |
}
|
|
|
14037 |
|
|
|
14038 |
@Override
|
|
|
14039 |
public int hashCode() {
|
|
|
14040 |
return 0;
|
|
|
14041 |
}
|
|
|
14042 |
|
|
|
14043 |
public int compareTo(getInventoryItemFromId_args other) {
|
|
|
14044 |
if (!getClass().equals(other.getClass())) {
|
|
|
14045 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14046 |
}
|
|
|
14047 |
|
|
|
14048 |
int lastComparison = 0;
|
|
|
14049 |
getInventoryItemFromId_args typedOther = (getInventoryItemFromId_args)other;
|
|
|
14050 |
|
|
|
14051 |
lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
|
|
|
14052 |
if (lastComparison != 0) {
|
|
|
14053 |
return lastComparison;
|
|
|
14054 |
}
|
|
|
14055 |
if (isSetInventoryItemId()) {
|
|
|
14056 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
|
|
|
14057 |
if (lastComparison != 0) {
|
|
|
14058 |
return lastComparison;
|
|
|
14059 |
}
|
|
|
14060 |
}
|
|
|
14061 |
return 0;
|
|
|
14062 |
}
|
|
|
14063 |
|
|
|
14064 |
public _Fields fieldForId(int fieldId) {
|
|
|
14065 |
return _Fields.findByThriftId(fieldId);
|
|
|
14066 |
}
|
|
|
14067 |
|
|
|
14068 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14069 |
org.apache.thrift.protocol.TField field;
|
|
|
14070 |
iprot.readStructBegin();
|
|
|
14071 |
while (true)
|
|
|
14072 |
{
|
|
|
14073 |
field = iprot.readFieldBegin();
|
|
|
14074 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
14075 |
break;
|
|
|
14076 |
}
|
|
|
14077 |
switch (field.id) {
|
|
|
14078 |
case 1: // INVENTORY_ITEM_ID
|
|
|
14079 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
14080 |
this.inventoryItemId = iprot.readI64();
|
|
|
14081 |
setInventoryItemIdIsSet(true);
|
|
|
14082 |
} else {
|
|
|
14083 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14084 |
}
|
|
|
14085 |
break;
|
|
|
14086 |
default:
|
|
|
14087 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14088 |
}
|
|
|
14089 |
iprot.readFieldEnd();
|
|
|
14090 |
}
|
|
|
14091 |
iprot.readStructEnd();
|
|
|
14092 |
validate();
|
|
|
14093 |
}
|
|
|
14094 |
|
|
|
14095 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
14096 |
validate();
|
|
|
14097 |
|
|
|
14098 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
14099 |
oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
|
|
|
14100 |
oprot.writeI64(this.inventoryItemId);
|
|
|
14101 |
oprot.writeFieldEnd();
|
|
|
14102 |
oprot.writeFieldStop();
|
|
|
14103 |
oprot.writeStructEnd();
|
|
|
14104 |
}
|
|
|
14105 |
|
|
|
14106 |
@Override
|
|
|
14107 |
public String toString() {
|
|
|
14108 |
StringBuilder sb = new StringBuilder("getInventoryItemFromId_args(");
|
|
|
14109 |
boolean first = true;
|
|
|
14110 |
|
|
|
14111 |
sb.append("inventoryItemId:");
|
|
|
14112 |
sb.append(this.inventoryItemId);
|
|
|
14113 |
first = false;
|
|
|
14114 |
sb.append(")");
|
|
|
14115 |
return sb.toString();
|
|
|
14116 |
}
|
|
|
14117 |
|
|
|
14118 |
public void validate() throws org.apache.thrift.TException {
|
|
|
14119 |
// check for required fields
|
|
|
14120 |
}
|
|
|
14121 |
|
|
|
14122 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14123 |
try {
|
|
|
14124 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14125 |
} catch (org.apache.thrift.TException te) {
|
|
|
14126 |
throw new java.io.IOException(te);
|
|
|
14127 |
}
|
|
|
14128 |
}
|
|
|
14129 |
|
|
|
14130 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14131 |
try {
|
|
|
14132 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
14133 |
__isset_bit_vector = new BitSet(1);
|
|
|
14134 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14135 |
} catch (org.apache.thrift.TException te) {
|
|
|
14136 |
throw new java.io.IOException(te);
|
|
|
14137 |
}
|
|
|
14138 |
}
|
|
|
14139 |
|
|
|
14140 |
}
|
|
|
14141 |
|
|
|
14142 |
public static class getInventoryItemFromId_result implements org.apache.thrift.TBase<getInventoryItemFromId_result, getInventoryItemFromId_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
14143 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_result");
|
|
|
14144 |
|
|
|
14145 |
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);
|
|
|
14146 |
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);
|
|
|
14147 |
|
|
|
14148 |
private InventoryItem success; // required
|
|
|
14149 |
private WarehouseServiceException wex; // required
|
|
|
14150 |
|
|
|
14151 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
14152 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
14153 |
SUCCESS((short)0, "success"),
|
|
|
14154 |
WEX((short)1, "wex");
|
|
|
14155 |
|
|
|
14156 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
14157 |
|
|
|
14158 |
static {
|
|
|
14159 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
14160 |
byName.put(field.getFieldName(), field);
|
|
|
14161 |
}
|
|
|
14162 |
}
|
|
|
14163 |
|
|
|
14164 |
/**
|
|
|
14165 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
14166 |
*/
|
|
|
14167 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
14168 |
switch(fieldId) {
|
|
|
14169 |
case 0: // SUCCESS
|
|
|
14170 |
return SUCCESS;
|
|
|
14171 |
case 1: // WEX
|
|
|
14172 |
return WEX;
|
|
|
14173 |
default:
|
|
|
14174 |
return null;
|
|
|
14175 |
}
|
|
|
14176 |
}
|
|
|
14177 |
|
|
|
14178 |
/**
|
|
|
14179 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
14180 |
* if it is not found.
|
|
|
14181 |
*/
|
|
|
14182 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
14183 |
_Fields fields = findByThriftId(fieldId);
|
|
|
14184 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
14185 |
return fields;
|
|
|
14186 |
}
|
|
|
14187 |
|
|
|
14188 |
/**
|
|
|
14189 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
14190 |
*/
|
|
|
14191 |
public static _Fields findByName(String name) {
|
|
|
14192 |
return byName.get(name);
|
|
|
14193 |
}
|
|
|
14194 |
|
|
|
14195 |
private final short _thriftId;
|
|
|
14196 |
private final String _fieldName;
|
|
|
14197 |
|
|
|
14198 |
_Fields(short thriftId, String fieldName) {
|
|
|
14199 |
_thriftId = thriftId;
|
|
|
14200 |
_fieldName = fieldName;
|
|
|
14201 |
}
|
|
|
14202 |
|
|
|
14203 |
public short getThriftFieldId() {
|
|
|
14204 |
return _thriftId;
|
|
|
14205 |
}
|
|
|
14206 |
|
|
|
14207 |
public String getFieldName() {
|
|
|
14208 |
return _fieldName;
|
|
|
14209 |
}
|
|
|
14210 |
}
|
|
|
14211 |
|
|
|
14212 |
// isset id assignments
|
|
|
14213 |
|
|
|
14214 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
14215 |
static {
|
|
|
14216 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
14217 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14218 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
14219 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14220 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
14221 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
14222 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_result.class, metaDataMap);
|
|
|
14223 |
}
|
|
|
14224 |
|
|
|
14225 |
public getInventoryItemFromId_result() {
|
|
|
14226 |
}
|
|
|
14227 |
|
|
|
14228 |
public getInventoryItemFromId_result(
|
|
|
14229 |
InventoryItem success,
|
|
|
14230 |
WarehouseServiceException wex)
|
|
|
14231 |
{
|
|
|
14232 |
this();
|
|
|
14233 |
this.success = success;
|
|
|
14234 |
this.wex = wex;
|
|
|
14235 |
}
|
|
|
14236 |
|
|
|
14237 |
/**
|
|
|
14238 |
* Performs a deep copy on <i>other</i>.
|
|
|
14239 |
*/
|
|
|
14240 |
public getInventoryItemFromId_result(getInventoryItemFromId_result other) {
|
|
|
14241 |
if (other.isSetSuccess()) {
|
|
|
14242 |
this.success = new InventoryItem(other.success);
|
|
|
14243 |
}
|
|
|
14244 |
if (other.isSetWex()) {
|
|
|
14245 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
14246 |
}
|
|
|
14247 |
}
|
|
|
14248 |
|
|
|
14249 |
public getInventoryItemFromId_result deepCopy() {
|
|
|
14250 |
return new getInventoryItemFromId_result(this);
|
|
|
14251 |
}
|
|
|
14252 |
|
|
|
14253 |
@Override
|
|
|
14254 |
public void clear() {
|
|
|
14255 |
this.success = null;
|
|
|
14256 |
this.wex = null;
|
|
|
14257 |
}
|
|
|
14258 |
|
|
|
14259 |
public InventoryItem getSuccess() {
|
|
|
14260 |
return this.success;
|
|
|
14261 |
}
|
|
|
14262 |
|
|
|
14263 |
public void setSuccess(InventoryItem success) {
|
|
|
14264 |
this.success = success;
|
|
|
14265 |
}
|
|
|
14266 |
|
|
|
14267 |
public void unsetSuccess() {
|
|
|
14268 |
this.success = null;
|
|
|
14269 |
}
|
|
|
14270 |
|
|
|
14271 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
14272 |
public boolean isSetSuccess() {
|
|
|
14273 |
return this.success != null;
|
|
|
14274 |
}
|
|
|
14275 |
|
|
|
14276 |
public void setSuccessIsSet(boolean value) {
|
|
|
14277 |
if (!value) {
|
|
|
14278 |
this.success = null;
|
|
|
14279 |
}
|
|
|
14280 |
}
|
|
|
14281 |
|
|
|
14282 |
public WarehouseServiceException getWex() {
|
|
|
14283 |
return this.wex;
|
|
|
14284 |
}
|
|
|
14285 |
|
|
|
14286 |
public void setWex(WarehouseServiceException wex) {
|
|
|
14287 |
this.wex = wex;
|
|
|
14288 |
}
|
|
|
14289 |
|
|
|
14290 |
public void unsetWex() {
|
|
|
14291 |
this.wex = null;
|
|
|
14292 |
}
|
|
|
14293 |
|
|
|
14294 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
14295 |
public boolean isSetWex() {
|
|
|
14296 |
return this.wex != null;
|
|
|
14297 |
}
|
|
|
14298 |
|
|
|
14299 |
public void setWexIsSet(boolean value) {
|
|
|
14300 |
if (!value) {
|
|
|
14301 |
this.wex = null;
|
|
|
14302 |
}
|
|
|
14303 |
}
|
|
|
14304 |
|
|
|
14305 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
14306 |
switch (field) {
|
|
|
14307 |
case SUCCESS:
|
|
|
14308 |
if (value == null) {
|
|
|
14309 |
unsetSuccess();
|
|
|
14310 |
} else {
|
|
|
14311 |
setSuccess((InventoryItem)value);
|
|
|
14312 |
}
|
|
|
14313 |
break;
|
|
|
14314 |
|
|
|
14315 |
case WEX:
|
|
|
14316 |
if (value == null) {
|
|
|
14317 |
unsetWex();
|
|
|
14318 |
} else {
|
|
|
14319 |
setWex((WarehouseServiceException)value);
|
|
|
14320 |
}
|
|
|
14321 |
break;
|
|
|
14322 |
|
|
|
14323 |
}
|
|
|
14324 |
}
|
|
|
14325 |
|
|
|
14326 |
public Object getFieldValue(_Fields field) {
|
|
|
14327 |
switch (field) {
|
|
|
14328 |
case SUCCESS:
|
|
|
14329 |
return getSuccess();
|
|
|
14330 |
|
|
|
14331 |
case WEX:
|
|
|
14332 |
return getWex();
|
|
|
14333 |
|
|
|
14334 |
}
|
|
|
14335 |
throw new IllegalStateException();
|
|
|
14336 |
}
|
|
|
14337 |
|
|
|
14338 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14339 |
public boolean isSet(_Fields field) {
|
|
|
14340 |
if (field == null) {
|
|
|
14341 |
throw new IllegalArgumentException();
|
|
|
14342 |
}
|
|
|
14343 |
|
|
|
14344 |
switch (field) {
|
|
|
14345 |
case SUCCESS:
|
|
|
14346 |
return isSetSuccess();
|
|
|
14347 |
case WEX:
|
|
|
14348 |
return isSetWex();
|
|
|
14349 |
}
|
|
|
14350 |
throw new IllegalStateException();
|
|
|
14351 |
}
|
|
|
14352 |
|
|
|
14353 |
@Override
|
|
|
14354 |
public boolean equals(Object that) {
|
|
|
14355 |
if (that == null)
|
|
|
14356 |
return false;
|
|
|
14357 |
if (that instanceof getInventoryItemFromId_result)
|
|
|
14358 |
return this.equals((getInventoryItemFromId_result)that);
|
|
|
14359 |
return false;
|
|
|
14360 |
}
|
|
|
14361 |
|
|
|
14362 |
public boolean equals(getInventoryItemFromId_result that) {
|
|
|
14363 |
if (that == null)
|
|
|
14364 |
return false;
|
|
|
14365 |
|
|
|
14366 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
14367 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
14368 |
if (this_present_success || that_present_success) {
|
|
|
14369 |
if (!(this_present_success && that_present_success))
|
|
|
14370 |
return false;
|
|
|
14371 |
if (!this.success.equals(that.success))
|
|
|
14372 |
return false;
|
|
|
14373 |
}
|
|
|
14374 |
|
|
|
14375 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
14376 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
14377 |
if (this_present_wex || that_present_wex) {
|
|
|
14378 |
if (!(this_present_wex && that_present_wex))
|
|
|
14379 |
return false;
|
|
|
14380 |
if (!this.wex.equals(that.wex))
|
|
|
14381 |
return false;
|
|
|
14382 |
}
|
|
|
14383 |
|
|
|
14384 |
return true;
|
|
|
14385 |
}
|
|
|
14386 |
|
|
|
14387 |
@Override
|
|
|
14388 |
public int hashCode() {
|
|
|
14389 |
return 0;
|
|
|
14390 |
}
|
|
|
14391 |
|
|
|
14392 |
public int compareTo(getInventoryItemFromId_result other) {
|
|
|
14393 |
if (!getClass().equals(other.getClass())) {
|
|
|
14394 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14395 |
}
|
|
|
14396 |
|
|
|
14397 |
int lastComparison = 0;
|
|
|
14398 |
getInventoryItemFromId_result typedOther = (getInventoryItemFromId_result)other;
|
|
|
14399 |
|
|
|
14400 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
14401 |
if (lastComparison != 0) {
|
|
|
14402 |
return lastComparison;
|
|
|
14403 |
}
|
|
|
14404 |
if (isSetSuccess()) {
|
|
|
14405 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
14406 |
if (lastComparison != 0) {
|
|
|
14407 |
return lastComparison;
|
|
|
14408 |
}
|
|
|
14409 |
}
|
|
|
14410 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
14411 |
if (lastComparison != 0) {
|
|
|
14412 |
return lastComparison;
|
|
|
14413 |
}
|
|
|
14414 |
if (isSetWex()) {
|
|
|
14415 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
14416 |
if (lastComparison != 0) {
|
|
|
14417 |
return lastComparison;
|
|
|
14418 |
}
|
|
|
14419 |
}
|
|
|
14420 |
return 0;
|
|
|
14421 |
}
|
|
|
14422 |
|
|
|
14423 |
public _Fields fieldForId(int fieldId) {
|
|
|
14424 |
return _Fields.findByThriftId(fieldId);
|
|
|
14425 |
}
|
|
|
14426 |
|
|
|
14427 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14428 |
org.apache.thrift.protocol.TField field;
|
|
|
14429 |
iprot.readStructBegin();
|
|
|
14430 |
while (true)
|
|
|
14431 |
{
|
|
|
14432 |
field = iprot.readFieldBegin();
|
|
|
14433 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
14434 |
break;
|
|
|
14435 |
}
|
|
|
14436 |
switch (field.id) {
|
|
|
14437 |
case 0: // SUCCESS
|
|
|
14438 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
14439 |
this.success = new InventoryItem();
|
|
|
14440 |
this.success.read(iprot);
|
|
|
14441 |
} else {
|
|
|
14442 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14443 |
}
|
|
|
14444 |
break;
|
|
|
14445 |
case 1: // WEX
|
|
|
14446 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
14447 |
this.wex = new WarehouseServiceException();
|
|
|
14448 |
this.wex.read(iprot);
|
|
|
14449 |
} else {
|
|
|
14450 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14451 |
}
|
|
|
14452 |
break;
|
|
|
14453 |
default:
|
|
|
14454 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14455 |
}
|
|
|
14456 |
iprot.readFieldEnd();
|
|
|
14457 |
}
|
|
|
14458 |
iprot.readStructEnd();
|
|
|
14459 |
validate();
|
|
|
14460 |
}
|
|
|
14461 |
|
|
|
14462 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
14463 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
14464 |
|
|
|
14465 |
if (this.isSetSuccess()) {
|
|
|
14466 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
14467 |
this.success.write(oprot);
|
|
|
14468 |
oprot.writeFieldEnd();
|
|
|
14469 |
} else if (this.isSetWex()) {
|
|
|
14470 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
14471 |
this.wex.write(oprot);
|
|
|
14472 |
oprot.writeFieldEnd();
|
|
|
14473 |
}
|
|
|
14474 |
oprot.writeFieldStop();
|
|
|
14475 |
oprot.writeStructEnd();
|
|
|
14476 |
}
|
|
|
14477 |
|
|
|
14478 |
@Override
|
|
|
14479 |
public String toString() {
|
|
|
14480 |
StringBuilder sb = new StringBuilder("getInventoryItemFromId_result(");
|
|
|
14481 |
boolean first = true;
|
|
|
14482 |
|
|
|
14483 |
sb.append("success:");
|
|
|
14484 |
if (this.success == null) {
|
|
|
14485 |
sb.append("null");
|
|
|
14486 |
} else {
|
|
|
14487 |
sb.append(this.success);
|
|
|
14488 |
}
|
|
|
14489 |
first = false;
|
|
|
14490 |
if (!first) sb.append(", ");
|
|
|
14491 |
sb.append("wex:");
|
|
|
14492 |
if (this.wex == null) {
|
|
|
14493 |
sb.append("null");
|
|
|
14494 |
} else {
|
|
|
14495 |
sb.append(this.wex);
|
|
|
14496 |
}
|
|
|
14497 |
first = false;
|
|
|
14498 |
sb.append(")");
|
|
|
14499 |
return sb.toString();
|
|
|
14500 |
}
|
|
|
14501 |
|
|
|
14502 |
public void validate() throws org.apache.thrift.TException {
|
|
|
14503 |
// check for required fields
|
|
|
14504 |
}
|
|
|
14505 |
|
|
|
14506 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14507 |
try {
|
|
|
14508 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14509 |
} catch (org.apache.thrift.TException te) {
|
|
|
14510 |
throw new java.io.IOException(te);
|
|
|
14511 |
}
|
|
|
14512 |
}
|
|
|
14513 |
|
|
|
14514 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14515 |
try {
|
|
|
14516 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14517 |
} catch (org.apache.thrift.TException te) {
|
|
|
14518 |
throw new java.io.IOException(te);
|
|
|
14519 |
}
|
|
|
14520 |
}
|
|
|
14521 |
|
|
|
14522 |
}
|
|
|
14523 |
|
| 2820 |
chandransh |
14524 |
}
|