| 2820 |
chandransh |
1 |
/**
|
| 3430 |
rajveer |
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
| 2820 |
chandransh |
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.warehouse;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
| 3430 |
rajveer |
18 |
import java.nio.ByteBuffer;
|
| 2820 |
chandransh |
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class WarehouseService {
|
|
|
24 |
|
| 3374 |
rajveer |
25 |
public interface Iface extends in.shop2020.generic.GenericService.Iface {
|
| 2820 |
chandransh |
26 |
|
|
|
27 |
/**
|
| 4496 |
mandeep.dh |
28 |
* Retrieves serialized inventory item given a serial number
|
| 2832 |
chandransh |
29 |
*
|
| 4496 |
mandeep.dh |
30 |
* @param serialNumber
|
| 2832 |
chandransh |
31 |
*/
|
| 4541 |
mandeep.dh |
32 |
public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2832 |
chandransh |
33 |
|
|
|
34 |
/**
|
| 5361 |
mandeep.dh |
35 |
* Retrieves non-serialized inventory item from a given supplier
|
| 2820 |
chandransh |
36 |
*
|
| 4496 |
mandeep.dh |
37 |
* @param itemId
|
| 5361 |
mandeep.dh |
38 |
* @param warehouseId
|
| 2820 |
chandransh |
39 |
*/
|
| 5361 |
mandeep.dh |
40 |
public InventoryItem getNonSeralizedInventoryItem(long itemId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
41 |
|
|
|
42 |
/**
|
| 4496 |
mandeep.dh |
43 |
* Scan serialized items.
|
|
|
44 |
*
|
| 5110 |
mandeep.dh |
45 |
* @param inventoryItem
|
| 2820 |
chandransh |
46 |
* @param type
|
| 5361 |
mandeep.dh |
47 |
* @param billingWarehouseId
|
| 2820 |
chandransh |
48 |
*/
|
| 5361 |
mandeep.dh |
49 |
public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
50 |
|
|
|
51 |
/**
|
| 4496 |
mandeep.dh |
52 |
* Scan non-serialized items.
|
| 2820 |
chandransh |
53 |
*
|
| 5361 |
mandeep.dh |
54 |
* @param inventoryItem
|
| 2820 |
chandransh |
55 |
* @param type
|
| 4496 |
mandeep.dh |
56 |
* @param quantity
|
| 5361 |
mandeep.dh |
57 |
* @param billingWarehouseId
|
| 2820 |
chandransh |
58 |
*/
|
| 5361 |
mandeep.dh |
59 |
public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
60 |
|
| 4496 |
mandeep.dh |
61 |
/**
|
|
|
62 |
* Scan serialized items linked with an order. Returns its price.
|
|
|
63 |
*
|
| 4555 |
mandeep.dh |
64 |
* @param serialNumber
|
| 4496 |
mandeep.dh |
65 |
* @param type
|
|
|
66 |
* @param orderId
|
| 5110 |
mandeep.dh |
67 |
* @param fulfilmentWarehouseId
|
|
|
68 |
* @param quantity
|
|
|
69 |
* @param billingWarehouseId
|
| 4496 |
mandeep.dh |
70 |
*/
|
| 5110 |
mandeep.dh |
71 |
public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 4496 |
mandeep.dh |
72 |
|
|
|
73 |
/**
|
|
|
74 |
* Scan non-serialized items linked with an order.
|
|
|
75 |
*
|
| 5361 |
mandeep.dh |
76 |
* @param inventoryItem
|
| 4496 |
mandeep.dh |
77 |
* @param type
|
|
|
78 |
* @param quantity
|
|
|
79 |
* @param orderId
|
| 5110 |
mandeep.dh |
80 |
* @param fulfilmentWarehouseId
|
| 5361 |
mandeep.dh |
81 |
* @param billingWarehouseId
|
| 4496 |
mandeep.dh |
82 |
*/
|
| 5361 |
mandeep.dh |
83 |
public InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 4496 |
mandeep.dh |
84 |
|
|
|
85 |
/**
|
|
|
86 |
* Created item number to item id mapping
|
|
|
87 |
*
|
|
|
88 |
* @param itemNumber
|
|
|
89 |
* @param itemId
|
|
|
90 |
*/
|
|
|
91 |
public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException;
|
|
|
92 |
|
| 4622 |
amit.gupta |
93 |
/**
|
|
|
94 |
* Get itemNumber mappings for itemId
|
|
|
95 |
*
|
|
|
96 |
* @param itemId
|
|
|
97 |
*/
|
|
|
98 |
public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException;
|
|
|
99 |
|
| 5110 |
mandeep.dh |
100 |
/**
|
|
|
101 |
* Gets item ids for a given item number
|
|
|
102 |
*
|
|
|
103 |
* @param itemNumber
|
|
|
104 |
*/
|
|
|
105 |
public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException;
|
|
|
106 |
|
| 5185 |
mandeep.dh |
107 |
/**
|
|
|
108 |
* Retrieves all inventory items given a last scan type
|
|
|
109 |
*
|
|
|
110 |
* @param lastScanType
|
|
|
111 |
*/
|
|
|
112 |
public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
113 |
|
|
|
114 |
/**
|
|
|
115 |
* Retrieves inventory item given a inventoryItem id
|
|
|
116 |
*
|
|
|
117 |
* @param inventoryItemId
|
|
|
118 |
*/
|
|
|
119 |
public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
120 |
|
| 5372 |
mandeep.dh |
121 |
/**
|
|
|
122 |
* Returns the purchase scans grouped by items for Purchase register reconciliation
|
|
|
123 |
*
|
|
|
124 |
* @param startDate
|
|
|
125 |
* @param endDate
|
|
|
126 |
*/
|
|
|
127 |
public List<DetailedPurchaseScan> getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException;
|
|
|
128 |
|
| 2820 |
chandransh |
129 |
}
|
|
|
130 |
|
| 3430 |
rajveer |
131 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
|
|
132 |
|
| 4496 |
mandeep.dh |
133 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
134 |
|
| 5361 |
mandeep.dh |
135 |
public void getNonSeralizedInventoryItem(long itemId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
136 |
|
| 5361 |
mandeep.dh |
137 |
public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
138 |
|
| 5361 |
mandeep.dh |
139 |
public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scan_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
140 |
|
| 5110 |
mandeep.dh |
141 |
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 |
142 |
|
| 5361 |
mandeep.dh |
143 |
public void scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOrder_call> resultHandler) throws org.apache.thrift.TException;
|
| 4496 |
mandeep.dh |
144 |
|
|
|
145 |
public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
146 |
|
| 4622 |
amit.gupta |
147 |
public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
148 |
|
| 5110 |
mandeep.dh |
149 |
public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemIds_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
150 |
|
| 5185 |
mandeep.dh |
151 |
public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
152 |
|
|
|
153 |
public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
154 |
|
| 5372 |
mandeep.dh |
155 |
public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
156 |
|
| 3430 |
rajveer |
157 |
}
|
|
|
158 |
|
| 3374 |
rajveer |
159 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 3430 |
rajveer |
160 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
|
|
161 |
public Factory() {}
|
|
|
162 |
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
|
|
|
163 |
return new Client(prot);
|
|
|
164 |
}
|
|
|
165 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
166 |
return new Client(iprot, oprot);
|
|
|
167 |
}
|
|
|
168 |
}
|
|
|
169 |
|
|
|
170 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
| 2820 |
chandransh |
171 |
{
|
| 3430 |
rajveer |
172 |
super(prot, prot);
|
| 2820 |
chandransh |
173 |
}
|
|
|
174 |
|
| 3430 |
rajveer |
175 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
| 3374 |
rajveer |
176 |
super(iprot, oprot);
|
| 2820 |
chandransh |
177 |
}
|
|
|
178 |
|
| 4541 |
mandeep.dh |
179 |
public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2832 |
chandransh |
180 |
{
|
| 4496 |
mandeep.dh |
181 |
send_getInventoryItem(serialNumber);
|
|
|
182 |
return recv_getInventoryItem();
|
| 2832 |
chandransh |
183 |
}
|
|
|
184 |
|
| 4496 |
mandeep.dh |
185 |
public void send_getInventoryItem(String serialNumber) throws org.apache.thrift.TException
|
| 2832 |
chandransh |
186 |
{
|
| 4496 |
mandeep.dh |
187 |
getInventoryItem_args args = new getInventoryItem_args();
|
|
|
188 |
args.setSerialNumber(serialNumber);
|
|
|
189 |
sendBase("getInventoryItem", args);
|
| 2832 |
chandransh |
190 |
}
|
|
|
191 |
|
| 4541 |
mandeep.dh |
192 |
public InventoryItem recv_getInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2832 |
chandransh |
193 |
{
|
| 4496 |
mandeep.dh |
194 |
getInventoryItem_result result = new getInventoryItem_result();
|
|
|
195 |
receiveBase(result, "getInventoryItem");
|
| 2832 |
chandransh |
196 |
if (result.isSetSuccess()) {
|
|
|
197 |
return result.success;
|
|
|
198 |
}
|
| 4541 |
mandeep.dh |
199 |
if (result.wex != null) {
|
|
|
200 |
throw result.wex;
|
|
|
201 |
}
|
| 4496 |
mandeep.dh |
202 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
|
|
|
203 |
}
|
|
|
204 |
|
| 5361 |
mandeep.dh |
205 |
public InventoryItem getNonSeralizedInventoryItem(long itemId, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
206 |
{
|
| 5361 |
mandeep.dh |
207 |
send_getNonSeralizedInventoryItem(itemId, warehouseId);
|
|
|
208 |
return recv_getNonSeralizedInventoryItem();
|
| 4496 |
mandeep.dh |
209 |
}
|
|
|
210 |
|
| 5361 |
mandeep.dh |
211 |
public void send_getNonSeralizedInventoryItem(long itemId, long warehouseId) throws org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
212 |
{
|
| 5361 |
mandeep.dh |
213 |
getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
|
| 4496 |
mandeep.dh |
214 |
args.setItemId(itemId);
|
| 5361 |
mandeep.dh |
215 |
args.setWarehouseId(warehouseId);
|
|
|
216 |
sendBase("getNonSeralizedInventoryItem", args);
|
| 4496 |
mandeep.dh |
217 |
}
|
|
|
218 |
|
| 5361 |
mandeep.dh |
219 |
public InventoryItem recv_getNonSeralizedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
220 |
{
|
| 5361 |
mandeep.dh |
221 |
getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
|
|
|
222 |
receiveBase(result, "getNonSeralizedInventoryItem");
|
| 4496 |
mandeep.dh |
223 |
if (result.isSetSuccess()) {
|
|
|
224 |
return result.success;
|
| 2832 |
chandransh |
225 |
}
|
| 5361 |
mandeep.dh |
226 |
if (result.wex != null) {
|
|
|
227 |
throw result.wex;
|
| 2820 |
chandransh |
228 |
}
|
| 5361 |
mandeep.dh |
229 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
|
| 4496 |
mandeep.dh |
230 |
}
|
|
|
231 |
|
| 5361 |
mandeep.dh |
232 |
public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
233 |
{
|
| 5361 |
mandeep.dh |
234 |
send_scanSerializedItem(inventoryItem, type, billingWarehouseId);
|
| 4496 |
mandeep.dh |
235 |
recv_scanSerializedItem();
|
|
|
236 |
}
|
|
|
237 |
|
| 5361 |
mandeep.dh |
238 |
public void send_scanSerializedItem(InventoryItem inventoryItem, ScanType type, long billingWarehouseId) throws org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
239 |
{
|
|
|
240 |
scanSerializedItem_args args = new scanSerializedItem_args();
|
| 5110 |
mandeep.dh |
241 |
args.setInventoryItem(inventoryItem);
|
| 4496 |
mandeep.dh |
242 |
args.setType(type);
|
| 5361 |
mandeep.dh |
243 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
244 |
sendBase("scanSerializedItem", args);
|
|
|
245 |
}
|
|
|
246 |
|
|
|
247 |
public void recv_scanSerializedItem() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
248 |
{
|
|
|
249 |
scanSerializedItem_result result = new scanSerializedItem_result();
|
|
|
250 |
receiveBase(result, "scanSerializedItem");
|
| 2820 |
chandransh |
251 |
if (result.wex != null) {
|
|
|
252 |
throw result.wex;
|
|
|
253 |
}
|
| 4496 |
mandeep.dh |
254 |
return;
|
| 2820 |
chandransh |
255 |
}
|
|
|
256 |
|
| 5361 |
mandeep.dh |
257 |
public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
258 |
{
|
| 5361 |
mandeep.dh |
259 |
send_scan(inventoryItem, type, quantity, billingWarehouseId);
|
| 4496 |
mandeep.dh |
260 |
recv_scan();
|
| 3383 |
chandransh |
261 |
}
|
|
|
262 |
|
| 5361 |
mandeep.dh |
263 |
public void send_scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws org.apache.thrift.TException
|
| 3383 |
chandransh |
264 |
{
|
| 4496 |
mandeep.dh |
265 |
scan_args args = new scan_args();
|
| 5361 |
mandeep.dh |
266 |
args.setInventoryItem(inventoryItem);
|
| 4496 |
mandeep.dh |
267 |
args.setType(type);
|
|
|
268 |
args.setQuantity(quantity);
|
| 5361 |
mandeep.dh |
269 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
270 |
sendBase("scan", args);
|
| 3383 |
chandransh |
271 |
}
|
|
|
272 |
|
| 4496 |
mandeep.dh |
273 |
public void recv_scan() throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
274 |
{
|
| 4496 |
mandeep.dh |
275 |
scan_result result = new scan_result();
|
|
|
276 |
receiveBase(result, "scan");
|
|
|
277 |
if (result.wex != null) {
|
|
|
278 |
throw result.wex;
|
|
|
279 |
}
|
|
|
280 |
return;
|
|
|
281 |
}
|
|
|
282 |
|
| 5110 |
mandeep.dh |
283 |
public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
284 |
{
|
| 5110 |
mandeep.dh |
285 |
send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId);
|
| 4496 |
mandeep.dh |
286 |
return recv_scanSerializedItemForOrder();
|
|
|
287 |
}
|
|
|
288 |
|
| 5110 |
mandeep.dh |
289 |
public void send_scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
290 |
{
|
|
|
291 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
| 4555 |
mandeep.dh |
292 |
args.setSerialNumber(serialNumber);
|
| 4496 |
mandeep.dh |
293 |
args.setType(type);
|
|
|
294 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
295 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
|
|
296 |
args.setQuantity(quantity);
|
|
|
297 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
298 |
sendBase("scanSerializedItemForOrder", args);
|
|
|
299 |
}
|
|
|
300 |
|
| 4555 |
mandeep.dh |
301 |
public InventoryItem recv_scanSerializedItemForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
302 |
{
|
|
|
303 |
scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
|
|
|
304 |
receiveBase(result, "scanSerializedItemForOrder");
|
| 3383 |
chandransh |
305 |
if (result.isSetSuccess()) {
|
|
|
306 |
return result.success;
|
|
|
307 |
}
|
|
|
308 |
if (result.wex != null) {
|
|
|
309 |
throw result.wex;
|
|
|
310 |
}
|
| 4496 |
mandeep.dh |
311 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
|
| 3383 |
chandransh |
312 |
}
|
|
|
313 |
|
| 5361 |
mandeep.dh |
314 |
public InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
315 |
{
|
| 5361 |
mandeep.dh |
316 |
send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId);
|
|
|
317 |
return recv_scanForOrder();
|
| 2820 |
chandransh |
318 |
}
|
|
|
319 |
|
| 5361 |
mandeep.dh |
320 |
public void send_scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
321 |
{
|
| 4496 |
mandeep.dh |
322 |
scanForOrder_args args = new scanForOrder_args();
|
| 5361 |
mandeep.dh |
323 |
args.setInventoryItem(inventoryItem);
|
| 3430 |
rajveer |
324 |
args.setType(type);
|
| 4496 |
mandeep.dh |
325 |
args.setQuantity(quantity);
|
|
|
326 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
327 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
328 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
329 |
sendBase("scanForOrder", args);
|
| 2820 |
chandransh |
330 |
}
|
|
|
331 |
|
| 5361 |
mandeep.dh |
332 |
public InventoryItem recv_scanForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
333 |
{
|
| 4496 |
mandeep.dh |
334 |
scanForOrder_result result = new scanForOrder_result();
|
|
|
335 |
receiveBase(result, "scanForOrder");
|
| 5361 |
mandeep.dh |
336 |
if (result.isSetSuccess()) {
|
|
|
337 |
return result.success;
|
|
|
338 |
}
|
| 2820 |
chandransh |
339 |
if (result.wex != null) {
|
|
|
340 |
throw result.wex;
|
|
|
341 |
}
|
| 5361 |
mandeep.dh |
342 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
|
| 2820 |
chandransh |
343 |
}
|
|
|
344 |
|
| 4496 |
mandeep.dh |
345 |
public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
346 |
{
|
| 4496 |
mandeep.dh |
347 |
send_createItemNumberMapping(itemNumber, itemId);
|
|
|
348 |
recv_createItemNumberMapping();
|
| 2820 |
chandransh |
349 |
}
|
|
|
350 |
|
| 4496 |
mandeep.dh |
351 |
public void send_createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
352 |
{
|
| 4496 |
mandeep.dh |
353 |
createItemNumberMapping_args args = new createItemNumberMapping_args();
|
| 3430 |
rajveer |
354 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
355 |
args.setItemId(itemId);
|
|
|
356 |
sendBase("createItemNumberMapping", args);
|
| 2820 |
chandransh |
357 |
}
|
|
|
358 |
|
| 4496 |
mandeep.dh |
359 |
public void recv_createItemNumberMapping() throws org.apache.thrift.TException
|
| 2820 |
chandransh |
360 |
{
|
| 4496 |
mandeep.dh |
361 |
createItemNumberMapping_result result = new createItemNumberMapping_result();
|
|
|
362 |
receiveBase(result, "createItemNumberMapping");
|
| 2820 |
chandransh |
363 |
return;
|
|
|
364 |
}
|
|
|
365 |
|
| 4622 |
amit.gupta |
366 |
public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException
|
|
|
367 |
{
|
|
|
368 |
send_getItemNumbers(itemId);
|
|
|
369 |
return recv_getItemNumbers();
|
|
|
370 |
}
|
|
|
371 |
|
|
|
372 |
public void send_getItemNumbers(long itemId) throws org.apache.thrift.TException
|
|
|
373 |
{
|
|
|
374 |
getItemNumbers_args args = new getItemNumbers_args();
|
|
|
375 |
args.setItemId(itemId);
|
|
|
376 |
sendBase("getItemNumbers", args);
|
|
|
377 |
}
|
|
|
378 |
|
|
|
379 |
public List<String> recv_getItemNumbers() throws org.apache.thrift.TException
|
|
|
380 |
{
|
|
|
381 |
getItemNumbers_result result = new getItemNumbers_result();
|
|
|
382 |
receiveBase(result, "getItemNumbers");
|
|
|
383 |
if (result.isSetSuccess()) {
|
|
|
384 |
return result.success;
|
|
|
385 |
}
|
|
|
386 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
|
|
|
387 |
}
|
|
|
388 |
|
| 5110 |
mandeep.dh |
389 |
public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException
|
|
|
390 |
{
|
|
|
391 |
send_getItemIds(itemNumber);
|
|
|
392 |
return recv_getItemIds();
|
|
|
393 |
}
|
|
|
394 |
|
|
|
395 |
public void send_getItemIds(String itemNumber) throws org.apache.thrift.TException
|
|
|
396 |
{
|
|
|
397 |
getItemIds_args args = new getItemIds_args();
|
|
|
398 |
args.setItemNumber(itemNumber);
|
|
|
399 |
sendBase("getItemIds", args);
|
|
|
400 |
}
|
|
|
401 |
|
|
|
402 |
public List<Long> recv_getItemIds() throws org.apache.thrift.TException
|
|
|
403 |
{
|
|
|
404 |
getItemIds_result result = new getItemIds_result();
|
|
|
405 |
receiveBase(result, "getItemIds");
|
|
|
406 |
if (result.isSetSuccess()) {
|
|
|
407 |
return result.success;
|
|
|
408 |
}
|
|
|
409 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
|
|
|
410 |
}
|
|
|
411 |
|
| 5185 |
mandeep.dh |
412 |
public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
413 |
{
|
|
|
414 |
send_getInventoryItemsFromLastScanType(lastScanType);
|
|
|
415 |
return recv_getInventoryItemsFromLastScanType();
|
|
|
416 |
}
|
|
|
417 |
|
|
|
418 |
public void send_getInventoryItemsFromLastScanType(ScanType lastScanType) throws org.apache.thrift.TException
|
|
|
419 |
{
|
|
|
420 |
getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
|
|
|
421 |
args.setLastScanType(lastScanType);
|
|
|
422 |
sendBase("getInventoryItemsFromLastScanType", args);
|
|
|
423 |
}
|
|
|
424 |
|
|
|
425 |
public List<InventoryItem> recv_getInventoryItemsFromLastScanType() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
426 |
{
|
|
|
427 |
getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
|
|
|
428 |
receiveBase(result, "getInventoryItemsFromLastScanType");
|
|
|
429 |
if (result.isSetSuccess()) {
|
|
|
430 |
return result.success;
|
|
|
431 |
}
|
|
|
432 |
if (result.wex != null) {
|
|
|
433 |
throw result.wex;
|
|
|
434 |
}
|
|
|
435 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
|
|
|
436 |
}
|
|
|
437 |
|
|
|
438 |
public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
439 |
{
|
|
|
440 |
send_getInventoryItemFromId(inventoryItemId);
|
|
|
441 |
return recv_getInventoryItemFromId();
|
|
|
442 |
}
|
|
|
443 |
|
|
|
444 |
public void send_getInventoryItemFromId(long inventoryItemId) throws org.apache.thrift.TException
|
|
|
445 |
{
|
|
|
446 |
getInventoryItemFromId_args args = new getInventoryItemFromId_args();
|
|
|
447 |
args.setInventoryItemId(inventoryItemId);
|
|
|
448 |
sendBase("getInventoryItemFromId", args);
|
|
|
449 |
}
|
|
|
450 |
|
|
|
451 |
public InventoryItem recv_getInventoryItemFromId() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
452 |
{
|
|
|
453 |
getInventoryItemFromId_result result = new getInventoryItemFromId_result();
|
|
|
454 |
receiveBase(result, "getInventoryItemFromId");
|
|
|
455 |
if (result.isSetSuccess()) {
|
|
|
456 |
return result.success;
|
|
|
457 |
}
|
|
|
458 |
if (result.wex != null) {
|
|
|
459 |
throw result.wex;
|
|
|
460 |
}
|
|
|
461 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
|
|
|
462 |
}
|
|
|
463 |
|
| 5372 |
mandeep.dh |
464 |
public List<DetailedPurchaseScan> getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
465 |
{
|
|
|
466 |
send_getPurchaseScans(startDate, endDate);
|
|
|
467 |
return recv_getPurchaseScans();
|
|
|
468 |
}
|
|
|
469 |
|
|
|
470 |
public void send_getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
471 |
{
|
|
|
472 |
getPurchaseScans_args args = new getPurchaseScans_args();
|
|
|
473 |
args.setStartDate(startDate);
|
|
|
474 |
args.setEndDate(endDate);
|
|
|
475 |
sendBase("getPurchaseScans", args);
|
|
|
476 |
}
|
|
|
477 |
|
|
|
478 |
public List<DetailedPurchaseScan> recv_getPurchaseScans() throws org.apache.thrift.TException
|
|
|
479 |
{
|
|
|
480 |
getPurchaseScans_result result = new getPurchaseScans_result();
|
|
|
481 |
receiveBase(result, "getPurchaseScans");
|
|
|
482 |
if (result.isSetSuccess()) {
|
|
|
483 |
return result.success;
|
|
|
484 |
}
|
|
|
485 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
|
|
|
486 |
}
|
|
|
487 |
|
| 2820 |
chandransh |
488 |
}
|
| 3430 |
rajveer |
489 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
|
|
490 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
491 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
492 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
493 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
494 |
this.clientManager = clientManager;
|
|
|
495 |
this.protocolFactory = protocolFactory;
|
|
|
496 |
}
|
|
|
497 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
498 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
499 |
}
|
| 2820 |
chandransh |
500 |
}
|
|
|
501 |
|
| 3430 |
rajveer |
502 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
503 |
super(protocolFactory, clientManager, transport);
|
|
|
504 |
}
|
| 2820 |
chandransh |
505 |
|
| 4496 |
mandeep.dh |
506 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
507 |
checkReady();
|
| 4496 |
mandeep.dh |
508 |
getInventoryItem_call method_call = new getInventoryItem_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
509 |
this.___currentMethod = method_call;
|
|
|
510 |
___manager.call(method_call);
|
|
|
511 |
}
|
|
|
512 |
|
| 4496 |
mandeep.dh |
513 |
public static class getInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
514 |
private String serialNumber;
|
|
|
515 |
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 |
516 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4496 |
mandeep.dh |
517 |
this.serialNumber = serialNumber;
|
| 3430 |
rajveer |
518 |
}
|
|
|
519 |
|
|
|
520 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
521 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
522 |
getInventoryItem_args args = new getInventoryItem_args();
|
|
|
523 |
args.setSerialNumber(serialNumber);
|
| 3430 |
rajveer |
524 |
args.write(prot);
|
|
|
525 |
prot.writeMessageEnd();
|
|
|
526 |
}
|
|
|
527 |
|
| 4541 |
mandeep.dh |
528 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 3430 |
rajveer |
529 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
530 |
throw new IllegalStateException("Method call not finished!");
|
|
|
531 |
}
|
|
|
532 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
533 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
534 |
return (new Client(prot)).recv_getInventoryItem();
|
| 3430 |
rajveer |
535 |
}
|
|
|
536 |
}
|
|
|
537 |
|
| 5361 |
mandeep.dh |
538 |
public void getNonSeralizedInventoryItem(long itemId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
539 |
checkReady();
|
| 5361 |
mandeep.dh |
540 |
getNonSeralizedInventoryItem_call method_call = new getNonSeralizedInventoryItem_call(itemId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
541 |
this.___currentMethod = method_call;
|
|
|
542 |
___manager.call(method_call);
|
|
|
543 |
}
|
|
|
544 |
|
| 5361 |
mandeep.dh |
545 |
public static class getNonSeralizedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 4496 |
mandeep.dh |
546 |
private long itemId;
|
| 5361 |
mandeep.dh |
547 |
private long warehouseId;
|
|
|
548 |
public getNonSeralizedInventoryItem_call(long itemId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
549 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4496 |
mandeep.dh |
550 |
this.itemId = itemId;
|
| 5361 |
mandeep.dh |
551 |
this.warehouseId = warehouseId;
|
| 3430 |
rajveer |
552 |
}
|
|
|
553 |
|
|
|
554 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 5361 |
mandeep.dh |
555 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
556 |
getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
|
| 4496 |
mandeep.dh |
557 |
args.setItemId(itemId);
|
| 5361 |
mandeep.dh |
558 |
args.setWarehouseId(warehouseId);
|
| 3430 |
rajveer |
559 |
args.write(prot);
|
|
|
560 |
prot.writeMessageEnd();
|
|
|
561 |
}
|
|
|
562 |
|
| 5361 |
mandeep.dh |
563 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 3430 |
rajveer |
564 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
565 |
throw new IllegalStateException("Method call not finished!");
|
|
|
566 |
}
|
|
|
567 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
568 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 5361 |
mandeep.dh |
569 |
return (new Client(prot)).recv_getNonSeralizedInventoryItem();
|
| 3430 |
rajveer |
570 |
}
|
|
|
571 |
}
|
|
|
572 |
|
| 5361 |
mandeep.dh |
573 |
public void scanSerializedItem(InventoryItem inventoryItem, ScanType type, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
574 |
checkReady();
|
| 5361 |
mandeep.dh |
575 |
scanSerializedItem_call method_call = new scanSerializedItem_call(inventoryItem, type, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
576 |
this.___currentMethod = method_call;
|
|
|
577 |
___manager.call(method_call);
|
|
|
578 |
}
|
|
|
579 |
|
| 4496 |
mandeep.dh |
580 |
public static class scanSerializedItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5110 |
mandeep.dh |
581 |
private InventoryItem inventoryItem;
|
| 3430 |
rajveer |
582 |
private ScanType type;
|
| 5361 |
mandeep.dh |
583 |
private long billingWarehouseId;
|
|
|
584 |
public scanSerializedItem_call(InventoryItem inventoryItem, ScanType type, long billingWarehouseId, 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 |
585 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5110 |
mandeep.dh |
586 |
this.inventoryItem = inventoryItem;
|
| 3430 |
rajveer |
587 |
this.type = type;
|
| 5361 |
mandeep.dh |
588 |
this.billingWarehouseId = billingWarehouseId;
|
| 3430 |
rajveer |
589 |
}
|
|
|
590 |
|
|
|
591 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
592 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
593 |
scanSerializedItem_args args = new scanSerializedItem_args();
|
| 5110 |
mandeep.dh |
594 |
args.setInventoryItem(inventoryItem);
|
| 3430 |
rajveer |
595 |
args.setType(type);
|
| 5361 |
mandeep.dh |
596 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 3430 |
rajveer |
597 |
args.write(prot);
|
|
|
598 |
prot.writeMessageEnd();
|
|
|
599 |
}
|
|
|
600 |
|
|
|
601 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
602 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
603 |
throw new IllegalStateException("Method call not finished!");
|
|
|
604 |
}
|
|
|
605 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
606 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
607 |
(new Client(prot)).recv_scanSerializedItem();
|
| 3430 |
rajveer |
608 |
}
|
|
|
609 |
}
|
|
|
610 |
|
| 5361 |
mandeep.dh |
611 |
public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scan_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
612 |
checkReady();
|
| 5361 |
mandeep.dh |
613 |
scan_call method_call = new scan_call(inventoryItem, type, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
614 |
this.___currentMethod = method_call;
|
|
|
615 |
___manager.call(method_call);
|
|
|
616 |
}
|
|
|
617 |
|
| 4496 |
mandeep.dh |
618 |
public static class scan_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5361 |
mandeep.dh |
619 |
private InventoryItem inventoryItem;
|
| 3430 |
rajveer |
620 |
private ScanType type;
|
| 4496 |
mandeep.dh |
621 |
private long quantity;
|
| 5361 |
mandeep.dh |
622 |
private long billingWarehouseId;
|
|
|
623 |
public scan_call(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scan_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
624 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5361 |
mandeep.dh |
625 |
this.inventoryItem = inventoryItem;
|
| 3430 |
rajveer |
626 |
this.type = type;
|
| 4496 |
mandeep.dh |
627 |
this.quantity = quantity;
|
| 5361 |
mandeep.dh |
628 |
this.billingWarehouseId = billingWarehouseId;
|
| 3430 |
rajveer |
629 |
}
|
|
|
630 |
|
|
|
631 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
632 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scan", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
633 |
scan_args args = new scan_args();
|
| 5361 |
mandeep.dh |
634 |
args.setInventoryItem(inventoryItem);
|
| 3430 |
rajveer |
635 |
args.setType(type);
|
| 4496 |
mandeep.dh |
636 |
args.setQuantity(quantity);
|
| 5361 |
mandeep.dh |
637 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 3430 |
rajveer |
638 |
args.write(prot);
|
|
|
639 |
prot.writeMessageEnd();
|
|
|
640 |
}
|
|
|
641 |
|
|
|
642 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
643 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
644 |
throw new IllegalStateException("Method call not finished!");
|
|
|
645 |
}
|
|
|
646 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
647 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
648 |
(new Client(prot)).recv_scan();
|
| 3430 |
rajveer |
649 |
}
|
|
|
650 |
}
|
|
|
651 |
|
| 5110 |
mandeep.dh |
652 |
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 |
653 |
checkReady();
|
| 5110 |
mandeep.dh |
654 |
scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 4496 |
mandeep.dh |
655 |
this.___currentMethod = method_call;
|
|
|
656 |
___manager.call(method_call);
|
|
|
657 |
}
|
|
|
658 |
|
|
|
659 |
public static class scanSerializedItemForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 4555 |
mandeep.dh |
660 |
private String serialNumber;
|
| 4496 |
mandeep.dh |
661 |
private ScanType type;
|
|
|
662 |
private long orderId;
|
| 5110 |
mandeep.dh |
663 |
private long fulfilmentWarehouseId;
|
|
|
664 |
private double quantity;
|
|
|
665 |
private long billingWarehouseId;
|
|
|
666 |
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 |
667 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4555 |
mandeep.dh |
668 |
this.serialNumber = serialNumber;
|
| 4496 |
mandeep.dh |
669 |
this.type = type;
|
|
|
670 |
this.orderId = orderId;
|
| 5110 |
mandeep.dh |
671 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
672 |
this.quantity = quantity;
|
|
|
673 |
this.billingWarehouseId = billingWarehouseId;
|
| 4496 |
mandeep.dh |
674 |
}
|
|
|
675 |
|
|
|
676 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
677 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItemForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
678 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
| 4555 |
mandeep.dh |
679 |
args.setSerialNumber(serialNumber);
|
| 4496 |
mandeep.dh |
680 |
args.setType(type);
|
|
|
681 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
682 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
|
|
683 |
args.setQuantity(quantity);
|
|
|
684 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
685 |
args.write(prot);
|
|
|
686 |
prot.writeMessageEnd();
|
|
|
687 |
}
|
|
|
688 |
|
| 4555 |
mandeep.dh |
689 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
690 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
691 |
throw new IllegalStateException("Method call not finished!");
|
|
|
692 |
}
|
|
|
693 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
694 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
695 |
return (new Client(prot)).recv_scanSerializedItemForOrder();
|
|
|
696 |
}
|
|
|
697 |
}
|
|
|
698 |
|
| 5361 |
mandeep.dh |
699 |
public void scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_call> resultHandler) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
700 |
checkReady();
|
| 5361 |
mandeep.dh |
701 |
scanForOrder_call method_call = new scanForOrder_call(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 4496 |
mandeep.dh |
702 |
this.___currentMethod = method_call;
|
|
|
703 |
___manager.call(method_call);
|
|
|
704 |
}
|
|
|
705 |
|
|
|
706 |
public static class scanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5361 |
mandeep.dh |
707 |
private InventoryItem inventoryItem;
|
| 4496 |
mandeep.dh |
708 |
private ScanType type;
|
|
|
709 |
private long quantity;
|
|
|
710 |
private long orderId;
|
| 5110 |
mandeep.dh |
711 |
private long fulfilmentWarehouseId;
|
| 5361 |
mandeep.dh |
712 |
private long billingWarehouseId;
|
|
|
713 |
public scanForOrder_call(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
714 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5361 |
mandeep.dh |
715 |
this.inventoryItem = inventoryItem;
|
| 4496 |
mandeep.dh |
716 |
this.type = type;
|
|
|
717 |
this.quantity = quantity;
|
|
|
718 |
this.orderId = orderId;
|
| 5110 |
mandeep.dh |
719 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| 5361 |
mandeep.dh |
720 |
this.billingWarehouseId = billingWarehouseId;
|
| 4496 |
mandeep.dh |
721 |
}
|
|
|
722 |
|
|
|
723 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
724 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
725 |
scanForOrder_args args = new scanForOrder_args();
|
| 5361 |
mandeep.dh |
726 |
args.setInventoryItem(inventoryItem);
|
| 4496 |
mandeep.dh |
727 |
args.setType(type);
|
|
|
728 |
args.setQuantity(quantity);
|
|
|
729 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
730 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
731 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
732 |
args.write(prot);
|
|
|
733 |
prot.writeMessageEnd();
|
|
|
734 |
}
|
|
|
735 |
|
| 5361 |
mandeep.dh |
736 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
737 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
738 |
throw new IllegalStateException("Method call not finished!");
|
|
|
739 |
}
|
|
|
740 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
741 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 5361 |
mandeep.dh |
742 |
return (new Client(prot)).recv_scanForOrder();
|
| 4496 |
mandeep.dh |
743 |
}
|
|
|
744 |
}
|
|
|
745 |
|
|
|
746 |
public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
747 |
checkReady();
|
|
|
748 |
createItemNumberMapping_call method_call = new createItemNumberMapping_call(itemNumber, itemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
749 |
this.___currentMethod = method_call;
|
|
|
750 |
___manager.call(method_call);
|
|
|
751 |
}
|
|
|
752 |
|
|
|
753 |
public static class createItemNumberMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
754 |
private String itemNumber;
|
|
|
755 |
private long itemId;
|
|
|
756 |
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 {
|
|
|
757 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
758 |
this.itemNumber = itemNumber;
|
|
|
759 |
this.itemId = itemId;
|
|
|
760 |
}
|
|
|
761 |
|
|
|
762 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
763 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createItemNumberMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
764 |
createItemNumberMapping_args args = new createItemNumberMapping_args();
|
|
|
765 |
args.setItemNumber(itemNumber);
|
|
|
766 |
args.setItemId(itemId);
|
|
|
767 |
args.write(prot);
|
|
|
768 |
prot.writeMessageEnd();
|
|
|
769 |
}
|
|
|
770 |
|
|
|
771 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
772 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
773 |
throw new IllegalStateException("Method call not finished!");
|
|
|
774 |
}
|
|
|
775 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
776 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
777 |
(new Client(prot)).recv_createItemNumberMapping();
|
|
|
778 |
}
|
|
|
779 |
}
|
|
|
780 |
|
| 4622 |
amit.gupta |
781 |
public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemNumbers_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
782 |
checkReady();
|
|
|
783 |
getItemNumbers_call method_call = new getItemNumbers_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
784 |
this.___currentMethod = method_call;
|
|
|
785 |
___manager.call(method_call);
|
|
|
786 |
}
|
|
|
787 |
|
|
|
788 |
public static class getItemNumbers_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
789 |
private long itemId;
|
|
|
790 |
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 {
|
|
|
791 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
792 |
this.itemId = itemId;
|
|
|
793 |
}
|
|
|
794 |
|
|
|
795 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
796 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemNumbers", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
797 |
getItemNumbers_args args = new getItemNumbers_args();
|
|
|
798 |
args.setItemId(itemId);
|
|
|
799 |
args.write(prot);
|
|
|
800 |
prot.writeMessageEnd();
|
|
|
801 |
}
|
|
|
802 |
|
|
|
803 |
public List<String> getResult() throws org.apache.thrift.TException {
|
|
|
804 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
805 |
throw new IllegalStateException("Method call not finished!");
|
|
|
806 |
}
|
|
|
807 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
808 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
809 |
return (new Client(prot)).recv_getItemNumbers();
|
|
|
810 |
}
|
|
|
811 |
}
|
|
|
812 |
|
| 5110 |
mandeep.dh |
813 |
public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<getItemIds_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
814 |
checkReady();
|
|
|
815 |
getItemIds_call method_call = new getItemIds_call(itemNumber, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
816 |
this.___currentMethod = method_call;
|
|
|
817 |
___manager.call(method_call);
|
|
|
818 |
}
|
|
|
819 |
|
|
|
820 |
public static class getItemIds_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
821 |
private String itemNumber;
|
|
|
822 |
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 {
|
|
|
823 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
824 |
this.itemNumber = itemNumber;
|
|
|
825 |
}
|
|
|
826 |
|
|
|
827 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
828 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
829 |
getItemIds_args args = new getItemIds_args();
|
|
|
830 |
args.setItemNumber(itemNumber);
|
|
|
831 |
args.write(prot);
|
|
|
832 |
prot.writeMessageEnd();
|
|
|
833 |
}
|
|
|
834 |
|
|
|
835 |
public List<Long> getResult() throws org.apache.thrift.TException {
|
|
|
836 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
837 |
throw new IllegalStateException("Method call not finished!");
|
|
|
838 |
}
|
|
|
839 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
840 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
841 |
return (new Client(prot)).recv_getItemIds();
|
|
|
842 |
}
|
|
|
843 |
}
|
|
|
844 |
|
| 5185 |
mandeep.dh |
845 |
public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
846 |
checkReady();
|
|
|
847 |
getInventoryItemsFromLastScanType_call method_call = new getInventoryItemsFromLastScanType_call(lastScanType, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
848 |
this.___currentMethod = method_call;
|
|
|
849 |
___manager.call(method_call);
|
|
|
850 |
}
|
|
|
851 |
|
|
|
852 |
public static class getInventoryItemsFromLastScanType_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
853 |
private ScanType lastScanType;
|
|
|
854 |
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 {
|
|
|
855 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
856 |
this.lastScanType = lastScanType;
|
|
|
857 |
}
|
|
|
858 |
|
|
|
859 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
860 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemsFromLastScanType", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
861 |
getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
|
|
|
862 |
args.setLastScanType(lastScanType);
|
|
|
863 |
args.write(prot);
|
|
|
864 |
prot.writeMessageEnd();
|
|
|
865 |
}
|
|
|
866 |
|
|
|
867 |
public List<InventoryItem> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
868 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
869 |
throw new IllegalStateException("Method call not finished!");
|
|
|
870 |
}
|
|
|
871 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
872 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
873 |
return (new Client(prot)).recv_getInventoryItemsFromLastScanType();
|
|
|
874 |
}
|
|
|
875 |
}
|
|
|
876 |
|
|
|
877 |
public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
878 |
checkReady();
|
|
|
879 |
getInventoryItemFromId_call method_call = new getInventoryItemFromId_call(inventoryItemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
880 |
this.___currentMethod = method_call;
|
|
|
881 |
___manager.call(method_call);
|
|
|
882 |
}
|
|
|
883 |
|
|
|
884 |
public static class getInventoryItemFromId_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
885 |
private long inventoryItemId;
|
|
|
886 |
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 {
|
|
|
887 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
888 |
this.inventoryItemId = inventoryItemId;
|
|
|
889 |
}
|
|
|
890 |
|
|
|
891 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
892 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromId", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
893 |
getInventoryItemFromId_args args = new getInventoryItemFromId_args();
|
|
|
894 |
args.setInventoryItemId(inventoryItemId);
|
|
|
895 |
args.write(prot);
|
|
|
896 |
prot.writeMessageEnd();
|
|
|
897 |
}
|
|
|
898 |
|
|
|
899 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
900 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
901 |
throw new IllegalStateException("Method call not finished!");
|
|
|
902 |
}
|
|
|
903 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
904 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
905 |
return (new Client(prot)).recv_getInventoryItemFromId();
|
|
|
906 |
}
|
|
|
907 |
}
|
|
|
908 |
|
| 5372 |
mandeep.dh |
909 |
public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
910 |
checkReady();
|
|
|
911 |
getPurchaseScans_call method_call = new getPurchaseScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
912 |
this.___currentMethod = method_call;
|
|
|
913 |
___manager.call(method_call);
|
|
|
914 |
}
|
|
|
915 |
|
|
|
916 |
public static class getPurchaseScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
917 |
private long startDate;
|
|
|
918 |
private long endDate;
|
|
|
919 |
public getPurchaseScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScans_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
920 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
921 |
this.startDate = startDate;
|
|
|
922 |
this.endDate = endDate;
|
|
|
923 |
}
|
|
|
924 |
|
|
|
925 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
926 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
927 |
getPurchaseScans_args args = new getPurchaseScans_args();
|
|
|
928 |
args.setStartDate(startDate);
|
|
|
929 |
args.setEndDate(endDate);
|
|
|
930 |
args.write(prot);
|
|
|
931 |
prot.writeMessageEnd();
|
|
|
932 |
}
|
|
|
933 |
|
|
|
934 |
public List<DetailedPurchaseScan> getResult() throws org.apache.thrift.TException {
|
|
|
935 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
936 |
throw new IllegalStateException("Method call not finished!");
|
|
|
937 |
}
|
|
|
938 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
939 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
940 |
return (new Client(prot)).recv_getPurchaseScans();
|
|
|
941 |
}
|
|
|
942 |
}
|
|
|
943 |
|
| 3430 |
rajveer |
944 |
}
|
|
|
945 |
|
|
|
946 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
|
|
947 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
948 |
public Processor(I iface) {
|
|
|
949 |
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
|
|
|
950 |
}
|
|
|
951 |
|
|
|
952 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
953 |
super(iface, getProcessMap(processMap));
|
|
|
954 |
}
|
|
|
955 |
|
|
|
956 |
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 |
957 |
processMap.put("getInventoryItem", new getInventoryItem());
|
| 5361 |
mandeep.dh |
958 |
processMap.put("getNonSeralizedInventoryItem", new getNonSeralizedInventoryItem());
|
| 4496 |
mandeep.dh |
959 |
processMap.put("scanSerializedItem", new scanSerializedItem());
|
|
|
960 |
processMap.put("scan", new scan());
|
|
|
961 |
processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
|
|
|
962 |
processMap.put("scanForOrder", new scanForOrder());
|
|
|
963 |
processMap.put("createItemNumberMapping", new createItemNumberMapping());
|
| 4622 |
amit.gupta |
964 |
processMap.put("getItemNumbers", new getItemNumbers());
|
| 5110 |
mandeep.dh |
965 |
processMap.put("getItemIds", new getItemIds());
|
| 5185 |
mandeep.dh |
966 |
processMap.put("getInventoryItemsFromLastScanType", new getInventoryItemsFromLastScanType());
|
|
|
967 |
processMap.put("getInventoryItemFromId", new getInventoryItemFromId());
|
| 5372 |
mandeep.dh |
968 |
processMap.put("getPurchaseScans", new getPurchaseScans());
|
| 3430 |
rajveer |
969 |
return processMap;
|
|
|
970 |
}
|
|
|
971 |
|
| 4496 |
mandeep.dh |
972 |
private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
|
|
|
973 |
public getInventoryItem() {
|
|
|
974 |
super("getInventoryItem");
|
| 3430 |
rajveer |
975 |
}
|
|
|
976 |
|
| 4496 |
mandeep.dh |
977 |
protected getInventoryItem_args getEmptyArgsInstance() {
|
|
|
978 |
return new getInventoryItem_args();
|
| 3430 |
rajveer |
979 |
}
|
|
|
980 |
|
| 4496 |
mandeep.dh |
981 |
protected getInventoryItem_result getResult(I iface, getInventoryItem_args args) throws org.apache.thrift.TException {
|
|
|
982 |
getInventoryItem_result result = new getInventoryItem_result();
|
| 4541 |
mandeep.dh |
983 |
try {
|
|
|
984 |
result.success = iface.getInventoryItem(args.serialNumber);
|
|
|
985 |
} catch (WarehouseServiceException wex) {
|
|
|
986 |
result.wex = wex;
|
|
|
987 |
}
|
| 3430 |
rajveer |
988 |
return result;
|
| 2832 |
chandransh |
989 |
}
|
|
|
990 |
}
|
|
|
991 |
|
| 5361 |
mandeep.dh |
992 |
private static class getNonSeralizedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonSeralizedInventoryItem_args> {
|
|
|
993 |
public getNonSeralizedInventoryItem() {
|
|
|
994 |
super("getNonSeralizedInventoryItem");
|
| 3430 |
rajveer |
995 |
}
|
|
|
996 |
|
| 5361 |
mandeep.dh |
997 |
protected getNonSeralizedInventoryItem_args getEmptyArgsInstance() {
|
|
|
998 |
return new getNonSeralizedInventoryItem_args();
|
| 3430 |
rajveer |
999 |
}
|
|
|
1000 |
|
| 5361 |
mandeep.dh |
1001 |
protected getNonSeralizedInventoryItem_result getResult(I iface, getNonSeralizedInventoryItem_args args) throws org.apache.thrift.TException {
|
|
|
1002 |
getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
|
|
|
1003 |
try {
|
|
|
1004 |
result.success = iface.getNonSeralizedInventoryItem(args.itemId, args.warehouseId);
|
|
|
1005 |
} catch (WarehouseServiceException wex) {
|
|
|
1006 |
result.wex = wex;
|
|
|
1007 |
}
|
| 3430 |
rajveer |
1008 |
return result;
|
| 2820 |
chandransh |
1009 |
}
|
|
|
1010 |
}
|
|
|
1011 |
|
| 4496 |
mandeep.dh |
1012 |
private static class scanSerializedItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItem_args> {
|
|
|
1013 |
public scanSerializedItem() {
|
|
|
1014 |
super("scanSerializedItem");
|
|
|
1015 |
}
|
|
|
1016 |
|
|
|
1017 |
protected scanSerializedItem_args getEmptyArgsInstance() {
|
|
|
1018 |
return new scanSerializedItem_args();
|
|
|
1019 |
}
|
|
|
1020 |
|
|
|
1021 |
protected scanSerializedItem_result getResult(I iface, scanSerializedItem_args args) throws org.apache.thrift.TException {
|
|
|
1022 |
scanSerializedItem_result result = new scanSerializedItem_result();
|
| 2820 |
chandransh |
1023 |
try {
|
| 5361 |
mandeep.dh |
1024 |
iface.scanSerializedItem(args.inventoryItem, args.type, args.billingWarehouseId);
|
| 2820 |
chandransh |
1025 |
} catch (WarehouseServiceException wex) {
|
|
|
1026 |
result.wex = wex;
|
|
|
1027 |
}
|
| 3430 |
rajveer |
1028 |
return result;
|
| 2820 |
chandransh |
1029 |
}
|
|
|
1030 |
}
|
|
|
1031 |
|
| 4496 |
mandeep.dh |
1032 |
private static class scan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scan_args> {
|
|
|
1033 |
public scan() {
|
|
|
1034 |
super("scan");
|
| 3430 |
rajveer |
1035 |
}
|
|
|
1036 |
|
| 4496 |
mandeep.dh |
1037 |
protected scan_args getEmptyArgsInstance() {
|
|
|
1038 |
return new scan_args();
|
| 3430 |
rajveer |
1039 |
}
|
|
|
1040 |
|
| 4496 |
mandeep.dh |
1041 |
protected scan_result getResult(I iface, scan_args args) throws org.apache.thrift.TException {
|
|
|
1042 |
scan_result result = new scan_result();
|
| 3383 |
chandransh |
1043 |
try {
|
| 5361 |
mandeep.dh |
1044 |
iface.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId);
|
| 3383 |
chandransh |
1045 |
} catch (WarehouseServiceException wex) {
|
|
|
1046 |
result.wex = wex;
|
|
|
1047 |
}
|
| 3430 |
rajveer |
1048 |
return result;
|
| 3383 |
chandransh |
1049 |
}
|
|
|
1050 |
}
|
|
|
1051 |
|
| 4496 |
mandeep.dh |
1052 |
private static class scanSerializedItemForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItemForOrder_args> {
|
|
|
1053 |
public scanSerializedItemForOrder() {
|
|
|
1054 |
super("scanSerializedItemForOrder");
|
| 3430 |
rajveer |
1055 |
}
|
|
|
1056 |
|
| 4496 |
mandeep.dh |
1057 |
protected scanSerializedItemForOrder_args getEmptyArgsInstance() {
|
|
|
1058 |
return new scanSerializedItemForOrder_args();
|
| 3430 |
rajveer |
1059 |
}
|
|
|
1060 |
|
| 4496 |
mandeep.dh |
1061 |
protected scanSerializedItemForOrder_result getResult(I iface, scanSerializedItemForOrder_args args) throws org.apache.thrift.TException {
|
|
|
1062 |
scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
|
| 2820 |
chandransh |
1063 |
try {
|
| 5110 |
mandeep.dh |
1064 |
result.success = iface.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId);
|
| 2820 |
chandransh |
1065 |
} catch (WarehouseServiceException wex) {
|
|
|
1066 |
result.wex = wex;
|
|
|
1067 |
}
|
| 3430 |
rajveer |
1068 |
return result;
|
| 2820 |
chandransh |
1069 |
}
|
|
|
1070 |
}
|
|
|
1071 |
|
| 4496 |
mandeep.dh |
1072 |
private static class scanForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOrder_args> {
|
|
|
1073 |
public scanForOrder() {
|
|
|
1074 |
super("scanForOrder");
|
| 3430 |
rajveer |
1075 |
}
|
|
|
1076 |
|
| 4496 |
mandeep.dh |
1077 |
protected scanForOrder_args getEmptyArgsInstance() {
|
|
|
1078 |
return new scanForOrder_args();
|
| 3430 |
rajveer |
1079 |
}
|
|
|
1080 |
|
| 4496 |
mandeep.dh |
1081 |
protected scanForOrder_result getResult(I iface, scanForOrder_args args) throws org.apache.thrift.TException {
|
|
|
1082 |
scanForOrder_result result = new scanForOrder_result();
|
| 2820 |
chandransh |
1083 |
try {
|
| 5361 |
mandeep.dh |
1084 |
result.success = iface.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId);
|
| 2820 |
chandransh |
1085 |
} catch (WarehouseServiceException wex) {
|
|
|
1086 |
result.wex = wex;
|
|
|
1087 |
}
|
| 3430 |
rajveer |
1088 |
return result;
|
| 2820 |
chandransh |
1089 |
}
|
|
|
1090 |
}
|
|
|
1091 |
|
| 4496 |
mandeep.dh |
1092 |
private static class createItemNumberMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createItemNumberMapping_args> {
|
|
|
1093 |
public createItemNumberMapping() {
|
|
|
1094 |
super("createItemNumberMapping");
|
|
|
1095 |
}
|
|
|
1096 |
|
|
|
1097 |
protected createItemNumberMapping_args getEmptyArgsInstance() {
|
|
|
1098 |
return new createItemNumberMapping_args();
|
|
|
1099 |
}
|
|
|
1100 |
|
|
|
1101 |
protected createItemNumberMapping_result getResult(I iface, createItemNumberMapping_args args) throws org.apache.thrift.TException {
|
|
|
1102 |
createItemNumberMapping_result result = new createItemNumberMapping_result();
|
|
|
1103 |
iface.createItemNumberMapping(args.itemNumber, args.itemId);
|
|
|
1104 |
return result;
|
|
|
1105 |
}
|
|
|
1106 |
}
|
|
|
1107 |
|
| 4622 |
amit.gupta |
1108 |
private static class getItemNumbers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemNumbers_args> {
|
|
|
1109 |
public getItemNumbers() {
|
|
|
1110 |
super("getItemNumbers");
|
|
|
1111 |
}
|
|
|
1112 |
|
|
|
1113 |
protected getItemNumbers_args getEmptyArgsInstance() {
|
|
|
1114 |
return new getItemNumbers_args();
|
|
|
1115 |
}
|
|
|
1116 |
|
|
|
1117 |
protected getItemNumbers_result getResult(I iface, getItemNumbers_args args) throws org.apache.thrift.TException {
|
|
|
1118 |
getItemNumbers_result result = new getItemNumbers_result();
|
|
|
1119 |
result.success = iface.getItemNumbers(args.itemId);
|
|
|
1120 |
return result;
|
|
|
1121 |
}
|
|
|
1122 |
}
|
|
|
1123 |
|
| 5110 |
mandeep.dh |
1124 |
private static class getItemIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemIds_args> {
|
|
|
1125 |
public getItemIds() {
|
|
|
1126 |
super("getItemIds");
|
|
|
1127 |
}
|
|
|
1128 |
|
|
|
1129 |
protected getItemIds_args getEmptyArgsInstance() {
|
|
|
1130 |
return new getItemIds_args();
|
|
|
1131 |
}
|
|
|
1132 |
|
|
|
1133 |
protected getItemIds_result getResult(I iface, getItemIds_args args) throws org.apache.thrift.TException {
|
|
|
1134 |
getItemIds_result result = new getItemIds_result();
|
|
|
1135 |
result.success = iface.getItemIds(args.itemNumber);
|
|
|
1136 |
return result;
|
|
|
1137 |
}
|
|
|
1138 |
}
|
|
|
1139 |
|
| 5185 |
mandeep.dh |
1140 |
private static class getInventoryItemsFromLastScanType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemsFromLastScanType_args> {
|
|
|
1141 |
public getInventoryItemsFromLastScanType() {
|
|
|
1142 |
super("getInventoryItemsFromLastScanType");
|
|
|
1143 |
}
|
|
|
1144 |
|
|
|
1145 |
protected getInventoryItemsFromLastScanType_args getEmptyArgsInstance() {
|
|
|
1146 |
return new getInventoryItemsFromLastScanType_args();
|
|
|
1147 |
}
|
|
|
1148 |
|
|
|
1149 |
protected getInventoryItemsFromLastScanType_result getResult(I iface, getInventoryItemsFromLastScanType_args args) throws org.apache.thrift.TException {
|
|
|
1150 |
getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
|
|
|
1151 |
try {
|
|
|
1152 |
result.success = iface.getInventoryItemsFromLastScanType(args.lastScanType);
|
|
|
1153 |
} catch (WarehouseServiceException wex) {
|
|
|
1154 |
result.wex = wex;
|
|
|
1155 |
}
|
|
|
1156 |
return result;
|
|
|
1157 |
}
|
|
|
1158 |
}
|
|
|
1159 |
|
|
|
1160 |
private static class getInventoryItemFromId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromId_args> {
|
|
|
1161 |
public getInventoryItemFromId() {
|
|
|
1162 |
super("getInventoryItemFromId");
|
|
|
1163 |
}
|
|
|
1164 |
|
|
|
1165 |
protected getInventoryItemFromId_args getEmptyArgsInstance() {
|
|
|
1166 |
return new getInventoryItemFromId_args();
|
|
|
1167 |
}
|
|
|
1168 |
|
|
|
1169 |
protected getInventoryItemFromId_result getResult(I iface, getInventoryItemFromId_args args) throws org.apache.thrift.TException {
|
|
|
1170 |
getInventoryItemFromId_result result = new getInventoryItemFromId_result();
|
|
|
1171 |
try {
|
|
|
1172 |
result.success = iface.getInventoryItemFromId(args.inventoryItemId);
|
|
|
1173 |
} catch (WarehouseServiceException wex) {
|
|
|
1174 |
result.wex = wex;
|
|
|
1175 |
}
|
|
|
1176 |
return result;
|
|
|
1177 |
}
|
|
|
1178 |
}
|
|
|
1179 |
|
| 5372 |
mandeep.dh |
1180 |
private static class getPurchaseScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseScans_args> {
|
|
|
1181 |
public getPurchaseScans() {
|
|
|
1182 |
super("getPurchaseScans");
|
|
|
1183 |
}
|
|
|
1184 |
|
|
|
1185 |
protected getPurchaseScans_args getEmptyArgsInstance() {
|
|
|
1186 |
return new getPurchaseScans_args();
|
|
|
1187 |
}
|
|
|
1188 |
|
|
|
1189 |
protected getPurchaseScans_result getResult(I iface, getPurchaseScans_args args) throws org.apache.thrift.TException {
|
|
|
1190 |
getPurchaseScans_result result = new getPurchaseScans_result();
|
|
|
1191 |
result.success = iface.getPurchaseScans(args.startDate, args.endDate);
|
|
|
1192 |
return result;
|
|
|
1193 |
}
|
|
|
1194 |
}
|
|
|
1195 |
|
| 2820 |
chandransh |
1196 |
}
|
|
|
1197 |
|
| 4496 |
mandeep.dh |
1198 |
public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
1199 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
|
| 2832 |
chandransh |
1200 |
|
| 4496 |
mandeep.dh |
1201 |
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 |
1202 |
|
| 4496 |
mandeep.dh |
1203 |
private String serialNumber; // required
|
| 2832 |
chandransh |
1204 |
|
|
|
1205 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1206 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
1207 |
SERIAL_NUMBER((short)1, "serialNumber");
|
| 2832 |
chandransh |
1208 |
|
|
|
1209 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1210 |
|
|
|
1211 |
static {
|
|
|
1212 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1213 |
byName.put(field.getFieldName(), field);
|
|
|
1214 |
}
|
|
|
1215 |
}
|
|
|
1216 |
|
|
|
1217 |
/**
|
|
|
1218 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1219 |
*/
|
|
|
1220 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1221 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
1222 |
case 1: // SERIAL_NUMBER
|
|
|
1223 |
return SERIAL_NUMBER;
|
| 3430 |
rajveer |
1224 |
default:
|
|
|
1225 |
return null;
|
|
|
1226 |
}
|
| 2832 |
chandransh |
1227 |
}
|
|
|
1228 |
|
|
|
1229 |
/**
|
|
|
1230 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1231 |
* if it is not found.
|
|
|
1232 |
*/
|
|
|
1233 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1234 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1235 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1236 |
return fields;
|
|
|
1237 |
}
|
|
|
1238 |
|
|
|
1239 |
/**
|
|
|
1240 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1241 |
*/
|
|
|
1242 |
public static _Fields findByName(String name) {
|
|
|
1243 |
return byName.get(name);
|
|
|
1244 |
}
|
|
|
1245 |
|
|
|
1246 |
private final short _thriftId;
|
|
|
1247 |
private final String _fieldName;
|
|
|
1248 |
|
|
|
1249 |
_Fields(short thriftId, String fieldName) {
|
|
|
1250 |
_thriftId = thriftId;
|
|
|
1251 |
_fieldName = fieldName;
|
|
|
1252 |
}
|
|
|
1253 |
|
|
|
1254 |
public short getThriftFieldId() {
|
|
|
1255 |
return _thriftId;
|
|
|
1256 |
}
|
|
|
1257 |
|
|
|
1258 |
public String getFieldName() {
|
|
|
1259 |
return _fieldName;
|
|
|
1260 |
}
|
|
|
1261 |
}
|
|
|
1262 |
|
|
|
1263 |
// isset id assignments
|
|
|
1264 |
|
| 3430 |
rajveer |
1265 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2832 |
chandransh |
1266 |
static {
|
| 3430 |
rajveer |
1267 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
1268 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1269 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 3430 |
rajveer |
1270 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
1271 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_args.class, metaDataMap);
|
| 2832 |
chandransh |
1272 |
}
|
|
|
1273 |
|
| 4496 |
mandeep.dh |
1274 |
public getInventoryItem_args() {
|
| 2832 |
chandransh |
1275 |
}
|
|
|
1276 |
|
| 4496 |
mandeep.dh |
1277 |
public getInventoryItem_args(
|
|
|
1278 |
String serialNumber)
|
| 2832 |
chandransh |
1279 |
{
|
|
|
1280 |
this();
|
| 4496 |
mandeep.dh |
1281 |
this.serialNumber = serialNumber;
|
| 2832 |
chandransh |
1282 |
}
|
|
|
1283 |
|
|
|
1284 |
/**
|
|
|
1285 |
* Performs a deep copy on <i>other</i>.
|
|
|
1286 |
*/
|
| 4496 |
mandeep.dh |
1287 |
public getInventoryItem_args(getInventoryItem_args other) {
|
|
|
1288 |
if (other.isSetSerialNumber()) {
|
|
|
1289 |
this.serialNumber = other.serialNumber;
|
|
|
1290 |
}
|
| 2832 |
chandransh |
1291 |
}
|
|
|
1292 |
|
| 4496 |
mandeep.dh |
1293 |
public getInventoryItem_args deepCopy() {
|
|
|
1294 |
return new getInventoryItem_args(this);
|
| 2832 |
chandransh |
1295 |
}
|
|
|
1296 |
|
| 3430 |
rajveer |
1297 |
@Override
|
|
|
1298 |
public void clear() {
|
| 4496 |
mandeep.dh |
1299 |
this.serialNumber = null;
|
| 2832 |
chandransh |
1300 |
}
|
|
|
1301 |
|
| 4496 |
mandeep.dh |
1302 |
public String getSerialNumber() {
|
|
|
1303 |
return this.serialNumber;
|
| 2832 |
chandransh |
1304 |
}
|
|
|
1305 |
|
| 4496 |
mandeep.dh |
1306 |
public void setSerialNumber(String serialNumber) {
|
|
|
1307 |
this.serialNumber = serialNumber;
|
| 2832 |
chandransh |
1308 |
}
|
|
|
1309 |
|
| 4496 |
mandeep.dh |
1310 |
public void unsetSerialNumber() {
|
|
|
1311 |
this.serialNumber = null;
|
| 2832 |
chandransh |
1312 |
}
|
|
|
1313 |
|
| 4496 |
mandeep.dh |
1314 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
1315 |
public boolean isSetSerialNumber() {
|
|
|
1316 |
return this.serialNumber != null;
|
| 2832 |
chandransh |
1317 |
}
|
|
|
1318 |
|
| 4496 |
mandeep.dh |
1319 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
1320 |
if (!value) {
|
|
|
1321 |
this.serialNumber = null;
|
|
|
1322 |
}
|
| 2832 |
chandransh |
1323 |
}
|
|
|
1324 |
|
|
|
1325 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1326 |
switch (field) {
|
| 4496 |
mandeep.dh |
1327 |
case SERIAL_NUMBER:
|
| 2832 |
chandransh |
1328 |
if (value == null) {
|
| 4496 |
mandeep.dh |
1329 |
unsetSerialNumber();
|
| 2832 |
chandransh |
1330 |
} else {
|
| 4496 |
mandeep.dh |
1331 |
setSerialNumber((String)value);
|
| 2832 |
chandransh |
1332 |
}
|
|
|
1333 |
break;
|
|
|
1334 |
|
|
|
1335 |
}
|
|
|
1336 |
}
|
|
|
1337 |
|
|
|
1338 |
public Object getFieldValue(_Fields field) {
|
|
|
1339 |
switch (field) {
|
| 4496 |
mandeep.dh |
1340 |
case SERIAL_NUMBER:
|
|
|
1341 |
return getSerialNumber();
|
| 2832 |
chandransh |
1342 |
|
|
|
1343 |
}
|
|
|
1344 |
throw new IllegalStateException();
|
|
|
1345 |
}
|
|
|
1346 |
|
| 3430 |
rajveer |
1347 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1348 |
public boolean isSet(_Fields field) {
|
|
|
1349 |
if (field == null) {
|
|
|
1350 |
throw new IllegalArgumentException();
|
|
|
1351 |
}
|
| 2832 |
chandransh |
1352 |
|
|
|
1353 |
switch (field) {
|
| 4496 |
mandeep.dh |
1354 |
case SERIAL_NUMBER:
|
|
|
1355 |
return isSetSerialNumber();
|
| 2832 |
chandransh |
1356 |
}
|
|
|
1357 |
throw new IllegalStateException();
|
|
|
1358 |
}
|
|
|
1359 |
|
|
|
1360 |
@Override
|
|
|
1361 |
public boolean equals(Object that) {
|
|
|
1362 |
if (that == null)
|
|
|
1363 |
return false;
|
| 4496 |
mandeep.dh |
1364 |
if (that instanceof getInventoryItem_args)
|
|
|
1365 |
return this.equals((getInventoryItem_args)that);
|
| 2832 |
chandransh |
1366 |
return false;
|
|
|
1367 |
}
|
|
|
1368 |
|
| 4496 |
mandeep.dh |
1369 |
public boolean equals(getInventoryItem_args that) {
|
| 2832 |
chandransh |
1370 |
if (that == null)
|
|
|
1371 |
return false;
|
|
|
1372 |
|
| 4496 |
mandeep.dh |
1373 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
1374 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
1375 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
1376 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
| 2832 |
chandransh |
1377 |
return false;
|
| 4496 |
mandeep.dh |
1378 |
if (!this.serialNumber.equals(that.serialNumber))
|
| 2832 |
chandransh |
1379 |
return false;
|
|
|
1380 |
}
|
|
|
1381 |
|
|
|
1382 |
return true;
|
|
|
1383 |
}
|
|
|
1384 |
|
|
|
1385 |
@Override
|
|
|
1386 |
public int hashCode() {
|
|
|
1387 |
return 0;
|
|
|
1388 |
}
|
|
|
1389 |
|
| 4496 |
mandeep.dh |
1390 |
public int compareTo(getInventoryItem_args other) {
|
| 2832 |
chandransh |
1391 |
if (!getClass().equals(other.getClass())) {
|
|
|
1392 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1393 |
}
|
|
|
1394 |
|
|
|
1395 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
1396 |
getInventoryItem_args typedOther = (getInventoryItem_args)other;
|
| 2832 |
chandransh |
1397 |
|
| 4496 |
mandeep.dh |
1398 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
| 2832 |
chandransh |
1399 |
if (lastComparison != 0) {
|
|
|
1400 |
return lastComparison;
|
|
|
1401 |
}
|
| 4496 |
mandeep.dh |
1402 |
if (isSetSerialNumber()) {
|
|
|
1403 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
| 3430 |
rajveer |
1404 |
if (lastComparison != 0) {
|
|
|
1405 |
return lastComparison;
|
|
|
1406 |
}
|
| 2832 |
chandransh |
1407 |
}
|
|
|
1408 |
return 0;
|
|
|
1409 |
}
|
|
|
1410 |
|
| 3430 |
rajveer |
1411 |
public _Fields fieldForId(int fieldId) {
|
|
|
1412 |
return _Fields.findByThriftId(fieldId);
|
|
|
1413 |
}
|
|
|
1414 |
|
|
|
1415 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1416 |
org.apache.thrift.protocol.TField field;
|
| 2832 |
chandransh |
1417 |
iprot.readStructBegin();
|
|
|
1418 |
while (true)
|
|
|
1419 |
{
|
|
|
1420 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1421 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2832 |
chandransh |
1422 |
break;
|
|
|
1423 |
}
|
| 3430 |
rajveer |
1424 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
1425 |
case 1: // SERIAL_NUMBER
|
|
|
1426 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1427 |
this.serialNumber = iprot.readString();
|
| 3430 |
rajveer |
1428 |
} else {
|
|
|
1429 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1430 |
}
|
|
|
1431 |
break;
|
|
|
1432 |
default:
|
|
|
1433 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2832 |
chandransh |
1434 |
}
|
| 3430 |
rajveer |
1435 |
iprot.readFieldEnd();
|
| 2832 |
chandransh |
1436 |
}
|
|
|
1437 |
iprot.readStructEnd();
|
|
|
1438 |
validate();
|
|
|
1439 |
}
|
|
|
1440 |
|
| 3430 |
rajveer |
1441 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
1442 |
validate();
|
|
|
1443 |
|
|
|
1444 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4496 |
mandeep.dh |
1445 |
if (this.serialNumber != null) {
|
|
|
1446 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
1447 |
oprot.writeString(this.serialNumber);
|
|
|
1448 |
oprot.writeFieldEnd();
|
|
|
1449 |
}
|
| 2832 |
chandransh |
1450 |
oprot.writeFieldStop();
|
|
|
1451 |
oprot.writeStructEnd();
|
|
|
1452 |
}
|
|
|
1453 |
|
|
|
1454 |
@Override
|
|
|
1455 |
public String toString() {
|
| 4496 |
mandeep.dh |
1456 |
StringBuilder sb = new StringBuilder("getInventoryItem_args(");
|
| 2832 |
chandransh |
1457 |
boolean first = true;
|
|
|
1458 |
|
| 4496 |
mandeep.dh |
1459 |
sb.append("serialNumber:");
|
|
|
1460 |
if (this.serialNumber == null) {
|
|
|
1461 |
sb.append("null");
|
|
|
1462 |
} else {
|
|
|
1463 |
sb.append(this.serialNumber);
|
|
|
1464 |
}
|
| 2832 |
chandransh |
1465 |
first = false;
|
|
|
1466 |
sb.append(")");
|
|
|
1467 |
return sb.toString();
|
|
|
1468 |
}
|
|
|
1469 |
|
| 3430 |
rajveer |
1470 |
public void validate() throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
1471 |
// check for required fields
|
|
|
1472 |
}
|
|
|
1473 |
|
| 3430 |
rajveer |
1474 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1475 |
try {
|
|
|
1476 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1477 |
} catch (org.apache.thrift.TException te) {
|
|
|
1478 |
throw new java.io.IOException(te);
|
|
|
1479 |
}
|
|
|
1480 |
}
|
|
|
1481 |
|
|
|
1482 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1483 |
try {
|
|
|
1484 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1485 |
} catch (org.apache.thrift.TException te) {
|
|
|
1486 |
throw new java.io.IOException(te);
|
|
|
1487 |
}
|
|
|
1488 |
}
|
|
|
1489 |
|
| 2832 |
chandransh |
1490 |
}
|
|
|
1491 |
|
| 4496 |
mandeep.dh |
1492 |
public static class getInventoryItem_result implements org.apache.thrift.TBase<getInventoryItem_result, getInventoryItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
1493 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_result");
|
| 2832 |
chandransh |
1494 |
|
| 3430 |
rajveer |
1495 |
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 |
1496 |
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 |
1497 |
|
| 4496 |
mandeep.dh |
1498 |
private InventoryItem success; // required
|
| 4541 |
mandeep.dh |
1499 |
private WarehouseServiceException wex; // required
|
| 2832 |
chandransh |
1500 |
|
|
|
1501 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1502 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4541 |
mandeep.dh |
1503 |
SUCCESS((short)0, "success"),
|
|
|
1504 |
WEX((short)1, "wex");
|
| 2832 |
chandransh |
1505 |
|
|
|
1506 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1507 |
|
|
|
1508 |
static {
|
|
|
1509 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1510 |
byName.put(field.getFieldName(), field);
|
|
|
1511 |
}
|
|
|
1512 |
}
|
|
|
1513 |
|
|
|
1514 |
/**
|
|
|
1515 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1516 |
*/
|
|
|
1517 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1518 |
switch(fieldId) {
|
|
|
1519 |
case 0: // SUCCESS
|
|
|
1520 |
return SUCCESS;
|
| 4541 |
mandeep.dh |
1521 |
case 1: // WEX
|
|
|
1522 |
return WEX;
|
| 3430 |
rajveer |
1523 |
default:
|
|
|
1524 |
return null;
|
|
|
1525 |
}
|
| 2832 |
chandransh |
1526 |
}
|
|
|
1527 |
|
|
|
1528 |
/**
|
|
|
1529 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1530 |
* if it is not found.
|
|
|
1531 |
*/
|
|
|
1532 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1533 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1534 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1535 |
return fields;
|
|
|
1536 |
}
|
|
|
1537 |
|
|
|
1538 |
/**
|
|
|
1539 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1540 |
*/
|
|
|
1541 |
public static _Fields findByName(String name) {
|
|
|
1542 |
return byName.get(name);
|
|
|
1543 |
}
|
|
|
1544 |
|
|
|
1545 |
private final short _thriftId;
|
|
|
1546 |
private final String _fieldName;
|
|
|
1547 |
|
|
|
1548 |
_Fields(short thriftId, String fieldName) {
|
|
|
1549 |
_thriftId = thriftId;
|
|
|
1550 |
_fieldName = fieldName;
|
|
|
1551 |
}
|
|
|
1552 |
|
|
|
1553 |
public short getThriftFieldId() {
|
|
|
1554 |
return _thriftId;
|
|
|
1555 |
}
|
|
|
1556 |
|
|
|
1557 |
public String getFieldName() {
|
|
|
1558 |
return _fieldName;
|
|
|
1559 |
}
|
|
|
1560 |
}
|
|
|
1561 |
|
|
|
1562 |
// isset id assignments
|
|
|
1563 |
|
| 3430 |
rajveer |
1564 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2832 |
chandransh |
1565 |
static {
|
| 3430 |
rajveer |
1566 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1567 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
1568 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 4541 |
mandeep.dh |
1569 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1570 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
| 3430 |
rajveer |
1571 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
1572 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_result.class, metaDataMap);
|
| 2832 |
chandransh |
1573 |
}
|
|
|
1574 |
|
| 4496 |
mandeep.dh |
1575 |
public getInventoryItem_result() {
|
| 2832 |
chandransh |
1576 |
}
|
|
|
1577 |
|
| 4496 |
mandeep.dh |
1578 |
public getInventoryItem_result(
|
| 4541 |
mandeep.dh |
1579 |
InventoryItem success,
|
|
|
1580 |
WarehouseServiceException wex)
|
| 2832 |
chandransh |
1581 |
{
|
|
|
1582 |
this();
|
|
|
1583 |
this.success = success;
|
| 4541 |
mandeep.dh |
1584 |
this.wex = wex;
|
| 2832 |
chandransh |
1585 |
}
|
|
|
1586 |
|
|
|
1587 |
/**
|
|
|
1588 |
* Performs a deep copy on <i>other</i>.
|
|
|
1589 |
*/
|
| 4496 |
mandeep.dh |
1590 |
public getInventoryItem_result(getInventoryItem_result other) {
|
| 2832 |
chandransh |
1591 |
if (other.isSetSuccess()) {
|
| 4496 |
mandeep.dh |
1592 |
this.success = new InventoryItem(other.success);
|
| 2832 |
chandransh |
1593 |
}
|
| 4541 |
mandeep.dh |
1594 |
if (other.isSetWex()) {
|
|
|
1595 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
1596 |
}
|
| 2832 |
chandransh |
1597 |
}
|
|
|
1598 |
|
| 4496 |
mandeep.dh |
1599 |
public getInventoryItem_result deepCopy() {
|
|
|
1600 |
return new getInventoryItem_result(this);
|
| 2832 |
chandransh |
1601 |
}
|
|
|
1602 |
|
| 3430 |
rajveer |
1603 |
@Override
|
|
|
1604 |
public void clear() {
|
|
|
1605 |
this.success = null;
|
| 4541 |
mandeep.dh |
1606 |
this.wex = null;
|
| 2832 |
chandransh |
1607 |
}
|
|
|
1608 |
|
| 4496 |
mandeep.dh |
1609 |
public InventoryItem getSuccess() {
|
| 2832 |
chandransh |
1610 |
return this.success;
|
|
|
1611 |
}
|
|
|
1612 |
|
| 4496 |
mandeep.dh |
1613 |
public void setSuccess(InventoryItem success) {
|
| 2832 |
chandransh |
1614 |
this.success = success;
|
|
|
1615 |
}
|
|
|
1616 |
|
|
|
1617 |
public void unsetSuccess() {
|
|
|
1618 |
this.success = null;
|
|
|
1619 |
}
|
|
|
1620 |
|
| 3430 |
rajveer |
1621 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2832 |
chandransh |
1622 |
public boolean isSetSuccess() {
|
|
|
1623 |
return this.success != null;
|
|
|
1624 |
}
|
|
|
1625 |
|
|
|
1626 |
public void setSuccessIsSet(boolean value) {
|
|
|
1627 |
if (!value) {
|
|
|
1628 |
this.success = null;
|
|
|
1629 |
}
|
|
|
1630 |
}
|
|
|
1631 |
|
| 4541 |
mandeep.dh |
1632 |
public WarehouseServiceException getWex() {
|
|
|
1633 |
return this.wex;
|
|
|
1634 |
}
|
|
|
1635 |
|
|
|
1636 |
public void setWex(WarehouseServiceException wex) {
|
|
|
1637 |
this.wex = wex;
|
|
|
1638 |
}
|
|
|
1639 |
|
|
|
1640 |
public void unsetWex() {
|
|
|
1641 |
this.wex = null;
|
|
|
1642 |
}
|
|
|
1643 |
|
|
|
1644 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
1645 |
public boolean isSetWex() {
|
|
|
1646 |
return this.wex != null;
|
|
|
1647 |
}
|
|
|
1648 |
|
|
|
1649 |
public void setWexIsSet(boolean value) {
|
|
|
1650 |
if (!value) {
|
|
|
1651 |
this.wex = null;
|
|
|
1652 |
}
|
|
|
1653 |
}
|
|
|
1654 |
|
| 2832 |
chandransh |
1655 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1656 |
switch (field) {
|
|
|
1657 |
case SUCCESS:
|
|
|
1658 |
if (value == null) {
|
|
|
1659 |
unsetSuccess();
|
|
|
1660 |
} else {
|
| 4496 |
mandeep.dh |
1661 |
setSuccess((InventoryItem)value);
|
| 2832 |
chandransh |
1662 |
}
|
|
|
1663 |
break;
|
|
|
1664 |
|
| 4541 |
mandeep.dh |
1665 |
case WEX:
|
|
|
1666 |
if (value == null) {
|
|
|
1667 |
unsetWex();
|
|
|
1668 |
} else {
|
|
|
1669 |
setWex((WarehouseServiceException)value);
|
|
|
1670 |
}
|
|
|
1671 |
break;
|
|
|
1672 |
|
| 2832 |
chandransh |
1673 |
}
|
|
|
1674 |
}
|
|
|
1675 |
|
|
|
1676 |
public Object getFieldValue(_Fields field) {
|
|
|
1677 |
switch (field) {
|
|
|
1678 |
case SUCCESS:
|
|
|
1679 |
return getSuccess();
|
|
|
1680 |
|
| 4541 |
mandeep.dh |
1681 |
case WEX:
|
|
|
1682 |
return getWex();
|
|
|
1683 |
|
| 2832 |
chandransh |
1684 |
}
|
|
|
1685 |
throw new IllegalStateException();
|
|
|
1686 |
}
|
|
|
1687 |
|
| 3430 |
rajveer |
1688 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1689 |
public boolean isSet(_Fields field) {
|
|
|
1690 |
if (field == null) {
|
|
|
1691 |
throw new IllegalArgumentException();
|
|
|
1692 |
}
|
| 2832 |
chandransh |
1693 |
|
|
|
1694 |
switch (field) {
|
|
|
1695 |
case SUCCESS:
|
|
|
1696 |
return isSetSuccess();
|
| 4541 |
mandeep.dh |
1697 |
case WEX:
|
|
|
1698 |
return isSetWex();
|
| 2832 |
chandransh |
1699 |
}
|
|
|
1700 |
throw new IllegalStateException();
|
|
|
1701 |
}
|
|
|
1702 |
|
|
|
1703 |
@Override
|
|
|
1704 |
public boolean equals(Object that) {
|
|
|
1705 |
if (that == null)
|
|
|
1706 |
return false;
|
| 4496 |
mandeep.dh |
1707 |
if (that instanceof getInventoryItem_result)
|
|
|
1708 |
return this.equals((getInventoryItem_result)that);
|
| 2832 |
chandransh |
1709 |
return false;
|
|
|
1710 |
}
|
|
|
1711 |
|
| 4496 |
mandeep.dh |
1712 |
public boolean equals(getInventoryItem_result that) {
|
| 2832 |
chandransh |
1713 |
if (that == null)
|
|
|
1714 |
return false;
|
|
|
1715 |
|
|
|
1716 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
1717 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
1718 |
if (this_present_success || that_present_success) {
|
|
|
1719 |
if (!(this_present_success && that_present_success))
|
|
|
1720 |
return false;
|
|
|
1721 |
if (!this.success.equals(that.success))
|
|
|
1722 |
return false;
|
|
|
1723 |
}
|
|
|
1724 |
|
| 4541 |
mandeep.dh |
1725 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
1726 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
1727 |
if (this_present_wex || that_present_wex) {
|
|
|
1728 |
if (!(this_present_wex && that_present_wex))
|
|
|
1729 |
return false;
|
|
|
1730 |
if (!this.wex.equals(that.wex))
|
|
|
1731 |
return false;
|
|
|
1732 |
}
|
|
|
1733 |
|
| 2832 |
chandransh |
1734 |
return true;
|
|
|
1735 |
}
|
|
|
1736 |
|
|
|
1737 |
@Override
|
|
|
1738 |
public int hashCode() {
|
|
|
1739 |
return 0;
|
|
|
1740 |
}
|
|
|
1741 |
|
| 4496 |
mandeep.dh |
1742 |
public int compareTo(getInventoryItem_result other) {
|
| 2832 |
chandransh |
1743 |
if (!getClass().equals(other.getClass())) {
|
|
|
1744 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1745 |
}
|
|
|
1746 |
|
|
|
1747 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
1748 |
getInventoryItem_result typedOther = (getInventoryItem_result)other;
|
| 2832 |
chandransh |
1749 |
|
| 3430 |
rajveer |
1750 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2832 |
chandransh |
1751 |
if (lastComparison != 0) {
|
|
|
1752 |
return lastComparison;
|
|
|
1753 |
}
|
| 3430 |
rajveer |
1754 |
if (isSetSuccess()) {
|
|
|
1755 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
1756 |
if (lastComparison != 0) {
|
|
|
1757 |
return lastComparison;
|
|
|
1758 |
}
|
| 2832 |
chandransh |
1759 |
}
|
| 4541 |
mandeep.dh |
1760 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
1761 |
if (lastComparison != 0) {
|
|
|
1762 |
return lastComparison;
|
|
|
1763 |
}
|
|
|
1764 |
if (isSetWex()) {
|
|
|
1765 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
1766 |
if (lastComparison != 0) {
|
|
|
1767 |
return lastComparison;
|
|
|
1768 |
}
|
|
|
1769 |
}
|
| 2832 |
chandransh |
1770 |
return 0;
|
|
|
1771 |
}
|
|
|
1772 |
|
| 3430 |
rajveer |
1773 |
public _Fields fieldForId(int fieldId) {
|
|
|
1774 |
return _Fields.findByThriftId(fieldId);
|
|
|
1775 |
}
|
|
|
1776 |
|
|
|
1777 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1778 |
org.apache.thrift.protocol.TField field;
|
| 2832 |
chandransh |
1779 |
iprot.readStructBegin();
|
|
|
1780 |
while (true)
|
|
|
1781 |
{
|
|
|
1782 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1783 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2832 |
chandransh |
1784 |
break;
|
|
|
1785 |
}
|
| 3430 |
rajveer |
1786 |
switch (field.id) {
|
|
|
1787 |
case 0: // SUCCESS
|
|
|
1788 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
| 4496 |
mandeep.dh |
1789 |
this.success = new InventoryItem();
|
| 3430 |
rajveer |
1790 |
this.success.read(iprot);
|
|
|
1791 |
} else {
|
|
|
1792 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1793 |
}
|
|
|
1794 |
break;
|
| 4541 |
mandeep.dh |
1795 |
case 1: // WEX
|
|
|
1796 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
1797 |
this.wex = new WarehouseServiceException();
|
|
|
1798 |
this.wex.read(iprot);
|
|
|
1799 |
} else {
|
|
|
1800 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1801 |
}
|
|
|
1802 |
break;
|
| 3430 |
rajveer |
1803 |
default:
|
|
|
1804 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2832 |
chandransh |
1805 |
}
|
| 3430 |
rajveer |
1806 |
iprot.readFieldEnd();
|
| 2832 |
chandransh |
1807 |
}
|
|
|
1808 |
iprot.readStructEnd();
|
|
|
1809 |
validate();
|
|
|
1810 |
}
|
|
|
1811 |
|
| 3430 |
rajveer |
1812 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
1813 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1814 |
|
|
|
1815 |
if (this.isSetSuccess()) {
|
|
|
1816 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
1817 |
this.success.write(oprot);
|
|
|
1818 |
oprot.writeFieldEnd();
|
| 4541 |
mandeep.dh |
1819 |
} else if (this.isSetWex()) {
|
|
|
1820 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
1821 |
this.wex.write(oprot);
|
|
|
1822 |
oprot.writeFieldEnd();
|
| 2832 |
chandransh |
1823 |
}
|
|
|
1824 |
oprot.writeFieldStop();
|
|
|
1825 |
oprot.writeStructEnd();
|
|
|
1826 |
}
|
|
|
1827 |
|
|
|
1828 |
@Override
|
|
|
1829 |
public String toString() {
|
| 4496 |
mandeep.dh |
1830 |
StringBuilder sb = new StringBuilder("getInventoryItem_result(");
|
| 2832 |
chandransh |
1831 |
boolean first = true;
|
|
|
1832 |
|
|
|
1833 |
sb.append("success:");
|
|
|
1834 |
if (this.success == null) {
|
|
|
1835 |
sb.append("null");
|
|
|
1836 |
} else {
|
|
|
1837 |
sb.append(this.success);
|
|
|
1838 |
}
|
|
|
1839 |
first = false;
|
| 4541 |
mandeep.dh |
1840 |
if (!first) sb.append(", ");
|
|
|
1841 |
sb.append("wex:");
|
|
|
1842 |
if (this.wex == null) {
|
|
|
1843 |
sb.append("null");
|
|
|
1844 |
} else {
|
|
|
1845 |
sb.append(this.wex);
|
|
|
1846 |
}
|
|
|
1847 |
first = false;
|
| 2832 |
chandransh |
1848 |
sb.append(")");
|
|
|
1849 |
return sb.toString();
|
|
|
1850 |
}
|
|
|
1851 |
|
| 3430 |
rajveer |
1852 |
public void validate() throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
1853 |
// check for required fields
|
|
|
1854 |
}
|
|
|
1855 |
|
| 3430 |
rajveer |
1856 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1857 |
try {
|
|
|
1858 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1859 |
} catch (org.apache.thrift.TException te) {
|
|
|
1860 |
throw new java.io.IOException(te);
|
|
|
1861 |
}
|
|
|
1862 |
}
|
|
|
1863 |
|
|
|
1864 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1865 |
try {
|
|
|
1866 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1867 |
} catch (org.apache.thrift.TException te) {
|
|
|
1868 |
throw new java.io.IOException(te);
|
|
|
1869 |
}
|
|
|
1870 |
}
|
|
|
1871 |
|
| 2832 |
chandransh |
1872 |
}
|
|
|
1873 |
|
| 5361 |
mandeep.dh |
1874 |
public static class getNonSeralizedInventoryItem_args implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_args, getNonSeralizedInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
1875 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_args");
|
| 2820 |
chandransh |
1876 |
|
| 4496 |
mandeep.dh |
1877 |
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);
|
| 5361 |
mandeep.dh |
1878 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
|
| 2820 |
chandransh |
1879 |
|
| 4496 |
mandeep.dh |
1880 |
private long itemId; // required
|
| 5361 |
mandeep.dh |
1881 |
private long warehouseId; // required
|
| 2820 |
chandransh |
1882 |
|
|
|
1883 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1884 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
1885 |
ITEM_ID((short)1, "itemId"),
|
| 5361 |
mandeep.dh |
1886 |
WAREHOUSE_ID((short)2, "warehouseId");
|
| 2820 |
chandransh |
1887 |
|
|
|
1888 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1889 |
|
|
|
1890 |
static {
|
|
|
1891 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1892 |
byName.put(field.getFieldName(), field);
|
|
|
1893 |
}
|
|
|
1894 |
}
|
|
|
1895 |
|
|
|
1896 |
/**
|
|
|
1897 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1898 |
*/
|
|
|
1899 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1900 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
1901 |
case 1: // ITEM_ID
|
|
|
1902 |
return ITEM_ID;
|
| 5361 |
mandeep.dh |
1903 |
case 2: // WAREHOUSE_ID
|
|
|
1904 |
return WAREHOUSE_ID;
|
| 3430 |
rajveer |
1905 |
default:
|
|
|
1906 |
return null;
|
|
|
1907 |
}
|
| 2820 |
chandransh |
1908 |
}
|
|
|
1909 |
|
|
|
1910 |
/**
|
|
|
1911 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1912 |
* if it is not found.
|
|
|
1913 |
*/
|
|
|
1914 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1915 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1916 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1917 |
return fields;
|
|
|
1918 |
}
|
|
|
1919 |
|
|
|
1920 |
/**
|
|
|
1921 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1922 |
*/
|
|
|
1923 |
public static _Fields findByName(String name) {
|
|
|
1924 |
return byName.get(name);
|
|
|
1925 |
}
|
|
|
1926 |
|
|
|
1927 |
private final short _thriftId;
|
|
|
1928 |
private final String _fieldName;
|
|
|
1929 |
|
|
|
1930 |
_Fields(short thriftId, String fieldName) {
|
|
|
1931 |
_thriftId = thriftId;
|
|
|
1932 |
_fieldName = fieldName;
|
|
|
1933 |
}
|
|
|
1934 |
|
|
|
1935 |
public short getThriftFieldId() {
|
|
|
1936 |
return _thriftId;
|
|
|
1937 |
}
|
|
|
1938 |
|
|
|
1939 |
public String getFieldName() {
|
|
|
1940 |
return _fieldName;
|
|
|
1941 |
}
|
|
|
1942 |
}
|
|
|
1943 |
|
|
|
1944 |
// isset id assignments
|
| 4496 |
mandeep.dh |
1945 |
private static final int __ITEMID_ISSET_ID = 0;
|
| 5361 |
mandeep.dh |
1946 |
private static final int __WAREHOUSEID_ISSET_ID = 1;
|
|
|
1947 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 2820 |
chandransh |
1948 |
|
| 3430 |
rajveer |
1949 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
1950 |
static {
|
| 3430 |
rajveer |
1951 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
1952 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 3430 |
rajveer |
1953 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5361 |
mandeep.dh |
1954 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
1955 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
1956 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 5361 |
mandeep.dh |
1957 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_args.class, metaDataMap);
|
| 2820 |
chandransh |
1958 |
}
|
|
|
1959 |
|
| 5361 |
mandeep.dh |
1960 |
public getNonSeralizedInventoryItem_args() {
|
| 2820 |
chandransh |
1961 |
}
|
|
|
1962 |
|
| 5361 |
mandeep.dh |
1963 |
public getNonSeralizedInventoryItem_args(
|
| 4496 |
mandeep.dh |
1964 |
long itemId,
|
| 5361 |
mandeep.dh |
1965 |
long warehouseId)
|
| 2820 |
chandransh |
1966 |
{
|
|
|
1967 |
this();
|
| 4496 |
mandeep.dh |
1968 |
this.itemId = itemId;
|
|
|
1969 |
setItemIdIsSet(true);
|
| 5361 |
mandeep.dh |
1970 |
this.warehouseId = warehouseId;
|
|
|
1971 |
setWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
1972 |
}
|
|
|
1973 |
|
|
|
1974 |
/**
|
|
|
1975 |
* Performs a deep copy on <i>other</i>.
|
|
|
1976 |
*/
|
| 5361 |
mandeep.dh |
1977 |
public getNonSeralizedInventoryItem_args(getNonSeralizedInventoryItem_args other) {
|
| 2820 |
chandransh |
1978 |
__isset_bit_vector.clear();
|
|
|
1979 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 4496 |
mandeep.dh |
1980 |
this.itemId = other.itemId;
|
| 5361 |
mandeep.dh |
1981 |
this.warehouseId = other.warehouseId;
|
| 2820 |
chandransh |
1982 |
}
|
|
|
1983 |
|
| 5361 |
mandeep.dh |
1984 |
public getNonSeralizedInventoryItem_args deepCopy() {
|
|
|
1985 |
return new getNonSeralizedInventoryItem_args(this);
|
| 2820 |
chandransh |
1986 |
}
|
|
|
1987 |
|
| 3430 |
rajveer |
1988 |
@Override
|
|
|
1989 |
public void clear() {
|
| 4496 |
mandeep.dh |
1990 |
setItemIdIsSet(false);
|
|
|
1991 |
this.itemId = 0;
|
| 5361 |
mandeep.dh |
1992 |
setWarehouseIdIsSet(false);
|
|
|
1993 |
this.warehouseId = 0;
|
| 2820 |
chandransh |
1994 |
}
|
|
|
1995 |
|
| 4496 |
mandeep.dh |
1996 |
public long getItemId() {
|
|
|
1997 |
return this.itemId;
|
| 2820 |
chandransh |
1998 |
}
|
|
|
1999 |
|
| 4496 |
mandeep.dh |
2000 |
public void setItemId(long itemId) {
|
|
|
2001 |
this.itemId = itemId;
|
|
|
2002 |
setItemIdIsSet(true);
|
| 2820 |
chandransh |
2003 |
}
|
|
|
2004 |
|
| 4496 |
mandeep.dh |
2005 |
public void unsetItemId() {
|
|
|
2006 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
| 2820 |
chandransh |
2007 |
}
|
|
|
2008 |
|
| 4496 |
mandeep.dh |
2009 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
2010 |
public boolean isSetItemId() {
|
|
|
2011 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
| 2820 |
chandransh |
2012 |
}
|
|
|
2013 |
|
| 4496 |
mandeep.dh |
2014 |
public void setItemIdIsSet(boolean value) {
|
|
|
2015 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
| 2820 |
chandransh |
2016 |
}
|
|
|
2017 |
|
| 5361 |
mandeep.dh |
2018 |
public long getWarehouseId() {
|
|
|
2019 |
return this.warehouseId;
|
| 2820 |
chandransh |
2020 |
}
|
|
|
2021 |
|
| 5361 |
mandeep.dh |
2022 |
public void setWarehouseId(long warehouseId) {
|
|
|
2023 |
this.warehouseId = warehouseId;
|
|
|
2024 |
setWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
2025 |
}
|
|
|
2026 |
|
| 5361 |
mandeep.dh |
2027 |
public void unsetWarehouseId() {
|
|
|
2028 |
__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
2029 |
}
|
|
|
2030 |
|
| 5361 |
mandeep.dh |
2031 |
/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
|
|
|
2032 |
public boolean isSetWarehouseId() {
|
|
|
2033 |
return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
2034 |
}
|
|
|
2035 |
|
| 5361 |
mandeep.dh |
2036 |
public void setWarehouseIdIsSet(boolean value) {
|
|
|
2037 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
| 2820 |
chandransh |
2038 |
}
|
|
|
2039 |
|
|
|
2040 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2041 |
switch (field) {
|
| 4496 |
mandeep.dh |
2042 |
case ITEM_ID:
|
| 2820 |
chandransh |
2043 |
if (value == null) {
|
| 4496 |
mandeep.dh |
2044 |
unsetItemId();
|
| 2820 |
chandransh |
2045 |
} else {
|
| 4496 |
mandeep.dh |
2046 |
setItemId((Long)value);
|
| 2820 |
chandransh |
2047 |
}
|
|
|
2048 |
break;
|
|
|
2049 |
|
| 5361 |
mandeep.dh |
2050 |
case WAREHOUSE_ID:
|
| 2820 |
chandransh |
2051 |
if (value == null) {
|
| 5361 |
mandeep.dh |
2052 |
unsetWarehouseId();
|
| 2820 |
chandransh |
2053 |
} else {
|
| 5361 |
mandeep.dh |
2054 |
setWarehouseId((Long)value);
|
| 2820 |
chandransh |
2055 |
}
|
|
|
2056 |
break;
|
|
|
2057 |
|
|
|
2058 |
}
|
|
|
2059 |
}
|
|
|
2060 |
|
|
|
2061 |
public Object getFieldValue(_Fields field) {
|
|
|
2062 |
switch (field) {
|
| 4496 |
mandeep.dh |
2063 |
case ITEM_ID:
|
|
|
2064 |
return Long.valueOf(getItemId());
|
| 2820 |
chandransh |
2065 |
|
| 5361 |
mandeep.dh |
2066 |
case WAREHOUSE_ID:
|
|
|
2067 |
return Long.valueOf(getWarehouseId());
|
| 2820 |
chandransh |
2068 |
|
|
|
2069 |
}
|
|
|
2070 |
throw new IllegalStateException();
|
|
|
2071 |
}
|
|
|
2072 |
|
| 3430 |
rajveer |
2073 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2074 |
public boolean isSet(_Fields field) {
|
|
|
2075 |
if (field == null) {
|
|
|
2076 |
throw new IllegalArgumentException();
|
|
|
2077 |
}
|
| 2820 |
chandransh |
2078 |
|
|
|
2079 |
switch (field) {
|
| 4496 |
mandeep.dh |
2080 |
case ITEM_ID:
|
|
|
2081 |
return isSetItemId();
|
| 5361 |
mandeep.dh |
2082 |
case WAREHOUSE_ID:
|
|
|
2083 |
return isSetWarehouseId();
|
| 2820 |
chandransh |
2084 |
}
|
|
|
2085 |
throw new IllegalStateException();
|
|
|
2086 |
}
|
|
|
2087 |
|
|
|
2088 |
@Override
|
|
|
2089 |
public boolean equals(Object that) {
|
|
|
2090 |
if (that == null)
|
|
|
2091 |
return false;
|
| 5361 |
mandeep.dh |
2092 |
if (that instanceof getNonSeralizedInventoryItem_args)
|
|
|
2093 |
return this.equals((getNonSeralizedInventoryItem_args)that);
|
| 2820 |
chandransh |
2094 |
return false;
|
|
|
2095 |
}
|
|
|
2096 |
|
| 5361 |
mandeep.dh |
2097 |
public boolean equals(getNonSeralizedInventoryItem_args that) {
|
| 2820 |
chandransh |
2098 |
if (that == null)
|
|
|
2099 |
return false;
|
|
|
2100 |
|
| 4496 |
mandeep.dh |
2101 |
boolean this_present_itemId = true;
|
|
|
2102 |
boolean that_present_itemId = true;
|
|
|
2103 |
if (this_present_itemId || that_present_itemId) {
|
|
|
2104 |
if (!(this_present_itemId && that_present_itemId))
|
| 2820 |
chandransh |
2105 |
return false;
|
| 4496 |
mandeep.dh |
2106 |
if (this.itemId != that.itemId)
|
| 2820 |
chandransh |
2107 |
return false;
|
|
|
2108 |
}
|
|
|
2109 |
|
| 5361 |
mandeep.dh |
2110 |
boolean this_present_warehouseId = true;
|
|
|
2111 |
boolean that_present_warehouseId = true;
|
|
|
2112 |
if (this_present_warehouseId || that_present_warehouseId) {
|
|
|
2113 |
if (!(this_present_warehouseId && that_present_warehouseId))
|
| 2820 |
chandransh |
2114 |
return false;
|
| 5361 |
mandeep.dh |
2115 |
if (this.warehouseId != that.warehouseId)
|
| 2820 |
chandransh |
2116 |
return false;
|
|
|
2117 |
}
|
|
|
2118 |
|
|
|
2119 |
return true;
|
|
|
2120 |
}
|
|
|
2121 |
|
|
|
2122 |
@Override
|
|
|
2123 |
public int hashCode() {
|
|
|
2124 |
return 0;
|
|
|
2125 |
}
|
|
|
2126 |
|
| 5361 |
mandeep.dh |
2127 |
public int compareTo(getNonSeralizedInventoryItem_args other) {
|
| 2820 |
chandransh |
2128 |
if (!getClass().equals(other.getClass())) {
|
|
|
2129 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2130 |
}
|
|
|
2131 |
|
|
|
2132 |
int lastComparison = 0;
|
| 5361 |
mandeep.dh |
2133 |
getNonSeralizedInventoryItem_args typedOther = (getNonSeralizedInventoryItem_args)other;
|
| 2820 |
chandransh |
2134 |
|
| 4496 |
mandeep.dh |
2135 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
| 2820 |
chandransh |
2136 |
if (lastComparison != 0) {
|
|
|
2137 |
return lastComparison;
|
|
|
2138 |
}
|
| 4496 |
mandeep.dh |
2139 |
if (isSetItemId()) {
|
|
|
2140 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
| 3430 |
rajveer |
2141 |
if (lastComparison != 0) {
|
|
|
2142 |
return lastComparison;
|
|
|
2143 |
}
|
| 2820 |
chandransh |
2144 |
}
|
| 5361 |
mandeep.dh |
2145 |
lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
|
| 2820 |
chandransh |
2146 |
if (lastComparison != 0) {
|
|
|
2147 |
return lastComparison;
|
|
|
2148 |
}
|
| 5361 |
mandeep.dh |
2149 |
if (isSetWarehouseId()) {
|
|
|
2150 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
| 3430 |
rajveer |
2151 |
if (lastComparison != 0) {
|
|
|
2152 |
return lastComparison;
|
|
|
2153 |
}
|
| 2820 |
chandransh |
2154 |
}
|
|
|
2155 |
return 0;
|
|
|
2156 |
}
|
|
|
2157 |
|
| 3430 |
rajveer |
2158 |
public _Fields fieldForId(int fieldId) {
|
|
|
2159 |
return _Fields.findByThriftId(fieldId);
|
|
|
2160 |
}
|
|
|
2161 |
|
|
|
2162 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2163 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
2164 |
iprot.readStructBegin();
|
|
|
2165 |
while (true)
|
|
|
2166 |
{
|
|
|
2167 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2168 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
2169 |
break;
|
|
|
2170 |
}
|
| 3430 |
rajveer |
2171 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
2172 |
case 1: // ITEM_ID
|
| 3430 |
rajveer |
2173 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 4496 |
mandeep.dh |
2174 |
this.itemId = iprot.readI64();
|
|
|
2175 |
setItemIdIsSet(true);
|
| 3430 |
rajveer |
2176 |
} else {
|
|
|
2177 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2178 |
}
|
|
|
2179 |
break;
|
| 5361 |
mandeep.dh |
2180 |
case 2: // WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
2181 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5361 |
mandeep.dh |
2182 |
this.warehouseId = iprot.readI64();
|
|
|
2183 |
setWarehouseIdIsSet(true);
|
| 3430 |
rajveer |
2184 |
} else {
|
|
|
2185 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2186 |
}
|
|
|
2187 |
break;
|
|
|
2188 |
default:
|
|
|
2189 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
2190 |
}
|
| 3430 |
rajveer |
2191 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
2192 |
}
|
|
|
2193 |
iprot.readStructEnd();
|
|
|
2194 |
validate();
|
|
|
2195 |
}
|
|
|
2196 |
|
| 3430 |
rajveer |
2197 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
2198 |
validate();
|
|
|
2199 |
|
|
|
2200 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4496 |
mandeep.dh |
2201 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
2202 |
oprot.writeI64(this.itemId);
|
| 2820 |
chandransh |
2203 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
2204 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
|
|
2205 |
oprot.writeI64(this.warehouseId);
|
| 2820 |
chandransh |
2206 |
oprot.writeFieldEnd();
|
|
|
2207 |
oprot.writeFieldStop();
|
|
|
2208 |
oprot.writeStructEnd();
|
|
|
2209 |
}
|
|
|
2210 |
|
|
|
2211 |
@Override
|
|
|
2212 |
public String toString() {
|
| 5361 |
mandeep.dh |
2213 |
StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_args(");
|
| 2820 |
chandransh |
2214 |
boolean first = true;
|
|
|
2215 |
|
| 4496 |
mandeep.dh |
2216 |
sb.append("itemId:");
|
|
|
2217 |
sb.append(this.itemId);
|
| 2820 |
chandransh |
2218 |
first = false;
|
|
|
2219 |
if (!first) sb.append(", ");
|
| 5361 |
mandeep.dh |
2220 |
sb.append("warehouseId:");
|
|
|
2221 |
sb.append(this.warehouseId);
|
| 2820 |
chandransh |
2222 |
first = false;
|
|
|
2223 |
sb.append(")");
|
|
|
2224 |
return sb.toString();
|
|
|
2225 |
}
|
|
|
2226 |
|
| 3430 |
rajveer |
2227 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
2228 |
// check for required fields
|
|
|
2229 |
}
|
|
|
2230 |
|
| 3430 |
rajveer |
2231 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2232 |
try {
|
|
|
2233 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2234 |
} catch (org.apache.thrift.TException te) {
|
|
|
2235 |
throw new java.io.IOException(te);
|
|
|
2236 |
}
|
|
|
2237 |
}
|
|
|
2238 |
|
|
|
2239 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2240 |
try {
|
| 4496 |
mandeep.dh |
2241 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
2242 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
2243 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2244 |
} catch (org.apache.thrift.TException te) {
|
|
|
2245 |
throw new java.io.IOException(te);
|
|
|
2246 |
}
|
|
|
2247 |
}
|
|
|
2248 |
|
| 2820 |
chandransh |
2249 |
}
|
|
|
2250 |
|
| 5361 |
mandeep.dh |
2251 |
public static class getNonSeralizedInventoryItem_result implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_result, getNonSeralizedInventoryItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
2252 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_result");
|
| 2820 |
chandransh |
2253 |
|
| 5361 |
mandeep.dh |
2254 |
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);
|
|
|
2255 |
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 |
2256 |
|
| 5361 |
mandeep.dh |
2257 |
private InventoryItem success; // required
|
|
|
2258 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
2259 |
|
|
|
2260 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2261 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
2262 |
SUCCESS((short)0, "success"),
|
|
|
2263 |
WEX((short)1, "wex");
|
| 2820 |
chandransh |
2264 |
|
|
|
2265 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2266 |
|
|
|
2267 |
static {
|
|
|
2268 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2269 |
byName.put(field.getFieldName(), field);
|
|
|
2270 |
}
|
|
|
2271 |
}
|
|
|
2272 |
|
|
|
2273 |
/**
|
|
|
2274 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2275 |
*/
|
|
|
2276 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2277 |
switch(fieldId) {
|
|
|
2278 |
case 0: // SUCCESS
|
|
|
2279 |
return SUCCESS;
|
| 5361 |
mandeep.dh |
2280 |
case 1: // WEX
|
|
|
2281 |
return WEX;
|
| 3430 |
rajveer |
2282 |
default:
|
|
|
2283 |
return null;
|
|
|
2284 |
}
|
| 2820 |
chandransh |
2285 |
}
|
|
|
2286 |
|
|
|
2287 |
/**
|
|
|
2288 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2289 |
* if it is not found.
|
|
|
2290 |
*/
|
|
|
2291 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2292 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2293 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2294 |
return fields;
|
|
|
2295 |
}
|
|
|
2296 |
|
|
|
2297 |
/**
|
|
|
2298 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2299 |
*/
|
|
|
2300 |
public static _Fields findByName(String name) {
|
|
|
2301 |
return byName.get(name);
|
|
|
2302 |
}
|
|
|
2303 |
|
|
|
2304 |
private final short _thriftId;
|
|
|
2305 |
private final String _fieldName;
|
|
|
2306 |
|
|
|
2307 |
_Fields(short thriftId, String fieldName) {
|
|
|
2308 |
_thriftId = thriftId;
|
|
|
2309 |
_fieldName = fieldName;
|
|
|
2310 |
}
|
|
|
2311 |
|
|
|
2312 |
public short getThriftFieldId() {
|
|
|
2313 |
return _thriftId;
|
|
|
2314 |
}
|
|
|
2315 |
|
|
|
2316 |
public String getFieldName() {
|
|
|
2317 |
return _fieldName;
|
|
|
2318 |
}
|
|
|
2319 |
}
|
|
|
2320 |
|
|
|
2321 |
// isset id assignments
|
|
|
2322 |
|
| 3430 |
rajveer |
2323 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
2324 |
static {
|
| 3430 |
rajveer |
2325 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2326 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 5361 |
mandeep.dh |
2327 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
2328 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2329 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
| 3430 |
rajveer |
2330 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 5361 |
mandeep.dh |
2331 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_result.class, metaDataMap);
|
| 2820 |
chandransh |
2332 |
}
|
|
|
2333 |
|
| 5361 |
mandeep.dh |
2334 |
public getNonSeralizedInventoryItem_result() {
|
| 2820 |
chandransh |
2335 |
}
|
|
|
2336 |
|
| 5361 |
mandeep.dh |
2337 |
public getNonSeralizedInventoryItem_result(
|
|
|
2338 |
InventoryItem success,
|
|
|
2339 |
WarehouseServiceException wex)
|
| 2820 |
chandransh |
2340 |
{
|
|
|
2341 |
this();
|
|
|
2342 |
this.success = success;
|
| 5361 |
mandeep.dh |
2343 |
this.wex = wex;
|
| 2820 |
chandransh |
2344 |
}
|
|
|
2345 |
|
|
|
2346 |
/**
|
|
|
2347 |
* Performs a deep copy on <i>other</i>.
|
|
|
2348 |
*/
|
| 5361 |
mandeep.dh |
2349 |
public getNonSeralizedInventoryItem_result(getNonSeralizedInventoryItem_result other) {
|
| 4496 |
mandeep.dh |
2350 |
if (other.isSetSuccess()) {
|
| 5361 |
mandeep.dh |
2351 |
this.success = new InventoryItem(other.success);
|
| 2820 |
chandransh |
2352 |
}
|
| 5361 |
mandeep.dh |
2353 |
if (other.isSetWex()) {
|
|
|
2354 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
2355 |
}
|
| 2820 |
chandransh |
2356 |
}
|
|
|
2357 |
|
| 5361 |
mandeep.dh |
2358 |
public getNonSeralizedInventoryItem_result deepCopy() {
|
|
|
2359 |
return new getNonSeralizedInventoryItem_result(this);
|
| 2820 |
chandransh |
2360 |
}
|
|
|
2361 |
|
| 3430 |
rajveer |
2362 |
@Override
|
|
|
2363 |
public void clear() {
|
| 4496 |
mandeep.dh |
2364 |
this.success = null;
|
| 5361 |
mandeep.dh |
2365 |
this.wex = null;
|
| 2820 |
chandransh |
2366 |
}
|
|
|
2367 |
|
| 5361 |
mandeep.dh |
2368 |
public InventoryItem getSuccess() {
|
| 2820 |
chandransh |
2369 |
return this.success;
|
|
|
2370 |
}
|
|
|
2371 |
|
| 5361 |
mandeep.dh |
2372 |
public void setSuccess(InventoryItem success) {
|
| 2820 |
chandransh |
2373 |
this.success = success;
|
|
|
2374 |
}
|
|
|
2375 |
|
|
|
2376 |
public void unsetSuccess() {
|
| 4496 |
mandeep.dh |
2377 |
this.success = null;
|
| 2820 |
chandransh |
2378 |
}
|
|
|
2379 |
|
| 3430 |
rajveer |
2380 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
2381 |
public boolean isSetSuccess() {
|
| 4496 |
mandeep.dh |
2382 |
return this.success != null;
|
| 2820 |
chandransh |
2383 |
}
|
|
|
2384 |
|
|
|
2385 |
public void setSuccessIsSet(boolean value) {
|
| 4496 |
mandeep.dh |
2386 |
if (!value) {
|
|
|
2387 |
this.success = null;
|
|
|
2388 |
}
|
| 2820 |
chandransh |
2389 |
}
|
|
|
2390 |
|
| 5361 |
mandeep.dh |
2391 |
public WarehouseServiceException getWex() {
|
|
|
2392 |
return this.wex;
|
| 2820 |
chandransh |
2393 |
}
|
|
|
2394 |
|
| 5361 |
mandeep.dh |
2395 |
public void setWex(WarehouseServiceException wex) {
|
|
|
2396 |
this.wex = wex;
|
| 2820 |
chandransh |
2397 |
}
|
|
|
2398 |
|
| 5361 |
mandeep.dh |
2399 |
public void unsetWex() {
|
|
|
2400 |
this.wex = null;
|
| 2820 |
chandransh |
2401 |
}
|
|
|
2402 |
|
| 5361 |
mandeep.dh |
2403 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
2404 |
public boolean isSetWex() {
|
|
|
2405 |
return this.wex != null;
|
| 2820 |
chandransh |
2406 |
}
|
|
|
2407 |
|
| 5361 |
mandeep.dh |
2408 |
public void setWexIsSet(boolean value) {
|
|
|
2409 |
if (!value) {
|
|
|
2410 |
this.wex = null;
|
| 2820 |
chandransh |
2411 |
}
|
|
|
2412 |
}
|
|
|
2413 |
|
|
|
2414 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2415 |
switch (field) {
|
| 5361 |
mandeep.dh |
2416 |
case SUCCESS:
|
| 2820 |
chandransh |
2417 |
if (value == null) {
|
| 5361 |
mandeep.dh |
2418 |
unsetSuccess();
|
| 2820 |
chandransh |
2419 |
} else {
|
| 5361 |
mandeep.dh |
2420 |
setSuccess((InventoryItem)value);
|
| 2820 |
chandransh |
2421 |
}
|
|
|
2422 |
break;
|
|
|
2423 |
|
| 5361 |
mandeep.dh |
2424 |
case WEX:
|
| 2820 |
chandransh |
2425 |
if (value == null) {
|
| 5361 |
mandeep.dh |
2426 |
unsetWex();
|
| 2820 |
chandransh |
2427 |
} else {
|
| 5361 |
mandeep.dh |
2428 |
setWex((WarehouseServiceException)value);
|
| 2820 |
chandransh |
2429 |
}
|
|
|
2430 |
break;
|
|
|
2431 |
|
|
|
2432 |
}
|
|
|
2433 |
}
|
|
|
2434 |
|
|
|
2435 |
public Object getFieldValue(_Fields field) {
|
|
|
2436 |
switch (field) {
|
|
|
2437 |
case SUCCESS:
|
| 4496 |
mandeep.dh |
2438 |
return getSuccess();
|
| 2820 |
chandransh |
2439 |
|
| 5361 |
mandeep.dh |
2440 |
case WEX:
|
|
|
2441 |
return getWex();
|
|
|
2442 |
|
| 2820 |
chandransh |
2443 |
}
|
|
|
2444 |
throw new IllegalStateException();
|
|
|
2445 |
}
|
|
|
2446 |
|
| 3430 |
rajveer |
2447 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2448 |
public boolean isSet(_Fields field) {
|
|
|
2449 |
if (field == null) {
|
|
|
2450 |
throw new IllegalArgumentException();
|
|
|
2451 |
}
|
| 2820 |
chandransh |
2452 |
|
|
|
2453 |
switch (field) {
|
|
|
2454 |
case SUCCESS:
|
|
|
2455 |
return isSetSuccess();
|
| 5361 |
mandeep.dh |
2456 |
case WEX:
|
|
|
2457 |
return isSetWex();
|
| 2820 |
chandransh |
2458 |
}
|
|
|
2459 |
throw new IllegalStateException();
|
|
|
2460 |
}
|
|
|
2461 |
|
|
|
2462 |
@Override
|
|
|
2463 |
public boolean equals(Object that) {
|
|
|
2464 |
if (that == null)
|
|
|
2465 |
return false;
|
| 5361 |
mandeep.dh |
2466 |
if (that instanceof getNonSeralizedInventoryItem_result)
|
|
|
2467 |
return this.equals((getNonSeralizedInventoryItem_result)that);
|
| 2820 |
chandransh |
2468 |
return false;
|
|
|
2469 |
}
|
|
|
2470 |
|
| 5361 |
mandeep.dh |
2471 |
public boolean equals(getNonSeralizedInventoryItem_result that) {
|
| 2820 |
chandransh |
2472 |
if (that == null)
|
|
|
2473 |
return false;
|
|
|
2474 |
|
| 4496 |
mandeep.dh |
2475 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
2476 |
boolean that_present_success = true && that.isSetSuccess();
|
| 2820 |
chandransh |
2477 |
if (this_present_success || that_present_success) {
|
|
|
2478 |
if (!(this_present_success && that_present_success))
|
|
|
2479 |
return false;
|
| 4496 |
mandeep.dh |
2480 |
if (!this.success.equals(that.success))
|
| 2820 |
chandransh |
2481 |
return false;
|
|
|
2482 |
}
|
|
|
2483 |
|
| 5361 |
mandeep.dh |
2484 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
2485 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
2486 |
if (this_present_wex || that_present_wex) {
|
|
|
2487 |
if (!(this_present_wex && that_present_wex))
|
| 4496 |
mandeep.dh |
2488 |
return false;
|
| 5361 |
mandeep.dh |
2489 |
if (!this.wex.equals(that.wex))
|
| 4496 |
mandeep.dh |
2490 |
return false;
|
|
|
2491 |
}
|
|
|
2492 |
|
|
|
2493 |
return true;
|
|
|
2494 |
}
|
|
|
2495 |
|
|
|
2496 |
@Override
|
|
|
2497 |
public int hashCode() {
|
|
|
2498 |
return 0;
|
|
|
2499 |
}
|
|
|
2500 |
|
| 5361 |
mandeep.dh |
2501 |
public int compareTo(getNonSeralizedInventoryItem_result other) {
|
| 4496 |
mandeep.dh |
2502 |
if (!getClass().equals(other.getClass())) {
|
|
|
2503 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2504 |
}
|
|
|
2505 |
|
|
|
2506 |
int lastComparison = 0;
|
| 5361 |
mandeep.dh |
2507 |
getNonSeralizedInventoryItem_result typedOther = (getNonSeralizedInventoryItem_result)other;
|
| 4496 |
mandeep.dh |
2508 |
|
|
|
2509 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
2510 |
if (lastComparison != 0) {
|
|
|
2511 |
return lastComparison;
|
|
|
2512 |
}
|
|
|
2513 |
if (isSetSuccess()) {
|
|
|
2514 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
2515 |
if (lastComparison != 0) {
|
|
|
2516 |
return lastComparison;
|
|
|
2517 |
}
|
|
|
2518 |
}
|
| 5361 |
mandeep.dh |
2519 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
2520 |
if (lastComparison != 0) {
|
|
|
2521 |
return lastComparison;
|
|
|
2522 |
}
|
| 5361 |
mandeep.dh |
2523 |
if (isSetWex()) {
|
|
|
2524 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
| 3430 |
rajveer |
2525 |
if (lastComparison != 0) {
|
|
|
2526 |
return lastComparison;
|
|
|
2527 |
}
|
| 2820 |
chandransh |
2528 |
}
|
|
|
2529 |
return 0;
|
|
|
2530 |
}
|
|
|
2531 |
|
| 3430 |
rajveer |
2532 |
public _Fields fieldForId(int fieldId) {
|
|
|
2533 |
return _Fields.findByThriftId(fieldId);
|
|
|
2534 |
}
|
|
|
2535 |
|
|
|
2536 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2537 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
2538 |
iprot.readStructBegin();
|
|
|
2539 |
while (true)
|
|
|
2540 |
{
|
|
|
2541 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2542 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
2543 |
break;
|
|
|
2544 |
}
|
| 3430 |
rajveer |
2545 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
2546 |
case 0: // SUCCESS
|
|
|
2547 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2548 |
this.success = new InventoryItem();
|
|
|
2549 |
this.success.read(iprot);
|
| 3430 |
rajveer |
2550 |
} else {
|
|
|
2551 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2552 |
}
|
|
|
2553 |
break;
|
| 5361 |
mandeep.dh |
2554 |
case 1: // WEX
|
|
|
2555 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2556 |
this.wex = new WarehouseServiceException();
|
|
|
2557 |
this.wex.read(iprot);
|
| 4496 |
mandeep.dh |
2558 |
} else {
|
|
|
2559 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2560 |
}
|
|
|
2561 |
break;
|
|
|
2562 |
default:
|
|
|
2563 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2564 |
}
|
|
|
2565 |
iprot.readFieldEnd();
|
|
|
2566 |
}
|
|
|
2567 |
iprot.readStructEnd();
|
|
|
2568 |
validate();
|
|
|
2569 |
}
|
|
|
2570 |
|
|
|
2571 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
2572 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2573 |
|
|
|
2574 |
if (this.isSetSuccess()) {
|
|
|
2575 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 5361 |
mandeep.dh |
2576 |
this.success.write(oprot);
|
| 4496 |
mandeep.dh |
2577 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
2578 |
} else if (this.isSetWex()) {
|
|
|
2579 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
2580 |
this.wex.write(oprot);
|
|
|
2581 |
oprot.writeFieldEnd();
|
| 4496 |
mandeep.dh |
2582 |
}
|
|
|
2583 |
oprot.writeFieldStop();
|
|
|
2584 |
oprot.writeStructEnd();
|
|
|
2585 |
}
|
|
|
2586 |
|
|
|
2587 |
@Override
|
|
|
2588 |
public String toString() {
|
| 5361 |
mandeep.dh |
2589 |
StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_result(");
|
| 4496 |
mandeep.dh |
2590 |
boolean first = true;
|
|
|
2591 |
|
|
|
2592 |
sb.append("success:");
|
|
|
2593 |
if (this.success == null) {
|
|
|
2594 |
sb.append("null");
|
|
|
2595 |
} else {
|
|
|
2596 |
sb.append(this.success);
|
|
|
2597 |
}
|
|
|
2598 |
first = false;
|
| 5361 |
mandeep.dh |
2599 |
if (!first) sb.append(", ");
|
|
|
2600 |
sb.append("wex:");
|
|
|
2601 |
if (this.wex == null) {
|
|
|
2602 |
sb.append("null");
|
|
|
2603 |
} else {
|
|
|
2604 |
sb.append(this.wex);
|
|
|
2605 |
}
|
|
|
2606 |
first = false;
|
| 4496 |
mandeep.dh |
2607 |
sb.append(")");
|
|
|
2608 |
return sb.toString();
|
|
|
2609 |
}
|
|
|
2610 |
|
|
|
2611 |
public void validate() throws org.apache.thrift.TException {
|
|
|
2612 |
// check for required fields
|
|
|
2613 |
}
|
|
|
2614 |
|
|
|
2615 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2616 |
try {
|
|
|
2617 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2618 |
} catch (org.apache.thrift.TException te) {
|
|
|
2619 |
throw new java.io.IOException(te);
|
|
|
2620 |
}
|
|
|
2621 |
}
|
|
|
2622 |
|
|
|
2623 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2624 |
try {
|
|
|
2625 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2626 |
} catch (org.apache.thrift.TException te) {
|
|
|
2627 |
throw new java.io.IOException(te);
|
|
|
2628 |
}
|
|
|
2629 |
}
|
|
|
2630 |
|
|
|
2631 |
}
|
|
|
2632 |
|
|
|
2633 |
public static class scanSerializedItem_args implements org.apache.thrift.TBase<scanSerializedItem_args, scanSerializedItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2634 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItem_args");
|
|
|
2635 |
|
| 5110 |
mandeep.dh |
2636 |
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 |
2637 |
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);
|
| 5361 |
mandeep.dh |
2638 |
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)3);
|
| 4496 |
mandeep.dh |
2639 |
|
| 5110 |
mandeep.dh |
2640 |
private InventoryItem inventoryItem; // required
|
| 4496 |
mandeep.dh |
2641 |
private ScanType type; // required
|
| 5361 |
mandeep.dh |
2642 |
private long billingWarehouseId; // required
|
| 4496 |
mandeep.dh |
2643 |
|
|
|
2644 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
2645 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5110 |
mandeep.dh |
2646 |
INVENTORY_ITEM((short)1, "inventoryItem"),
|
| 4496 |
mandeep.dh |
2647 |
/**
|
|
|
2648 |
*
|
|
|
2649 |
* @see ScanType
|
|
|
2650 |
*/
|
|
|
2651 |
TYPE((short)2, "type"),
|
| 5361 |
mandeep.dh |
2652 |
BILLING_WAREHOUSE_ID((short)3, "billingWarehouseId");
|
| 4496 |
mandeep.dh |
2653 |
|
|
|
2654 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2655 |
|
|
|
2656 |
static {
|
|
|
2657 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2658 |
byName.put(field.getFieldName(), field);
|
|
|
2659 |
}
|
|
|
2660 |
}
|
|
|
2661 |
|
|
|
2662 |
/**
|
|
|
2663 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2664 |
*/
|
|
|
2665 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
2666 |
switch(fieldId) {
|
| 5110 |
mandeep.dh |
2667 |
case 1: // INVENTORY_ITEM
|
|
|
2668 |
return INVENTORY_ITEM;
|
| 4496 |
mandeep.dh |
2669 |
case 2: // TYPE
|
|
|
2670 |
return TYPE;
|
| 5361 |
mandeep.dh |
2671 |
case 3: // BILLING_WAREHOUSE_ID
|
|
|
2672 |
return BILLING_WAREHOUSE_ID;
|
| 4496 |
mandeep.dh |
2673 |
default:
|
|
|
2674 |
return null;
|
|
|
2675 |
}
|
|
|
2676 |
}
|
|
|
2677 |
|
|
|
2678 |
/**
|
|
|
2679 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2680 |
* if it is not found.
|
|
|
2681 |
*/
|
|
|
2682 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2683 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2684 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2685 |
return fields;
|
|
|
2686 |
}
|
|
|
2687 |
|
|
|
2688 |
/**
|
|
|
2689 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2690 |
*/
|
|
|
2691 |
public static _Fields findByName(String name) {
|
|
|
2692 |
return byName.get(name);
|
|
|
2693 |
}
|
|
|
2694 |
|
|
|
2695 |
private final short _thriftId;
|
|
|
2696 |
private final String _fieldName;
|
|
|
2697 |
|
|
|
2698 |
_Fields(short thriftId, String fieldName) {
|
|
|
2699 |
_thriftId = thriftId;
|
|
|
2700 |
_fieldName = fieldName;
|
|
|
2701 |
}
|
|
|
2702 |
|
|
|
2703 |
public short getThriftFieldId() {
|
|
|
2704 |
return _thriftId;
|
|
|
2705 |
}
|
|
|
2706 |
|
|
|
2707 |
public String getFieldName() {
|
|
|
2708 |
return _fieldName;
|
|
|
2709 |
}
|
|
|
2710 |
}
|
|
|
2711 |
|
|
|
2712 |
// isset id assignments
|
| 5361 |
mandeep.dh |
2713 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 0;
|
| 5110 |
mandeep.dh |
2714 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 4496 |
mandeep.dh |
2715 |
|
|
|
2716 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
2717 |
static {
|
|
|
2718 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5110 |
mandeep.dh |
2719 |
tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2720 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 4496 |
mandeep.dh |
2721 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2722 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 5361 |
mandeep.dh |
2723 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
2724 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
2725 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2726 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItem_args.class, metaDataMap);
|
|
|
2727 |
}
|
|
|
2728 |
|
|
|
2729 |
public scanSerializedItem_args() {
|
|
|
2730 |
}
|
|
|
2731 |
|
|
|
2732 |
public scanSerializedItem_args(
|
| 5110 |
mandeep.dh |
2733 |
InventoryItem inventoryItem,
|
| 4496 |
mandeep.dh |
2734 |
ScanType type,
|
| 5361 |
mandeep.dh |
2735 |
long billingWarehouseId)
|
| 4496 |
mandeep.dh |
2736 |
{
|
|
|
2737 |
this();
|
| 5110 |
mandeep.dh |
2738 |
this.inventoryItem = inventoryItem;
|
| 4496 |
mandeep.dh |
2739 |
this.type = type;
|
| 5361 |
mandeep.dh |
2740 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
2741 |
setBillingWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
2742 |
}
|
|
|
2743 |
|
|
|
2744 |
/**
|
|
|
2745 |
* Performs a deep copy on <i>other</i>.
|
|
|
2746 |
*/
|
|
|
2747 |
public scanSerializedItem_args(scanSerializedItem_args other) {
|
|
|
2748 |
__isset_bit_vector.clear();
|
|
|
2749 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5110 |
mandeep.dh |
2750 |
if (other.isSetInventoryItem()) {
|
|
|
2751 |
this.inventoryItem = new InventoryItem(other.inventoryItem);
|
|
|
2752 |
}
|
| 4496 |
mandeep.dh |
2753 |
if (other.isSetType()) {
|
|
|
2754 |
this.type = other.type;
|
|
|
2755 |
}
|
| 5361 |
mandeep.dh |
2756 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 4496 |
mandeep.dh |
2757 |
}
|
|
|
2758 |
|
|
|
2759 |
public scanSerializedItem_args deepCopy() {
|
|
|
2760 |
return new scanSerializedItem_args(this);
|
|
|
2761 |
}
|
|
|
2762 |
|
|
|
2763 |
@Override
|
|
|
2764 |
public void clear() {
|
| 5110 |
mandeep.dh |
2765 |
this.inventoryItem = null;
|
| 4496 |
mandeep.dh |
2766 |
this.type = null;
|
| 5361 |
mandeep.dh |
2767 |
setBillingWarehouseIdIsSet(false);
|
|
|
2768 |
this.billingWarehouseId = 0;
|
| 4496 |
mandeep.dh |
2769 |
}
|
|
|
2770 |
|
| 5110 |
mandeep.dh |
2771 |
public InventoryItem getInventoryItem() {
|
|
|
2772 |
return this.inventoryItem;
|
| 4496 |
mandeep.dh |
2773 |
}
|
|
|
2774 |
|
| 5110 |
mandeep.dh |
2775 |
public void setInventoryItem(InventoryItem inventoryItem) {
|
|
|
2776 |
this.inventoryItem = inventoryItem;
|
| 4496 |
mandeep.dh |
2777 |
}
|
|
|
2778 |
|
| 5110 |
mandeep.dh |
2779 |
public void unsetInventoryItem() {
|
|
|
2780 |
this.inventoryItem = null;
|
| 4496 |
mandeep.dh |
2781 |
}
|
|
|
2782 |
|
| 5110 |
mandeep.dh |
2783 |
/** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
|
|
|
2784 |
public boolean isSetInventoryItem() {
|
|
|
2785 |
return this.inventoryItem != null;
|
| 4496 |
mandeep.dh |
2786 |
}
|
|
|
2787 |
|
| 5110 |
mandeep.dh |
2788 |
public void setInventoryItemIsSet(boolean value) {
|
|
|
2789 |
if (!value) {
|
|
|
2790 |
this.inventoryItem = null;
|
|
|
2791 |
}
|
| 4496 |
mandeep.dh |
2792 |
}
|
|
|
2793 |
|
|
|
2794 |
/**
|
|
|
2795 |
*
|
|
|
2796 |
* @see ScanType
|
|
|
2797 |
*/
|
|
|
2798 |
public ScanType getType() {
|
|
|
2799 |
return this.type;
|
|
|
2800 |
}
|
|
|
2801 |
|
|
|
2802 |
/**
|
|
|
2803 |
*
|
|
|
2804 |
* @see ScanType
|
|
|
2805 |
*/
|
|
|
2806 |
public void setType(ScanType type) {
|
|
|
2807 |
this.type = type;
|
|
|
2808 |
}
|
|
|
2809 |
|
|
|
2810 |
public void unsetType() {
|
|
|
2811 |
this.type = null;
|
|
|
2812 |
}
|
|
|
2813 |
|
|
|
2814 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
2815 |
public boolean isSetType() {
|
|
|
2816 |
return this.type != null;
|
|
|
2817 |
}
|
|
|
2818 |
|
|
|
2819 |
public void setTypeIsSet(boolean value) {
|
|
|
2820 |
if (!value) {
|
|
|
2821 |
this.type = null;
|
|
|
2822 |
}
|
|
|
2823 |
}
|
|
|
2824 |
|
| 5361 |
mandeep.dh |
2825 |
public long getBillingWarehouseId() {
|
|
|
2826 |
return this.billingWarehouseId;
|
| 4496 |
mandeep.dh |
2827 |
}
|
|
|
2828 |
|
| 5361 |
mandeep.dh |
2829 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
2830 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
2831 |
setBillingWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
2832 |
}
|
|
|
2833 |
|
| 5361 |
mandeep.dh |
2834 |
public void unsetBillingWarehouseId() {
|
|
|
2835 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
2836 |
}
|
|
|
2837 |
|
| 5361 |
mandeep.dh |
2838 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
2839 |
public boolean isSetBillingWarehouseId() {
|
|
|
2840 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
2841 |
}
|
|
|
2842 |
|
| 5361 |
mandeep.dh |
2843 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
2844 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
| 4496 |
mandeep.dh |
2845 |
}
|
|
|
2846 |
|
|
|
2847 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2848 |
switch (field) {
|
| 5110 |
mandeep.dh |
2849 |
case INVENTORY_ITEM:
|
| 4496 |
mandeep.dh |
2850 |
if (value == null) {
|
| 5110 |
mandeep.dh |
2851 |
unsetInventoryItem();
|
| 4496 |
mandeep.dh |
2852 |
} else {
|
| 5110 |
mandeep.dh |
2853 |
setInventoryItem((InventoryItem)value);
|
| 4496 |
mandeep.dh |
2854 |
}
|
|
|
2855 |
break;
|
|
|
2856 |
|
|
|
2857 |
case TYPE:
|
|
|
2858 |
if (value == null) {
|
|
|
2859 |
unsetType();
|
|
|
2860 |
} else {
|
|
|
2861 |
setType((ScanType)value);
|
|
|
2862 |
}
|
|
|
2863 |
break;
|
|
|
2864 |
|
| 5361 |
mandeep.dh |
2865 |
case BILLING_WAREHOUSE_ID:
|
| 4496 |
mandeep.dh |
2866 |
if (value == null) {
|
| 5361 |
mandeep.dh |
2867 |
unsetBillingWarehouseId();
|
| 4496 |
mandeep.dh |
2868 |
} else {
|
| 5361 |
mandeep.dh |
2869 |
setBillingWarehouseId((Long)value);
|
| 4496 |
mandeep.dh |
2870 |
}
|
|
|
2871 |
break;
|
|
|
2872 |
|
|
|
2873 |
}
|
|
|
2874 |
}
|
|
|
2875 |
|
|
|
2876 |
public Object getFieldValue(_Fields field) {
|
|
|
2877 |
switch (field) {
|
| 5110 |
mandeep.dh |
2878 |
case INVENTORY_ITEM:
|
|
|
2879 |
return getInventoryItem();
|
| 4496 |
mandeep.dh |
2880 |
|
|
|
2881 |
case TYPE:
|
|
|
2882 |
return getType();
|
|
|
2883 |
|
| 5361 |
mandeep.dh |
2884 |
case BILLING_WAREHOUSE_ID:
|
|
|
2885 |
return Long.valueOf(getBillingWarehouseId());
|
| 4496 |
mandeep.dh |
2886 |
|
|
|
2887 |
}
|
|
|
2888 |
throw new IllegalStateException();
|
|
|
2889 |
}
|
|
|
2890 |
|
|
|
2891 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2892 |
public boolean isSet(_Fields field) {
|
|
|
2893 |
if (field == null) {
|
|
|
2894 |
throw new IllegalArgumentException();
|
|
|
2895 |
}
|
|
|
2896 |
|
|
|
2897 |
switch (field) {
|
| 5110 |
mandeep.dh |
2898 |
case INVENTORY_ITEM:
|
|
|
2899 |
return isSetInventoryItem();
|
| 4496 |
mandeep.dh |
2900 |
case TYPE:
|
|
|
2901 |
return isSetType();
|
| 5361 |
mandeep.dh |
2902 |
case BILLING_WAREHOUSE_ID:
|
|
|
2903 |
return isSetBillingWarehouseId();
|
| 4496 |
mandeep.dh |
2904 |
}
|
|
|
2905 |
throw new IllegalStateException();
|
|
|
2906 |
}
|
|
|
2907 |
|
|
|
2908 |
@Override
|
|
|
2909 |
public boolean equals(Object that) {
|
|
|
2910 |
if (that == null)
|
|
|
2911 |
return false;
|
|
|
2912 |
if (that instanceof scanSerializedItem_args)
|
|
|
2913 |
return this.equals((scanSerializedItem_args)that);
|
|
|
2914 |
return false;
|
|
|
2915 |
}
|
|
|
2916 |
|
|
|
2917 |
public boolean equals(scanSerializedItem_args that) {
|
|
|
2918 |
if (that == null)
|
|
|
2919 |
return false;
|
|
|
2920 |
|
| 5110 |
mandeep.dh |
2921 |
boolean this_present_inventoryItem = true && this.isSetInventoryItem();
|
|
|
2922 |
boolean that_present_inventoryItem = true && that.isSetInventoryItem();
|
|
|
2923 |
if (this_present_inventoryItem || that_present_inventoryItem) {
|
|
|
2924 |
if (!(this_present_inventoryItem && that_present_inventoryItem))
|
| 4496 |
mandeep.dh |
2925 |
return false;
|
| 5110 |
mandeep.dh |
2926 |
if (!this.inventoryItem.equals(that.inventoryItem))
|
| 4496 |
mandeep.dh |
2927 |
return false;
|
|
|
2928 |
}
|
|
|
2929 |
|
|
|
2930 |
boolean this_present_type = true && this.isSetType();
|
|
|
2931 |
boolean that_present_type = true && that.isSetType();
|
|
|
2932 |
if (this_present_type || that_present_type) {
|
|
|
2933 |
if (!(this_present_type && that_present_type))
|
|
|
2934 |
return false;
|
|
|
2935 |
if (!this.type.equals(that.type))
|
|
|
2936 |
return false;
|
|
|
2937 |
}
|
|
|
2938 |
|
| 5361 |
mandeep.dh |
2939 |
boolean this_present_billingWarehouseId = true;
|
|
|
2940 |
boolean that_present_billingWarehouseId = true;
|
|
|
2941 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
2942 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
| 4496 |
mandeep.dh |
2943 |
return false;
|
| 5361 |
mandeep.dh |
2944 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
| 4496 |
mandeep.dh |
2945 |
return false;
|
|
|
2946 |
}
|
|
|
2947 |
|
|
|
2948 |
return true;
|
|
|
2949 |
}
|
|
|
2950 |
|
|
|
2951 |
@Override
|
|
|
2952 |
public int hashCode() {
|
|
|
2953 |
return 0;
|
|
|
2954 |
}
|
|
|
2955 |
|
|
|
2956 |
public int compareTo(scanSerializedItem_args other) {
|
|
|
2957 |
if (!getClass().equals(other.getClass())) {
|
|
|
2958 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2959 |
}
|
|
|
2960 |
|
|
|
2961 |
int lastComparison = 0;
|
|
|
2962 |
scanSerializedItem_args typedOther = (scanSerializedItem_args)other;
|
|
|
2963 |
|
| 5110 |
mandeep.dh |
2964 |
lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
|
| 4496 |
mandeep.dh |
2965 |
if (lastComparison != 0) {
|
|
|
2966 |
return lastComparison;
|
|
|
2967 |
}
|
| 5110 |
mandeep.dh |
2968 |
if (isSetInventoryItem()) {
|
|
|
2969 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
|
| 4496 |
mandeep.dh |
2970 |
if (lastComparison != 0) {
|
|
|
2971 |
return lastComparison;
|
|
|
2972 |
}
|
|
|
2973 |
}
|
|
|
2974 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
|
|
2975 |
if (lastComparison != 0) {
|
|
|
2976 |
return lastComparison;
|
|
|
2977 |
}
|
|
|
2978 |
if (isSetType()) {
|
|
|
2979 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
2980 |
if (lastComparison != 0) {
|
|
|
2981 |
return lastComparison;
|
|
|
2982 |
}
|
|
|
2983 |
}
|
| 5361 |
mandeep.dh |
2984 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
| 4496 |
mandeep.dh |
2985 |
if (lastComparison != 0) {
|
|
|
2986 |
return lastComparison;
|
|
|
2987 |
}
|
| 5361 |
mandeep.dh |
2988 |
if (isSetBillingWarehouseId()) {
|
|
|
2989 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
| 4496 |
mandeep.dh |
2990 |
if (lastComparison != 0) {
|
|
|
2991 |
return lastComparison;
|
|
|
2992 |
}
|
|
|
2993 |
}
|
|
|
2994 |
return 0;
|
|
|
2995 |
}
|
|
|
2996 |
|
|
|
2997 |
public _Fields fieldForId(int fieldId) {
|
|
|
2998 |
return _Fields.findByThriftId(fieldId);
|
|
|
2999 |
}
|
|
|
3000 |
|
|
|
3001 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3002 |
org.apache.thrift.protocol.TField field;
|
|
|
3003 |
iprot.readStructBegin();
|
|
|
3004 |
while (true)
|
|
|
3005 |
{
|
|
|
3006 |
field = iprot.readFieldBegin();
|
|
|
3007 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
3008 |
break;
|
|
|
3009 |
}
|
|
|
3010 |
switch (field.id) {
|
| 5110 |
mandeep.dh |
3011 |
case 1: // INVENTORY_ITEM
|
|
|
3012 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3013 |
this.inventoryItem = new InventoryItem();
|
|
|
3014 |
this.inventoryItem.read(iprot);
|
| 4496 |
mandeep.dh |
3015 |
} else {
|
|
|
3016 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3017 |
}
|
|
|
3018 |
break;
|
|
|
3019 |
case 2: // TYPE
|
|
|
3020 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
3021 |
this.type = ScanType.findByValue(iprot.readI32());
|
|
|
3022 |
} else {
|
|
|
3023 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3024 |
}
|
|
|
3025 |
break;
|
| 5361 |
mandeep.dh |
3026 |
case 3: // BILLING_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
3027 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5361 |
mandeep.dh |
3028 |
this.billingWarehouseId = iprot.readI64();
|
|
|
3029 |
setBillingWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
3030 |
} else {
|
|
|
3031 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3032 |
}
|
|
|
3033 |
break;
|
|
|
3034 |
default:
|
|
|
3035 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3036 |
}
|
|
|
3037 |
iprot.readFieldEnd();
|
|
|
3038 |
}
|
|
|
3039 |
iprot.readStructEnd();
|
|
|
3040 |
validate();
|
|
|
3041 |
}
|
|
|
3042 |
|
|
|
3043 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
3044 |
validate();
|
|
|
3045 |
|
|
|
3046 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5110 |
mandeep.dh |
3047 |
if (this.inventoryItem != null) {
|
|
|
3048 |
oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
|
|
|
3049 |
this.inventoryItem.write(oprot);
|
|
|
3050 |
oprot.writeFieldEnd();
|
|
|
3051 |
}
|
| 4496 |
mandeep.dh |
3052 |
if (this.type != null) {
|
|
|
3053 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
3054 |
oprot.writeI32(this.type.getValue());
|
|
|
3055 |
oprot.writeFieldEnd();
|
|
|
3056 |
}
|
| 5361 |
mandeep.dh |
3057 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
3058 |
oprot.writeI64(this.billingWarehouseId);
|
| 4496 |
mandeep.dh |
3059 |
oprot.writeFieldEnd();
|
|
|
3060 |
oprot.writeFieldStop();
|
|
|
3061 |
oprot.writeStructEnd();
|
|
|
3062 |
}
|
|
|
3063 |
|
|
|
3064 |
@Override
|
|
|
3065 |
public String toString() {
|
|
|
3066 |
StringBuilder sb = new StringBuilder("scanSerializedItem_args(");
|
|
|
3067 |
boolean first = true;
|
|
|
3068 |
|
| 5110 |
mandeep.dh |
3069 |
sb.append("inventoryItem:");
|
|
|
3070 |
if (this.inventoryItem == null) {
|
|
|
3071 |
sb.append("null");
|
|
|
3072 |
} else {
|
|
|
3073 |
sb.append(this.inventoryItem);
|
|
|
3074 |
}
|
| 4496 |
mandeep.dh |
3075 |
first = false;
|
|
|
3076 |
if (!first) sb.append(", ");
|
|
|
3077 |
sb.append("type:");
|
|
|
3078 |
if (this.type == null) {
|
|
|
3079 |
sb.append("null");
|
|
|
3080 |
} else {
|
|
|
3081 |
sb.append(this.type);
|
|
|
3082 |
}
|
|
|
3083 |
first = false;
|
|
|
3084 |
if (!first) sb.append(", ");
|
| 5361 |
mandeep.dh |
3085 |
sb.append("billingWarehouseId:");
|
|
|
3086 |
sb.append(this.billingWarehouseId);
|
| 4496 |
mandeep.dh |
3087 |
first = false;
|
|
|
3088 |
sb.append(")");
|
|
|
3089 |
return sb.toString();
|
|
|
3090 |
}
|
|
|
3091 |
|
|
|
3092 |
public void validate() throws org.apache.thrift.TException {
|
|
|
3093 |
// check for required fields
|
|
|
3094 |
}
|
|
|
3095 |
|
|
|
3096 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3097 |
try {
|
|
|
3098 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3099 |
} catch (org.apache.thrift.TException te) {
|
|
|
3100 |
throw new java.io.IOException(te);
|
|
|
3101 |
}
|
|
|
3102 |
}
|
|
|
3103 |
|
|
|
3104 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3105 |
try {
|
|
|
3106 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
3107 |
__isset_bit_vector = new BitSet(1);
|
|
|
3108 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3109 |
} catch (org.apache.thrift.TException te) {
|
|
|
3110 |
throw new java.io.IOException(te);
|
|
|
3111 |
}
|
|
|
3112 |
}
|
|
|
3113 |
|
|
|
3114 |
}
|
|
|
3115 |
|
|
|
3116 |
public static class scanSerializedItem_result implements org.apache.thrift.TBase<scanSerializedItem_result, scanSerializedItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3117 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItem_result");
|
|
|
3118 |
|
|
|
3119 |
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);
|
|
|
3120 |
|
|
|
3121 |
private WarehouseServiceException wex; // required
|
|
|
3122 |
|
|
|
3123 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
3124 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
3125 |
WEX((short)1, "wex");
|
|
|
3126 |
|
|
|
3127 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3128 |
|
|
|
3129 |
static {
|
|
|
3130 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3131 |
byName.put(field.getFieldName(), field);
|
|
|
3132 |
}
|
|
|
3133 |
}
|
|
|
3134 |
|
|
|
3135 |
/**
|
|
|
3136 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3137 |
*/
|
|
|
3138 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
3139 |
switch(fieldId) {
|
|
|
3140 |
case 1: // WEX
|
|
|
3141 |
return WEX;
|
|
|
3142 |
default:
|
|
|
3143 |
return null;
|
|
|
3144 |
}
|
|
|
3145 |
}
|
|
|
3146 |
|
|
|
3147 |
/**
|
|
|
3148 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3149 |
* if it is not found.
|
|
|
3150 |
*/
|
|
|
3151 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3152 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3153 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3154 |
return fields;
|
|
|
3155 |
}
|
|
|
3156 |
|
|
|
3157 |
/**
|
|
|
3158 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3159 |
*/
|
|
|
3160 |
public static _Fields findByName(String name) {
|
|
|
3161 |
return byName.get(name);
|
|
|
3162 |
}
|
|
|
3163 |
|
|
|
3164 |
private final short _thriftId;
|
|
|
3165 |
private final String _fieldName;
|
|
|
3166 |
|
|
|
3167 |
_Fields(short thriftId, String fieldName) {
|
|
|
3168 |
_thriftId = thriftId;
|
|
|
3169 |
_fieldName = fieldName;
|
|
|
3170 |
}
|
|
|
3171 |
|
|
|
3172 |
public short getThriftFieldId() {
|
|
|
3173 |
return _thriftId;
|
|
|
3174 |
}
|
|
|
3175 |
|
|
|
3176 |
public String getFieldName() {
|
|
|
3177 |
return _fieldName;
|
|
|
3178 |
}
|
|
|
3179 |
}
|
|
|
3180 |
|
|
|
3181 |
// isset id assignments
|
|
|
3182 |
|
|
|
3183 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
3184 |
static {
|
|
|
3185 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3186 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3187 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
3188 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3189 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItem_result.class, metaDataMap);
|
|
|
3190 |
}
|
|
|
3191 |
|
|
|
3192 |
public scanSerializedItem_result() {
|
|
|
3193 |
}
|
|
|
3194 |
|
|
|
3195 |
public scanSerializedItem_result(
|
|
|
3196 |
WarehouseServiceException wex)
|
|
|
3197 |
{
|
|
|
3198 |
this();
|
|
|
3199 |
this.wex = wex;
|
|
|
3200 |
}
|
|
|
3201 |
|
|
|
3202 |
/**
|
|
|
3203 |
* Performs a deep copy on <i>other</i>.
|
|
|
3204 |
*/
|
|
|
3205 |
public scanSerializedItem_result(scanSerializedItem_result other) {
|
|
|
3206 |
if (other.isSetWex()) {
|
|
|
3207 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
3208 |
}
|
|
|
3209 |
}
|
|
|
3210 |
|
|
|
3211 |
public scanSerializedItem_result deepCopy() {
|
|
|
3212 |
return new scanSerializedItem_result(this);
|
|
|
3213 |
}
|
|
|
3214 |
|
|
|
3215 |
@Override
|
|
|
3216 |
public void clear() {
|
|
|
3217 |
this.wex = null;
|
|
|
3218 |
}
|
|
|
3219 |
|
| 2820 |
chandransh |
3220 |
public WarehouseServiceException getWex() {
|
|
|
3221 |
return this.wex;
|
|
|
3222 |
}
|
|
|
3223 |
|
| 3430 |
rajveer |
3224 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
3225 |
this.wex = wex;
|
|
|
3226 |
}
|
|
|
3227 |
|
|
|
3228 |
public void unsetWex() {
|
|
|
3229 |
this.wex = null;
|
|
|
3230 |
}
|
|
|
3231 |
|
| 3430 |
rajveer |
3232 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
3233 |
public boolean isSetWex() {
|
|
|
3234 |
return this.wex != null;
|
|
|
3235 |
}
|
|
|
3236 |
|
|
|
3237 |
public void setWexIsSet(boolean value) {
|
|
|
3238 |
if (!value) {
|
|
|
3239 |
this.wex = null;
|
|
|
3240 |
}
|
|
|
3241 |
}
|
|
|
3242 |
|
|
|
3243 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3244 |
switch (field) {
|
|
|
3245 |
case WEX:
|
|
|
3246 |
if (value == null) {
|
|
|
3247 |
unsetWex();
|
|
|
3248 |
} else {
|
|
|
3249 |
setWex((WarehouseServiceException)value);
|
|
|
3250 |
}
|
|
|
3251 |
break;
|
|
|
3252 |
|
|
|
3253 |
}
|
|
|
3254 |
}
|
|
|
3255 |
|
|
|
3256 |
public Object getFieldValue(_Fields field) {
|
|
|
3257 |
switch (field) {
|
|
|
3258 |
case WEX:
|
|
|
3259 |
return getWex();
|
|
|
3260 |
|
|
|
3261 |
}
|
|
|
3262 |
throw new IllegalStateException();
|
|
|
3263 |
}
|
|
|
3264 |
|
| 3430 |
rajveer |
3265 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3266 |
public boolean isSet(_Fields field) {
|
|
|
3267 |
if (field == null) {
|
|
|
3268 |
throw new IllegalArgumentException();
|
|
|
3269 |
}
|
| 2820 |
chandransh |
3270 |
|
|
|
3271 |
switch (field) {
|
|
|
3272 |
case WEX:
|
|
|
3273 |
return isSetWex();
|
|
|
3274 |
}
|
|
|
3275 |
throw new IllegalStateException();
|
|
|
3276 |
}
|
|
|
3277 |
|
|
|
3278 |
@Override
|
|
|
3279 |
public boolean equals(Object that) {
|
|
|
3280 |
if (that == null)
|
|
|
3281 |
return false;
|
| 4496 |
mandeep.dh |
3282 |
if (that instanceof scanSerializedItem_result)
|
|
|
3283 |
return this.equals((scanSerializedItem_result)that);
|
| 2820 |
chandransh |
3284 |
return false;
|
|
|
3285 |
}
|
|
|
3286 |
|
| 4496 |
mandeep.dh |
3287 |
public boolean equals(scanSerializedItem_result that) {
|
| 2820 |
chandransh |
3288 |
if (that == null)
|
|
|
3289 |
return false;
|
|
|
3290 |
|
|
|
3291 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
3292 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
3293 |
if (this_present_wex || that_present_wex) {
|
|
|
3294 |
if (!(this_present_wex && that_present_wex))
|
|
|
3295 |
return false;
|
|
|
3296 |
if (!this.wex.equals(that.wex))
|
|
|
3297 |
return false;
|
|
|
3298 |
}
|
|
|
3299 |
|
|
|
3300 |
return true;
|
|
|
3301 |
}
|
|
|
3302 |
|
|
|
3303 |
@Override
|
|
|
3304 |
public int hashCode() {
|
|
|
3305 |
return 0;
|
|
|
3306 |
}
|
|
|
3307 |
|
| 4496 |
mandeep.dh |
3308 |
public int compareTo(scanSerializedItem_result other) {
|
| 2820 |
chandransh |
3309 |
if (!getClass().equals(other.getClass())) {
|
|
|
3310 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3311 |
}
|
|
|
3312 |
|
|
|
3313 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
3314 |
scanSerializedItem_result typedOther = (scanSerializedItem_result)other;
|
| 2820 |
chandransh |
3315 |
|
| 3430 |
rajveer |
3316 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
3317 |
if (lastComparison != 0) {
|
|
|
3318 |
return lastComparison;
|
|
|
3319 |
}
|
| 3430 |
rajveer |
3320 |
if (isSetWex()) {
|
|
|
3321 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
3322 |
if (lastComparison != 0) {
|
|
|
3323 |
return lastComparison;
|
|
|
3324 |
}
|
| 2820 |
chandransh |
3325 |
}
|
|
|
3326 |
return 0;
|
|
|
3327 |
}
|
|
|
3328 |
|
| 3430 |
rajveer |
3329 |
public _Fields fieldForId(int fieldId) {
|
|
|
3330 |
return _Fields.findByThriftId(fieldId);
|
|
|
3331 |
}
|
|
|
3332 |
|
|
|
3333 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3334 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
3335 |
iprot.readStructBegin();
|
|
|
3336 |
while (true)
|
|
|
3337 |
{
|
|
|
3338 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3339 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
3340 |
break;
|
|
|
3341 |
}
|
| 3430 |
rajveer |
3342 |
switch (field.id) {
|
|
|
3343 |
case 1: // WEX
|
|
|
3344 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3345 |
this.wex = new WarehouseServiceException();
|
|
|
3346 |
this.wex.read(iprot);
|
|
|
3347 |
} else {
|
|
|
3348 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3349 |
}
|
|
|
3350 |
break;
|
|
|
3351 |
default:
|
|
|
3352 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
3353 |
}
|
| 3430 |
rajveer |
3354 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
3355 |
}
|
|
|
3356 |
iprot.readStructEnd();
|
|
|
3357 |
validate();
|
|
|
3358 |
}
|
|
|
3359 |
|
| 3430 |
rajveer |
3360 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
3361 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3362 |
|
| 4496 |
mandeep.dh |
3363 |
if (this.isSetWex()) {
|
| 2820 |
chandransh |
3364 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
3365 |
this.wex.write(oprot);
|
|
|
3366 |
oprot.writeFieldEnd();
|
|
|
3367 |
}
|
|
|
3368 |
oprot.writeFieldStop();
|
|
|
3369 |
oprot.writeStructEnd();
|
|
|
3370 |
}
|
|
|
3371 |
|
|
|
3372 |
@Override
|
|
|
3373 |
public String toString() {
|
| 4496 |
mandeep.dh |
3374 |
StringBuilder sb = new StringBuilder("scanSerializedItem_result(");
|
| 2820 |
chandransh |
3375 |
boolean first = true;
|
|
|
3376 |
|
|
|
3377 |
sb.append("wex:");
|
|
|
3378 |
if (this.wex == null) {
|
|
|
3379 |
sb.append("null");
|
|
|
3380 |
} else {
|
|
|
3381 |
sb.append(this.wex);
|
|
|
3382 |
}
|
|
|
3383 |
first = false;
|
|
|
3384 |
sb.append(")");
|
|
|
3385 |
return sb.toString();
|
|
|
3386 |
}
|
|
|
3387 |
|
| 3430 |
rajveer |
3388 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
3389 |
// check for required fields
|
|
|
3390 |
}
|
|
|
3391 |
|
| 3430 |
rajveer |
3392 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3393 |
try {
|
|
|
3394 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3395 |
} catch (org.apache.thrift.TException te) {
|
|
|
3396 |
throw new java.io.IOException(te);
|
|
|
3397 |
}
|
|
|
3398 |
}
|
|
|
3399 |
|
|
|
3400 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3401 |
try {
|
|
|
3402 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3403 |
} catch (org.apache.thrift.TException te) {
|
|
|
3404 |
throw new java.io.IOException(te);
|
|
|
3405 |
}
|
|
|
3406 |
}
|
|
|
3407 |
|
| 2820 |
chandransh |
3408 |
}
|
|
|
3409 |
|
| 4496 |
mandeep.dh |
3410 |
public static class scan_args implements org.apache.thrift.TBase<scan_args, scan_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3411 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_args");
|
| 3383 |
chandransh |
3412 |
|
| 5361 |
mandeep.dh |
3413 |
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 |
3414 |
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);
|
|
|
3415 |
private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);
|
| 5361 |
mandeep.dh |
3416 |
private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)4);
|
| 3383 |
chandransh |
3417 |
|
| 5361 |
mandeep.dh |
3418 |
private InventoryItem inventoryItem; // required
|
| 4496 |
mandeep.dh |
3419 |
private ScanType type; // required
|
|
|
3420 |
private long quantity; // required
|
| 5361 |
mandeep.dh |
3421 |
private long billingWarehouseId; // required
|
| 3383 |
chandransh |
3422 |
|
|
|
3423 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3424 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
3425 |
INVENTORY_ITEM((short)1, "inventoryItem"),
|
| 4496 |
mandeep.dh |
3426 |
/**
|
|
|
3427 |
*
|
|
|
3428 |
* @see ScanType
|
|
|
3429 |
*/
|
|
|
3430 |
TYPE((short)2, "type"),
|
|
|
3431 |
QUANTITY((short)3, "quantity"),
|
| 5361 |
mandeep.dh |
3432 |
BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId");
|
| 3383 |
chandransh |
3433 |
|
|
|
3434 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3435 |
|
|
|
3436 |
static {
|
|
|
3437 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3438 |
byName.put(field.getFieldName(), field);
|
|
|
3439 |
}
|
|
|
3440 |
}
|
|
|
3441 |
|
|
|
3442 |
/**
|
|
|
3443 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3444 |
*/
|
|
|
3445 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3446 |
switch(fieldId) {
|
| 5361 |
mandeep.dh |
3447 |
case 1: // INVENTORY_ITEM
|
|
|
3448 |
return INVENTORY_ITEM;
|
| 4496 |
mandeep.dh |
3449 |
case 2: // TYPE
|
|
|
3450 |
return TYPE;
|
|
|
3451 |
case 3: // QUANTITY
|
|
|
3452 |
return QUANTITY;
|
| 5361 |
mandeep.dh |
3453 |
case 4: // BILLING_WAREHOUSE_ID
|
|
|
3454 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
3455 |
default:
|
|
|
3456 |
return null;
|
|
|
3457 |
}
|
| 3383 |
chandransh |
3458 |
}
|
|
|
3459 |
|
|
|
3460 |
/**
|
|
|
3461 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3462 |
* if it is not found.
|
|
|
3463 |
*/
|
|
|
3464 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3465 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3466 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3467 |
return fields;
|
|
|
3468 |
}
|
|
|
3469 |
|
|
|
3470 |
/**
|
|
|
3471 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3472 |
*/
|
|
|
3473 |
public static _Fields findByName(String name) {
|
|
|
3474 |
return byName.get(name);
|
|
|
3475 |
}
|
|
|
3476 |
|
|
|
3477 |
private final short _thriftId;
|
|
|
3478 |
private final String _fieldName;
|
|
|
3479 |
|
|
|
3480 |
_Fields(short thriftId, String fieldName) {
|
|
|
3481 |
_thriftId = thriftId;
|
|
|
3482 |
_fieldName = fieldName;
|
|
|
3483 |
}
|
|
|
3484 |
|
|
|
3485 |
public short getThriftFieldId() {
|
|
|
3486 |
return _thriftId;
|
|
|
3487 |
}
|
|
|
3488 |
|
|
|
3489 |
public String getFieldName() {
|
|
|
3490 |
return _fieldName;
|
|
|
3491 |
}
|
|
|
3492 |
}
|
|
|
3493 |
|
|
|
3494 |
// isset id assignments
|
| 5361 |
mandeep.dh |
3495 |
private static final int __QUANTITY_ISSET_ID = 0;
|
|
|
3496 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
|
|
|
3497 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 3383 |
chandransh |
3498 |
|
| 3430 |
rajveer |
3499 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
3500 |
static {
|
| 3430 |
rajveer |
3501 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5361 |
mandeep.dh |
3502 |
tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3503 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 4496 |
mandeep.dh |
3504 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3505 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
3506 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3507 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5361 |
mandeep.dh |
3508 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
3509 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
3510 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
3511 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap);
|
| 3383 |
chandransh |
3512 |
}
|
|
|
3513 |
|
| 4496 |
mandeep.dh |
3514 |
public scan_args() {
|
| 3383 |
chandransh |
3515 |
}
|
|
|
3516 |
|
| 4496 |
mandeep.dh |
3517 |
public scan_args(
|
| 5361 |
mandeep.dh |
3518 |
InventoryItem inventoryItem,
|
| 4496 |
mandeep.dh |
3519 |
ScanType type,
|
|
|
3520 |
long quantity,
|
| 5361 |
mandeep.dh |
3521 |
long billingWarehouseId)
|
| 3383 |
chandransh |
3522 |
{
|
|
|
3523 |
this();
|
| 5361 |
mandeep.dh |
3524 |
this.inventoryItem = inventoryItem;
|
| 4496 |
mandeep.dh |
3525 |
this.type = type;
|
|
|
3526 |
this.quantity = quantity;
|
|
|
3527 |
setQuantityIsSet(true);
|
| 5361 |
mandeep.dh |
3528 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
3529 |
setBillingWarehouseIdIsSet(true);
|
| 3383 |
chandransh |
3530 |
}
|
|
|
3531 |
|
|
|
3532 |
/**
|
|
|
3533 |
* Performs a deep copy on <i>other</i>.
|
|
|
3534 |
*/
|
| 4496 |
mandeep.dh |
3535 |
public scan_args(scan_args other) {
|
| 3383 |
chandransh |
3536 |
__isset_bit_vector.clear();
|
|
|
3537 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5361 |
mandeep.dh |
3538 |
if (other.isSetInventoryItem()) {
|
|
|
3539 |
this.inventoryItem = new InventoryItem(other.inventoryItem);
|
|
|
3540 |
}
|
| 4496 |
mandeep.dh |
3541 |
if (other.isSetType()) {
|
|
|
3542 |
this.type = other.type;
|
|
|
3543 |
}
|
|
|
3544 |
this.quantity = other.quantity;
|
| 5361 |
mandeep.dh |
3545 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 3383 |
chandransh |
3546 |
}
|
|
|
3547 |
|
| 4496 |
mandeep.dh |
3548 |
public scan_args deepCopy() {
|
|
|
3549 |
return new scan_args(this);
|
| 3383 |
chandransh |
3550 |
}
|
|
|
3551 |
|
| 3430 |
rajveer |
3552 |
@Override
|
|
|
3553 |
public void clear() {
|
| 5361 |
mandeep.dh |
3554 |
this.inventoryItem = null;
|
| 4496 |
mandeep.dh |
3555 |
this.type = null;
|
|
|
3556 |
setQuantityIsSet(false);
|
|
|
3557 |
this.quantity = 0;
|
| 5361 |
mandeep.dh |
3558 |
setBillingWarehouseIdIsSet(false);
|
|
|
3559 |
this.billingWarehouseId = 0;
|
| 3383 |
chandransh |
3560 |
}
|
|
|
3561 |
|
| 5361 |
mandeep.dh |
3562 |
public InventoryItem getInventoryItem() {
|
|
|
3563 |
return this.inventoryItem;
|
| 3383 |
chandransh |
3564 |
}
|
|
|
3565 |
|
| 5361 |
mandeep.dh |
3566 |
public void setInventoryItem(InventoryItem inventoryItem) {
|
|
|
3567 |
this.inventoryItem = inventoryItem;
|
| 3383 |
chandransh |
3568 |
}
|
|
|
3569 |
|
| 5361 |
mandeep.dh |
3570 |
public void unsetInventoryItem() {
|
|
|
3571 |
this.inventoryItem = null;
|
| 3383 |
chandransh |
3572 |
}
|
|
|
3573 |
|
| 5361 |
mandeep.dh |
3574 |
/** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
|
|
|
3575 |
public boolean isSetInventoryItem() {
|
|
|
3576 |
return this.inventoryItem != null;
|
| 3383 |
chandransh |
3577 |
}
|
|
|
3578 |
|
| 5361 |
mandeep.dh |
3579 |
public void setInventoryItemIsSet(boolean value) {
|
|
|
3580 |
if (!value) {
|
|
|
3581 |
this.inventoryItem = null;
|
|
|
3582 |
}
|
| 3383 |
chandransh |
3583 |
}
|
|
|
3584 |
|
| 4496 |
mandeep.dh |
3585 |
/**
|
|
|
3586 |
*
|
|
|
3587 |
* @see ScanType
|
|
|
3588 |
*/
|
|
|
3589 |
public ScanType getType() {
|
|
|
3590 |
return this.type;
|
| 3383 |
chandransh |
3591 |
}
|
|
|
3592 |
|
| 4496 |
mandeep.dh |
3593 |
/**
|
|
|
3594 |
*
|
|
|
3595 |
* @see ScanType
|
|
|
3596 |
*/
|
|
|
3597 |
public void setType(ScanType type) {
|
|
|
3598 |
this.type = type;
|
| 3383 |
chandransh |
3599 |
}
|
|
|
3600 |
|
| 4496 |
mandeep.dh |
3601 |
public void unsetType() {
|
|
|
3602 |
this.type = null;
|
| 3383 |
chandransh |
3603 |
}
|
|
|
3604 |
|
| 4496 |
mandeep.dh |
3605 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
3606 |
public boolean isSetType() {
|
|
|
3607 |
return this.type != null;
|
| 3383 |
chandransh |
3608 |
}
|
|
|
3609 |
|
| 4496 |
mandeep.dh |
3610 |
public void setTypeIsSet(boolean value) {
|
|
|
3611 |
if (!value) {
|
|
|
3612 |
this.type = null;
|
|
|
3613 |
}
|
| 3383 |
chandransh |
3614 |
}
|
|
|
3615 |
|
| 4496 |
mandeep.dh |
3616 |
public long getQuantity() {
|
|
|
3617 |
return this.quantity;
|
|
|
3618 |
}
|
|
|
3619 |
|
|
|
3620 |
public void setQuantity(long quantity) {
|
|
|
3621 |
this.quantity = quantity;
|
|
|
3622 |
setQuantityIsSet(true);
|
|
|
3623 |
}
|
|
|
3624 |
|
|
|
3625 |
public void unsetQuantity() {
|
|
|
3626 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
3627 |
}
|
|
|
3628 |
|
|
|
3629 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
3630 |
public boolean isSetQuantity() {
|
|
|
3631 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
3632 |
}
|
|
|
3633 |
|
|
|
3634 |
public void setQuantityIsSet(boolean value) {
|
|
|
3635 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
3636 |
}
|
|
|
3637 |
|
| 5361 |
mandeep.dh |
3638 |
public long getBillingWarehouseId() {
|
|
|
3639 |
return this.billingWarehouseId;
|
| 4496 |
mandeep.dh |
3640 |
}
|
|
|
3641 |
|
| 5361 |
mandeep.dh |
3642 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
3643 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
3644 |
setBillingWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
3645 |
}
|
|
|
3646 |
|
| 5361 |
mandeep.dh |
3647 |
public void unsetBillingWarehouseId() {
|
|
|
3648 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
3649 |
}
|
|
|
3650 |
|
| 5361 |
mandeep.dh |
3651 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
3652 |
public boolean isSetBillingWarehouseId() {
|
|
|
3653 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
3654 |
}
|
|
|
3655 |
|
| 5361 |
mandeep.dh |
3656 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
3657 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
| 4496 |
mandeep.dh |
3658 |
}
|
|
|
3659 |
|
| 3383 |
chandransh |
3660 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3661 |
switch (field) {
|
| 5361 |
mandeep.dh |
3662 |
case INVENTORY_ITEM:
|
| 3383 |
chandransh |
3663 |
if (value == null) {
|
| 5361 |
mandeep.dh |
3664 |
unsetInventoryItem();
|
| 3383 |
chandransh |
3665 |
} else {
|
| 5361 |
mandeep.dh |
3666 |
setInventoryItem((InventoryItem)value);
|
| 3383 |
chandransh |
3667 |
}
|
|
|
3668 |
break;
|
|
|
3669 |
|
| 4496 |
mandeep.dh |
3670 |
case TYPE:
|
| 3383 |
chandransh |
3671 |
if (value == null) {
|
| 4496 |
mandeep.dh |
3672 |
unsetType();
|
| 3383 |
chandransh |
3673 |
} else {
|
| 4496 |
mandeep.dh |
3674 |
setType((ScanType)value);
|
| 3383 |
chandransh |
3675 |
}
|
|
|
3676 |
break;
|
|
|
3677 |
|
| 4496 |
mandeep.dh |
3678 |
case QUANTITY:
|
|
|
3679 |
if (value == null) {
|
|
|
3680 |
unsetQuantity();
|
|
|
3681 |
} else {
|
|
|
3682 |
setQuantity((Long)value);
|
|
|
3683 |
}
|
|
|
3684 |
break;
|
|
|
3685 |
|
| 5361 |
mandeep.dh |
3686 |
case BILLING_WAREHOUSE_ID:
|
| 4496 |
mandeep.dh |
3687 |
if (value == null) {
|
| 5361 |
mandeep.dh |
3688 |
unsetBillingWarehouseId();
|
| 4496 |
mandeep.dh |
3689 |
} else {
|
| 5361 |
mandeep.dh |
3690 |
setBillingWarehouseId((Long)value);
|
| 4496 |
mandeep.dh |
3691 |
}
|
|
|
3692 |
break;
|
|
|
3693 |
|
| 3383 |
chandransh |
3694 |
}
|
|
|
3695 |
}
|
|
|
3696 |
|
|
|
3697 |
public Object getFieldValue(_Fields field) {
|
|
|
3698 |
switch (field) {
|
| 5361 |
mandeep.dh |
3699 |
case INVENTORY_ITEM:
|
|
|
3700 |
return getInventoryItem();
|
| 3383 |
chandransh |
3701 |
|
| 4496 |
mandeep.dh |
3702 |
case TYPE:
|
|
|
3703 |
return getType();
|
| 3383 |
chandransh |
3704 |
|
| 4496 |
mandeep.dh |
3705 |
case QUANTITY:
|
|
|
3706 |
return Long.valueOf(getQuantity());
|
|
|
3707 |
|
| 5361 |
mandeep.dh |
3708 |
case BILLING_WAREHOUSE_ID:
|
|
|
3709 |
return Long.valueOf(getBillingWarehouseId());
|
| 4496 |
mandeep.dh |
3710 |
|
| 3383 |
chandransh |
3711 |
}
|
|
|
3712 |
throw new IllegalStateException();
|
|
|
3713 |
}
|
|
|
3714 |
|
| 3430 |
rajveer |
3715 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3716 |
public boolean isSet(_Fields field) {
|
|
|
3717 |
if (field == null) {
|
|
|
3718 |
throw new IllegalArgumentException();
|
|
|
3719 |
}
|
| 3383 |
chandransh |
3720 |
|
|
|
3721 |
switch (field) {
|
| 5361 |
mandeep.dh |
3722 |
case INVENTORY_ITEM:
|
|
|
3723 |
return isSetInventoryItem();
|
| 4496 |
mandeep.dh |
3724 |
case TYPE:
|
|
|
3725 |
return isSetType();
|
|
|
3726 |
case QUANTITY:
|
|
|
3727 |
return isSetQuantity();
|
| 5361 |
mandeep.dh |
3728 |
case BILLING_WAREHOUSE_ID:
|
|
|
3729 |
return isSetBillingWarehouseId();
|
| 3383 |
chandransh |
3730 |
}
|
|
|
3731 |
throw new IllegalStateException();
|
|
|
3732 |
}
|
|
|
3733 |
|
|
|
3734 |
@Override
|
|
|
3735 |
public boolean equals(Object that) {
|
|
|
3736 |
if (that == null)
|
|
|
3737 |
return false;
|
| 4496 |
mandeep.dh |
3738 |
if (that instanceof scan_args)
|
|
|
3739 |
return this.equals((scan_args)that);
|
| 3383 |
chandransh |
3740 |
return false;
|
|
|
3741 |
}
|
|
|
3742 |
|
| 4496 |
mandeep.dh |
3743 |
public boolean equals(scan_args that) {
|
| 3383 |
chandransh |
3744 |
if (that == null)
|
|
|
3745 |
return false;
|
|
|
3746 |
|
| 5361 |
mandeep.dh |
3747 |
boolean this_present_inventoryItem = true && this.isSetInventoryItem();
|
|
|
3748 |
boolean that_present_inventoryItem = true && that.isSetInventoryItem();
|
|
|
3749 |
if (this_present_inventoryItem || that_present_inventoryItem) {
|
|
|
3750 |
if (!(this_present_inventoryItem && that_present_inventoryItem))
|
| 3383 |
chandransh |
3751 |
return false;
|
| 5361 |
mandeep.dh |
3752 |
if (!this.inventoryItem.equals(that.inventoryItem))
|
| 3383 |
chandransh |
3753 |
return false;
|
|
|
3754 |
}
|
|
|
3755 |
|
| 4496 |
mandeep.dh |
3756 |
boolean this_present_type = true && this.isSetType();
|
|
|
3757 |
boolean that_present_type = true && that.isSetType();
|
|
|
3758 |
if (this_present_type || that_present_type) {
|
|
|
3759 |
if (!(this_present_type && that_present_type))
|
| 3383 |
chandransh |
3760 |
return false;
|
| 4496 |
mandeep.dh |
3761 |
if (!this.type.equals(that.type))
|
| 3383 |
chandransh |
3762 |
return false;
|
|
|
3763 |
}
|
|
|
3764 |
|
| 4496 |
mandeep.dh |
3765 |
boolean this_present_quantity = true;
|
|
|
3766 |
boolean that_present_quantity = true;
|
|
|
3767 |
if (this_present_quantity || that_present_quantity) {
|
|
|
3768 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
3769 |
return false;
|
|
|
3770 |
if (this.quantity != that.quantity)
|
|
|
3771 |
return false;
|
|
|
3772 |
}
|
|
|
3773 |
|
| 5361 |
mandeep.dh |
3774 |
boolean this_present_billingWarehouseId = true;
|
|
|
3775 |
boolean that_present_billingWarehouseId = true;
|
|
|
3776 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
3777 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
| 4496 |
mandeep.dh |
3778 |
return false;
|
| 5361 |
mandeep.dh |
3779 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
| 4496 |
mandeep.dh |
3780 |
return false;
|
|
|
3781 |
}
|
|
|
3782 |
|
| 3383 |
chandransh |
3783 |
return true;
|
|
|
3784 |
}
|
|
|
3785 |
|
|
|
3786 |
@Override
|
|
|
3787 |
public int hashCode() {
|
|
|
3788 |
return 0;
|
|
|
3789 |
}
|
|
|
3790 |
|
| 4496 |
mandeep.dh |
3791 |
public int compareTo(scan_args other) {
|
| 3383 |
chandransh |
3792 |
if (!getClass().equals(other.getClass())) {
|
|
|
3793 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3794 |
}
|
|
|
3795 |
|
|
|
3796 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
3797 |
scan_args typedOther = (scan_args)other;
|
| 3383 |
chandransh |
3798 |
|
| 5361 |
mandeep.dh |
3799 |
lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
|
| 3383 |
chandransh |
3800 |
if (lastComparison != 0) {
|
|
|
3801 |
return lastComparison;
|
|
|
3802 |
}
|
| 5361 |
mandeep.dh |
3803 |
if (isSetInventoryItem()) {
|
|
|
3804 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
|
| 3430 |
rajveer |
3805 |
if (lastComparison != 0) {
|
|
|
3806 |
return lastComparison;
|
|
|
3807 |
}
|
| 3383 |
chandransh |
3808 |
}
|
| 4496 |
mandeep.dh |
3809 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 3383 |
chandransh |
3810 |
if (lastComparison != 0) {
|
|
|
3811 |
return lastComparison;
|
|
|
3812 |
}
|
| 4496 |
mandeep.dh |
3813 |
if (isSetType()) {
|
|
|
3814 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
3815 |
if (lastComparison != 0) {
|
|
|
3816 |
return lastComparison;
|
|
|
3817 |
}
|
| 3383 |
chandransh |
3818 |
}
|
| 4496 |
mandeep.dh |
3819 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
|
|
3820 |
if (lastComparison != 0) {
|
|
|
3821 |
return lastComparison;
|
|
|
3822 |
}
|
|
|
3823 |
if (isSetQuantity()) {
|
|
|
3824 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
|
|
3825 |
if (lastComparison != 0) {
|
|
|
3826 |
return lastComparison;
|
|
|
3827 |
}
|
|
|
3828 |
}
|
| 5361 |
mandeep.dh |
3829 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
| 4496 |
mandeep.dh |
3830 |
if (lastComparison != 0) {
|
|
|
3831 |
return lastComparison;
|
|
|
3832 |
}
|
| 5361 |
mandeep.dh |
3833 |
if (isSetBillingWarehouseId()) {
|
|
|
3834 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
| 4496 |
mandeep.dh |
3835 |
if (lastComparison != 0) {
|
|
|
3836 |
return lastComparison;
|
|
|
3837 |
}
|
|
|
3838 |
}
|
| 3383 |
chandransh |
3839 |
return 0;
|
|
|
3840 |
}
|
|
|
3841 |
|
| 3430 |
rajveer |
3842 |
public _Fields fieldForId(int fieldId) {
|
|
|
3843 |
return _Fields.findByThriftId(fieldId);
|
|
|
3844 |
}
|
|
|
3845 |
|
|
|
3846 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3847 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
3848 |
iprot.readStructBegin();
|
|
|
3849 |
while (true)
|
|
|
3850 |
{
|
|
|
3851 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3852 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
3853 |
break;
|
|
|
3854 |
}
|
| 3430 |
rajveer |
3855 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
3856 |
case 1: // INVENTORY_ITEM
|
|
|
3857 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3858 |
this.inventoryItem = new InventoryItem();
|
|
|
3859 |
this.inventoryItem.read(iprot);
|
| 3430 |
rajveer |
3860 |
} else {
|
|
|
3861 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3862 |
}
|
|
|
3863 |
break;
|
| 4496 |
mandeep.dh |
3864 |
case 2: // TYPE
|
|
|
3865 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
3866 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
3867 |
} else {
|
|
|
3868 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3869 |
}
|
|
|
3870 |
break;
|
| 4496 |
mandeep.dh |
3871 |
case 3: // QUANTITY
|
|
|
3872 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3873 |
this.quantity = iprot.readI64();
|
|
|
3874 |
setQuantityIsSet(true);
|
|
|
3875 |
} else {
|
|
|
3876 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3877 |
}
|
|
|
3878 |
break;
|
| 5361 |
mandeep.dh |
3879 |
case 4: // BILLING_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
3880 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5361 |
mandeep.dh |
3881 |
this.billingWarehouseId = iprot.readI64();
|
|
|
3882 |
setBillingWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
3883 |
} else {
|
|
|
3884 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3885 |
}
|
|
|
3886 |
break;
|
| 3430 |
rajveer |
3887 |
default:
|
|
|
3888 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
3889 |
}
|
| 3430 |
rajveer |
3890 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
3891 |
}
|
|
|
3892 |
iprot.readStructEnd();
|
|
|
3893 |
validate();
|
|
|
3894 |
}
|
|
|
3895 |
|
| 3430 |
rajveer |
3896 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
3897 |
validate();
|
|
|
3898 |
|
|
|
3899 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5361 |
mandeep.dh |
3900 |
if (this.inventoryItem != null) {
|
|
|
3901 |
oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
|
|
|
3902 |
this.inventoryItem.write(oprot);
|
|
|
3903 |
oprot.writeFieldEnd();
|
|
|
3904 |
}
|
| 4496 |
mandeep.dh |
3905 |
if (this.type != null) {
|
|
|
3906 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
3907 |
oprot.writeI32(this.type.getValue());
|
|
|
3908 |
oprot.writeFieldEnd();
|
|
|
3909 |
}
|
|
|
3910 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
3911 |
oprot.writeI64(this.quantity);
|
| 3383 |
chandransh |
3912 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
3913 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
3914 |
oprot.writeI64(this.billingWarehouseId);
|
| 4496 |
mandeep.dh |
3915 |
oprot.writeFieldEnd();
|
| 3383 |
chandransh |
3916 |
oprot.writeFieldStop();
|
|
|
3917 |
oprot.writeStructEnd();
|
|
|
3918 |
}
|
|
|
3919 |
|
|
|
3920 |
@Override
|
|
|
3921 |
public String toString() {
|
| 4496 |
mandeep.dh |
3922 |
StringBuilder sb = new StringBuilder("scan_args(");
|
| 3383 |
chandransh |
3923 |
boolean first = true;
|
|
|
3924 |
|
| 5361 |
mandeep.dh |
3925 |
sb.append("inventoryItem:");
|
|
|
3926 |
if (this.inventoryItem == null) {
|
|
|
3927 |
sb.append("null");
|
|
|
3928 |
} else {
|
|
|
3929 |
sb.append(this.inventoryItem);
|
|
|
3930 |
}
|
| 3383 |
chandransh |
3931 |
first = false;
|
|
|
3932 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
3933 |
sb.append("type:");
|
|
|
3934 |
if (this.type == null) {
|
|
|
3935 |
sb.append("null");
|
|
|
3936 |
} else {
|
|
|
3937 |
sb.append(this.type);
|
|
|
3938 |
}
|
| 3383 |
chandransh |
3939 |
first = false;
|
| 4496 |
mandeep.dh |
3940 |
if (!first) sb.append(", ");
|
|
|
3941 |
sb.append("quantity:");
|
|
|
3942 |
sb.append(this.quantity);
|
|
|
3943 |
first = false;
|
|
|
3944 |
if (!first) sb.append(", ");
|
| 5361 |
mandeep.dh |
3945 |
sb.append("billingWarehouseId:");
|
|
|
3946 |
sb.append(this.billingWarehouseId);
|
| 4496 |
mandeep.dh |
3947 |
first = false;
|
| 3383 |
chandransh |
3948 |
sb.append(")");
|
|
|
3949 |
return sb.toString();
|
|
|
3950 |
}
|
|
|
3951 |
|
| 3430 |
rajveer |
3952 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
3953 |
// check for required fields
|
|
|
3954 |
}
|
|
|
3955 |
|
| 3430 |
rajveer |
3956 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3957 |
try {
|
|
|
3958 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3959 |
} catch (org.apache.thrift.TException te) {
|
|
|
3960 |
throw new java.io.IOException(te);
|
|
|
3961 |
}
|
|
|
3962 |
}
|
|
|
3963 |
|
|
|
3964 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3965 |
try {
|
| 4496 |
mandeep.dh |
3966 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
3967 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
3968 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3969 |
} catch (org.apache.thrift.TException te) {
|
|
|
3970 |
throw new java.io.IOException(te);
|
|
|
3971 |
}
|
|
|
3972 |
}
|
|
|
3973 |
|
| 3383 |
chandransh |
3974 |
}
|
|
|
3975 |
|
| 4496 |
mandeep.dh |
3976 |
public static class scan_result implements org.apache.thrift.TBase<scan_result, scan_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3977 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_result");
|
| 3383 |
chandransh |
3978 |
|
| 3430 |
rajveer |
3979 |
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 |
3980 |
|
| 3430 |
rajveer |
3981 |
private WarehouseServiceException wex; // required
|
| 3383 |
chandransh |
3982 |
|
|
|
3983 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3984 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3383 |
chandransh |
3985 |
WEX((short)1, "wex");
|
|
|
3986 |
|
|
|
3987 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3988 |
|
|
|
3989 |
static {
|
|
|
3990 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3991 |
byName.put(field.getFieldName(), field);
|
|
|
3992 |
}
|
|
|
3993 |
}
|
|
|
3994 |
|
|
|
3995 |
/**
|
|
|
3996 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3997 |
*/
|
|
|
3998 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3999 |
switch(fieldId) {
|
|
|
4000 |
case 1: // WEX
|
|
|
4001 |
return WEX;
|
|
|
4002 |
default:
|
|
|
4003 |
return null;
|
|
|
4004 |
}
|
| 3383 |
chandransh |
4005 |
}
|
|
|
4006 |
|
|
|
4007 |
/**
|
|
|
4008 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4009 |
* if it is not found.
|
|
|
4010 |
*/
|
|
|
4011 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4012 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4013 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4014 |
return fields;
|
|
|
4015 |
}
|
|
|
4016 |
|
|
|
4017 |
/**
|
|
|
4018 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4019 |
*/
|
|
|
4020 |
public static _Fields findByName(String name) {
|
|
|
4021 |
return byName.get(name);
|
|
|
4022 |
}
|
|
|
4023 |
|
|
|
4024 |
private final short _thriftId;
|
|
|
4025 |
private final String _fieldName;
|
|
|
4026 |
|
|
|
4027 |
_Fields(short thriftId, String fieldName) {
|
|
|
4028 |
_thriftId = thriftId;
|
|
|
4029 |
_fieldName = fieldName;
|
|
|
4030 |
}
|
|
|
4031 |
|
|
|
4032 |
public short getThriftFieldId() {
|
|
|
4033 |
return _thriftId;
|
|
|
4034 |
}
|
|
|
4035 |
|
|
|
4036 |
public String getFieldName() {
|
|
|
4037 |
return _fieldName;
|
|
|
4038 |
}
|
|
|
4039 |
}
|
|
|
4040 |
|
|
|
4041 |
// isset id assignments
|
|
|
4042 |
|
| 3430 |
rajveer |
4043 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
4044 |
static {
|
| 3430 |
rajveer |
4045 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4046 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4047 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
4048 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
4049 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_result.class, metaDataMap);
|
| 3383 |
chandransh |
4050 |
}
|
|
|
4051 |
|
| 4496 |
mandeep.dh |
4052 |
public scan_result() {
|
| 3383 |
chandransh |
4053 |
}
|
|
|
4054 |
|
| 4496 |
mandeep.dh |
4055 |
public scan_result(
|
| 3383 |
chandransh |
4056 |
WarehouseServiceException wex)
|
|
|
4057 |
{
|
|
|
4058 |
this();
|
|
|
4059 |
this.wex = wex;
|
|
|
4060 |
}
|
|
|
4061 |
|
|
|
4062 |
/**
|
|
|
4063 |
* Performs a deep copy on <i>other</i>.
|
|
|
4064 |
*/
|
| 4496 |
mandeep.dh |
4065 |
public scan_result(scan_result other) {
|
| 3383 |
chandransh |
4066 |
if (other.isSetWex()) {
|
|
|
4067 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
4068 |
}
|
|
|
4069 |
}
|
|
|
4070 |
|
| 4496 |
mandeep.dh |
4071 |
public scan_result deepCopy() {
|
|
|
4072 |
return new scan_result(this);
|
| 3383 |
chandransh |
4073 |
}
|
|
|
4074 |
|
| 3430 |
rajveer |
4075 |
@Override
|
|
|
4076 |
public void clear() {
|
|
|
4077 |
this.wex = null;
|
| 3383 |
chandransh |
4078 |
}
|
|
|
4079 |
|
|
|
4080 |
public WarehouseServiceException getWex() {
|
|
|
4081 |
return this.wex;
|
|
|
4082 |
}
|
|
|
4083 |
|
| 3430 |
rajveer |
4084 |
public void setWex(WarehouseServiceException wex) {
|
| 3383 |
chandransh |
4085 |
this.wex = wex;
|
|
|
4086 |
}
|
|
|
4087 |
|
|
|
4088 |
public void unsetWex() {
|
|
|
4089 |
this.wex = null;
|
|
|
4090 |
}
|
|
|
4091 |
|
| 3430 |
rajveer |
4092 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 3383 |
chandransh |
4093 |
public boolean isSetWex() {
|
|
|
4094 |
return this.wex != null;
|
|
|
4095 |
}
|
|
|
4096 |
|
|
|
4097 |
public void setWexIsSet(boolean value) {
|
|
|
4098 |
if (!value) {
|
|
|
4099 |
this.wex = null;
|
|
|
4100 |
}
|
|
|
4101 |
}
|
|
|
4102 |
|
|
|
4103 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4104 |
switch (field) {
|
|
|
4105 |
case WEX:
|
|
|
4106 |
if (value == null) {
|
|
|
4107 |
unsetWex();
|
|
|
4108 |
} else {
|
|
|
4109 |
setWex((WarehouseServiceException)value);
|
|
|
4110 |
}
|
|
|
4111 |
break;
|
|
|
4112 |
|
|
|
4113 |
}
|
|
|
4114 |
}
|
|
|
4115 |
|
|
|
4116 |
public Object getFieldValue(_Fields field) {
|
|
|
4117 |
switch (field) {
|
|
|
4118 |
case WEX:
|
|
|
4119 |
return getWex();
|
|
|
4120 |
|
|
|
4121 |
}
|
|
|
4122 |
throw new IllegalStateException();
|
|
|
4123 |
}
|
|
|
4124 |
|
| 3430 |
rajveer |
4125 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4126 |
public boolean isSet(_Fields field) {
|
|
|
4127 |
if (field == null) {
|
|
|
4128 |
throw new IllegalArgumentException();
|
|
|
4129 |
}
|
| 3383 |
chandransh |
4130 |
|
|
|
4131 |
switch (field) {
|
|
|
4132 |
case WEX:
|
|
|
4133 |
return isSetWex();
|
|
|
4134 |
}
|
|
|
4135 |
throw new IllegalStateException();
|
|
|
4136 |
}
|
|
|
4137 |
|
|
|
4138 |
@Override
|
|
|
4139 |
public boolean equals(Object that) {
|
|
|
4140 |
if (that == null)
|
|
|
4141 |
return false;
|
| 4496 |
mandeep.dh |
4142 |
if (that instanceof scan_result)
|
|
|
4143 |
return this.equals((scan_result)that);
|
| 3383 |
chandransh |
4144 |
return false;
|
|
|
4145 |
}
|
|
|
4146 |
|
| 4496 |
mandeep.dh |
4147 |
public boolean equals(scan_result that) {
|
| 3383 |
chandransh |
4148 |
if (that == null)
|
|
|
4149 |
return false;
|
|
|
4150 |
|
|
|
4151 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
4152 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
4153 |
if (this_present_wex || that_present_wex) {
|
|
|
4154 |
if (!(this_present_wex && that_present_wex))
|
|
|
4155 |
return false;
|
|
|
4156 |
if (!this.wex.equals(that.wex))
|
|
|
4157 |
return false;
|
|
|
4158 |
}
|
|
|
4159 |
|
|
|
4160 |
return true;
|
|
|
4161 |
}
|
|
|
4162 |
|
|
|
4163 |
@Override
|
|
|
4164 |
public int hashCode() {
|
|
|
4165 |
return 0;
|
|
|
4166 |
}
|
|
|
4167 |
|
| 4496 |
mandeep.dh |
4168 |
public int compareTo(scan_result other) {
|
| 3383 |
chandransh |
4169 |
if (!getClass().equals(other.getClass())) {
|
|
|
4170 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4171 |
}
|
|
|
4172 |
|
|
|
4173 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
4174 |
scan_result typedOther = (scan_result)other;
|
| 3383 |
chandransh |
4175 |
|
| 3430 |
rajveer |
4176 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 3383 |
chandransh |
4177 |
if (lastComparison != 0) {
|
|
|
4178 |
return lastComparison;
|
|
|
4179 |
}
|
| 3430 |
rajveer |
4180 |
if (isSetWex()) {
|
|
|
4181 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
4182 |
if (lastComparison != 0) {
|
|
|
4183 |
return lastComparison;
|
|
|
4184 |
}
|
| 3383 |
chandransh |
4185 |
}
|
|
|
4186 |
return 0;
|
|
|
4187 |
}
|
|
|
4188 |
|
| 3430 |
rajveer |
4189 |
public _Fields fieldForId(int fieldId) {
|
|
|
4190 |
return _Fields.findByThriftId(fieldId);
|
|
|
4191 |
}
|
|
|
4192 |
|
|
|
4193 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4194 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
4195 |
iprot.readStructBegin();
|
|
|
4196 |
while (true)
|
|
|
4197 |
{
|
|
|
4198 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4199 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
4200 |
break;
|
|
|
4201 |
}
|
| 3430 |
rajveer |
4202 |
switch (field.id) {
|
|
|
4203 |
case 1: // WEX
|
|
|
4204 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4205 |
this.wex = new WarehouseServiceException();
|
|
|
4206 |
this.wex.read(iprot);
|
|
|
4207 |
} else {
|
|
|
4208 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4209 |
}
|
|
|
4210 |
break;
|
|
|
4211 |
default:
|
|
|
4212 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
4213 |
}
|
| 3430 |
rajveer |
4214 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
4215 |
}
|
|
|
4216 |
iprot.readStructEnd();
|
|
|
4217 |
validate();
|
|
|
4218 |
}
|
|
|
4219 |
|
| 3430 |
rajveer |
4220 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
4221 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4222 |
|
| 4496 |
mandeep.dh |
4223 |
if (this.isSetWex()) {
|
| 3383 |
chandransh |
4224 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
4225 |
this.wex.write(oprot);
|
|
|
4226 |
oprot.writeFieldEnd();
|
|
|
4227 |
}
|
|
|
4228 |
oprot.writeFieldStop();
|
|
|
4229 |
oprot.writeStructEnd();
|
|
|
4230 |
}
|
|
|
4231 |
|
|
|
4232 |
@Override
|
|
|
4233 |
public String toString() {
|
| 4496 |
mandeep.dh |
4234 |
StringBuilder sb = new StringBuilder("scan_result(");
|
| 3383 |
chandransh |
4235 |
boolean first = true;
|
|
|
4236 |
|
|
|
4237 |
sb.append("wex:");
|
|
|
4238 |
if (this.wex == null) {
|
|
|
4239 |
sb.append("null");
|
|
|
4240 |
} else {
|
|
|
4241 |
sb.append(this.wex);
|
|
|
4242 |
}
|
|
|
4243 |
first = false;
|
|
|
4244 |
sb.append(")");
|
|
|
4245 |
return sb.toString();
|
|
|
4246 |
}
|
|
|
4247 |
|
| 3430 |
rajveer |
4248 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
4249 |
// check for required fields
|
|
|
4250 |
}
|
|
|
4251 |
|
| 3430 |
rajveer |
4252 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4253 |
try {
|
|
|
4254 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4255 |
} catch (org.apache.thrift.TException te) {
|
|
|
4256 |
throw new java.io.IOException(te);
|
|
|
4257 |
}
|
|
|
4258 |
}
|
|
|
4259 |
|
|
|
4260 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4261 |
try {
|
|
|
4262 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4263 |
} catch (org.apache.thrift.TException te) {
|
|
|
4264 |
throw new java.io.IOException(te);
|
|
|
4265 |
}
|
|
|
4266 |
}
|
|
|
4267 |
|
| 3383 |
chandransh |
4268 |
}
|
|
|
4269 |
|
| 4496 |
mandeep.dh |
4270 |
public static class scanSerializedItemForOrder_args implements org.apache.thrift.TBase<scanSerializedItemForOrder_args, scanSerializedItemForOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4271 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
|
| 2820 |
chandransh |
4272 |
|
| 4555 |
mandeep.dh |
4273 |
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 |
4274 |
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);
|
|
|
4275 |
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 |
4276 |
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);
|
|
|
4277 |
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);
|
|
|
4278 |
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 |
4279 |
|
| 4555 |
mandeep.dh |
4280 |
private String serialNumber; // required
|
| 3430 |
rajveer |
4281 |
private ScanType type; // required
|
| 4496 |
mandeep.dh |
4282 |
private long orderId; // required
|
| 5110 |
mandeep.dh |
4283 |
private long fulfilmentWarehouseId; // required
|
|
|
4284 |
private double quantity; // required
|
|
|
4285 |
private long billingWarehouseId; // required
|
| 2820 |
chandransh |
4286 |
|
|
|
4287 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4288 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4555 |
mandeep.dh |
4289 |
SERIAL_NUMBER((short)1, "serialNumber"),
|
| 2820 |
chandransh |
4290 |
/**
|
|
|
4291 |
*
|
|
|
4292 |
* @see ScanType
|
|
|
4293 |
*/
|
| 4496 |
mandeep.dh |
4294 |
TYPE((short)2, "type"),
|
|
|
4295 |
ORDER_ID((short)3, "orderId"),
|
| 5110 |
mandeep.dh |
4296 |
FULFILMENT_WAREHOUSE_ID((short)4, "fulfilmentWarehouseId"),
|
|
|
4297 |
QUANTITY((short)5, "quantity"),
|
|
|
4298 |
BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
|
| 2820 |
chandransh |
4299 |
|
|
|
4300 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4301 |
|
|
|
4302 |
static {
|
|
|
4303 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4304 |
byName.put(field.getFieldName(), field);
|
|
|
4305 |
}
|
|
|
4306 |
}
|
|
|
4307 |
|
|
|
4308 |
/**
|
|
|
4309 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4310 |
*/
|
|
|
4311 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4312 |
switch(fieldId) {
|
| 4555 |
mandeep.dh |
4313 |
case 1: // SERIAL_NUMBER
|
|
|
4314 |
return SERIAL_NUMBER;
|
| 4496 |
mandeep.dh |
4315 |
case 2: // TYPE
|
| 3430 |
rajveer |
4316 |
return TYPE;
|
| 4496 |
mandeep.dh |
4317 |
case 3: // ORDER_ID
|
|
|
4318 |
return ORDER_ID;
|
| 5110 |
mandeep.dh |
4319 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
|
|
4320 |
return FULFILMENT_WAREHOUSE_ID;
|
|
|
4321 |
case 5: // QUANTITY
|
|
|
4322 |
return QUANTITY;
|
|
|
4323 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
4324 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
4325 |
default:
|
|
|
4326 |
return null;
|
|
|
4327 |
}
|
| 2820 |
chandransh |
4328 |
}
|
|
|
4329 |
|
|
|
4330 |
/**
|
|
|
4331 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4332 |
* if it is not found.
|
|
|
4333 |
*/
|
|
|
4334 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4335 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4336 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4337 |
return fields;
|
|
|
4338 |
}
|
|
|
4339 |
|
|
|
4340 |
/**
|
|
|
4341 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4342 |
*/
|
|
|
4343 |
public static _Fields findByName(String name) {
|
|
|
4344 |
return byName.get(name);
|
|
|
4345 |
}
|
|
|
4346 |
|
|
|
4347 |
private final short _thriftId;
|
|
|
4348 |
private final String _fieldName;
|
|
|
4349 |
|
|
|
4350 |
_Fields(short thriftId, String fieldName) {
|
|
|
4351 |
_thriftId = thriftId;
|
|
|
4352 |
_fieldName = fieldName;
|
|
|
4353 |
}
|
|
|
4354 |
|
|
|
4355 |
public short getThriftFieldId() {
|
|
|
4356 |
return _thriftId;
|
|
|
4357 |
}
|
|
|
4358 |
|
|
|
4359 |
public String getFieldName() {
|
|
|
4360 |
return _fieldName;
|
|
|
4361 |
}
|
|
|
4362 |
}
|
|
|
4363 |
|
|
|
4364 |
// isset id assignments
|
| 4555 |
mandeep.dh |
4365 |
private static final int __ORDERID_ISSET_ID = 0;
|
| 5110 |
mandeep.dh |
4366 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
|
|
|
4367 |
private static final int __QUANTITY_ISSET_ID = 2;
|
|
|
4368 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
|
|
|
4369 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 2820 |
chandransh |
4370 |
|
| 3430 |
rajveer |
4371 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
4372 |
static {
|
| 3430 |
rajveer |
4373 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4555 |
mandeep.dh |
4374 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4375 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 3430 |
rajveer |
4376 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4377 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 4496 |
mandeep.dh |
4378 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4379 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
4380 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
4381 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
4382 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4383 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
4384 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4385 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
4386 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
4387 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_args.class, metaDataMap);
|
| 2820 |
chandransh |
4388 |
}
|
|
|
4389 |
|
| 4496 |
mandeep.dh |
4390 |
public scanSerializedItemForOrder_args() {
|
| 2820 |
chandransh |
4391 |
}
|
|
|
4392 |
|
| 4496 |
mandeep.dh |
4393 |
public scanSerializedItemForOrder_args(
|
| 4555 |
mandeep.dh |
4394 |
String serialNumber,
|
| 4496 |
mandeep.dh |
4395 |
ScanType type,
|
|
|
4396 |
long orderId,
|
| 5110 |
mandeep.dh |
4397 |
long fulfilmentWarehouseId,
|
|
|
4398 |
double quantity,
|
|
|
4399 |
long billingWarehouseId)
|
| 2820 |
chandransh |
4400 |
{
|
|
|
4401 |
this();
|
| 4555 |
mandeep.dh |
4402 |
this.serialNumber = serialNumber;
|
| 2820 |
chandransh |
4403 |
this.type = type;
|
| 4496 |
mandeep.dh |
4404 |
this.orderId = orderId;
|
|
|
4405 |
setOrderIdIsSet(true);
|
| 5110 |
mandeep.dh |
4406 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
4407 |
setFulfilmentWarehouseIdIsSet(true);
|
|
|
4408 |
this.quantity = quantity;
|
|
|
4409 |
setQuantityIsSet(true);
|
|
|
4410 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
4411 |
setBillingWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
4412 |
}
|
|
|
4413 |
|
|
|
4414 |
/**
|
|
|
4415 |
* Performs a deep copy on <i>other</i>.
|
|
|
4416 |
*/
|
| 4496 |
mandeep.dh |
4417 |
public scanSerializedItemForOrder_args(scanSerializedItemForOrder_args other) {
|
| 2820 |
chandransh |
4418 |
__isset_bit_vector.clear();
|
|
|
4419 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 4555 |
mandeep.dh |
4420 |
if (other.isSetSerialNumber()) {
|
|
|
4421 |
this.serialNumber = other.serialNumber;
|
|
|
4422 |
}
|
| 2820 |
chandransh |
4423 |
if (other.isSetType()) {
|
|
|
4424 |
this.type = other.type;
|
|
|
4425 |
}
|
| 4496 |
mandeep.dh |
4426 |
this.orderId = other.orderId;
|
| 5110 |
mandeep.dh |
4427 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
|
|
4428 |
this.quantity = other.quantity;
|
|
|
4429 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 2820 |
chandransh |
4430 |
}
|
|
|
4431 |
|
| 4496 |
mandeep.dh |
4432 |
public scanSerializedItemForOrder_args deepCopy() {
|
|
|
4433 |
return new scanSerializedItemForOrder_args(this);
|
| 2820 |
chandransh |
4434 |
}
|
|
|
4435 |
|
| 3430 |
rajveer |
4436 |
@Override
|
|
|
4437 |
public void clear() {
|
| 4555 |
mandeep.dh |
4438 |
this.serialNumber = null;
|
| 3430 |
rajveer |
4439 |
this.type = null;
|
| 4496 |
mandeep.dh |
4440 |
setOrderIdIsSet(false);
|
|
|
4441 |
this.orderId = 0;
|
| 5110 |
mandeep.dh |
4442 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
4443 |
this.fulfilmentWarehouseId = 0;
|
|
|
4444 |
setQuantityIsSet(false);
|
|
|
4445 |
this.quantity = 0.0;
|
|
|
4446 |
setBillingWarehouseIdIsSet(false);
|
|
|
4447 |
this.billingWarehouseId = 0;
|
| 2820 |
chandransh |
4448 |
}
|
|
|
4449 |
|
| 4555 |
mandeep.dh |
4450 |
public String getSerialNumber() {
|
|
|
4451 |
return this.serialNumber;
|
| 2820 |
chandransh |
4452 |
}
|
|
|
4453 |
|
| 4555 |
mandeep.dh |
4454 |
public void setSerialNumber(String serialNumber) {
|
|
|
4455 |
this.serialNumber = serialNumber;
|
| 2820 |
chandransh |
4456 |
}
|
|
|
4457 |
|
| 4555 |
mandeep.dh |
4458 |
public void unsetSerialNumber() {
|
|
|
4459 |
this.serialNumber = null;
|
| 2820 |
chandransh |
4460 |
}
|
|
|
4461 |
|
| 4555 |
mandeep.dh |
4462 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
4463 |
public boolean isSetSerialNumber() {
|
|
|
4464 |
return this.serialNumber != null;
|
| 2820 |
chandransh |
4465 |
}
|
|
|
4466 |
|
| 4555 |
mandeep.dh |
4467 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
4468 |
if (!value) {
|
|
|
4469 |
this.serialNumber = null;
|
|
|
4470 |
}
|
| 2820 |
chandransh |
4471 |
}
|
|
|
4472 |
|
| 4496 |
mandeep.dh |
4473 |
/**
|
|
|
4474 |
*
|
|
|
4475 |
* @see ScanType
|
|
|
4476 |
*/
|
|
|
4477 |
public ScanType getType() {
|
|
|
4478 |
return this.type;
|
| 2820 |
chandransh |
4479 |
}
|
|
|
4480 |
|
| 4496 |
mandeep.dh |
4481 |
/**
|
|
|
4482 |
*
|
|
|
4483 |
* @see ScanType
|
|
|
4484 |
*/
|
|
|
4485 |
public void setType(ScanType type) {
|
|
|
4486 |
this.type = type;
|
| 2820 |
chandransh |
4487 |
}
|
|
|
4488 |
|
| 4496 |
mandeep.dh |
4489 |
public void unsetType() {
|
|
|
4490 |
this.type = null;
|
| 2820 |
chandransh |
4491 |
}
|
|
|
4492 |
|
| 4496 |
mandeep.dh |
4493 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
4494 |
public boolean isSetType() {
|
|
|
4495 |
return this.type != null;
|
| 2820 |
chandransh |
4496 |
}
|
|
|
4497 |
|
| 4496 |
mandeep.dh |
4498 |
public void setTypeIsSet(boolean value) {
|
| 2820 |
chandransh |
4499 |
if (!value) {
|
| 4496 |
mandeep.dh |
4500 |
this.type = null;
|
| 2820 |
chandransh |
4501 |
}
|
|
|
4502 |
}
|
|
|
4503 |
|
| 4496 |
mandeep.dh |
4504 |
public long getOrderId() {
|
|
|
4505 |
return this.orderId;
|
| 2820 |
chandransh |
4506 |
}
|
|
|
4507 |
|
| 4496 |
mandeep.dh |
4508 |
public void setOrderId(long orderId) {
|
|
|
4509 |
this.orderId = orderId;
|
|
|
4510 |
setOrderIdIsSet(true);
|
| 2820 |
chandransh |
4511 |
}
|
|
|
4512 |
|
| 4496 |
mandeep.dh |
4513 |
public void unsetOrderId() {
|
|
|
4514 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
| 2820 |
chandransh |
4515 |
}
|
|
|
4516 |
|
| 4496 |
mandeep.dh |
4517 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
4518 |
public boolean isSetOrderId() {
|
|
|
4519 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
| 2820 |
chandransh |
4520 |
}
|
|
|
4521 |
|
| 4496 |
mandeep.dh |
4522 |
public void setOrderIdIsSet(boolean value) {
|
|
|
4523 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
| 2820 |
chandransh |
4524 |
}
|
|
|
4525 |
|
| 5110 |
mandeep.dh |
4526 |
public long getFulfilmentWarehouseId() {
|
|
|
4527 |
return this.fulfilmentWarehouseId;
|
| 2820 |
chandransh |
4528 |
}
|
|
|
4529 |
|
| 5110 |
mandeep.dh |
4530 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
4531 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
4532 |
setFulfilmentWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
4533 |
}
|
|
|
4534 |
|
| 5110 |
mandeep.dh |
4535 |
public void unsetFulfilmentWarehouseId() {
|
|
|
4536 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
4537 |
}
|
|
|
4538 |
|
| 5110 |
mandeep.dh |
4539 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
4540 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
4541 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
4542 |
}
|
|
|
4543 |
|
| 5110 |
mandeep.dh |
4544 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
4545 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 2820 |
chandransh |
4546 |
}
|
|
|
4547 |
|
| 5110 |
mandeep.dh |
4548 |
public double getQuantity() {
|
|
|
4549 |
return this.quantity;
|
|
|
4550 |
}
|
|
|
4551 |
|
|
|
4552 |
public void setQuantity(double quantity) {
|
|
|
4553 |
this.quantity = quantity;
|
|
|
4554 |
setQuantityIsSet(true);
|
|
|
4555 |
}
|
|
|
4556 |
|
|
|
4557 |
public void unsetQuantity() {
|
|
|
4558 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
4559 |
}
|
|
|
4560 |
|
|
|
4561 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
4562 |
public boolean isSetQuantity() {
|
|
|
4563 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
4564 |
}
|
|
|
4565 |
|
|
|
4566 |
public void setQuantityIsSet(boolean value) {
|
|
|
4567 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
4568 |
}
|
|
|
4569 |
|
|
|
4570 |
public long getBillingWarehouseId() {
|
|
|
4571 |
return this.billingWarehouseId;
|
|
|
4572 |
}
|
|
|
4573 |
|
|
|
4574 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
4575 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
4576 |
setBillingWarehouseIdIsSet(true);
|
|
|
4577 |
}
|
|
|
4578 |
|
|
|
4579 |
public void unsetBillingWarehouseId() {
|
|
|
4580 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
4581 |
}
|
|
|
4582 |
|
|
|
4583 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
4584 |
public boolean isSetBillingWarehouseId() {
|
|
|
4585 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
4586 |
}
|
|
|
4587 |
|
|
|
4588 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
4589 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
|
|
4590 |
}
|
|
|
4591 |
|
| 2820 |
chandransh |
4592 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4593 |
switch (field) {
|
| 4555 |
mandeep.dh |
4594 |
case SERIAL_NUMBER:
|
| 2820 |
chandransh |
4595 |
if (value == null) {
|
| 4555 |
mandeep.dh |
4596 |
unsetSerialNumber();
|
| 2820 |
chandransh |
4597 |
} else {
|
| 4555 |
mandeep.dh |
4598 |
setSerialNumber((String)value);
|
| 2820 |
chandransh |
4599 |
}
|
|
|
4600 |
break;
|
|
|
4601 |
|
| 4496 |
mandeep.dh |
4602 |
case TYPE:
|
| 2820 |
chandransh |
4603 |
if (value == null) {
|
| 4496 |
mandeep.dh |
4604 |
unsetType();
|
| 2820 |
chandransh |
4605 |
} else {
|
| 4496 |
mandeep.dh |
4606 |
setType((ScanType)value);
|
| 2820 |
chandransh |
4607 |
}
|
|
|
4608 |
break;
|
|
|
4609 |
|
| 4496 |
mandeep.dh |
4610 |
case ORDER_ID:
|
| 2820 |
chandransh |
4611 |
if (value == null) {
|
| 4496 |
mandeep.dh |
4612 |
unsetOrderId();
|
| 2820 |
chandransh |
4613 |
} else {
|
| 4496 |
mandeep.dh |
4614 |
setOrderId((Long)value);
|
| 2820 |
chandransh |
4615 |
}
|
|
|
4616 |
break;
|
|
|
4617 |
|
| 5110 |
mandeep.dh |
4618 |
case FULFILMENT_WAREHOUSE_ID:
|
| 2820 |
chandransh |
4619 |
if (value == null) {
|
| 5110 |
mandeep.dh |
4620 |
unsetFulfilmentWarehouseId();
|
| 2820 |
chandransh |
4621 |
} else {
|
| 5110 |
mandeep.dh |
4622 |
setFulfilmentWarehouseId((Long)value);
|
| 2820 |
chandransh |
4623 |
}
|
|
|
4624 |
break;
|
|
|
4625 |
|
| 5110 |
mandeep.dh |
4626 |
case QUANTITY:
|
|
|
4627 |
if (value == null) {
|
|
|
4628 |
unsetQuantity();
|
|
|
4629 |
} else {
|
|
|
4630 |
setQuantity((Double)value);
|
|
|
4631 |
}
|
|
|
4632 |
break;
|
|
|
4633 |
|
|
|
4634 |
case BILLING_WAREHOUSE_ID:
|
|
|
4635 |
if (value == null) {
|
|
|
4636 |
unsetBillingWarehouseId();
|
|
|
4637 |
} else {
|
|
|
4638 |
setBillingWarehouseId((Long)value);
|
|
|
4639 |
}
|
|
|
4640 |
break;
|
|
|
4641 |
|
| 2820 |
chandransh |
4642 |
}
|
|
|
4643 |
}
|
|
|
4644 |
|
|
|
4645 |
public Object getFieldValue(_Fields field) {
|
|
|
4646 |
switch (field) {
|
| 4555 |
mandeep.dh |
4647 |
case SERIAL_NUMBER:
|
|
|
4648 |
return getSerialNumber();
|
| 2820 |
chandransh |
4649 |
|
|
|
4650 |
case TYPE:
|
|
|
4651 |
return getType();
|
|
|
4652 |
|
| 4496 |
mandeep.dh |
4653 |
case ORDER_ID:
|
|
|
4654 |
return Long.valueOf(getOrderId());
|
|
|
4655 |
|
| 5110 |
mandeep.dh |
4656 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
4657 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
4658 |
|
| 5110 |
mandeep.dh |
4659 |
case QUANTITY:
|
|
|
4660 |
return Double.valueOf(getQuantity());
|
|
|
4661 |
|
|
|
4662 |
case BILLING_WAREHOUSE_ID:
|
|
|
4663 |
return Long.valueOf(getBillingWarehouseId());
|
|
|
4664 |
|
| 2820 |
chandransh |
4665 |
}
|
|
|
4666 |
throw new IllegalStateException();
|
|
|
4667 |
}
|
|
|
4668 |
|
| 3430 |
rajveer |
4669 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4670 |
public boolean isSet(_Fields field) {
|
|
|
4671 |
if (field == null) {
|
|
|
4672 |
throw new IllegalArgumentException();
|
|
|
4673 |
}
|
| 2820 |
chandransh |
4674 |
|
|
|
4675 |
switch (field) {
|
| 4555 |
mandeep.dh |
4676 |
case SERIAL_NUMBER:
|
|
|
4677 |
return isSetSerialNumber();
|
| 2820 |
chandransh |
4678 |
case TYPE:
|
|
|
4679 |
return isSetType();
|
| 4496 |
mandeep.dh |
4680 |
case ORDER_ID:
|
|
|
4681 |
return isSetOrderId();
|
| 5110 |
mandeep.dh |
4682 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
4683 |
return isSetFulfilmentWarehouseId();
|
|
|
4684 |
case QUANTITY:
|
|
|
4685 |
return isSetQuantity();
|
|
|
4686 |
case BILLING_WAREHOUSE_ID:
|
|
|
4687 |
return isSetBillingWarehouseId();
|
| 2820 |
chandransh |
4688 |
}
|
|
|
4689 |
throw new IllegalStateException();
|
|
|
4690 |
}
|
|
|
4691 |
|
|
|
4692 |
@Override
|
|
|
4693 |
public boolean equals(Object that) {
|
|
|
4694 |
if (that == null)
|
|
|
4695 |
return false;
|
| 4496 |
mandeep.dh |
4696 |
if (that instanceof scanSerializedItemForOrder_args)
|
|
|
4697 |
return this.equals((scanSerializedItemForOrder_args)that);
|
| 2820 |
chandransh |
4698 |
return false;
|
|
|
4699 |
}
|
|
|
4700 |
|
| 4496 |
mandeep.dh |
4701 |
public boolean equals(scanSerializedItemForOrder_args that) {
|
| 2820 |
chandransh |
4702 |
if (that == null)
|
|
|
4703 |
return false;
|
|
|
4704 |
|
| 4555 |
mandeep.dh |
4705 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
4706 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
4707 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
4708 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
| 2820 |
chandransh |
4709 |
return false;
|
| 4555 |
mandeep.dh |
4710 |
if (!this.serialNumber.equals(that.serialNumber))
|
| 2820 |
chandransh |
4711 |
return false;
|
|
|
4712 |
}
|
|
|
4713 |
|
| 4496 |
mandeep.dh |
4714 |
boolean this_present_type = true && this.isSetType();
|
|
|
4715 |
boolean that_present_type = true && that.isSetType();
|
|
|
4716 |
if (this_present_type || that_present_type) {
|
|
|
4717 |
if (!(this_present_type && that_present_type))
|
| 2820 |
chandransh |
4718 |
return false;
|
| 4496 |
mandeep.dh |
4719 |
if (!this.type.equals(that.type))
|
| 2820 |
chandransh |
4720 |
return false;
|
|
|
4721 |
}
|
|
|
4722 |
|
| 4496 |
mandeep.dh |
4723 |
boolean this_present_orderId = true;
|
|
|
4724 |
boolean that_present_orderId = true;
|
|
|
4725 |
if (this_present_orderId || that_present_orderId) {
|
|
|
4726 |
if (!(this_present_orderId && that_present_orderId))
|
| 2820 |
chandransh |
4727 |
return false;
|
| 4496 |
mandeep.dh |
4728 |
if (this.orderId != that.orderId)
|
| 2820 |
chandransh |
4729 |
return false;
|
|
|
4730 |
}
|
|
|
4731 |
|
| 5110 |
mandeep.dh |
4732 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
4733 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
4734 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
4735 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 2820 |
chandransh |
4736 |
return false;
|
| 5110 |
mandeep.dh |
4737 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 2820 |
chandransh |
4738 |
return false;
|
|
|
4739 |
}
|
|
|
4740 |
|
| 5110 |
mandeep.dh |
4741 |
boolean this_present_quantity = true;
|
|
|
4742 |
boolean that_present_quantity = true;
|
|
|
4743 |
if (this_present_quantity || that_present_quantity) {
|
|
|
4744 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
4745 |
return false;
|
|
|
4746 |
if (this.quantity != that.quantity)
|
|
|
4747 |
return false;
|
|
|
4748 |
}
|
|
|
4749 |
|
|
|
4750 |
boolean this_present_billingWarehouseId = true;
|
|
|
4751 |
boolean that_present_billingWarehouseId = true;
|
|
|
4752 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
4753 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
|
|
4754 |
return false;
|
|
|
4755 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
|
|
4756 |
return false;
|
|
|
4757 |
}
|
|
|
4758 |
|
| 2820 |
chandransh |
4759 |
return true;
|
|
|
4760 |
}
|
|
|
4761 |
|
|
|
4762 |
@Override
|
|
|
4763 |
public int hashCode() {
|
|
|
4764 |
return 0;
|
|
|
4765 |
}
|
|
|
4766 |
|
| 4496 |
mandeep.dh |
4767 |
public int compareTo(scanSerializedItemForOrder_args other) {
|
| 2820 |
chandransh |
4768 |
if (!getClass().equals(other.getClass())) {
|
|
|
4769 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4770 |
}
|
|
|
4771 |
|
|
|
4772 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
4773 |
scanSerializedItemForOrder_args typedOther = (scanSerializedItemForOrder_args)other;
|
| 2820 |
chandransh |
4774 |
|
| 4555 |
mandeep.dh |
4775 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
| 2820 |
chandransh |
4776 |
if (lastComparison != 0) {
|
|
|
4777 |
return lastComparison;
|
|
|
4778 |
}
|
| 4555 |
mandeep.dh |
4779 |
if (isSetSerialNumber()) {
|
|
|
4780 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
| 3430 |
rajveer |
4781 |
if (lastComparison != 0) {
|
|
|
4782 |
return lastComparison;
|
|
|
4783 |
}
|
| 2820 |
chandransh |
4784 |
}
|
| 4496 |
mandeep.dh |
4785 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 2820 |
chandransh |
4786 |
if (lastComparison != 0) {
|
|
|
4787 |
return lastComparison;
|
|
|
4788 |
}
|
| 4496 |
mandeep.dh |
4789 |
if (isSetType()) {
|
|
|
4790 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
4791 |
if (lastComparison != 0) {
|
|
|
4792 |
return lastComparison;
|
|
|
4793 |
}
|
| 2820 |
chandransh |
4794 |
}
|
| 4496 |
mandeep.dh |
4795 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
| 2820 |
chandransh |
4796 |
if (lastComparison != 0) {
|
|
|
4797 |
return lastComparison;
|
|
|
4798 |
}
|
| 4496 |
mandeep.dh |
4799 |
if (isSetOrderId()) {
|
|
|
4800 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
| 3430 |
rajveer |
4801 |
if (lastComparison != 0) {
|
|
|
4802 |
return lastComparison;
|
|
|
4803 |
}
|
| 2820 |
chandransh |
4804 |
}
|
| 5110 |
mandeep.dh |
4805 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 2820 |
chandransh |
4806 |
if (lastComparison != 0) {
|
|
|
4807 |
return lastComparison;
|
|
|
4808 |
}
|
| 5110 |
mandeep.dh |
4809 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
4810 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 3430 |
rajveer |
4811 |
if (lastComparison != 0) {
|
|
|
4812 |
return lastComparison;
|
|
|
4813 |
}
|
| 2820 |
chandransh |
4814 |
}
|
| 5110 |
mandeep.dh |
4815 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
|
|
4816 |
if (lastComparison != 0) {
|
|
|
4817 |
return lastComparison;
|
|
|
4818 |
}
|
|
|
4819 |
if (isSetQuantity()) {
|
|
|
4820 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
|
|
4821 |
if (lastComparison != 0) {
|
|
|
4822 |
return lastComparison;
|
|
|
4823 |
}
|
|
|
4824 |
}
|
|
|
4825 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
|
|
4826 |
if (lastComparison != 0) {
|
|
|
4827 |
return lastComparison;
|
|
|
4828 |
}
|
|
|
4829 |
if (isSetBillingWarehouseId()) {
|
|
|
4830 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
|
|
4831 |
if (lastComparison != 0) {
|
|
|
4832 |
return lastComparison;
|
|
|
4833 |
}
|
|
|
4834 |
}
|
| 2820 |
chandransh |
4835 |
return 0;
|
|
|
4836 |
}
|
|
|
4837 |
|
| 3430 |
rajveer |
4838 |
public _Fields fieldForId(int fieldId) {
|
|
|
4839 |
return _Fields.findByThriftId(fieldId);
|
|
|
4840 |
}
|
|
|
4841 |
|
|
|
4842 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4843 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
4844 |
iprot.readStructBegin();
|
|
|
4845 |
while (true)
|
|
|
4846 |
{
|
|
|
4847 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4848 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
4849 |
break;
|
|
|
4850 |
}
|
| 3430 |
rajveer |
4851 |
switch (field.id) {
|
| 4555 |
mandeep.dh |
4852 |
case 1: // SERIAL_NUMBER
|
|
|
4853 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
4854 |
this.serialNumber = iprot.readString();
|
| 3430 |
rajveer |
4855 |
} else {
|
|
|
4856 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4857 |
}
|
|
|
4858 |
break;
|
| 4496 |
mandeep.dh |
4859 |
case 2: // TYPE
|
|
|
4860 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
4861 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
4862 |
} else {
|
|
|
4863 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4864 |
}
|
|
|
4865 |
break;
|
| 4496 |
mandeep.dh |
4866 |
case 3: // ORDER_ID
|
|
|
4867 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4868 |
this.orderId = iprot.readI64();
|
|
|
4869 |
setOrderIdIsSet(true);
|
| 3430 |
rajveer |
4870 |
} else {
|
|
|
4871 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4872 |
}
|
|
|
4873 |
break;
|
| 5110 |
mandeep.dh |
4874 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
4875 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5110 |
mandeep.dh |
4876 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
4877 |
setFulfilmentWarehouseIdIsSet(true);
|
| 3430 |
rajveer |
4878 |
} else {
|
|
|
4879 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4880 |
}
|
|
|
4881 |
break;
|
| 5110 |
mandeep.dh |
4882 |
case 5: // QUANTITY
|
|
|
4883 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
4884 |
this.quantity = iprot.readDouble();
|
|
|
4885 |
setQuantityIsSet(true);
|
|
|
4886 |
} else {
|
|
|
4887 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4888 |
}
|
|
|
4889 |
break;
|
|
|
4890 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
4891 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4892 |
this.billingWarehouseId = iprot.readI64();
|
|
|
4893 |
setBillingWarehouseIdIsSet(true);
|
|
|
4894 |
} else {
|
|
|
4895 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4896 |
}
|
|
|
4897 |
break;
|
| 3430 |
rajveer |
4898 |
default:
|
|
|
4899 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
4900 |
}
|
| 3430 |
rajveer |
4901 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
4902 |
}
|
|
|
4903 |
iprot.readStructEnd();
|
|
|
4904 |
validate();
|
|
|
4905 |
}
|
|
|
4906 |
|
| 3430 |
rajveer |
4907 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
4908 |
validate();
|
|
|
4909 |
|
|
|
4910 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4555 |
mandeep.dh |
4911 |
if (this.serialNumber != null) {
|
|
|
4912 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
4913 |
oprot.writeString(this.serialNumber);
|
|
|
4914 |
oprot.writeFieldEnd();
|
|
|
4915 |
}
|
| 2820 |
chandransh |
4916 |
if (this.type != null) {
|
|
|
4917 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
4918 |
oprot.writeI32(this.type.getValue());
|
|
|
4919 |
oprot.writeFieldEnd();
|
|
|
4920 |
}
|
| 4496 |
mandeep.dh |
4921 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
4922 |
oprot.writeI64(this.orderId);
|
|
|
4923 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
4924 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
4925 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
4926 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
4927 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
4928 |
oprot.writeDouble(this.quantity);
|
|
|
4929 |
oprot.writeFieldEnd();
|
|
|
4930 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
4931 |
oprot.writeI64(this.billingWarehouseId);
|
|
|
4932 |
oprot.writeFieldEnd();
|
| 2820 |
chandransh |
4933 |
oprot.writeFieldStop();
|
|
|
4934 |
oprot.writeStructEnd();
|
|
|
4935 |
}
|
|
|
4936 |
|
|
|
4937 |
@Override
|
|
|
4938 |
public String toString() {
|
| 4496 |
mandeep.dh |
4939 |
StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_args(");
|
| 2820 |
chandransh |
4940 |
boolean first = true;
|
|
|
4941 |
|
| 4555 |
mandeep.dh |
4942 |
sb.append("serialNumber:");
|
|
|
4943 |
if (this.serialNumber == null) {
|
|
|
4944 |
sb.append("null");
|
|
|
4945 |
} else {
|
|
|
4946 |
sb.append(this.serialNumber);
|
|
|
4947 |
}
|
| 2820 |
chandransh |
4948 |
first = false;
|
|
|
4949 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
4950 |
sb.append("type:");
|
|
|
4951 |
if (this.type == null) {
|
| 2820 |
chandransh |
4952 |
sb.append("null");
|
|
|
4953 |
} else {
|
| 4496 |
mandeep.dh |
4954 |
sb.append(this.type);
|
| 2820 |
chandransh |
4955 |
}
|
|
|
4956 |
first = false;
|
|
|
4957 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
4958 |
sb.append("orderId:");
|
|
|
4959 |
sb.append(this.orderId);
|
| 2820 |
chandransh |
4960 |
first = false;
|
|
|
4961 |
if (!first) sb.append(", ");
|
| 5110 |
mandeep.dh |
4962 |
sb.append("fulfilmentWarehouseId:");
|
|
|
4963 |
sb.append(this.fulfilmentWarehouseId);
|
| 2820 |
chandransh |
4964 |
first = false;
|
| 5110 |
mandeep.dh |
4965 |
if (!first) sb.append(", ");
|
|
|
4966 |
sb.append("quantity:");
|
|
|
4967 |
sb.append(this.quantity);
|
|
|
4968 |
first = false;
|
|
|
4969 |
if (!first) sb.append(", ");
|
|
|
4970 |
sb.append("billingWarehouseId:");
|
|
|
4971 |
sb.append(this.billingWarehouseId);
|
|
|
4972 |
first = false;
|
| 2820 |
chandransh |
4973 |
sb.append(")");
|
|
|
4974 |
return sb.toString();
|
|
|
4975 |
}
|
|
|
4976 |
|
| 3430 |
rajveer |
4977 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
4978 |
// check for required fields
|
|
|
4979 |
}
|
|
|
4980 |
|
| 3430 |
rajveer |
4981 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4982 |
try {
|
|
|
4983 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4984 |
} catch (org.apache.thrift.TException te) {
|
|
|
4985 |
throw new java.io.IOException(te);
|
|
|
4986 |
}
|
|
|
4987 |
}
|
|
|
4988 |
|
|
|
4989 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4990 |
try {
|
|
|
4991 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4992 |
} catch (org.apache.thrift.TException te) {
|
|
|
4993 |
throw new java.io.IOException(te);
|
|
|
4994 |
}
|
|
|
4995 |
}
|
|
|
4996 |
|
| 2820 |
chandransh |
4997 |
}
|
|
|
4998 |
|
| 4496 |
mandeep.dh |
4999 |
public static class scanSerializedItemForOrder_result implements org.apache.thrift.TBase<scanSerializedItemForOrder_result, scanSerializedItemForOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
5000 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_result");
|
| 2820 |
chandransh |
5001 |
|
| 4555 |
mandeep.dh |
5002 |
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 |
5003 |
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 |
5004 |
|
| 4555 |
mandeep.dh |
5005 |
private InventoryItem success; // required
|
| 3430 |
rajveer |
5006 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
5007 |
|
|
|
5008 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5009 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
5010 |
SUCCESS((short)0, "success"),
|
| 2820 |
chandransh |
5011 |
WEX((short)1, "wex");
|
|
|
5012 |
|
|
|
5013 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5014 |
|
|
|
5015 |
static {
|
|
|
5016 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5017 |
byName.put(field.getFieldName(), field);
|
|
|
5018 |
}
|
|
|
5019 |
}
|
|
|
5020 |
|
|
|
5021 |
/**
|
|
|
5022 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5023 |
*/
|
|
|
5024 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5025 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
5026 |
case 0: // SUCCESS
|
|
|
5027 |
return SUCCESS;
|
| 3430 |
rajveer |
5028 |
case 1: // WEX
|
|
|
5029 |
return WEX;
|
|
|
5030 |
default:
|
|
|
5031 |
return null;
|
|
|
5032 |
}
|
| 2820 |
chandransh |
5033 |
}
|
|
|
5034 |
|
|
|
5035 |
/**
|
|
|
5036 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5037 |
* if it is not found.
|
|
|
5038 |
*/
|
|
|
5039 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5040 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5041 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5042 |
return fields;
|
|
|
5043 |
}
|
|
|
5044 |
|
|
|
5045 |
/**
|
|
|
5046 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5047 |
*/
|
|
|
5048 |
public static _Fields findByName(String name) {
|
|
|
5049 |
return byName.get(name);
|
|
|
5050 |
}
|
|
|
5051 |
|
|
|
5052 |
private final short _thriftId;
|
|
|
5053 |
private final String _fieldName;
|
|
|
5054 |
|
|
|
5055 |
_Fields(short thriftId, String fieldName) {
|
|
|
5056 |
_thriftId = thriftId;
|
|
|
5057 |
_fieldName = fieldName;
|
|
|
5058 |
}
|
|
|
5059 |
|
|
|
5060 |
public short getThriftFieldId() {
|
|
|
5061 |
return _thriftId;
|
|
|
5062 |
}
|
|
|
5063 |
|
|
|
5064 |
public String getFieldName() {
|
|
|
5065 |
return _fieldName;
|
|
|
5066 |
}
|
|
|
5067 |
}
|
|
|
5068 |
|
|
|
5069 |
// isset id assignments
|
|
|
5070 |
|
| 3430 |
rajveer |
5071 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
5072 |
static {
|
| 3430 |
rajveer |
5073 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
5074 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4555 |
mandeep.dh |
5075 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
5076 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5077 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
5078 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
5079 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_result.class, metaDataMap);
|
| 2820 |
chandransh |
5080 |
}
|
|
|
5081 |
|
| 4496 |
mandeep.dh |
5082 |
public scanSerializedItemForOrder_result() {
|
| 2820 |
chandransh |
5083 |
}
|
|
|
5084 |
|
| 4496 |
mandeep.dh |
5085 |
public scanSerializedItemForOrder_result(
|
| 4555 |
mandeep.dh |
5086 |
InventoryItem success,
|
| 2820 |
chandransh |
5087 |
WarehouseServiceException wex)
|
|
|
5088 |
{
|
|
|
5089 |
this();
|
| 4496 |
mandeep.dh |
5090 |
this.success = success;
|
| 2820 |
chandransh |
5091 |
this.wex = wex;
|
|
|
5092 |
}
|
|
|
5093 |
|
|
|
5094 |
/**
|
|
|
5095 |
* Performs a deep copy on <i>other</i>.
|
|
|
5096 |
*/
|
| 4496 |
mandeep.dh |
5097 |
public scanSerializedItemForOrder_result(scanSerializedItemForOrder_result other) {
|
| 4555 |
mandeep.dh |
5098 |
if (other.isSetSuccess()) {
|
|
|
5099 |
this.success = new InventoryItem(other.success);
|
|
|
5100 |
}
|
| 2820 |
chandransh |
5101 |
if (other.isSetWex()) {
|
|
|
5102 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
5103 |
}
|
|
|
5104 |
}
|
|
|
5105 |
|
| 4496 |
mandeep.dh |
5106 |
public scanSerializedItemForOrder_result deepCopy() {
|
|
|
5107 |
return new scanSerializedItemForOrder_result(this);
|
| 2820 |
chandransh |
5108 |
}
|
|
|
5109 |
|
| 3430 |
rajveer |
5110 |
@Override
|
|
|
5111 |
public void clear() {
|
| 4555 |
mandeep.dh |
5112 |
this.success = null;
|
| 3430 |
rajveer |
5113 |
this.wex = null;
|
| 2820 |
chandransh |
5114 |
}
|
|
|
5115 |
|
| 4555 |
mandeep.dh |
5116 |
public InventoryItem getSuccess() {
|
| 4496 |
mandeep.dh |
5117 |
return this.success;
|
|
|
5118 |
}
|
|
|
5119 |
|
| 4555 |
mandeep.dh |
5120 |
public void setSuccess(InventoryItem success) {
|
| 4496 |
mandeep.dh |
5121 |
this.success = success;
|
|
|
5122 |
}
|
|
|
5123 |
|
|
|
5124 |
public void unsetSuccess() {
|
| 4555 |
mandeep.dh |
5125 |
this.success = null;
|
| 4496 |
mandeep.dh |
5126 |
}
|
|
|
5127 |
|
|
|
5128 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
5129 |
public boolean isSetSuccess() {
|
| 4555 |
mandeep.dh |
5130 |
return this.success != null;
|
| 4496 |
mandeep.dh |
5131 |
}
|
|
|
5132 |
|
|
|
5133 |
public void setSuccessIsSet(boolean value) {
|
| 4555 |
mandeep.dh |
5134 |
if (!value) {
|
|
|
5135 |
this.success = null;
|
|
|
5136 |
}
|
| 4496 |
mandeep.dh |
5137 |
}
|
|
|
5138 |
|
| 2820 |
chandransh |
5139 |
public WarehouseServiceException getWex() {
|
|
|
5140 |
return this.wex;
|
|
|
5141 |
}
|
|
|
5142 |
|
| 3430 |
rajveer |
5143 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
5144 |
this.wex = wex;
|
|
|
5145 |
}
|
|
|
5146 |
|
|
|
5147 |
public void unsetWex() {
|
|
|
5148 |
this.wex = null;
|
|
|
5149 |
}
|
|
|
5150 |
|
| 3430 |
rajveer |
5151 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
5152 |
public boolean isSetWex() {
|
|
|
5153 |
return this.wex != null;
|
|
|
5154 |
}
|
|
|
5155 |
|
|
|
5156 |
public void setWexIsSet(boolean value) {
|
|
|
5157 |
if (!value) {
|
|
|
5158 |
this.wex = null;
|
|
|
5159 |
}
|
|
|
5160 |
}
|
|
|
5161 |
|
|
|
5162 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5163 |
switch (field) {
|
| 4496 |
mandeep.dh |
5164 |
case SUCCESS:
|
|
|
5165 |
if (value == null) {
|
|
|
5166 |
unsetSuccess();
|
|
|
5167 |
} else {
|
| 4555 |
mandeep.dh |
5168 |
setSuccess((InventoryItem)value);
|
| 4496 |
mandeep.dh |
5169 |
}
|
|
|
5170 |
break;
|
|
|
5171 |
|
| 2820 |
chandransh |
5172 |
case WEX:
|
|
|
5173 |
if (value == null) {
|
|
|
5174 |
unsetWex();
|
|
|
5175 |
} else {
|
|
|
5176 |
setWex((WarehouseServiceException)value);
|
|
|
5177 |
}
|
|
|
5178 |
break;
|
|
|
5179 |
|
|
|
5180 |
}
|
|
|
5181 |
}
|
|
|
5182 |
|
|
|
5183 |
public Object getFieldValue(_Fields field) {
|
|
|
5184 |
switch (field) {
|
| 4496 |
mandeep.dh |
5185 |
case SUCCESS:
|
| 4555 |
mandeep.dh |
5186 |
return getSuccess();
|
| 4496 |
mandeep.dh |
5187 |
|
| 2820 |
chandransh |
5188 |
case WEX:
|
|
|
5189 |
return getWex();
|
|
|
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 SUCCESS:
|
|
|
5203 |
return isSetSuccess();
|
| 2820 |
chandransh |
5204 |
case WEX:
|
|
|
5205 |
return isSetWex();
|
|
|
5206 |
}
|
|
|
5207 |
throw new IllegalStateException();
|
|
|
5208 |
}
|
|
|
5209 |
|
|
|
5210 |
@Override
|
|
|
5211 |
public boolean equals(Object that) {
|
|
|
5212 |
if (that == null)
|
|
|
5213 |
return false;
|
| 4496 |
mandeep.dh |
5214 |
if (that instanceof scanSerializedItemForOrder_result)
|
|
|
5215 |
return this.equals((scanSerializedItemForOrder_result)that);
|
| 2820 |
chandransh |
5216 |
return false;
|
|
|
5217 |
}
|
|
|
5218 |
|
| 4496 |
mandeep.dh |
5219 |
public boolean equals(scanSerializedItemForOrder_result that) {
|
| 2820 |
chandransh |
5220 |
if (that == null)
|
|
|
5221 |
return false;
|
|
|
5222 |
|
| 4555 |
mandeep.dh |
5223 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
5224 |
boolean that_present_success = true && that.isSetSuccess();
|
| 4496 |
mandeep.dh |
5225 |
if (this_present_success || that_present_success) {
|
|
|
5226 |
if (!(this_present_success && that_present_success))
|
|
|
5227 |
return false;
|
| 4555 |
mandeep.dh |
5228 |
if (!this.success.equals(that.success))
|
| 4496 |
mandeep.dh |
5229 |
return false;
|
|
|
5230 |
}
|
|
|
5231 |
|
| 2820 |
chandransh |
5232 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
5233 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
5234 |
if (this_present_wex || that_present_wex) {
|
|
|
5235 |
if (!(this_present_wex && that_present_wex))
|
|
|
5236 |
return false;
|
|
|
5237 |
if (!this.wex.equals(that.wex))
|
|
|
5238 |
return false;
|
|
|
5239 |
}
|
|
|
5240 |
|
|
|
5241 |
return true;
|
|
|
5242 |
}
|
|
|
5243 |
|
|
|
5244 |
@Override
|
|
|
5245 |
public int hashCode() {
|
|
|
5246 |
return 0;
|
|
|
5247 |
}
|
|
|
5248 |
|
| 4496 |
mandeep.dh |
5249 |
public int compareTo(scanSerializedItemForOrder_result other) {
|
| 2820 |
chandransh |
5250 |
if (!getClass().equals(other.getClass())) {
|
|
|
5251 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5252 |
}
|
|
|
5253 |
|
|
|
5254 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
5255 |
scanSerializedItemForOrder_result typedOther = (scanSerializedItemForOrder_result)other;
|
| 2820 |
chandransh |
5256 |
|
| 4496 |
mandeep.dh |
5257 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
5258 |
if (lastComparison != 0) {
|
|
|
5259 |
return lastComparison;
|
|
|
5260 |
}
|
|
|
5261 |
if (isSetSuccess()) {
|
|
|
5262 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
5263 |
if (lastComparison != 0) {
|
|
|
5264 |
return lastComparison;
|
|
|
5265 |
}
|
|
|
5266 |
}
|
| 3430 |
rajveer |
5267 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
5268 |
if (lastComparison != 0) {
|
|
|
5269 |
return lastComparison;
|
|
|
5270 |
}
|
| 3430 |
rajveer |
5271 |
if (isSetWex()) {
|
|
|
5272 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
5273 |
if (lastComparison != 0) {
|
|
|
5274 |
return lastComparison;
|
|
|
5275 |
}
|
| 2820 |
chandransh |
5276 |
}
|
|
|
5277 |
return 0;
|
|
|
5278 |
}
|
|
|
5279 |
|
| 3430 |
rajveer |
5280 |
public _Fields fieldForId(int fieldId) {
|
|
|
5281 |
return _Fields.findByThriftId(fieldId);
|
|
|
5282 |
}
|
|
|
5283 |
|
|
|
5284 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5285 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
5286 |
iprot.readStructBegin();
|
|
|
5287 |
while (true)
|
|
|
5288 |
{
|
|
|
5289 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5290 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
5291 |
break;
|
|
|
5292 |
}
|
| 3430 |
rajveer |
5293 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
5294 |
case 0: // SUCCESS
|
| 4555 |
mandeep.dh |
5295 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5296 |
this.success = new InventoryItem();
|
|
|
5297 |
this.success.read(iprot);
|
| 4496 |
mandeep.dh |
5298 |
} else {
|
|
|
5299 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5300 |
}
|
|
|
5301 |
break;
|
| 3430 |
rajveer |
5302 |
case 1: // WEX
|
|
|
5303 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5304 |
this.wex = new WarehouseServiceException();
|
|
|
5305 |
this.wex.read(iprot);
|
|
|
5306 |
} else {
|
|
|
5307 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5308 |
}
|
|
|
5309 |
break;
|
|
|
5310 |
default:
|
|
|
5311 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
5312 |
}
|
| 3430 |
rajveer |
5313 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
5314 |
}
|
|
|
5315 |
iprot.readStructEnd();
|
|
|
5316 |
validate();
|
|
|
5317 |
}
|
|
|
5318 |
|
| 3430 |
rajveer |
5319 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5320 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5321 |
|
| 4496 |
mandeep.dh |
5322 |
if (this.isSetSuccess()) {
|
|
|
5323 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 4555 |
mandeep.dh |
5324 |
this.success.write(oprot);
|
| 4496 |
mandeep.dh |
5325 |
oprot.writeFieldEnd();
|
|
|
5326 |
} else if (this.isSetWex()) {
|
| 2820 |
chandransh |
5327 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
5328 |
this.wex.write(oprot);
|
|
|
5329 |
oprot.writeFieldEnd();
|
|
|
5330 |
}
|
|
|
5331 |
oprot.writeFieldStop();
|
|
|
5332 |
oprot.writeStructEnd();
|
|
|
5333 |
}
|
|
|
5334 |
|
|
|
5335 |
@Override
|
|
|
5336 |
public String toString() {
|
| 4496 |
mandeep.dh |
5337 |
StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_result(");
|
| 2820 |
chandransh |
5338 |
boolean first = true;
|
|
|
5339 |
|
| 4496 |
mandeep.dh |
5340 |
sb.append("success:");
|
| 4555 |
mandeep.dh |
5341 |
if (this.success == null) {
|
|
|
5342 |
sb.append("null");
|
|
|
5343 |
} else {
|
|
|
5344 |
sb.append(this.success);
|
|
|
5345 |
}
|
| 4496 |
mandeep.dh |
5346 |
first = false;
|
|
|
5347 |
if (!first) sb.append(", ");
|
| 2820 |
chandransh |
5348 |
sb.append("wex:");
|
|
|
5349 |
if (this.wex == null) {
|
|
|
5350 |
sb.append("null");
|
|
|
5351 |
} else {
|
|
|
5352 |
sb.append(this.wex);
|
|
|
5353 |
}
|
|
|
5354 |
first = false;
|
|
|
5355 |
sb.append(")");
|
|
|
5356 |
return sb.toString();
|
|
|
5357 |
}
|
|
|
5358 |
|
| 3430 |
rajveer |
5359 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5360 |
// check for required fields
|
|
|
5361 |
}
|
|
|
5362 |
|
| 3430 |
rajveer |
5363 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5364 |
try {
|
|
|
5365 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5366 |
} catch (org.apache.thrift.TException te) {
|
|
|
5367 |
throw new java.io.IOException(te);
|
|
|
5368 |
}
|
|
|
5369 |
}
|
|
|
5370 |
|
|
|
5371 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5372 |
try {
|
|
|
5373 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5374 |
} catch (org.apache.thrift.TException te) {
|
|
|
5375 |
throw new java.io.IOException(te);
|
|
|
5376 |
}
|
|
|
5377 |
}
|
|
|
5378 |
|
| 2820 |
chandransh |
5379 |
}
|
|
|
5380 |
|
| 4496 |
mandeep.dh |
5381 |
public static class scanForOrder_args implements org.apache.thrift.TBase<scanForOrder_args, scanForOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
5382 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_args");
|
| 2820 |
chandransh |
5383 |
|
| 5361 |
mandeep.dh |
5384 |
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 |
5385 |
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);
|
|
|
5386 |
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);
|
|
|
5387 |
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 |
5388 |
private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)5);
|
| 5361 |
mandeep.dh |
5389 |
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 |
5390 |
|
| 5361 |
mandeep.dh |
5391 |
private InventoryItem inventoryItem; // required
|
| 3430 |
rajveer |
5392 |
private ScanType type; // required
|
| 4496 |
mandeep.dh |
5393 |
private long quantity; // required
|
|
|
5394 |
private long orderId; // required
|
| 5110 |
mandeep.dh |
5395 |
private long fulfilmentWarehouseId; // required
|
| 5361 |
mandeep.dh |
5396 |
private long billingWarehouseId; // required
|
| 2820 |
chandransh |
5397 |
|
|
|
5398 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5399 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
5400 |
INVENTORY_ITEM((short)1, "inventoryItem"),
|
| 2820 |
chandransh |
5401 |
/**
|
|
|
5402 |
*
|
|
|
5403 |
* @see ScanType
|
|
|
5404 |
*/
|
| 4496 |
mandeep.dh |
5405 |
TYPE((short)2, "type"),
|
|
|
5406 |
QUANTITY((short)3, "quantity"),
|
|
|
5407 |
ORDER_ID((short)4, "orderId"),
|
| 5361 |
mandeep.dh |
5408 |
FULFILMENT_WAREHOUSE_ID((short)5, "fulfilmentWarehouseId"),
|
|
|
5409 |
BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
|
| 2820 |
chandransh |
5410 |
|
|
|
5411 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5412 |
|
|
|
5413 |
static {
|
|
|
5414 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5415 |
byName.put(field.getFieldName(), field);
|
|
|
5416 |
}
|
|
|
5417 |
}
|
|
|
5418 |
|
|
|
5419 |
/**
|
|
|
5420 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5421 |
*/
|
|
|
5422 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5423 |
switch(fieldId) {
|
| 5361 |
mandeep.dh |
5424 |
case 1: // INVENTORY_ITEM
|
|
|
5425 |
return INVENTORY_ITEM;
|
| 4496 |
mandeep.dh |
5426 |
case 2: // TYPE
|
| 3430 |
rajveer |
5427 |
return TYPE;
|
| 4496 |
mandeep.dh |
5428 |
case 3: // QUANTITY
|
|
|
5429 |
return QUANTITY;
|
|
|
5430 |
case 4: // ORDER_ID
|
|
|
5431 |
return ORDER_ID;
|
| 5110 |
mandeep.dh |
5432 |
case 5: // FULFILMENT_WAREHOUSE_ID
|
|
|
5433 |
return FULFILMENT_WAREHOUSE_ID;
|
| 5361 |
mandeep.dh |
5434 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
5435 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
5436 |
default:
|
|
|
5437 |
return null;
|
|
|
5438 |
}
|
| 2820 |
chandransh |
5439 |
}
|
|
|
5440 |
|
|
|
5441 |
/**
|
|
|
5442 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5443 |
* if it is not found.
|
|
|
5444 |
*/
|
|
|
5445 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5446 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5447 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5448 |
return fields;
|
|
|
5449 |
}
|
|
|
5450 |
|
|
|
5451 |
/**
|
|
|
5452 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5453 |
*/
|
|
|
5454 |
public static _Fields findByName(String name) {
|
|
|
5455 |
return byName.get(name);
|
|
|
5456 |
}
|
|
|
5457 |
|
|
|
5458 |
private final short _thriftId;
|
|
|
5459 |
private final String _fieldName;
|
|
|
5460 |
|
|
|
5461 |
_Fields(short thriftId, String fieldName) {
|
|
|
5462 |
_thriftId = thriftId;
|
|
|
5463 |
_fieldName = fieldName;
|
|
|
5464 |
}
|
|
|
5465 |
|
|
|
5466 |
public short getThriftFieldId() {
|
|
|
5467 |
return _thriftId;
|
|
|
5468 |
}
|
|
|
5469 |
|
|
|
5470 |
public String getFieldName() {
|
|
|
5471 |
return _fieldName;
|
|
|
5472 |
}
|
|
|
5473 |
}
|
|
|
5474 |
|
|
|
5475 |
// isset id assignments
|
| 5361 |
mandeep.dh |
5476 |
private static final int __QUANTITY_ISSET_ID = 0;
|
|
|
5477 |
private static final int __ORDERID_ISSET_ID = 1;
|
|
|
5478 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 2;
|
|
|
5479 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
|
| 4496 |
mandeep.dh |
5480 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 2820 |
chandransh |
5481 |
|
| 3430 |
rajveer |
5482 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
5483 |
static {
|
| 3430 |
rajveer |
5484 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5361 |
mandeep.dh |
5485 |
tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5486 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
5487 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5488 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 4496 |
mandeep.dh |
5489 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5490 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5491 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5492 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
5493 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
5494 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5361 |
mandeep.dh |
5495 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5496 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
5497 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
5498 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_args.class, metaDataMap);
|
| 2820 |
chandransh |
5499 |
}
|
|
|
5500 |
|
| 4496 |
mandeep.dh |
5501 |
public scanForOrder_args() {
|
| 2820 |
chandransh |
5502 |
}
|
|
|
5503 |
|
| 4496 |
mandeep.dh |
5504 |
public scanForOrder_args(
|
| 5361 |
mandeep.dh |
5505 |
InventoryItem inventoryItem,
|
| 4496 |
mandeep.dh |
5506 |
ScanType type,
|
|
|
5507 |
long quantity,
|
|
|
5508 |
long orderId,
|
| 5361 |
mandeep.dh |
5509 |
long fulfilmentWarehouseId,
|
|
|
5510 |
long billingWarehouseId)
|
| 2820 |
chandransh |
5511 |
{
|
|
|
5512 |
this();
|
| 5361 |
mandeep.dh |
5513 |
this.inventoryItem = inventoryItem;
|
| 2820 |
chandransh |
5514 |
this.type = type;
|
| 4496 |
mandeep.dh |
5515 |
this.quantity = quantity;
|
|
|
5516 |
setQuantityIsSet(true);
|
|
|
5517 |
this.orderId = orderId;
|
|
|
5518 |
setOrderIdIsSet(true);
|
| 5110 |
mandeep.dh |
5519 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
5520 |
setFulfilmentWarehouseIdIsSet(true);
|
| 5361 |
mandeep.dh |
5521 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
5522 |
setBillingWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
5523 |
}
|
|
|
5524 |
|
|
|
5525 |
/**
|
|
|
5526 |
* Performs a deep copy on <i>other</i>.
|
|
|
5527 |
*/
|
| 4496 |
mandeep.dh |
5528 |
public scanForOrder_args(scanForOrder_args other) {
|
|
|
5529 |
__isset_bit_vector.clear();
|
|
|
5530 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5361 |
mandeep.dh |
5531 |
if (other.isSetInventoryItem()) {
|
|
|
5532 |
this.inventoryItem = new InventoryItem(other.inventoryItem);
|
|
|
5533 |
}
|
| 2820 |
chandransh |
5534 |
if (other.isSetType()) {
|
|
|
5535 |
this.type = other.type;
|
|
|
5536 |
}
|
| 4496 |
mandeep.dh |
5537 |
this.quantity = other.quantity;
|
|
|
5538 |
this.orderId = other.orderId;
|
| 5110 |
mandeep.dh |
5539 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
| 5361 |
mandeep.dh |
5540 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 2820 |
chandransh |
5541 |
}
|
|
|
5542 |
|
| 4496 |
mandeep.dh |
5543 |
public scanForOrder_args deepCopy() {
|
|
|
5544 |
return new scanForOrder_args(this);
|
| 2820 |
chandransh |
5545 |
}
|
|
|
5546 |
|
| 3430 |
rajveer |
5547 |
@Override
|
|
|
5548 |
public void clear() {
|
| 5361 |
mandeep.dh |
5549 |
this.inventoryItem = null;
|
| 3430 |
rajveer |
5550 |
this.type = null;
|
| 4496 |
mandeep.dh |
5551 |
setQuantityIsSet(false);
|
|
|
5552 |
this.quantity = 0;
|
|
|
5553 |
setOrderIdIsSet(false);
|
|
|
5554 |
this.orderId = 0;
|
| 5110 |
mandeep.dh |
5555 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
5556 |
this.fulfilmentWarehouseId = 0;
|
| 5361 |
mandeep.dh |
5557 |
setBillingWarehouseIdIsSet(false);
|
|
|
5558 |
this.billingWarehouseId = 0;
|
| 2820 |
chandransh |
5559 |
}
|
|
|
5560 |
|
| 5361 |
mandeep.dh |
5561 |
public InventoryItem getInventoryItem() {
|
|
|
5562 |
return this.inventoryItem;
|
| 2820 |
chandransh |
5563 |
}
|
|
|
5564 |
|
| 5361 |
mandeep.dh |
5565 |
public void setInventoryItem(InventoryItem inventoryItem) {
|
|
|
5566 |
this.inventoryItem = inventoryItem;
|
| 2820 |
chandransh |
5567 |
}
|
|
|
5568 |
|
| 5361 |
mandeep.dh |
5569 |
public void unsetInventoryItem() {
|
|
|
5570 |
this.inventoryItem = null;
|
| 2820 |
chandransh |
5571 |
}
|
|
|
5572 |
|
| 5361 |
mandeep.dh |
5573 |
/** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
|
|
|
5574 |
public boolean isSetInventoryItem() {
|
|
|
5575 |
return this.inventoryItem != null;
|
| 2820 |
chandransh |
5576 |
}
|
|
|
5577 |
|
| 5361 |
mandeep.dh |
5578 |
public void setInventoryItemIsSet(boolean value) {
|
|
|
5579 |
if (!value) {
|
|
|
5580 |
this.inventoryItem = null;
|
|
|
5581 |
}
|
| 2820 |
chandransh |
5582 |
}
|
|
|
5583 |
|
|
|
5584 |
/**
|
|
|
5585 |
*
|
|
|
5586 |
* @see ScanType
|
|
|
5587 |
*/
|
|
|
5588 |
public ScanType getType() {
|
|
|
5589 |
return this.type;
|
|
|
5590 |
}
|
|
|
5591 |
|
|
|
5592 |
/**
|
|
|
5593 |
*
|
|
|
5594 |
* @see ScanType
|
|
|
5595 |
*/
|
| 3430 |
rajveer |
5596 |
public void setType(ScanType type) {
|
| 2820 |
chandransh |
5597 |
this.type = type;
|
|
|
5598 |
}
|
|
|
5599 |
|
|
|
5600 |
public void unsetType() {
|
|
|
5601 |
this.type = null;
|
|
|
5602 |
}
|
|
|
5603 |
|
| 3430 |
rajveer |
5604 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
5605 |
public boolean isSetType() {
|
|
|
5606 |
return this.type != null;
|
|
|
5607 |
}
|
|
|
5608 |
|
|
|
5609 |
public void setTypeIsSet(boolean value) {
|
|
|
5610 |
if (!value) {
|
|
|
5611 |
this.type = null;
|
|
|
5612 |
}
|
|
|
5613 |
}
|
|
|
5614 |
|
| 4496 |
mandeep.dh |
5615 |
public long getQuantity() {
|
|
|
5616 |
return this.quantity;
|
|
|
5617 |
}
|
|
|
5618 |
|
|
|
5619 |
public void setQuantity(long quantity) {
|
|
|
5620 |
this.quantity = quantity;
|
|
|
5621 |
setQuantityIsSet(true);
|
|
|
5622 |
}
|
|
|
5623 |
|
|
|
5624 |
public void unsetQuantity() {
|
|
|
5625 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
5626 |
}
|
|
|
5627 |
|
|
|
5628 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
5629 |
public boolean isSetQuantity() {
|
|
|
5630 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
5631 |
}
|
|
|
5632 |
|
|
|
5633 |
public void setQuantityIsSet(boolean value) {
|
|
|
5634 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
5635 |
}
|
|
|
5636 |
|
|
|
5637 |
public long getOrderId() {
|
|
|
5638 |
return this.orderId;
|
|
|
5639 |
}
|
|
|
5640 |
|
|
|
5641 |
public void setOrderId(long orderId) {
|
|
|
5642 |
this.orderId = orderId;
|
|
|
5643 |
setOrderIdIsSet(true);
|
|
|
5644 |
}
|
|
|
5645 |
|
|
|
5646 |
public void unsetOrderId() {
|
|
|
5647 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
5648 |
}
|
|
|
5649 |
|
|
|
5650 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
5651 |
public boolean isSetOrderId() {
|
|
|
5652 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
5653 |
}
|
|
|
5654 |
|
|
|
5655 |
public void setOrderIdIsSet(boolean value) {
|
|
|
5656 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
5657 |
}
|
|
|
5658 |
|
| 5110 |
mandeep.dh |
5659 |
public long getFulfilmentWarehouseId() {
|
|
|
5660 |
return this.fulfilmentWarehouseId;
|
| 4496 |
mandeep.dh |
5661 |
}
|
|
|
5662 |
|
| 5110 |
mandeep.dh |
5663 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
5664 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
5665 |
setFulfilmentWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
5666 |
}
|
|
|
5667 |
|
| 5110 |
mandeep.dh |
5668 |
public void unsetFulfilmentWarehouseId() {
|
|
|
5669 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
5670 |
}
|
|
|
5671 |
|
| 5110 |
mandeep.dh |
5672 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
5673 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
5674 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
5675 |
}
|
|
|
5676 |
|
| 5110 |
mandeep.dh |
5677 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
5678 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 4496 |
mandeep.dh |
5679 |
}
|
|
|
5680 |
|
| 5361 |
mandeep.dh |
5681 |
public long getBillingWarehouseId() {
|
|
|
5682 |
return this.billingWarehouseId;
|
|
|
5683 |
}
|
|
|
5684 |
|
|
|
5685 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
5686 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
5687 |
setBillingWarehouseIdIsSet(true);
|
|
|
5688 |
}
|
|
|
5689 |
|
|
|
5690 |
public void unsetBillingWarehouseId() {
|
|
|
5691 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
5692 |
}
|
|
|
5693 |
|
|
|
5694 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
5695 |
public boolean isSetBillingWarehouseId() {
|
|
|
5696 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
5697 |
}
|
|
|
5698 |
|
|
|
5699 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
5700 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
|
|
5701 |
}
|
|
|
5702 |
|
| 2820 |
chandransh |
5703 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5704 |
switch (field) {
|
| 5361 |
mandeep.dh |
5705 |
case INVENTORY_ITEM:
|
| 2820 |
chandransh |
5706 |
if (value == null) {
|
| 5361 |
mandeep.dh |
5707 |
unsetInventoryItem();
|
| 2820 |
chandransh |
5708 |
} else {
|
| 5361 |
mandeep.dh |
5709 |
setInventoryItem((InventoryItem)value);
|
| 2820 |
chandransh |
5710 |
}
|
|
|
5711 |
break;
|
|
|
5712 |
|
| 4496 |
mandeep.dh |
5713 |
case TYPE:
|
| 2820 |
chandransh |
5714 |
if (value == null) {
|
| 4496 |
mandeep.dh |
5715 |
unsetType();
|
| 2820 |
chandransh |
5716 |
} else {
|
| 4496 |
mandeep.dh |
5717 |
setType((ScanType)value);
|
| 2820 |
chandransh |
5718 |
}
|
|
|
5719 |
break;
|
|
|
5720 |
|
| 4496 |
mandeep.dh |
5721 |
case QUANTITY:
|
| 2820 |
chandransh |
5722 |
if (value == null) {
|
| 4496 |
mandeep.dh |
5723 |
unsetQuantity();
|
| 2820 |
chandransh |
5724 |
} else {
|
| 4496 |
mandeep.dh |
5725 |
setQuantity((Long)value);
|
| 2820 |
chandransh |
5726 |
}
|
|
|
5727 |
break;
|
|
|
5728 |
|
| 4496 |
mandeep.dh |
5729 |
case ORDER_ID:
|
|
|
5730 |
if (value == null) {
|
|
|
5731 |
unsetOrderId();
|
|
|
5732 |
} else {
|
|
|
5733 |
setOrderId((Long)value);
|
|
|
5734 |
}
|
|
|
5735 |
break;
|
|
|
5736 |
|
| 5110 |
mandeep.dh |
5737 |
case FULFILMENT_WAREHOUSE_ID:
|
| 4496 |
mandeep.dh |
5738 |
if (value == null) {
|
| 5110 |
mandeep.dh |
5739 |
unsetFulfilmentWarehouseId();
|
| 4496 |
mandeep.dh |
5740 |
} else {
|
| 5110 |
mandeep.dh |
5741 |
setFulfilmentWarehouseId((Long)value);
|
| 4496 |
mandeep.dh |
5742 |
}
|
|
|
5743 |
break;
|
|
|
5744 |
|
| 5361 |
mandeep.dh |
5745 |
case BILLING_WAREHOUSE_ID:
|
|
|
5746 |
if (value == null) {
|
|
|
5747 |
unsetBillingWarehouseId();
|
|
|
5748 |
} else {
|
|
|
5749 |
setBillingWarehouseId((Long)value);
|
|
|
5750 |
}
|
|
|
5751 |
break;
|
|
|
5752 |
|
| 2820 |
chandransh |
5753 |
}
|
|
|
5754 |
}
|
|
|
5755 |
|
|
|
5756 |
public Object getFieldValue(_Fields field) {
|
|
|
5757 |
switch (field) {
|
| 5361 |
mandeep.dh |
5758 |
case INVENTORY_ITEM:
|
|
|
5759 |
return getInventoryItem();
|
| 2820 |
chandransh |
5760 |
|
|
|
5761 |
case TYPE:
|
|
|
5762 |
return getType();
|
|
|
5763 |
|
| 4496 |
mandeep.dh |
5764 |
case QUANTITY:
|
|
|
5765 |
return Long.valueOf(getQuantity());
|
|
|
5766 |
|
|
|
5767 |
case ORDER_ID:
|
|
|
5768 |
return Long.valueOf(getOrderId());
|
|
|
5769 |
|
| 5110 |
mandeep.dh |
5770 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
5771 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
5772 |
|
| 5361 |
mandeep.dh |
5773 |
case BILLING_WAREHOUSE_ID:
|
|
|
5774 |
return Long.valueOf(getBillingWarehouseId());
|
|
|
5775 |
|
| 2820 |
chandransh |
5776 |
}
|
|
|
5777 |
throw new IllegalStateException();
|
|
|
5778 |
}
|
|
|
5779 |
|
| 3430 |
rajveer |
5780 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5781 |
public boolean isSet(_Fields field) {
|
|
|
5782 |
if (field == null) {
|
|
|
5783 |
throw new IllegalArgumentException();
|
|
|
5784 |
}
|
| 2820 |
chandransh |
5785 |
|
|
|
5786 |
switch (field) {
|
| 5361 |
mandeep.dh |
5787 |
case INVENTORY_ITEM:
|
|
|
5788 |
return isSetInventoryItem();
|
| 2820 |
chandransh |
5789 |
case TYPE:
|
|
|
5790 |
return isSetType();
|
| 4496 |
mandeep.dh |
5791 |
case QUANTITY:
|
|
|
5792 |
return isSetQuantity();
|
|
|
5793 |
case ORDER_ID:
|
|
|
5794 |
return isSetOrderId();
|
| 5110 |
mandeep.dh |
5795 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
5796 |
return isSetFulfilmentWarehouseId();
|
| 5361 |
mandeep.dh |
5797 |
case BILLING_WAREHOUSE_ID:
|
|
|
5798 |
return isSetBillingWarehouseId();
|
| 2820 |
chandransh |
5799 |
}
|
|
|
5800 |
throw new IllegalStateException();
|
|
|
5801 |
}
|
|
|
5802 |
|
|
|
5803 |
@Override
|
|
|
5804 |
public boolean equals(Object that) {
|
|
|
5805 |
if (that == null)
|
|
|
5806 |
return false;
|
| 4496 |
mandeep.dh |
5807 |
if (that instanceof scanForOrder_args)
|
|
|
5808 |
return this.equals((scanForOrder_args)that);
|
| 2820 |
chandransh |
5809 |
return false;
|
|
|
5810 |
}
|
|
|
5811 |
|
| 4496 |
mandeep.dh |
5812 |
public boolean equals(scanForOrder_args that) {
|
| 2820 |
chandransh |
5813 |
if (that == null)
|
|
|
5814 |
return false;
|
|
|
5815 |
|
| 5361 |
mandeep.dh |
5816 |
boolean this_present_inventoryItem = true && this.isSetInventoryItem();
|
|
|
5817 |
boolean that_present_inventoryItem = true && that.isSetInventoryItem();
|
|
|
5818 |
if (this_present_inventoryItem || that_present_inventoryItem) {
|
|
|
5819 |
if (!(this_present_inventoryItem && that_present_inventoryItem))
|
| 2820 |
chandransh |
5820 |
return false;
|
| 5361 |
mandeep.dh |
5821 |
if (!this.inventoryItem.equals(that.inventoryItem))
|
| 2820 |
chandransh |
5822 |
return false;
|
|
|
5823 |
}
|
|
|
5824 |
|
|
|
5825 |
boolean this_present_type = true && this.isSetType();
|
|
|
5826 |
boolean that_present_type = true && that.isSetType();
|
|
|
5827 |
if (this_present_type || that_present_type) {
|
|
|
5828 |
if (!(this_present_type && that_present_type))
|
|
|
5829 |
return false;
|
|
|
5830 |
if (!this.type.equals(that.type))
|
|
|
5831 |
return false;
|
|
|
5832 |
}
|
|
|
5833 |
|
| 4496 |
mandeep.dh |
5834 |
boolean this_present_quantity = true;
|
|
|
5835 |
boolean that_present_quantity = true;
|
|
|
5836 |
if (this_present_quantity || that_present_quantity) {
|
|
|
5837 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
5838 |
return false;
|
|
|
5839 |
if (this.quantity != that.quantity)
|
|
|
5840 |
return false;
|
|
|
5841 |
}
|
|
|
5842 |
|
|
|
5843 |
boolean this_present_orderId = true;
|
|
|
5844 |
boolean that_present_orderId = true;
|
|
|
5845 |
if (this_present_orderId || that_present_orderId) {
|
|
|
5846 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
5847 |
return false;
|
|
|
5848 |
if (this.orderId != that.orderId)
|
|
|
5849 |
return false;
|
|
|
5850 |
}
|
|
|
5851 |
|
| 5110 |
mandeep.dh |
5852 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
5853 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
5854 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
5855 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 4496 |
mandeep.dh |
5856 |
return false;
|
| 5110 |
mandeep.dh |
5857 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 4496 |
mandeep.dh |
5858 |
return false;
|
|
|
5859 |
}
|
|
|
5860 |
|
| 5361 |
mandeep.dh |
5861 |
boolean this_present_billingWarehouseId = true;
|
|
|
5862 |
boolean that_present_billingWarehouseId = true;
|
|
|
5863 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
5864 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
|
|
5865 |
return false;
|
|
|
5866 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
|
|
5867 |
return false;
|
|
|
5868 |
}
|
|
|
5869 |
|
| 2820 |
chandransh |
5870 |
return true;
|
|
|
5871 |
}
|
|
|
5872 |
|
|
|
5873 |
@Override
|
|
|
5874 |
public int hashCode() {
|
|
|
5875 |
return 0;
|
|
|
5876 |
}
|
|
|
5877 |
|
| 4496 |
mandeep.dh |
5878 |
public int compareTo(scanForOrder_args other) {
|
| 2820 |
chandransh |
5879 |
if (!getClass().equals(other.getClass())) {
|
|
|
5880 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5881 |
}
|
|
|
5882 |
|
|
|
5883 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
5884 |
scanForOrder_args typedOther = (scanForOrder_args)other;
|
| 2820 |
chandransh |
5885 |
|
| 5361 |
mandeep.dh |
5886 |
lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
|
| 2820 |
chandransh |
5887 |
if (lastComparison != 0) {
|
|
|
5888 |
return lastComparison;
|
|
|
5889 |
}
|
| 5361 |
mandeep.dh |
5890 |
if (isSetInventoryItem()) {
|
|
|
5891 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
|
| 3430 |
rajveer |
5892 |
if (lastComparison != 0) {
|
|
|
5893 |
return lastComparison;
|
|
|
5894 |
}
|
| 2820 |
chandransh |
5895 |
}
|
| 4496 |
mandeep.dh |
5896 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 2820 |
chandransh |
5897 |
if (lastComparison != 0) {
|
|
|
5898 |
return lastComparison;
|
|
|
5899 |
}
|
| 4496 |
mandeep.dh |
5900 |
if (isSetType()) {
|
|
|
5901 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
5902 |
if (lastComparison != 0) {
|
|
|
5903 |
return lastComparison;
|
|
|
5904 |
}
|
| 2820 |
chandransh |
5905 |
}
|
| 4496 |
mandeep.dh |
5906 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
| 2820 |
chandransh |
5907 |
if (lastComparison != 0) {
|
|
|
5908 |
return lastComparison;
|
|
|
5909 |
}
|
| 4496 |
mandeep.dh |
5910 |
if (isSetQuantity()) {
|
|
|
5911 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
| 3430 |
rajveer |
5912 |
if (lastComparison != 0) {
|
|
|
5913 |
return lastComparison;
|
|
|
5914 |
}
|
| 2820 |
chandransh |
5915 |
}
|
| 4496 |
mandeep.dh |
5916 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
5917 |
if (lastComparison != 0) {
|
|
|
5918 |
return lastComparison;
|
|
|
5919 |
}
|
|
|
5920 |
if (isSetOrderId()) {
|
|
|
5921 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
5922 |
if (lastComparison != 0) {
|
|
|
5923 |
return lastComparison;
|
|
|
5924 |
}
|
|
|
5925 |
}
|
| 5110 |
mandeep.dh |
5926 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
5927 |
if (lastComparison != 0) {
|
|
|
5928 |
return lastComparison;
|
|
|
5929 |
}
|
| 5110 |
mandeep.dh |
5930 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
5931 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
5932 |
if (lastComparison != 0) {
|
|
|
5933 |
return lastComparison;
|
|
|
5934 |
}
|
|
|
5935 |
}
|
| 5361 |
mandeep.dh |
5936 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
|
|
5937 |
if (lastComparison != 0) {
|
|
|
5938 |
return lastComparison;
|
|
|
5939 |
}
|
|
|
5940 |
if (isSetBillingWarehouseId()) {
|
|
|
5941 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
|
|
5942 |
if (lastComparison != 0) {
|
|
|
5943 |
return lastComparison;
|
|
|
5944 |
}
|
|
|
5945 |
}
|
| 2820 |
chandransh |
5946 |
return 0;
|
|
|
5947 |
}
|
|
|
5948 |
|
| 3430 |
rajveer |
5949 |
public _Fields fieldForId(int fieldId) {
|
|
|
5950 |
return _Fields.findByThriftId(fieldId);
|
|
|
5951 |
}
|
|
|
5952 |
|
|
|
5953 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5954 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
5955 |
iprot.readStructBegin();
|
|
|
5956 |
while (true)
|
|
|
5957 |
{
|
|
|
5958 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5959 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
5960 |
break;
|
|
|
5961 |
}
|
| 3430 |
rajveer |
5962 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
5963 |
case 1: // INVENTORY_ITEM
|
|
|
5964 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5965 |
this.inventoryItem = new InventoryItem();
|
|
|
5966 |
this.inventoryItem.read(iprot);
|
| 3430 |
rajveer |
5967 |
} else {
|
|
|
5968 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5969 |
}
|
|
|
5970 |
break;
|
| 4496 |
mandeep.dh |
5971 |
case 2: // TYPE
|
|
|
5972 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
5973 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
5974 |
} else {
|
|
|
5975 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5976 |
}
|
|
|
5977 |
break;
|
| 4496 |
mandeep.dh |
5978 |
case 3: // QUANTITY
|
|
|
5979 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5980 |
this.quantity = iprot.readI64();
|
|
|
5981 |
setQuantityIsSet(true);
|
| 3430 |
rajveer |
5982 |
} else {
|
|
|
5983 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5984 |
}
|
|
|
5985 |
break;
|
| 4496 |
mandeep.dh |
5986 |
case 4: // ORDER_ID
|
|
|
5987 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5988 |
this.orderId = iprot.readI64();
|
|
|
5989 |
setOrderIdIsSet(true);
|
|
|
5990 |
} else {
|
|
|
5991 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5992 |
}
|
|
|
5993 |
break;
|
| 5110 |
mandeep.dh |
5994 |
case 5: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
5995 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5110 |
mandeep.dh |
5996 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
5997 |
setFulfilmentWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
5998 |
} else {
|
|
|
5999 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6000 |
}
|
|
|
6001 |
break;
|
| 5361 |
mandeep.dh |
6002 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
6003 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6004 |
this.billingWarehouseId = iprot.readI64();
|
|
|
6005 |
setBillingWarehouseIdIsSet(true);
|
|
|
6006 |
} else {
|
|
|
6007 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6008 |
}
|
|
|
6009 |
break;
|
| 3430 |
rajveer |
6010 |
default:
|
|
|
6011 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
6012 |
}
|
| 3430 |
rajveer |
6013 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
6014 |
}
|
|
|
6015 |
iprot.readStructEnd();
|
|
|
6016 |
validate();
|
|
|
6017 |
}
|
|
|
6018 |
|
| 3430 |
rajveer |
6019 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6020 |
validate();
|
|
|
6021 |
|
|
|
6022 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5361 |
mandeep.dh |
6023 |
if (this.inventoryItem != null) {
|
|
|
6024 |
oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
|
|
|
6025 |
this.inventoryItem.write(oprot);
|
|
|
6026 |
oprot.writeFieldEnd();
|
|
|
6027 |
}
|
| 2820 |
chandransh |
6028 |
if (this.type != null) {
|
|
|
6029 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
6030 |
oprot.writeI32(this.type.getValue());
|
|
|
6031 |
oprot.writeFieldEnd();
|
|
|
6032 |
}
|
| 4496 |
mandeep.dh |
6033 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
6034 |
oprot.writeI64(this.quantity);
|
|
|
6035 |
oprot.writeFieldEnd();
|
|
|
6036 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
6037 |
oprot.writeI64(this.orderId);
|
|
|
6038 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
6039 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
6040 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
6041 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
6042 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
6043 |
oprot.writeI64(this.billingWarehouseId);
|
|
|
6044 |
oprot.writeFieldEnd();
|
| 2820 |
chandransh |
6045 |
oprot.writeFieldStop();
|
|
|
6046 |
oprot.writeStructEnd();
|
|
|
6047 |
}
|
|
|
6048 |
|
|
|
6049 |
@Override
|
|
|
6050 |
public String toString() {
|
| 4496 |
mandeep.dh |
6051 |
StringBuilder sb = new StringBuilder("scanForOrder_args(");
|
| 2820 |
chandransh |
6052 |
boolean first = true;
|
|
|
6053 |
|
| 5361 |
mandeep.dh |
6054 |
sb.append("inventoryItem:");
|
|
|
6055 |
if (this.inventoryItem == null) {
|
|
|
6056 |
sb.append("null");
|
|
|
6057 |
} else {
|
|
|
6058 |
sb.append(this.inventoryItem);
|
|
|
6059 |
}
|
| 2820 |
chandransh |
6060 |
first = false;
|
|
|
6061 |
if (!first) sb.append(", ");
|
|
|
6062 |
sb.append("type:");
|
|
|
6063 |
if (this.type == null) {
|
|
|
6064 |
sb.append("null");
|
|
|
6065 |
} else {
|
|
|
6066 |
sb.append(this.type);
|
|
|
6067 |
}
|
|
|
6068 |
first = false;
|
| 4496 |
mandeep.dh |
6069 |
if (!first) sb.append(", ");
|
|
|
6070 |
sb.append("quantity:");
|
|
|
6071 |
sb.append(this.quantity);
|
|
|
6072 |
first = false;
|
|
|
6073 |
if (!first) sb.append(", ");
|
|
|
6074 |
sb.append("orderId:");
|
|
|
6075 |
sb.append(this.orderId);
|
|
|
6076 |
first = false;
|
|
|
6077 |
if (!first) sb.append(", ");
|
| 5110 |
mandeep.dh |
6078 |
sb.append("fulfilmentWarehouseId:");
|
|
|
6079 |
sb.append(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
6080 |
first = false;
|
| 5361 |
mandeep.dh |
6081 |
if (!first) sb.append(", ");
|
|
|
6082 |
sb.append("billingWarehouseId:");
|
|
|
6083 |
sb.append(this.billingWarehouseId);
|
|
|
6084 |
first = false;
|
| 2820 |
chandransh |
6085 |
sb.append(")");
|
|
|
6086 |
return sb.toString();
|
|
|
6087 |
}
|
|
|
6088 |
|
| 3430 |
rajveer |
6089 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6090 |
// check for required fields
|
|
|
6091 |
}
|
|
|
6092 |
|
| 3430 |
rajveer |
6093 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6094 |
try {
|
|
|
6095 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6096 |
} catch (org.apache.thrift.TException te) {
|
|
|
6097 |
throw new java.io.IOException(te);
|
|
|
6098 |
}
|
|
|
6099 |
}
|
|
|
6100 |
|
|
|
6101 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6102 |
try {
|
| 4496 |
mandeep.dh |
6103 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
6104 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
6105 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6106 |
} catch (org.apache.thrift.TException te) {
|
|
|
6107 |
throw new java.io.IOException(te);
|
|
|
6108 |
}
|
|
|
6109 |
}
|
|
|
6110 |
|
| 2820 |
chandransh |
6111 |
}
|
|
|
6112 |
|
| 4496 |
mandeep.dh |
6113 |
public static class scanForOrder_result implements org.apache.thrift.TBase<scanForOrder_result, scanForOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6114 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_result");
|
| 2820 |
chandransh |
6115 |
|
| 5361 |
mandeep.dh |
6116 |
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 |
6117 |
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 |
6118 |
|
| 5361 |
mandeep.dh |
6119 |
private InventoryItem success; // required
|
| 3430 |
rajveer |
6120 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
6121 |
|
|
|
6122 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6123 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
6124 |
SUCCESS((short)0, "success"),
|
| 2820 |
chandransh |
6125 |
WEX((short)1, "wex");
|
|
|
6126 |
|
|
|
6127 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6128 |
|
|
|
6129 |
static {
|
|
|
6130 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6131 |
byName.put(field.getFieldName(), field);
|
|
|
6132 |
}
|
|
|
6133 |
}
|
|
|
6134 |
|
|
|
6135 |
/**
|
|
|
6136 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6137 |
*/
|
|
|
6138 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6139 |
switch(fieldId) {
|
| 5361 |
mandeep.dh |
6140 |
case 0: // SUCCESS
|
|
|
6141 |
return SUCCESS;
|
| 3430 |
rajveer |
6142 |
case 1: // WEX
|
|
|
6143 |
return WEX;
|
|
|
6144 |
default:
|
|
|
6145 |
return null;
|
|
|
6146 |
}
|
| 2820 |
chandransh |
6147 |
}
|
|
|
6148 |
|
|
|
6149 |
/**
|
|
|
6150 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6151 |
* if it is not found.
|
|
|
6152 |
*/
|
|
|
6153 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6154 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6155 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6156 |
return fields;
|
|
|
6157 |
}
|
|
|
6158 |
|
|
|
6159 |
/**
|
|
|
6160 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6161 |
*/
|
|
|
6162 |
public static _Fields findByName(String name) {
|
|
|
6163 |
return byName.get(name);
|
|
|
6164 |
}
|
|
|
6165 |
|
|
|
6166 |
private final short _thriftId;
|
|
|
6167 |
private final String _fieldName;
|
|
|
6168 |
|
|
|
6169 |
_Fields(short thriftId, String fieldName) {
|
|
|
6170 |
_thriftId = thriftId;
|
|
|
6171 |
_fieldName = fieldName;
|
|
|
6172 |
}
|
|
|
6173 |
|
|
|
6174 |
public short getThriftFieldId() {
|
|
|
6175 |
return _thriftId;
|
|
|
6176 |
}
|
|
|
6177 |
|
|
|
6178 |
public String getFieldName() {
|
|
|
6179 |
return _fieldName;
|
|
|
6180 |
}
|
|
|
6181 |
}
|
|
|
6182 |
|
|
|
6183 |
// isset id assignments
|
|
|
6184 |
|
| 3430 |
rajveer |
6185 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
6186 |
static {
|
| 3430 |
rajveer |
6187 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5361 |
mandeep.dh |
6188 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6189 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
6190 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6191 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
6192 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
6193 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_result.class, metaDataMap);
|
| 2820 |
chandransh |
6194 |
}
|
|
|
6195 |
|
| 4496 |
mandeep.dh |
6196 |
public scanForOrder_result() {
|
| 2820 |
chandransh |
6197 |
}
|
|
|
6198 |
|
| 4496 |
mandeep.dh |
6199 |
public scanForOrder_result(
|
| 5361 |
mandeep.dh |
6200 |
InventoryItem success,
|
| 2820 |
chandransh |
6201 |
WarehouseServiceException wex)
|
|
|
6202 |
{
|
|
|
6203 |
this();
|
| 5361 |
mandeep.dh |
6204 |
this.success = success;
|
| 2820 |
chandransh |
6205 |
this.wex = wex;
|
|
|
6206 |
}
|
|
|
6207 |
|
|
|
6208 |
/**
|
|
|
6209 |
* Performs a deep copy on <i>other</i>.
|
|
|
6210 |
*/
|
| 4496 |
mandeep.dh |
6211 |
public scanForOrder_result(scanForOrder_result other) {
|
| 5361 |
mandeep.dh |
6212 |
if (other.isSetSuccess()) {
|
|
|
6213 |
this.success = new InventoryItem(other.success);
|
|
|
6214 |
}
|
| 2820 |
chandransh |
6215 |
if (other.isSetWex()) {
|
|
|
6216 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
6217 |
}
|
|
|
6218 |
}
|
|
|
6219 |
|
| 4496 |
mandeep.dh |
6220 |
public scanForOrder_result deepCopy() {
|
|
|
6221 |
return new scanForOrder_result(this);
|
| 2820 |
chandransh |
6222 |
}
|
|
|
6223 |
|
| 3430 |
rajveer |
6224 |
@Override
|
|
|
6225 |
public void clear() {
|
| 5361 |
mandeep.dh |
6226 |
this.success = null;
|
| 3430 |
rajveer |
6227 |
this.wex = null;
|
| 2820 |
chandransh |
6228 |
}
|
|
|
6229 |
|
| 5361 |
mandeep.dh |
6230 |
public InventoryItem getSuccess() {
|
|
|
6231 |
return this.success;
|
|
|
6232 |
}
|
|
|
6233 |
|
|
|
6234 |
public void setSuccess(InventoryItem success) {
|
|
|
6235 |
this.success = success;
|
|
|
6236 |
}
|
|
|
6237 |
|
|
|
6238 |
public void unsetSuccess() {
|
|
|
6239 |
this.success = null;
|
|
|
6240 |
}
|
|
|
6241 |
|
|
|
6242 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
6243 |
public boolean isSetSuccess() {
|
|
|
6244 |
return this.success != null;
|
|
|
6245 |
}
|
|
|
6246 |
|
|
|
6247 |
public void setSuccessIsSet(boolean value) {
|
|
|
6248 |
if (!value) {
|
|
|
6249 |
this.success = null;
|
|
|
6250 |
}
|
|
|
6251 |
}
|
|
|
6252 |
|
| 2820 |
chandransh |
6253 |
public WarehouseServiceException getWex() {
|
|
|
6254 |
return this.wex;
|
|
|
6255 |
}
|
|
|
6256 |
|
| 3430 |
rajveer |
6257 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
6258 |
this.wex = wex;
|
|
|
6259 |
}
|
|
|
6260 |
|
|
|
6261 |
public void unsetWex() {
|
|
|
6262 |
this.wex = null;
|
|
|
6263 |
}
|
|
|
6264 |
|
| 3430 |
rajveer |
6265 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
6266 |
public boolean isSetWex() {
|
|
|
6267 |
return this.wex != null;
|
|
|
6268 |
}
|
|
|
6269 |
|
|
|
6270 |
public void setWexIsSet(boolean value) {
|
|
|
6271 |
if (!value) {
|
|
|
6272 |
this.wex = null;
|
|
|
6273 |
}
|
|
|
6274 |
}
|
|
|
6275 |
|
|
|
6276 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6277 |
switch (field) {
|
| 5361 |
mandeep.dh |
6278 |
case SUCCESS:
|
|
|
6279 |
if (value == null) {
|
|
|
6280 |
unsetSuccess();
|
|
|
6281 |
} else {
|
|
|
6282 |
setSuccess((InventoryItem)value);
|
|
|
6283 |
}
|
|
|
6284 |
break;
|
|
|
6285 |
|
| 2820 |
chandransh |
6286 |
case WEX:
|
|
|
6287 |
if (value == null) {
|
|
|
6288 |
unsetWex();
|
|
|
6289 |
} else {
|
|
|
6290 |
setWex((WarehouseServiceException)value);
|
|
|
6291 |
}
|
|
|
6292 |
break;
|
|
|
6293 |
|
|
|
6294 |
}
|
|
|
6295 |
}
|
|
|
6296 |
|
|
|
6297 |
public Object getFieldValue(_Fields field) {
|
|
|
6298 |
switch (field) {
|
| 5361 |
mandeep.dh |
6299 |
case SUCCESS:
|
|
|
6300 |
return getSuccess();
|
|
|
6301 |
|
| 2820 |
chandransh |
6302 |
case WEX:
|
|
|
6303 |
return getWex();
|
|
|
6304 |
|
|
|
6305 |
}
|
|
|
6306 |
throw new IllegalStateException();
|
|
|
6307 |
}
|
|
|
6308 |
|
| 3430 |
rajveer |
6309 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6310 |
public boolean isSet(_Fields field) {
|
|
|
6311 |
if (field == null) {
|
|
|
6312 |
throw new IllegalArgumentException();
|
|
|
6313 |
}
|
| 2820 |
chandransh |
6314 |
|
|
|
6315 |
switch (field) {
|
| 5361 |
mandeep.dh |
6316 |
case SUCCESS:
|
|
|
6317 |
return isSetSuccess();
|
| 2820 |
chandransh |
6318 |
case WEX:
|
|
|
6319 |
return isSetWex();
|
|
|
6320 |
}
|
|
|
6321 |
throw new IllegalStateException();
|
|
|
6322 |
}
|
|
|
6323 |
|
|
|
6324 |
@Override
|
|
|
6325 |
public boolean equals(Object that) {
|
|
|
6326 |
if (that == null)
|
|
|
6327 |
return false;
|
| 4496 |
mandeep.dh |
6328 |
if (that instanceof scanForOrder_result)
|
|
|
6329 |
return this.equals((scanForOrder_result)that);
|
| 2820 |
chandransh |
6330 |
return false;
|
|
|
6331 |
}
|
|
|
6332 |
|
| 4496 |
mandeep.dh |
6333 |
public boolean equals(scanForOrder_result that) {
|
| 2820 |
chandransh |
6334 |
if (that == null)
|
|
|
6335 |
return false;
|
|
|
6336 |
|
| 5361 |
mandeep.dh |
6337 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
6338 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
6339 |
if (this_present_success || that_present_success) {
|
|
|
6340 |
if (!(this_present_success && that_present_success))
|
|
|
6341 |
return false;
|
|
|
6342 |
if (!this.success.equals(that.success))
|
|
|
6343 |
return false;
|
|
|
6344 |
}
|
|
|
6345 |
|
| 2820 |
chandransh |
6346 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
6347 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
6348 |
if (this_present_wex || that_present_wex) {
|
|
|
6349 |
if (!(this_present_wex && that_present_wex))
|
|
|
6350 |
return false;
|
|
|
6351 |
if (!this.wex.equals(that.wex))
|
|
|
6352 |
return false;
|
|
|
6353 |
}
|
|
|
6354 |
|
|
|
6355 |
return true;
|
|
|
6356 |
}
|
|
|
6357 |
|
|
|
6358 |
@Override
|
|
|
6359 |
public int hashCode() {
|
|
|
6360 |
return 0;
|
|
|
6361 |
}
|
|
|
6362 |
|
| 4496 |
mandeep.dh |
6363 |
public int compareTo(scanForOrder_result other) {
|
| 2820 |
chandransh |
6364 |
if (!getClass().equals(other.getClass())) {
|
|
|
6365 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6366 |
}
|
|
|
6367 |
|
|
|
6368 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
6369 |
scanForOrder_result typedOther = (scanForOrder_result)other;
|
| 2820 |
chandransh |
6370 |
|
| 5361 |
mandeep.dh |
6371 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
6372 |
if (lastComparison != 0) {
|
|
|
6373 |
return lastComparison;
|
|
|
6374 |
}
|
|
|
6375 |
if (isSetSuccess()) {
|
|
|
6376 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
6377 |
if (lastComparison != 0) {
|
|
|
6378 |
return lastComparison;
|
|
|
6379 |
}
|
|
|
6380 |
}
|
| 3430 |
rajveer |
6381 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
6382 |
if (lastComparison != 0) {
|
|
|
6383 |
return lastComparison;
|
|
|
6384 |
}
|
| 3430 |
rajveer |
6385 |
if (isSetWex()) {
|
|
|
6386 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
6387 |
if (lastComparison != 0) {
|
|
|
6388 |
return lastComparison;
|
|
|
6389 |
}
|
| 2820 |
chandransh |
6390 |
}
|
|
|
6391 |
return 0;
|
|
|
6392 |
}
|
|
|
6393 |
|
| 3430 |
rajveer |
6394 |
public _Fields fieldForId(int fieldId) {
|
|
|
6395 |
return _Fields.findByThriftId(fieldId);
|
|
|
6396 |
}
|
|
|
6397 |
|
|
|
6398 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6399 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
6400 |
iprot.readStructBegin();
|
|
|
6401 |
while (true)
|
|
|
6402 |
{
|
|
|
6403 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6404 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
6405 |
break;
|
|
|
6406 |
}
|
| 3430 |
rajveer |
6407 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
6408 |
case 0: // SUCCESS
|
|
|
6409 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6410 |
this.success = new InventoryItem();
|
|
|
6411 |
this.success.read(iprot);
|
|
|
6412 |
} else {
|
|
|
6413 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6414 |
}
|
|
|
6415 |
break;
|
| 3430 |
rajveer |
6416 |
case 1: // WEX
|
|
|
6417 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6418 |
this.wex = new WarehouseServiceException();
|
|
|
6419 |
this.wex.read(iprot);
|
|
|
6420 |
} else {
|
|
|
6421 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6422 |
}
|
|
|
6423 |
break;
|
|
|
6424 |
default:
|
|
|
6425 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
6426 |
}
|
| 3430 |
rajveer |
6427 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
6428 |
}
|
|
|
6429 |
iprot.readStructEnd();
|
|
|
6430 |
validate();
|
|
|
6431 |
}
|
|
|
6432 |
|
| 3430 |
rajveer |
6433 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6434 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6435 |
|
| 5361 |
mandeep.dh |
6436 |
if (this.isSetSuccess()) {
|
|
|
6437 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
6438 |
this.success.write(oprot);
|
|
|
6439 |
oprot.writeFieldEnd();
|
|
|
6440 |
} else if (this.isSetWex()) {
|
| 2820 |
chandransh |
6441 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
6442 |
this.wex.write(oprot);
|
|
|
6443 |
oprot.writeFieldEnd();
|
|
|
6444 |
}
|
|
|
6445 |
oprot.writeFieldStop();
|
|
|
6446 |
oprot.writeStructEnd();
|
|
|
6447 |
}
|
|
|
6448 |
|
|
|
6449 |
@Override
|
|
|
6450 |
public String toString() {
|
| 4496 |
mandeep.dh |
6451 |
StringBuilder sb = new StringBuilder("scanForOrder_result(");
|
| 2820 |
chandransh |
6452 |
boolean first = true;
|
|
|
6453 |
|
| 5361 |
mandeep.dh |
6454 |
sb.append("success:");
|
|
|
6455 |
if (this.success == null) {
|
|
|
6456 |
sb.append("null");
|
|
|
6457 |
} else {
|
|
|
6458 |
sb.append(this.success);
|
|
|
6459 |
}
|
|
|
6460 |
first = false;
|
|
|
6461 |
if (!first) sb.append(", ");
|
| 2820 |
chandransh |
6462 |
sb.append("wex:");
|
|
|
6463 |
if (this.wex == null) {
|
|
|
6464 |
sb.append("null");
|
|
|
6465 |
} else {
|
|
|
6466 |
sb.append(this.wex);
|
|
|
6467 |
}
|
|
|
6468 |
first = false;
|
|
|
6469 |
sb.append(")");
|
|
|
6470 |
return sb.toString();
|
|
|
6471 |
}
|
|
|
6472 |
|
| 3430 |
rajveer |
6473 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6474 |
// check for required fields
|
|
|
6475 |
}
|
|
|
6476 |
|
| 3430 |
rajveer |
6477 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6478 |
try {
|
|
|
6479 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6480 |
} catch (org.apache.thrift.TException te) {
|
|
|
6481 |
throw new java.io.IOException(te);
|
|
|
6482 |
}
|
|
|
6483 |
}
|
|
|
6484 |
|
|
|
6485 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6486 |
try {
|
|
|
6487 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6488 |
} catch (org.apache.thrift.TException te) {
|
|
|
6489 |
throw new java.io.IOException(te);
|
|
|
6490 |
}
|
|
|
6491 |
}
|
|
|
6492 |
|
| 2820 |
chandransh |
6493 |
}
|
|
|
6494 |
|
| 4496 |
mandeep.dh |
6495 |
public static class createItemNumberMapping_args implements org.apache.thrift.TBase<createItemNumberMapping_args, createItemNumberMapping_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6496 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_args");
|
|
|
6497 |
|
|
|
6498 |
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);
|
|
|
6499 |
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);
|
|
|
6500 |
|
|
|
6501 |
private String itemNumber; // required
|
|
|
6502 |
private long itemId; // required
|
|
|
6503 |
|
|
|
6504 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6505 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
6506 |
ITEM_NUMBER((short)1, "itemNumber"),
|
|
|
6507 |
ITEM_ID((short)2, "itemId");
|
|
|
6508 |
|
|
|
6509 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6510 |
|
|
|
6511 |
static {
|
|
|
6512 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6513 |
byName.put(field.getFieldName(), field);
|
|
|
6514 |
}
|
|
|
6515 |
}
|
|
|
6516 |
|
|
|
6517 |
/**
|
|
|
6518 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6519 |
*/
|
|
|
6520 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
6521 |
switch(fieldId) {
|
|
|
6522 |
case 1: // ITEM_NUMBER
|
|
|
6523 |
return ITEM_NUMBER;
|
|
|
6524 |
case 2: // ITEM_ID
|
|
|
6525 |
return ITEM_ID;
|
|
|
6526 |
default:
|
|
|
6527 |
return null;
|
|
|
6528 |
}
|
|
|
6529 |
}
|
|
|
6530 |
|
|
|
6531 |
/**
|
|
|
6532 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6533 |
* if it is not found.
|
|
|
6534 |
*/
|
|
|
6535 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6536 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6537 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6538 |
return fields;
|
|
|
6539 |
}
|
|
|
6540 |
|
|
|
6541 |
/**
|
|
|
6542 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6543 |
*/
|
|
|
6544 |
public static _Fields findByName(String name) {
|
|
|
6545 |
return byName.get(name);
|
|
|
6546 |
}
|
|
|
6547 |
|
|
|
6548 |
private final short _thriftId;
|
|
|
6549 |
private final String _fieldName;
|
|
|
6550 |
|
|
|
6551 |
_Fields(short thriftId, String fieldName) {
|
|
|
6552 |
_thriftId = thriftId;
|
|
|
6553 |
_fieldName = fieldName;
|
|
|
6554 |
}
|
|
|
6555 |
|
|
|
6556 |
public short getThriftFieldId() {
|
|
|
6557 |
return _thriftId;
|
|
|
6558 |
}
|
|
|
6559 |
|
|
|
6560 |
public String getFieldName() {
|
|
|
6561 |
return _fieldName;
|
|
|
6562 |
}
|
|
|
6563 |
}
|
|
|
6564 |
|
|
|
6565 |
// isset id assignments
|
|
|
6566 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
6567 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
6568 |
|
|
|
6569 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
6570 |
static {
|
|
|
6571 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6572 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6573 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6574 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6575 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
6576 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6577 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_args.class, metaDataMap);
|
|
|
6578 |
}
|
|
|
6579 |
|
|
|
6580 |
public createItemNumberMapping_args() {
|
|
|
6581 |
}
|
|
|
6582 |
|
|
|
6583 |
public createItemNumberMapping_args(
|
|
|
6584 |
String itemNumber,
|
|
|
6585 |
long itemId)
|
|
|
6586 |
{
|
|
|
6587 |
this();
|
|
|
6588 |
this.itemNumber = itemNumber;
|
|
|
6589 |
this.itemId = itemId;
|
|
|
6590 |
setItemIdIsSet(true);
|
|
|
6591 |
}
|
|
|
6592 |
|
|
|
6593 |
/**
|
|
|
6594 |
* Performs a deep copy on <i>other</i>.
|
|
|
6595 |
*/
|
|
|
6596 |
public createItemNumberMapping_args(createItemNumberMapping_args other) {
|
|
|
6597 |
__isset_bit_vector.clear();
|
|
|
6598 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
6599 |
if (other.isSetItemNumber()) {
|
|
|
6600 |
this.itemNumber = other.itemNumber;
|
|
|
6601 |
}
|
|
|
6602 |
this.itemId = other.itemId;
|
|
|
6603 |
}
|
|
|
6604 |
|
|
|
6605 |
public createItemNumberMapping_args deepCopy() {
|
|
|
6606 |
return new createItemNumberMapping_args(this);
|
|
|
6607 |
}
|
|
|
6608 |
|
|
|
6609 |
@Override
|
|
|
6610 |
public void clear() {
|
|
|
6611 |
this.itemNumber = null;
|
|
|
6612 |
setItemIdIsSet(false);
|
|
|
6613 |
this.itemId = 0;
|
|
|
6614 |
}
|
|
|
6615 |
|
|
|
6616 |
public String getItemNumber() {
|
|
|
6617 |
return this.itemNumber;
|
|
|
6618 |
}
|
|
|
6619 |
|
|
|
6620 |
public void setItemNumber(String itemNumber) {
|
|
|
6621 |
this.itemNumber = itemNumber;
|
|
|
6622 |
}
|
|
|
6623 |
|
|
|
6624 |
public void unsetItemNumber() {
|
|
|
6625 |
this.itemNumber = null;
|
|
|
6626 |
}
|
|
|
6627 |
|
|
|
6628 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
6629 |
public boolean isSetItemNumber() {
|
|
|
6630 |
return this.itemNumber != null;
|
|
|
6631 |
}
|
|
|
6632 |
|
|
|
6633 |
public void setItemNumberIsSet(boolean value) {
|
|
|
6634 |
if (!value) {
|
|
|
6635 |
this.itemNumber = null;
|
|
|
6636 |
}
|
|
|
6637 |
}
|
|
|
6638 |
|
|
|
6639 |
public long getItemId() {
|
|
|
6640 |
return this.itemId;
|
|
|
6641 |
}
|
|
|
6642 |
|
|
|
6643 |
public void setItemId(long itemId) {
|
|
|
6644 |
this.itemId = itemId;
|
|
|
6645 |
setItemIdIsSet(true);
|
|
|
6646 |
}
|
|
|
6647 |
|
|
|
6648 |
public void unsetItemId() {
|
|
|
6649 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
6650 |
}
|
|
|
6651 |
|
|
|
6652 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
6653 |
public boolean isSetItemId() {
|
|
|
6654 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
6655 |
}
|
|
|
6656 |
|
|
|
6657 |
public void setItemIdIsSet(boolean value) {
|
|
|
6658 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
6659 |
}
|
|
|
6660 |
|
|
|
6661 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6662 |
switch (field) {
|
|
|
6663 |
case ITEM_NUMBER:
|
|
|
6664 |
if (value == null) {
|
|
|
6665 |
unsetItemNumber();
|
|
|
6666 |
} else {
|
|
|
6667 |
setItemNumber((String)value);
|
|
|
6668 |
}
|
|
|
6669 |
break;
|
|
|
6670 |
|
|
|
6671 |
case ITEM_ID:
|
|
|
6672 |
if (value == null) {
|
|
|
6673 |
unsetItemId();
|
|
|
6674 |
} else {
|
|
|
6675 |
setItemId((Long)value);
|
|
|
6676 |
}
|
|
|
6677 |
break;
|
|
|
6678 |
|
|
|
6679 |
}
|
|
|
6680 |
}
|
|
|
6681 |
|
|
|
6682 |
public Object getFieldValue(_Fields field) {
|
|
|
6683 |
switch (field) {
|
|
|
6684 |
case ITEM_NUMBER:
|
|
|
6685 |
return getItemNumber();
|
|
|
6686 |
|
|
|
6687 |
case ITEM_ID:
|
|
|
6688 |
return Long.valueOf(getItemId());
|
|
|
6689 |
|
|
|
6690 |
}
|
|
|
6691 |
throw new IllegalStateException();
|
|
|
6692 |
}
|
|
|
6693 |
|
|
|
6694 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6695 |
public boolean isSet(_Fields field) {
|
|
|
6696 |
if (field == null) {
|
|
|
6697 |
throw new IllegalArgumentException();
|
|
|
6698 |
}
|
|
|
6699 |
|
|
|
6700 |
switch (field) {
|
|
|
6701 |
case ITEM_NUMBER:
|
|
|
6702 |
return isSetItemNumber();
|
|
|
6703 |
case ITEM_ID:
|
|
|
6704 |
return isSetItemId();
|
|
|
6705 |
}
|
|
|
6706 |
throw new IllegalStateException();
|
|
|
6707 |
}
|
|
|
6708 |
|
|
|
6709 |
@Override
|
|
|
6710 |
public boolean equals(Object that) {
|
|
|
6711 |
if (that == null)
|
|
|
6712 |
return false;
|
|
|
6713 |
if (that instanceof createItemNumberMapping_args)
|
|
|
6714 |
return this.equals((createItemNumberMapping_args)that);
|
|
|
6715 |
return false;
|
|
|
6716 |
}
|
|
|
6717 |
|
|
|
6718 |
public boolean equals(createItemNumberMapping_args that) {
|
|
|
6719 |
if (that == null)
|
|
|
6720 |
return false;
|
|
|
6721 |
|
|
|
6722 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
6723 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
6724 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
6725 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
6726 |
return false;
|
|
|
6727 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
6728 |
return false;
|
|
|
6729 |
}
|
|
|
6730 |
|
|
|
6731 |
boolean this_present_itemId = true;
|
|
|
6732 |
boolean that_present_itemId = true;
|
|
|
6733 |
if (this_present_itemId || that_present_itemId) {
|
|
|
6734 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
6735 |
return false;
|
|
|
6736 |
if (this.itemId != that.itemId)
|
|
|
6737 |
return false;
|
|
|
6738 |
}
|
|
|
6739 |
|
|
|
6740 |
return true;
|
|
|
6741 |
}
|
|
|
6742 |
|
|
|
6743 |
@Override
|
|
|
6744 |
public int hashCode() {
|
|
|
6745 |
return 0;
|
|
|
6746 |
}
|
|
|
6747 |
|
|
|
6748 |
public int compareTo(createItemNumberMapping_args other) {
|
|
|
6749 |
if (!getClass().equals(other.getClass())) {
|
|
|
6750 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6751 |
}
|
|
|
6752 |
|
|
|
6753 |
int lastComparison = 0;
|
|
|
6754 |
createItemNumberMapping_args typedOther = (createItemNumberMapping_args)other;
|
|
|
6755 |
|
|
|
6756 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
6757 |
if (lastComparison != 0) {
|
|
|
6758 |
return lastComparison;
|
|
|
6759 |
}
|
|
|
6760 |
if (isSetItemNumber()) {
|
|
|
6761 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
6762 |
if (lastComparison != 0) {
|
|
|
6763 |
return lastComparison;
|
|
|
6764 |
}
|
|
|
6765 |
}
|
|
|
6766 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
6767 |
if (lastComparison != 0) {
|
|
|
6768 |
return lastComparison;
|
|
|
6769 |
}
|
|
|
6770 |
if (isSetItemId()) {
|
|
|
6771 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
6772 |
if (lastComparison != 0) {
|
|
|
6773 |
return lastComparison;
|
|
|
6774 |
}
|
|
|
6775 |
}
|
|
|
6776 |
return 0;
|
|
|
6777 |
}
|
|
|
6778 |
|
|
|
6779 |
public _Fields fieldForId(int fieldId) {
|
|
|
6780 |
return _Fields.findByThriftId(fieldId);
|
|
|
6781 |
}
|
|
|
6782 |
|
|
|
6783 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6784 |
org.apache.thrift.protocol.TField field;
|
|
|
6785 |
iprot.readStructBegin();
|
|
|
6786 |
while (true)
|
|
|
6787 |
{
|
|
|
6788 |
field = iprot.readFieldBegin();
|
|
|
6789 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
6790 |
break;
|
|
|
6791 |
}
|
|
|
6792 |
switch (field.id) {
|
|
|
6793 |
case 1: // ITEM_NUMBER
|
|
|
6794 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
6795 |
this.itemNumber = iprot.readString();
|
|
|
6796 |
} else {
|
|
|
6797 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6798 |
}
|
|
|
6799 |
break;
|
|
|
6800 |
case 2: // ITEM_ID
|
|
|
6801 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6802 |
this.itemId = iprot.readI64();
|
|
|
6803 |
setItemIdIsSet(true);
|
|
|
6804 |
} else {
|
|
|
6805 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6806 |
}
|
|
|
6807 |
break;
|
|
|
6808 |
default:
|
|
|
6809 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6810 |
}
|
|
|
6811 |
iprot.readFieldEnd();
|
|
|
6812 |
}
|
|
|
6813 |
iprot.readStructEnd();
|
|
|
6814 |
validate();
|
|
|
6815 |
}
|
|
|
6816 |
|
|
|
6817 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
6818 |
validate();
|
|
|
6819 |
|
|
|
6820 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6821 |
if (this.itemNumber != null) {
|
|
|
6822 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
6823 |
oprot.writeString(this.itemNumber);
|
|
|
6824 |
oprot.writeFieldEnd();
|
|
|
6825 |
}
|
|
|
6826 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
6827 |
oprot.writeI64(this.itemId);
|
|
|
6828 |
oprot.writeFieldEnd();
|
|
|
6829 |
oprot.writeFieldStop();
|
|
|
6830 |
oprot.writeStructEnd();
|
|
|
6831 |
}
|
|
|
6832 |
|
|
|
6833 |
@Override
|
|
|
6834 |
public String toString() {
|
|
|
6835 |
StringBuilder sb = new StringBuilder("createItemNumberMapping_args(");
|
|
|
6836 |
boolean first = true;
|
|
|
6837 |
|
|
|
6838 |
sb.append("itemNumber:");
|
|
|
6839 |
if (this.itemNumber == null) {
|
|
|
6840 |
sb.append("null");
|
|
|
6841 |
} else {
|
|
|
6842 |
sb.append(this.itemNumber);
|
|
|
6843 |
}
|
|
|
6844 |
first = false;
|
|
|
6845 |
if (!first) sb.append(", ");
|
|
|
6846 |
sb.append("itemId:");
|
|
|
6847 |
sb.append(this.itemId);
|
|
|
6848 |
first = false;
|
|
|
6849 |
sb.append(")");
|
|
|
6850 |
return sb.toString();
|
|
|
6851 |
}
|
|
|
6852 |
|
|
|
6853 |
public void validate() throws org.apache.thrift.TException {
|
|
|
6854 |
// check for required fields
|
|
|
6855 |
}
|
|
|
6856 |
|
|
|
6857 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6858 |
try {
|
|
|
6859 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6860 |
} catch (org.apache.thrift.TException te) {
|
|
|
6861 |
throw new java.io.IOException(te);
|
|
|
6862 |
}
|
|
|
6863 |
}
|
|
|
6864 |
|
|
|
6865 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6866 |
try {
|
|
|
6867 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
6868 |
__isset_bit_vector = new BitSet(1);
|
|
|
6869 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6870 |
} catch (org.apache.thrift.TException te) {
|
|
|
6871 |
throw new java.io.IOException(te);
|
|
|
6872 |
}
|
|
|
6873 |
}
|
|
|
6874 |
|
|
|
6875 |
}
|
|
|
6876 |
|
|
|
6877 |
public static class createItemNumberMapping_result implements org.apache.thrift.TBase<createItemNumberMapping_result, createItemNumberMapping_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6878 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_result");
|
|
|
6879 |
|
|
|
6880 |
|
|
|
6881 |
|
|
|
6882 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6883 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
6884 |
;
|
|
|
6885 |
|
|
|
6886 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6887 |
|
|
|
6888 |
static {
|
|
|
6889 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6890 |
byName.put(field.getFieldName(), field);
|
|
|
6891 |
}
|
|
|
6892 |
}
|
|
|
6893 |
|
|
|
6894 |
/**
|
|
|
6895 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6896 |
*/
|
|
|
6897 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
6898 |
switch(fieldId) {
|
|
|
6899 |
default:
|
|
|
6900 |
return null;
|
|
|
6901 |
}
|
|
|
6902 |
}
|
|
|
6903 |
|
|
|
6904 |
/**
|
|
|
6905 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6906 |
* if it is not found.
|
|
|
6907 |
*/
|
|
|
6908 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6909 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6910 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6911 |
return fields;
|
|
|
6912 |
}
|
|
|
6913 |
|
|
|
6914 |
/**
|
|
|
6915 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6916 |
*/
|
|
|
6917 |
public static _Fields findByName(String name) {
|
|
|
6918 |
return byName.get(name);
|
|
|
6919 |
}
|
|
|
6920 |
|
|
|
6921 |
private final short _thriftId;
|
|
|
6922 |
private final String _fieldName;
|
|
|
6923 |
|
|
|
6924 |
_Fields(short thriftId, String fieldName) {
|
|
|
6925 |
_thriftId = thriftId;
|
|
|
6926 |
_fieldName = fieldName;
|
|
|
6927 |
}
|
|
|
6928 |
|
|
|
6929 |
public short getThriftFieldId() {
|
|
|
6930 |
return _thriftId;
|
|
|
6931 |
}
|
|
|
6932 |
|
|
|
6933 |
public String getFieldName() {
|
|
|
6934 |
return _fieldName;
|
|
|
6935 |
}
|
|
|
6936 |
}
|
|
|
6937 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
6938 |
static {
|
|
|
6939 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6940 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6941 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_result.class, metaDataMap);
|
|
|
6942 |
}
|
|
|
6943 |
|
|
|
6944 |
public createItemNumberMapping_result() {
|
|
|
6945 |
}
|
|
|
6946 |
|
|
|
6947 |
/**
|
|
|
6948 |
* Performs a deep copy on <i>other</i>.
|
|
|
6949 |
*/
|
|
|
6950 |
public createItemNumberMapping_result(createItemNumberMapping_result other) {
|
|
|
6951 |
}
|
|
|
6952 |
|
|
|
6953 |
public createItemNumberMapping_result deepCopy() {
|
|
|
6954 |
return new createItemNumberMapping_result(this);
|
|
|
6955 |
}
|
|
|
6956 |
|
|
|
6957 |
@Override
|
|
|
6958 |
public void clear() {
|
|
|
6959 |
}
|
|
|
6960 |
|
|
|
6961 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6962 |
switch (field) {
|
|
|
6963 |
}
|
|
|
6964 |
}
|
|
|
6965 |
|
|
|
6966 |
public Object getFieldValue(_Fields field) {
|
|
|
6967 |
switch (field) {
|
|
|
6968 |
}
|
|
|
6969 |
throw new IllegalStateException();
|
|
|
6970 |
}
|
|
|
6971 |
|
|
|
6972 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6973 |
public boolean isSet(_Fields field) {
|
|
|
6974 |
if (field == null) {
|
|
|
6975 |
throw new IllegalArgumentException();
|
|
|
6976 |
}
|
|
|
6977 |
|
|
|
6978 |
switch (field) {
|
|
|
6979 |
}
|
|
|
6980 |
throw new IllegalStateException();
|
|
|
6981 |
}
|
|
|
6982 |
|
|
|
6983 |
@Override
|
|
|
6984 |
public boolean equals(Object that) {
|
|
|
6985 |
if (that == null)
|
|
|
6986 |
return false;
|
|
|
6987 |
if (that instanceof createItemNumberMapping_result)
|
|
|
6988 |
return this.equals((createItemNumberMapping_result)that);
|
|
|
6989 |
return false;
|
|
|
6990 |
}
|
|
|
6991 |
|
|
|
6992 |
public boolean equals(createItemNumberMapping_result that) {
|
|
|
6993 |
if (that == null)
|
|
|
6994 |
return false;
|
|
|
6995 |
|
|
|
6996 |
return true;
|
|
|
6997 |
}
|
|
|
6998 |
|
|
|
6999 |
@Override
|
|
|
7000 |
public int hashCode() {
|
|
|
7001 |
return 0;
|
|
|
7002 |
}
|
|
|
7003 |
|
|
|
7004 |
public int compareTo(createItemNumberMapping_result other) {
|
|
|
7005 |
if (!getClass().equals(other.getClass())) {
|
|
|
7006 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7007 |
}
|
|
|
7008 |
|
|
|
7009 |
int lastComparison = 0;
|
|
|
7010 |
createItemNumberMapping_result typedOther = (createItemNumberMapping_result)other;
|
|
|
7011 |
|
|
|
7012 |
return 0;
|
|
|
7013 |
}
|
|
|
7014 |
|
|
|
7015 |
public _Fields fieldForId(int fieldId) {
|
|
|
7016 |
return _Fields.findByThriftId(fieldId);
|
|
|
7017 |
}
|
|
|
7018 |
|
|
|
7019 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7020 |
org.apache.thrift.protocol.TField field;
|
|
|
7021 |
iprot.readStructBegin();
|
|
|
7022 |
while (true)
|
|
|
7023 |
{
|
|
|
7024 |
field = iprot.readFieldBegin();
|
|
|
7025 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7026 |
break;
|
|
|
7027 |
}
|
|
|
7028 |
switch (field.id) {
|
|
|
7029 |
default:
|
|
|
7030 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7031 |
}
|
|
|
7032 |
iprot.readFieldEnd();
|
|
|
7033 |
}
|
|
|
7034 |
iprot.readStructEnd();
|
|
|
7035 |
validate();
|
|
|
7036 |
}
|
|
|
7037 |
|
|
|
7038 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7039 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7040 |
|
|
|
7041 |
oprot.writeFieldStop();
|
|
|
7042 |
oprot.writeStructEnd();
|
|
|
7043 |
}
|
|
|
7044 |
|
|
|
7045 |
@Override
|
|
|
7046 |
public String toString() {
|
|
|
7047 |
StringBuilder sb = new StringBuilder("createItemNumberMapping_result(");
|
|
|
7048 |
boolean first = true;
|
|
|
7049 |
|
|
|
7050 |
sb.append(")");
|
|
|
7051 |
return sb.toString();
|
|
|
7052 |
}
|
|
|
7053 |
|
|
|
7054 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7055 |
// check for required fields
|
|
|
7056 |
}
|
|
|
7057 |
|
|
|
7058 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7059 |
try {
|
|
|
7060 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7061 |
} catch (org.apache.thrift.TException te) {
|
|
|
7062 |
throw new java.io.IOException(te);
|
|
|
7063 |
}
|
|
|
7064 |
}
|
|
|
7065 |
|
|
|
7066 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7067 |
try {
|
|
|
7068 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7069 |
} catch (org.apache.thrift.TException te) {
|
|
|
7070 |
throw new java.io.IOException(te);
|
|
|
7071 |
}
|
|
|
7072 |
}
|
|
|
7073 |
|
|
|
7074 |
}
|
|
|
7075 |
|
| 4622 |
amit.gupta |
7076 |
public static class getItemNumbers_args implements org.apache.thrift.TBase<getItemNumbers_args, getItemNumbers_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
7077 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_args");
|
|
|
7078 |
|
|
|
7079 |
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);
|
|
|
7080 |
|
|
|
7081 |
private long itemId; // required
|
|
|
7082 |
|
|
|
7083 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7084 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7085 |
ITEM_ID((short)1, "itemId");
|
|
|
7086 |
|
|
|
7087 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7088 |
|
|
|
7089 |
static {
|
|
|
7090 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7091 |
byName.put(field.getFieldName(), field);
|
|
|
7092 |
}
|
|
|
7093 |
}
|
|
|
7094 |
|
|
|
7095 |
/**
|
|
|
7096 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7097 |
*/
|
|
|
7098 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7099 |
switch(fieldId) {
|
|
|
7100 |
case 1: // ITEM_ID
|
|
|
7101 |
return ITEM_ID;
|
|
|
7102 |
default:
|
|
|
7103 |
return null;
|
|
|
7104 |
}
|
|
|
7105 |
}
|
|
|
7106 |
|
|
|
7107 |
/**
|
|
|
7108 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7109 |
* if it is not found.
|
|
|
7110 |
*/
|
|
|
7111 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7112 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7113 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7114 |
return fields;
|
|
|
7115 |
}
|
|
|
7116 |
|
|
|
7117 |
/**
|
|
|
7118 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7119 |
*/
|
|
|
7120 |
public static _Fields findByName(String name) {
|
|
|
7121 |
return byName.get(name);
|
|
|
7122 |
}
|
|
|
7123 |
|
|
|
7124 |
private final short _thriftId;
|
|
|
7125 |
private final String _fieldName;
|
|
|
7126 |
|
|
|
7127 |
_Fields(short thriftId, String fieldName) {
|
|
|
7128 |
_thriftId = thriftId;
|
|
|
7129 |
_fieldName = fieldName;
|
|
|
7130 |
}
|
|
|
7131 |
|
|
|
7132 |
public short getThriftFieldId() {
|
|
|
7133 |
return _thriftId;
|
|
|
7134 |
}
|
|
|
7135 |
|
|
|
7136 |
public String getFieldName() {
|
|
|
7137 |
return _fieldName;
|
|
|
7138 |
}
|
|
|
7139 |
}
|
|
|
7140 |
|
|
|
7141 |
// isset id assignments
|
|
|
7142 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
7143 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
7144 |
|
|
|
7145 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7146 |
static {
|
|
|
7147 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7148 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7149 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
7150 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7151 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_args.class, metaDataMap);
|
|
|
7152 |
}
|
|
|
7153 |
|
|
|
7154 |
public getItemNumbers_args() {
|
|
|
7155 |
}
|
|
|
7156 |
|
|
|
7157 |
public getItemNumbers_args(
|
|
|
7158 |
long itemId)
|
|
|
7159 |
{
|
|
|
7160 |
this();
|
|
|
7161 |
this.itemId = itemId;
|
|
|
7162 |
setItemIdIsSet(true);
|
|
|
7163 |
}
|
|
|
7164 |
|
|
|
7165 |
/**
|
|
|
7166 |
* Performs a deep copy on <i>other</i>.
|
|
|
7167 |
*/
|
|
|
7168 |
public getItemNumbers_args(getItemNumbers_args other) {
|
|
|
7169 |
__isset_bit_vector.clear();
|
|
|
7170 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
7171 |
this.itemId = other.itemId;
|
|
|
7172 |
}
|
|
|
7173 |
|
|
|
7174 |
public getItemNumbers_args deepCopy() {
|
|
|
7175 |
return new getItemNumbers_args(this);
|
|
|
7176 |
}
|
|
|
7177 |
|
|
|
7178 |
@Override
|
|
|
7179 |
public void clear() {
|
|
|
7180 |
setItemIdIsSet(false);
|
|
|
7181 |
this.itemId = 0;
|
|
|
7182 |
}
|
|
|
7183 |
|
|
|
7184 |
public long getItemId() {
|
|
|
7185 |
return this.itemId;
|
|
|
7186 |
}
|
|
|
7187 |
|
|
|
7188 |
public void setItemId(long itemId) {
|
|
|
7189 |
this.itemId = itemId;
|
|
|
7190 |
setItemIdIsSet(true);
|
|
|
7191 |
}
|
|
|
7192 |
|
|
|
7193 |
public void unsetItemId() {
|
|
|
7194 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
7195 |
}
|
|
|
7196 |
|
|
|
7197 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
7198 |
public boolean isSetItemId() {
|
|
|
7199 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
7200 |
}
|
|
|
7201 |
|
|
|
7202 |
public void setItemIdIsSet(boolean value) {
|
|
|
7203 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
7204 |
}
|
|
|
7205 |
|
|
|
7206 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7207 |
switch (field) {
|
|
|
7208 |
case ITEM_ID:
|
|
|
7209 |
if (value == null) {
|
|
|
7210 |
unsetItemId();
|
|
|
7211 |
} else {
|
|
|
7212 |
setItemId((Long)value);
|
|
|
7213 |
}
|
|
|
7214 |
break;
|
|
|
7215 |
|
|
|
7216 |
}
|
|
|
7217 |
}
|
|
|
7218 |
|
|
|
7219 |
public Object getFieldValue(_Fields field) {
|
|
|
7220 |
switch (field) {
|
|
|
7221 |
case ITEM_ID:
|
|
|
7222 |
return Long.valueOf(getItemId());
|
|
|
7223 |
|
|
|
7224 |
}
|
|
|
7225 |
throw new IllegalStateException();
|
|
|
7226 |
}
|
|
|
7227 |
|
|
|
7228 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7229 |
public boolean isSet(_Fields field) {
|
|
|
7230 |
if (field == null) {
|
|
|
7231 |
throw new IllegalArgumentException();
|
|
|
7232 |
}
|
|
|
7233 |
|
|
|
7234 |
switch (field) {
|
|
|
7235 |
case ITEM_ID:
|
|
|
7236 |
return isSetItemId();
|
|
|
7237 |
}
|
|
|
7238 |
throw new IllegalStateException();
|
|
|
7239 |
}
|
|
|
7240 |
|
|
|
7241 |
@Override
|
|
|
7242 |
public boolean equals(Object that) {
|
|
|
7243 |
if (that == null)
|
|
|
7244 |
return false;
|
|
|
7245 |
if (that instanceof getItemNumbers_args)
|
|
|
7246 |
return this.equals((getItemNumbers_args)that);
|
|
|
7247 |
return false;
|
|
|
7248 |
}
|
|
|
7249 |
|
|
|
7250 |
public boolean equals(getItemNumbers_args that) {
|
|
|
7251 |
if (that == null)
|
|
|
7252 |
return false;
|
|
|
7253 |
|
|
|
7254 |
boolean this_present_itemId = true;
|
|
|
7255 |
boolean that_present_itemId = true;
|
|
|
7256 |
if (this_present_itemId || that_present_itemId) {
|
|
|
7257 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
7258 |
return false;
|
|
|
7259 |
if (this.itemId != that.itemId)
|
|
|
7260 |
return false;
|
|
|
7261 |
}
|
|
|
7262 |
|
|
|
7263 |
return true;
|
|
|
7264 |
}
|
|
|
7265 |
|
|
|
7266 |
@Override
|
|
|
7267 |
public int hashCode() {
|
|
|
7268 |
return 0;
|
|
|
7269 |
}
|
|
|
7270 |
|
|
|
7271 |
public int compareTo(getItemNumbers_args other) {
|
|
|
7272 |
if (!getClass().equals(other.getClass())) {
|
|
|
7273 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7274 |
}
|
|
|
7275 |
|
|
|
7276 |
int lastComparison = 0;
|
|
|
7277 |
getItemNumbers_args typedOther = (getItemNumbers_args)other;
|
|
|
7278 |
|
|
|
7279 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
7280 |
if (lastComparison != 0) {
|
|
|
7281 |
return lastComparison;
|
|
|
7282 |
}
|
|
|
7283 |
if (isSetItemId()) {
|
|
|
7284 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
7285 |
if (lastComparison != 0) {
|
|
|
7286 |
return lastComparison;
|
|
|
7287 |
}
|
|
|
7288 |
}
|
|
|
7289 |
return 0;
|
|
|
7290 |
}
|
|
|
7291 |
|
|
|
7292 |
public _Fields fieldForId(int fieldId) {
|
|
|
7293 |
return _Fields.findByThriftId(fieldId);
|
|
|
7294 |
}
|
|
|
7295 |
|
|
|
7296 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7297 |
org.apache.thrift.protocol.TField field;
|
|
|
7298 |
iprot.readStructBegin();
|
|
|
7299 |
while (true)
|
|
|
7300 |
{
|
|
|
7301 |
field = iprot.readFieldBegin();
|
|
|
7302 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7303 |
break;
|
|
|
7304 |
}
|
|
|
7305 |
switch (field.id) {
|
|
|
7306 |
case 1: // ITEM_ID
|
|
|
7307 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
7308 |
this.itemId = iprot.readI64();
|
|
|
7309 |
setItemIdIsSet(true);
|
|
|
7310 |
} else {
|
|
|
7311 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7312 |
}
|
|
|
7313 |
break;
|
|
|
7314 |
default:
|
|
|
7315 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7316 |
}
|
|
|
7317 |
iprot.readFieldEnd();
|
|
|
7318 |
}
|
|
|
7319 |
iprot.readStructEnd();
|
|
|
7320 |
validate();
|
|
|
7321 |
}
|
|
|
7322 |
|
|
|
7323 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7324 |
validate();
|
|
|
7325 |
|
|
|
7326 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7327 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
7328 |
oprot.writeI64(this.itemId);
|
|
|
7329 |
oprot.writeFieldEnd();
|
|
|
7330 |
oprot.writeFieldStop();
|
|
|
7331 |
oprot.writeStructEnd();
|
|
|
7332 |
}
|
|
|
7333 |
|
|
|
7334 |
@Override
|
|
|
7335 |
public String toString() {
|
|
|
7336 |
StringBuilder sb = new StringBuilder("getItemNumbers_args(");
|
|
|
7337 |
boolean first = true;
|
|
|
7338 |
|
|
|
7339 |
sb.append("itemId:");
|
|
|
7340 |
sb.append(this.itemId);
|
|
|
7341 |
first = false;
|
|
|
7342 |
sb.append(")");
|
|
|
7343 |
return sb.toString();
|
|
|
7344 |
}
|
|
|
7345 |
|
|
|
7346 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7347 |
// check for required fields
|
|
|
7348 |
}
|
|
|
7349 |
|
|
|
7350 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7351 |
try {
|
|
|
7352 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7353 |
} catch (org.apache.thrift.TException te) {
|
|
|
7354 |
throw new java.io.IOException(te);
|
|
|
7355 |
}
|
|
|
7356 |
}
|
|
|
7357 |
|
|
|
7358 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7359 |
try {
|
|
|
7360 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
7361 |
__isset_bit_vector = new BitSet(1);
|
|
|
7362 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7363 |
} catch (org.apache.thrift.TException te) {
|
|
|
7364 |
throw new java.io.IOException(te);
|
|
|
7365 |
}
|
|
|
7366 |
}
|
|
|
7367 |
|
|
|
7368 |
}
|
|
|
7369 |
|
|
|
7370 |
public static class getItemNumbers_result implements org.apache.thrift.TBase<getItemNumbers_result, getItemNumbers_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7371 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_result");
|
|
|
7372 |
|
|
|
7373 |
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);
|
|
|
7374 |
|
|
|
7375 |
private List<String> success; // required
|
|
|
7376 |
|
|
|
7377 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7378 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7379 |
SUCCESS((short)0, "success");
|
|
|
7380 |
|
|
|
7381 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7382 |
|
|
|
7383 |
static {
|
|
|
7384 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7385 |
byName.put(field.getFieldName(), field);
|
|
|
7386 |
}
|
|
|
7387 |
}
|
|
|
7388 |
|
|
|
7389 |
/**
|
|
|
7390 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7391 |
*/
|
|
|
7392 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7393 |
switch(fieldId) {
|
|
|
7394 |
case 0: // SUCCESS
|
|
|
7395 |
return SUCCESS;
|
|
|
7396 |
default:
|
|
|
7397 |
return null;
|
|
|
7398 |
}
|
|
|
7399 |
}
|
|
|
7400 |
|
|
|
7401 |
/**
|
|
|
7402 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7403 |
* if it is not found.
|
|
|
7404 |
*/
|
|
|
7405 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7406 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7407 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7408 |
return fields;
|
|
|
7409 |
}
|
|
|
7410 |
|
|
|
7411 |
/**
|
|
|
7412 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7413 |
*/
|
|
|
7414 |
public static _Fields findByName(String name) {
|
|
|
7415 |
return byName.get(name);
|
|
|
7416 |
}
|
|
|
7417 |
|
|
|
7418 |
private final short _thriftId;
|
|
|
7419 |
private final String _fieldName;
|
|
|
7420 |
|
|
|
7421 |
_Fields(short thriftId, String fieldName) {
|
|
|
7422 |
_thriftId = thriftId;
|
|
|
7423 |
_fieldName = fieldName;
|
|
|
7424 |
}
|
|
|
7425 |
|
|
|
7426 |
public short getThriftFieldId() {
|
|
|
7427 |
return _thriftId;
|
|
|
7428 |
}
|
|
|
7429 |
|
|
|
7430 |
public String getFieldName() {
|
|
|
7431 |
return _fieldName;
|
|
|
7432 |
}
|
|
|
7433 |
}
|
|
|
7434 |
|
|
|
7435 |
// isset id assignments
|
|
|
7436 |
|
|
|
7437 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7438 |
static {
|
|
|
7439 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7440 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7441 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
7442 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
|
|
|
7443 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7444 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_result.class, metaDataMap);
|
|
|
7445 |
}
|
|
|
7446 |
|
|
|
7447 |
public getItemNumbers_result() {
|
|
|
7448 |
}
|
|
|
7449 |
|
|
|
7450 |
public getItemNumbers_result(
|
|
|
7451 |
List<String> success)
|
|
|
7452 |
{
|
|
|
7453 |
this();
|
|
|
7454 |
this.success = success;
|
|
|
7455 |
}
|
|
|
7456 |
|
|
|
7457 |
/**
|
|
|
7458 |
* Performs a deep copy on <i>other</i>.
|
|
|
7459 |
*/
|
|
|
7460 |
public getItemNumbers_result(getItemNumbers_result other) {
|
|
|
7461 |
if (other.isSetSuccess()) {
|
|
|
7462 |
List<String> __this__success = new ArrayList<String>();
|
|
|
7463 |
for (String other_element : other.success) {
|
|
|
7464 |
__this__success.add(other_element);
|
|
|
7465 |
}
|
|
|
7466 |
this.success = __this__success;
|
|
|
7467 |
}
|
|
|
7468 |
}
|
|
|
7469 |
|
|
|
7470 |
public getItemNumbers_result deepCopy() {
|
|
|
7471 |
return new getItemNumbers_result(this);
|
|
|
7472 |
}
|
|
|
7473 |
|
|
|
7474 |
@Override
|
|
|
7475 |
public void clear() {
|
|
|
7476 |
this.success = null;
|
|
|
7477 |
}
|
|
|
7478 |
|
|
|
7479 |
public int getSuccessSize() {
|
|
|
7480 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
7481 |
}
|
|
|
7482 |
|
|
|
7483 |
public java.util.Iterator<String> getSuccessIterator() {
|
|
|
7484 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
7485 |
}
|
|
|
7486 |
|
|
|
7487 |
public void addToSuccess(String elem) {
|
|
|
7488 |
if (this.success == null) {
|
|
|
7489 |
this.success = new ArrayList<String>();
|
|
|
7490 |
}
|
|
|
7491 |
this.success.add(elem);
|
|
|
7492 |
}
|
|
|
7493 |
|
|
|
7494 |
public List<String> getSuccess() {
|
|
|
7495 |
return this.success;
|
|
|
7496 |
}
|
|
|
7497 |
|
|
|
7498 |
public void setSuccess(List<String> success) {
|
|
|
7499 |
this.success = success;
|
|
|
7500 |
}
|
|
|
7501 |
|
|
|
7502 |
public void unsetSuccess() {
|
|
|
7503 |
this.success = null;
|
|
|
7504 |
}
|
|
|
7505 |
|
|
|
7506 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
7507 |
public boolean isSetSuccess() {
|
|
|
7508 |
return this.success != null;
|
|
|
7509 |
}
|
|
|
7510 |
|
|
|
7511 |
public void setSuccessIsSet(boolean value) {
|
|
|
7512 |
if (!value) {
|
|
|
7513 |
this.success = null;
|
|
|
7514 |
}
|
|
|
7515 |
}
|
|
|
7516 |
|
|
|
7517 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7518 |
switch (field) {
|
|
|
7519 |
case SUCCESS:
|
|
|
7520 |
if (value == null) {
|
|
|
7521 |
unsetSuccess();
|
|
|
7522 |
} else {
|
|
|
7523 |
setSuccess((List<String>)value);
|
|
|
7524 |
}
|
|
|
7525 |
break;
|
|
|
7526 |
|
|
|
7527 |
}
|
|
|
7528 |
}
|
|
|
7529 |
|
|
|
7530 |
public Object getFieldValue(_Fields field) {
|
|
|
7531 |
switch (field) {
|
|
|
7532 |
case SUCCESS:
|
|
|
7533 |
return getSuccess();
|
|
|
7534 |
|
|
|
7535 |
}
|
|
|
7536 |
throw new IllegalStateException();
|
|
|
7537 |
}
|
|
|
7538 |
|
|
|
7539 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7540 |
public boolean isSet(_Fields field) {
|
|
|
7541 |
if (field == null) {
|
|
|
7542 |
throw new IllegalArgumentException();
|
|
|
7543 |
}
|
|
|
7544 |
|
|
|
7545 |
switch (field) {
|
|
|
7546 |
case SUCCESS:
|
|
|
7547 |
return isSetSuccess();
|
|
|
7548 |
}
|
|
|
7549 |
throw new IllegalStateException();
|
|
|
7550 |
}
|
|
|
7551 |
|
|
|
7552 |
@Override
|
|
|
7553 |
public boolean equals(Object that) {
|
|
|
7554 |
if (that == null)
|
|
|
7555 |
return false;
|
|
|
7556 |
if (that instanceof getItemNumbers_result)
|
|
|
7557 |
return this.equals((getItemNumbers_result)that);
|
|
|
7558 |
return false;
|
|
|
7559 |
}
|
|
|
7560 |
|
|
|
7561 |
public boolean equals(getItemNumbers_result that) {
|
|
|
7562 |
if (that == null)
|
|
|
7563 |
return false;
|
|
|
7564 |
|
|
|
7565 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
7566 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
7567 |
if (this_present_success || that_present_success) {
|
|
|
7568 |
if (!(this_present_success && that_present_success))
|
|
|
7569 |
return false;
|
|
|
7570 |
if (!this.success.equals(that.success))
|
|
|
7571 |
return false;
|
|
|
7572 |
}
|
|
|
7573 |
|
|
|
7574 |
return true;
|
|
|
7575 |
}
|
|
|
7576 |
|
|
|
7577 |
@Override
|
|
|
7578 |
public int hashCode() {
|
|
|
7579 |
return 0;
|
|
|
7580 |
}
|
|
|
7581 |
|
|
|
7582 |
public int compareTo(getItemNumbers_result other) {
|
|
|
7583 |
if (!getClass().equals(other.getClass())) {
|
|
|
7584 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7585 |
}
|
|
|
7586 |
|
|
|
7587 |
int lastComparison = 0;
|
|
|
7588 |
getItemNumbers_result typedOther = (getItemNumbers_result)other;
|
|
|
7589 |
|
|
|
7590 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
7591 |
if (lastComparison != 0) {
|
|
|
7592 |
return lastComparison;
|
|
|
7593 |
}
|
|
|
7594 |
if (isSetSuccess()) {
|
|
|
7595 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
7596 |
if (lastComparison != 0) {
|
|
|
7597 |
return lastComparison;
|
|
|
7598 |
}
|
|
|
7599 |
}
|
|
|
7600 |
return 0;
|
|
|
7601 |
}
|
|
|
7602 |
|
|
|
7603 |
public _Fields fieldForId(int fieldId) {
|
|
|
7604 |
return _Fields.findByThriftId(fieldId);
|
|
|
7605 |
}
|
|
|
7606 |
|
|
|
7607 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7608 |
org.apache.thrift.protocol.TField field;
|
|
|
7609 |
iprot.readStructBegin();
|
|
|
7610 |
while (true)
|
|
|
7611 |
{
|
|
|
7612 |
field = iprot.readFieldBegin();
|
|
|
7613 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7614 |
break;
|
|
|
7615 |
}
|
|
|
7616 |
switch (field.id) {
|
|
|
7617 |
case 0: // SUCCESS
|
|
|
7618 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
7619 |
{
|
| 5361 |
mandeep.dh |
7620 |
org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
|
|
|
7621 |
this.success = new ArrayList<String>(_list0.size);
|
|
|
7622 |
for (int _i1 = 0; _i1 < _list0.size; ++_i1)
|
| 4622 |
amit.gupta |
7623 |
{
|
| 5361 |
mandeep.dh |
7624 |
String _elem2; // required
|
|
|
7625 |
_elem2 = iprot.readString();
|
|
|
7626 |
this.success.add(_elem2);
|
| 4622 |
amit.gupta |
7627 |
}
|
|
|
7628 |
iprot.readListEnd();
|
|
|
7629 |
}
|
|
|
7630 |
} else {
|
|
|
7631 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7632 |
}
|
|
|
7633 |
break;
|
|
|
7634 |
default:
|
|
|
7635 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7636 |
}
|
|
|
7637 |
iprot.readFieldEnd();
|
|
|
7638 |
}
|
|
|
7639 |
iprot.readStructEnd();
|
|
|
7640 |
validate();
|
|
|
7641 |
}
|
|
|
7642 |
|
|
|
7643 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7644 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7645 |
|
|
|
7646 |
if (this.isSetSuccess()) {
|
|
|
7647 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
7648 |
{
|
|
|
7649 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
|
| 5361 |
mandeep.dh |
7650 |
for (String _iter3 : this.success)
|
| 4622 |
amit.gupta |
7651 |
{
|
| 5361 |
mandeep.dh |
7652 |
oprot.writeString(_iter3);
|
| 4622 |
amit.gupta |
7653 |
}
|
|
|
7654 |
oprot.writeListEnd();
|
|
|
7655 |
}
|
|
|
7656 |
oprot.writeFieldEnd();
|
|
|
7657 |
}
|
|
|
7658 |
oprot.writeFieldStop();
|
|
|
7659 |
oprot.writeStructEnd();
|
|
|
7660 |
}
|
|
|
7661 |
|
|
|
7662 |
@Override
|
|
|
7663 |
public String toString() {
|
|
|
7664 |
StringBuilder sb = new StringBuilder("getItemNumbers_result(");
|
|
|
7665 |
boolean first = true;
|
|
|
7666 |
|
|
|
7667 |
sb.append("success:");
|
|
|
7668 |
if (this.success == null) {
|
|
|
7669 |
sb.append("null");
|
|
|
7670 |
} else {
|
|
|
7671 |
sb.append(this.success);
|
|
|
7672 |
}
|
|
|
7673 |
first = false;
|
|
|
7674 |
sb.append(")");
|
|
|
7675 |
return sb.toString();
|
|
|
7676 |
}
|
|
|
7677 |
|
|
|
7678 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7679 |
// check for required fields
|
|
|
7680 |
}
|
|
|
7681 |
|
|
|
7682 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7683 |
try {
|
|
|
7684 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7685 |
} catch (org.apache.thrift.TException te) {
|
|
|
7686 |
throw new java.io.IOException(te);
|
|
|
7687 |
}
|
|
|
7688 |
}
|
|
|
7689 |
|
|
|
7690 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7691 |
try {
|
|
|
7692 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7693 |
} catch (org.apache.thrift.TException te) {
|
|
|
7694 |
throw new java.io.IOException(te);
|
|
|
7695 |
}
|
|
|
7696 |
}
|
|
|
7697 |
|
|
|
7698 |
}
|
|
|
7699 |
|
| 5110 |
mandeep.dh |
7700 |
public static class getItemIds_args implements org.apache.thrift.TBase<getItemIds_args, getItemIds_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
7701 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_args");
|
|
|
7702 |
|
|
|
7703 |
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);
|
|
|
7704 |
|
|
|
7705 |
private String itemNumber; // required
|
|
|
7706 |
|
|
|
7707 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7708 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7709 |
ITEM_NUMBER((short)1, "itemNumber");
|
|
|
7710 |
|
|
|
7711 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7712 |
|
|
|
7713 |
static {
|
|
|
7714 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7715 |
byName.put(field.getFieldName(), field);
|
|
|
7716 |
}
|
|
|
7717 |
}
|
|
|
7718 |
|
|
|
7719 |
/**
|
|
|
7720 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7721 |
*/
|
|
|
7722 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7723 |
switch(fieldId) {
|
|
|
7724 |
case 1: // ITEM_NUMBER
|
|
|
7725 |
return ITEM_NUMBER;
|
|
|
7726 |
default:
|
|
|
7727 |
return null;
|
|
|
7728 |
}
|
|
|
7729 |
}
|
|
|
7730 |
|
|
|
7731 |
/**
|
|
|
7732 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7733 |
* if it is not found.
|
|
|
7734 |
*/
|
|
|
7735 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7736 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7737 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7738 |
return fields;
|
|
|
7739 |
}
|
|
|
7740 |
|
|
|
7741 |
/**
|
|
|
7742 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7743 |
*/
|
|
|
7744 |
public static _Fields findByName(String name) {
|
|
|
7745 |
return byName.get(name);
|
|
|
7746 |
}
|
|
|
7747 |
|
|
|
7748 |
private final short _thriftId;
|
|
|
7749 |
private final String _fieldName;
|
|
|
7750 |
|
|
|
7751 |
_Fields(short thriftId, String fieldName) {
|
|
|
7752 |
_thriftId = thriftId;
|
|
|
7753 |
_fieldName = fieldName;
|
|
|
7754 |
}
|
|
|
7755 |
|
|
|
7756 |
public short getThriftFieldId() {
|
|
|
7757 |
return _thriftId;
|
|
|
7758 |
}
|
|
|
7759 |
|
|
|
7760 |
public String getFieldName() {
|
|
|
7761 |
return _fieldName;
|
|
|
7762 |
}
|
|
|
7763 |
}
|
|
|
7764 |
|
|
|
7765 |
// isset id assignments
|
|
|
7766 |
|
|
|
7767 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7768 |
static {
|
|
|
7769 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7770 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7771 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
7772 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7773 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_args.class, metaDataMap);
|
|
|
7774 |
}
|
|
|
7775 |
|
|
|
7776 |
public getItemIds_args() {
|
|
|
7777 |
}
|
|
|
7778 |
|
|
|
7779 |
public getItemIds_args(
|
|
|
7780 |
String itemNumber)
|
|
|
7781 |
{
|
|
|
7782 |
this();
|
|
|
7783 |
this.itemNumber = itemNumber;
|
|
|
7784 |
}
|
|
|
7785 |
|
|
|
7786 |
/**
|
|
|
7787 |
* Performs a deep copy on <i>other</i>.
|
|
|
7788 |
*/
|
|
|
7789 |
public getItemIds_args(getItemIds_args other) {
|
|
|
7790 |
if (other.isSetItemNumber()) {
|
|
|
7791 |
this.itemNumber = other.itemNumber;
|
|
|
7792 |
}
|
|
|
7793 |
}
|
|
|
7794 |
|
|
|
7795 |
public getItemIds_args deepCopy() {
|
|
|
7796 |
return new getItemIds_args(this);
|
|
|
7797 |
}
|
|
|
7798 |
|
|
|
7799 |
@Override
|
|
|
7800 |
public void clear() {
|
|
|
7801 |
this.itemNumber = null;
|
|
|
7802 |
}
|
|
|
7803 |
|
|
|
7804 |
public String getItemNumber() {
|
|
|
7805 |
return this.itemNumber;
|
|
|
7806 |
}
|
|
|
7807 |
|
|
|
7808 |
public void setItemNumber(String itemNumber) {
|
|
|
7809 |
this.itemNumber = itemNumber;
|
|
|
7810 |
}
|
|
|
7811 |
|
|
|
7812 |
public void unsetItemNumber() {
|
|
|
7813 |
this.itemNumber = null;
|
|
|
7814 |
}
|
|
|
7815 |
|
|
|
7816 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
7817 |
public boolean isSetItemNumber() {
|
|
|
7818 |
return this.itemNumber != null;
|
|
|
7819 |
}
|
|
|
7820 |
|
|
|
7821 |
public void setItemNumberIsSet(boolean value) {
|
|
|
7822 |
if (!value) {
|
|
|
7823 |
this.itemNumber = null;
|
|
|
7824 |
}
|
|
|
7825 |
}
|
|
|
7826 |
|
|
|
7827 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7828 |
switch (field) {
|
|
|
7829 |
case ITEM_NUMBER:
|
|
|
7830 |
if (value == null) {
|
|
|
7831 |
unsetItemNumber();
|
|
|
7832 |
} else {
|
|
|
7833 |
setItemNumber((String)value);
|
|
|
7834 |
}
|
|
|
7835 |
break;
|
|
|
7836 |
|
|
|
7837 |
}
|
|
|
7838 |
}
|
|
|
7839 |
|
|
|
7840 |
public Object getFieldValue(_Fields field) {
|
|
|
7841 |
switch (field) {
|
|
|
7842 |
case ITEM_NUMBER:
|
|
|
7843 |
return getItemNumber();
|
|
|
7844 |
|
|
|
7845 |
}
|
|
|
7846 |
throw new IllegalStateException();
|
|
|
7847 |
}
|
|
|
7848 |
|
|
|
7849 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7850 |
public boolean isSet(_Fields field) {
|
|
|
7851 |
if (field == null) {
|
|
|
7852 |
throw new IllegalArgumentException();
|
|
|
7853 |
}
|
|
|
7854 |
|
|
|
7855 |
switch (field) {
|
|
|
7856 |
case ITEM_NUMBER:
|
|
|
7857 |
return isSetItemNumber();
|
|
|
7858 |
}
|
|
|
7859 |
throw new IllegalStateException();
|
|
|
7860 |
}
|
|
|
7861 |
|
|
|
7862 |
@Override
|
|
|
7863 |
public boolean equals(Object that) {
|
|
|
7864 |
if (that == null)
|
|
|
7865 |
return false;
|
|
|
7866 |
if (that instanceof getItemIds_args)
|
|
|
7867 |
return this.equals((getItemIds_args)that);
|
|
|
7868 |
return false;
|
|
|
7869 |
}
|
|
|
7870 |
|
|
|
7871 |
public boolean equals(getItemIds_args that) {
|
|
|
7872 |
if (that == null)
|
|
|
7873 |
return false;
|
|
|
7874 |
|
|
|
7875 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
7876 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
7877 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
7878 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
7879 |
return false;
|
|
|
7880 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
7881 |
return false;
|
|
|
7882 |
}
|
|
|
7883 |
|
|
|
7884 |
return true;
|
|
|
7885 |
}
|
|
|
7886 |
|
|
|
7887 |
@Override
|
|
|
7888 |
public int hashCode() {
|
|
|
7889 |
return 0;
|
|
|
7890 |
}
|
|
|
7891 |
|
|
|
7892 |
public int compareTo(getItemIds_args other) {
|
|
|
7893 |
if (!getClass().equals(other.getClass())) {
|
|
|
7894 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7895 |
}
|
|
|
7896 |
|
|
|
7897 |
int lastComparison = 0;
|
|
|
7898 |
getItemIds_args typedOther = (getItemIds_args)other;
|
|
|
7899 |
|
|
|
7900 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
7901 |
if (lastComparison != 0) {
|
|
|
7902 |
return lastComparison;
|
|
|
7903 |
}
|
|
|
7904 |
if (isSetItemNumber()) {
|
|
|
7905 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
7906 |
if (lastComparison != 0) {
|
|
|
7907 |
return lastComparison;
|
|
|
7908 |
}
|
|
|
7909 |
}
|
|
|
7910 |
return 0;
|
|
|
7911 |
}
|
|
|
7912 |
|
|
|
7913 |
public _Fields fieldForId(int fieldId) {
|
|
|
7914 |
return _Fields.findByThriftId(fieldId);
|
|
|
7915 |
}
|
|
|
7916 |
|
|
|
7917 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7918 |
org.apache.thrift.protocol.TField field;
|
|
|
7919 |
iprot.readStructBegin();
|
|
|
7920 |
while (true)
|
|
|
7921 |
{
|
|
|
7922 |
field = iprot.readFieldBegin();
|
|
|
7923 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7924 |
break;
|
|
|
7925 |
}
|
|
|
7926 |
switch (field.id) {
|
|
|
7927 |
case 1: // ITEM_NUMBER
|
|
|
7928 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7929 |
this.itemNumber = iprot.readString();
|
|
|
7930 |
} else {
|
|
|
7931 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7932 |
}
|
|
|
7933 |
break;
|
|
|
7934 |
default:
|
|
|
7935 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7936 |
}
|
|
|
7937 |
iprot.readFieldEnd();
|
|
|
7938 |
}
|
|
|
7939 |
iprot.readStructEnd();
|
|
|
7940 |
validate();
|
|
|
7941 |
}
|
|
|
7942 |
|
|
|
7943 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7944 |
validate();
|
|
|
7945 |
|
|
|
7946 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7947 |
if (this.itemNumber != null) {
|
|
|
7948 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
7949 |
oprot.writeString(this.itemNumber);
|
|
|
7950 |
oprot.writeFieldEnd();
|
|
|
7951 |
}
|
|
|
7952 |
oprot.writeFieldStop();
|
|
|
7953 |
oprot.writeStructEnd();
|
|
|
7954 |
}
|
|
|
7955 |
|
|
|
7956 |
@Override
|
|
|
7957 |
public String toString() {
|
|
|
7958 |
StringBuilder sb = new StringBuilder("getItemIds_args(");
|
|
|
7959 |
boolean first = true;
|
|
|
7960 |
|
|
|
7961 |
sb.append("itemNumber:");
|
|
|
7962 |
if (this.itemNumber == null) {
|
|
|
7963 |
sb.append("null");
|
|
|
7964 |
} else {
|
|
|
7965 |
sb.append(this.itemNumber);
|
|
|
7966 |
}
|
|
|
7967 |
first = false;
|
|
|
7968 |
sb.append(")");
|
|
|
7969 |
return sb.toString();
|
|
|
7970 |
}
|
|
|
7971 |
|
|
|
7972 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7973 |
// check for required fields
|
|
|
7974 |
}
|
|
|
7975 |
|
|
|
7976 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7977 |
try {
|
|
|
7978 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7979 |
} catch (org.apache.thrift.TException te) {
|
|
|
7980 |
throw new java.io.IOException(te);
|
|
|
7981 |
}
|
|
|
7982 |
}
|
|
|
7983 |
|
|
|
7984 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7985 |
try {
|
|
|
7986 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7987 |
} catch (org.apache.thrift.TException te) {
|
|
|
7988 |
throw new java.io.IOException(te);
|
|
|
7989 |
}
|
|
|
7990 |
}
|
|
|
7991 |
|
|
|
7992 |
}
|
|
|
7993 |
|
|
|
7994 |
public static class getItemIds_result implements org.apache.thrift.TBase<getItemIds_result, getItemIds_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7995 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_result");
|
|
|
7996 |
|
|
|
7997 |
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);
|
|
|
7998 |
|
|
|
7999 |
private List<Long> success; // required
|
|
|
8000 |
|
|
|
8001 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8002 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8003 |
SUCCESS((short)0, "success");
|
|
|
8004 |
|
|
|
8005 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8006 |
|
|
|
8007 |
static {
|
|
|
8008 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8009 |
byName.put(field.getFieldName(), field);
|
|
|
8010 |
}
|
|
|
8011 |
}
|
|
|
8012 |
|
|
|
8013 |
/**
|
|
|
8014 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8015 |
*/
|
|
|
8016 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8017 |
switch(fieldId) {
|
|
|
8018 |
case 0: // SUCCESS
|
|
|
8019 |
return SUCCESS;
|
|
|
8020 |
default:
|
|
|
8021 |
return null;
|
|
|
8022 |
}
|
|
|
8023 |
}
|
|
|
8024 |
|
|
|
8025 |
/**
|
|
|
8026 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8027 |
* if it is not found.
|
|
|
8028 |
*/
|
|
|
8029 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8030 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8031 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8032 |
return fields;
|
|
|
8033 |
}
|
|
|
8034 |
|
|
|
8035 |
/**
|
|
|
8036 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8037 |
*/
|
|
|
8038 |
public static _Fields findByName(String name) {
|
|
|
8039 |
return byName.get(name);
|
|
|
8040 |
}
|
|
|
8041 |
|
|
|
8042 |
private final short _thriftId;
|
|
|
8043 |
private final String _fieldName;
|
|
|
8044 |
|
|
|
8045 |
_Fields(short thriftId, String fieldName) {
|
|
|
8046 |
_thriftId = thriftId;
|
|
|
8047 |
_fieldName = fieldName;
|
|
|
8048 |
}
|
|
|
8049 |
|
|
|
8050 |
public short getThriftFieldId() {
|
|
|
8051 |
return _thriftId;
|
|
|
8052 |
}
|
|
|
8053 |
|
|
|
8054 |
public String getFieldName() {
|
|
|
8055 |
return _fieldName;
|
|
|
8056 |
}
|
|
|
8057 |
}
|
|
|
8058 |
|
|
|
8059 |
// isset id assignments
|
|
|
8060 |
|
|
|
8061 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8062 |
static {
|
|
|
8063 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8064 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8065 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
8066 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
|
|
|
8067 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8068 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_result.class, metaDataMap);
|
|
|
8069 |
}
|
|
|
8070 |
|
|
|
8071 |
public getItemIds_result() {
|
|
|
8072 |
}
|
|
|
8073 |
|
|
|
8074 |
public getItemIds_result(
|
|
|
8075 |
List<Long> success)
|
|
|
8076 |
{
|
|
|
8077 |
this();
|
|
|
8078 |
this.success = success;
|
|
|
8079 |
}
|
|
|
8080 |
|
|
|
8081 |
/**
|
|
|
8082 |
* Performs a deep copy on <i>other</i>.
|
|
|
8083 |
*/
|
|
|
8084 |
public getItemIds_result(getItemIds_result other) {
|
|
|
8085 |
if (other.isSetSuccess()) {
|
|
|
8086 |
List<Long> __this__success = new ArrayList<Long>();
|
|
|
8087 |
for (Long other_element : other.success) {
|
|
|
8088 |
__this__success.add(other_element);
|
|
|
8089 |
}
|
|
|
8090 |
this.success = __this__success;
|
|
|
8091 |
}
|
|
|
8092 |
}
|
|
|
8093 |
|
|
|
8094 |
public getItemIds_result deepCopy() {
|
|
|
8095 |
return new getItemIds_result(this);
|
|
|
8096 |
}
|
|
|
8097 |
|
|
|
8098 |
@Override
|
|
|
8099 |
public void clear() {
|
|
|
8100 |
this.success = null;
|
|
|
8101 |
}
|
|
|
8102 |
|
|
|
8103 |
public int getSuccessSize() {
|
|
|
8104 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
8105 |
}
|
|
|
8106 |
|
|
|
8107 |
public java.util.Iterator<Long> getSuccessIterator() {
|
|
|
8108 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
8109 |
}
|
|
|
8110 |
|
|
|
8111 |
public void addToSuccess(long elem) {
|
|
|
8112 |
if (this.success == null) {
|
|
|
8113 |
this.success = new ArrayList<Long>();
|
|
|
8114 |
}
|
|
|
8115 |
this.success.add(elem);
|
|
|
8116 |
}
|
|
|
8117 |
|
|
|
8118 |
public List<Long> getSuccess() {
|
|
|
8119 |
return this.success;
|
|
|
8120 |
}
|
|
|
8121 |
|
|
|
8122 |
public void setSuccess(List<Long> success) {
|
|
|
8123 |
this.success = success;
|
|
|
8124 |
}
|
|
|
8125 |
|
|
|
8126 |
public void unsetSuccess() {
|
|
|
8127 |
this.success = null;
|
|
|
8128 |
}
|
|
|
8129 |
|
|
|
8130 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
8131 |
public boolean isSetSuccess() {
|
|
|
8132 |
return this.success != null;
|
|
|
8133 |
}
|
|
|
8134 |
|
|
|
8135 |
public void setSuccessIsSet(boolean value) {
|
|
|
8136 |
if (!value) {
|
|
|
8137 |
this.success = null;
|
|
|
8138 |
}
|
|
|
8139 |
}
|
|
|
8140 |
|
|
|
8141 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8142 |
switch (field) {
|
|
|
8143 |
case SUCCESS:
|
|
|
8144 |
if (value == null) {
|
|
|
8145 |
unsetSuccess();
|
|
|
8146 |
} else {
|
|
|
8147 |
setSuccess((List<Long>)value);
|
|
|
8148 |
}
|
|
|
8149 |
break;
|
|
|
8150 |
|
|
|
8151 |
}
|
|
|
8152 |
}
|
|
|
8153 |
|
|
|
8154 |
public Object getFieldValue(_Fields field) {
|
|
|
8155 |
switch (field) {
|
|
|
8156 |
case SUCCESS:
|
|
|
8157 |
return getSuccess();
|
|
|
8158 |
|
|
|
8159 |
}
|
|
|
8160 |
throw new IllegalStateException();
|
|
|
8161 |
}
|
|
|
8162 |
|
|
|
8163 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8164 |
public boolean isSet(_Fields field) {
|
|
|
8165 |
if (field == null) {
|
|
|
8166 |
throw new IllegalArgumentException();
|
|
|
8167 |
}
|
|
|
8168 |
|
|
|
8169 |
switch (field) {
|
|
|
8170 |
case SUCCESS:
|
|
|
8171 |
return isSetSuccess();
|
|
|
8172 |
}
|
|
|
8173 |
throw new IllegalStateException();
|
|
|
8174 |
}
|
|
|
8175 |
|
|
|
8176 |
@Override
|
|
|
8177 |
public boolean equals(Object that) {
|
|
|
8178 |
if (that == null)
|
|
|
8179 |
return false;
|
|
|
8180 |
if (that instanceof getItemIds_result)
|
|
|
8181 |
return this.equals((getItemIds_result)that);
|
|
|
8182 |
return false;
|
|
|
8183 |
}
|
|
|
8184 |
|
|
|
8185 |
public boolean equals(getItemIds_result that) {
|
|
|
8186 |
if (that == null)
|
|
|
8187 |
return false;
|
|
|
8188 |
|
|
|
8189 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
8190 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
8191 |
if (this_present_success || that_present_success) {
|
|
|
8192 |
if (!(this_present_success && that_present_success))
|
|
|
8193 |
return false;
|
|
|
8194 |
if (!this.success.equals(that.success))
|
|
|
8195 |
return false;
|
|
|
8196 |
}
|
|
|
8197 |
|
|
|
8198 |
return true;
|
|
|
8199 |
}
|
|
|
8200 |
|
|
|
8201 |
@Override
|
|
|
8202 |
public int hashCode() {
|
|
|
8203 |
return 0;
|
|
|
8204 |
}
|
|
|
8205 |
|
|
|
8206 |
public int compareTo(getItemIds_result other) {
|
|
|
8207 |
if (!getClass().equals(other.getClass())) {
|
|
|
8208 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8209 |
}
|
|
|
8210 |
|
|
|
8211 |
int lastComparison = 0;
|
|
|
8212 |
getItemIds_result typedOther = (getItemIds_result)other;
|
|
|
8213 |
|
|
|
8214 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
8215 |
if (lastComparison != 0) {
|
|
|
8216 |
return lastComparison;
|
|
|
8217 |
}
|
|
|
8218 |
if (isSetSuccess()) {
|
|
|
8219 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
8220 |
if (lastComparison != 0) {
|
|
|
8221 |
return lastComparison;
|
|
|
8222 |
}
|
|
|
8223 |
}
|
|
|
8224 |
return 0;
|
|
|
8225 |
}
|
|
|
8226 |
|
|
|
8227 |
public _Fields fieldForId(int fieldId) {
|
|
|
8228 |
return _Fields.findByThriftId(fieldId);
|
|
|
8229 |
}
|
|
|
8230 |
|
|
|
8231 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8232 |
org.apache.thrift.protocol.TField field;
|
|
|
8233 |
iprot.readStructBegin();
|
|
|
8234 |
while (true)
|
|
|
8235 |
{
|
|
|
8236 |
field = iprot.readFieldBegin();
|
|
|
8237 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8238 |
break;
|
|
|
8239 |
}
|
|
|
8240 |
switch (field.id) {
|
|
|
8241 |
case 0: // SUCCESS
|
|
|
8242 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
8243 |
{
|
| 5361 |
mandeep.dh |
8244 |
org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
|
|
|
8245 |
this.success = new ArrayList<Long>(_list4.size);
|
|
|
8246 |
for (int _i5 = 0; _i5 < _list4.size; ++_i5)
|
| 5110 |
mandeep.dh |
8247 |
{
|
| 5361 |
mandeep.dh |
8248 |
long _elem6; // required
|
|
|
8249 |
_elem6 = iprot.readI64();
|
|
|
8250 |
this.success.add(_elem6);
|
| 5110 |
mandeep.dh |
8251 |
}
|
|
|
8252 |
iprot.readListEnd();
|
|
|
8253 |
}
|
|
|
8254 |
} else {
|
|
|
8255 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8256 |
}
|
|
|
8257 |
break;
|
|
|
8258 |
default:
|
|
|
8259 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8260 |
}
|
|
|
8261 |
iprot.readFieldEnd();
|
|
|
8262 |
}
|
|
|
8263 |
iprot.readStructEnd();
|
|
|
8264 |
validate();
|
|
|
8265 |
}
|
|
|
8266 |
|
|
|
8267 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8268 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8269 |
|
|
|
8270 |
if (this.isSetSuccess()) {
|
|
|
8271 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
8272 |
{
|
|
|
8273 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
|
| 5361 |
mandeep.dh |
8274 |
for (long _iter7 : this.success)
|
| 5110 |
mandeep.dh |
8275 |
{
|
| 5361 |
mandeep.dh |
8276 |
oprot.writeI64(_iter7);
|
| 5110 |
mandeep.dh |
8277 |
}
|
|
|
8278 |
oprot.writeListEnd();
|
|
|
8279 |
}
|
|
|
8280 |
oprot.writeFieldEnd();
|
|
|
8281 |
}
|
|
|
8282 |
oprot.writeFieldStop();
|
|
|
8283 |
oprot.writeStructEnd();
|
|
|
8284 |
}
|
|
|
8285 |
|
|
|
8286 |
@Override
|
|
|
8287 |
public String toString() {
|
|
|
8288 |
StringBuilder sb = new StringBuilder("getItemIds_result(");
|
|
|
8289 |
boolean first = true;
|
|
|
8290 |
|
|
|
8291 |
sb.append("success:");
|
|
|
8292 |
if (this.success == null) {
|
|
|
8293 |
sb.append("null");
|
|
|
8294 |
} else {
|
|
|
8295 |
sb.append(this.success);
|
|
|
8296 |
}
|
|
|
8297 |
first = false;
|
|
|
8298 |
sb.append(")");
|
|
|
8299 |
return sb.toString();
|
|
|
8300 |
}
|
|
|
8301 |
|
|
|
8302 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8303 |
// check for required fields
|
|
|
8304 |
}
|
|
|
8305 |
|
|
|
8306 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8307 |
try {
|
|
|
8308 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8309 |
} catch (org.apache.thrift.TException te) {
|
|
|
8310 |
throw new java.io.IOException(te);
|
|
|
8311 |
}
|
|
|
8312 |
}
|
|
|
8313 |
|
|
|
8314 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8315 |
try {
|
|
|
8316 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8317 |
} catch (org.apache.thrift.TException te) {
|
|
|
8318 |
throw new java.io.IOException(te);
|
|
|
8319 |
}
|
|
|
8320 |
}
|
|
|
8321 |
|
|
|
8322 |
}
|
|
|
8323 |
|
| 5185 |
mandeep.dh |
8324 |
public static class getInventoryItemsFromLastScanType_args implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_args, getInventoryItemsFromLastScanType_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
8325 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_args");
|
|
|
8326 |
|
|
|
8327 |
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);
|
|
|
8328 |
|
|
|
8329 |
private ScanType lastScanType; // required
|
|
|
8330 |
|
|
|
8331 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8332 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8333 |
/**
|
|
|
8334 |
*
|
|
|
8335 |
* @see ScanType
|
|
|
8336 |
*/
|
|
|
8337 |
LAST_SCAN_TYPE((short)1, "lastScanType");
|
|
|
8338 |
|
|
|
8339 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8340 |
|
|
|
8341 |
static {
|
|
|
8342 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8343 |
byName.put(field.getFieldName(), field);
|
|
|
8344 |
}
|
|
|
8345 |
}
|
|
|
8346 |
|
|
|
8347 |
/**
|
|
|
8348 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8349 |
*/
|
|
|
8350 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8351 |
switch(fieldId) {
|
|
|
8352 |
case 1: // LAST_SCAN_TYPE
|
|
|
8353 |
return LAST_SCAN_TYPE;
|
|
|
8354 |
default:
|
|
|
8355 |
return null;
|
|
|
8356 |
}
|
|
|
8357 |
}
|
|
|
8358 |
|
|
|
8359 |
/**
|
|
|
8360 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8361 |
* if it is not found.
|
|
|
8362 |
*/
|
|
|
8363 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8364 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8365 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8366 |
return fields;
|
|
|
8367 |
}
|
|
|
8368 |
|
|
|
8369 |
/**
|
|
|
8370 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8371 |
*/
|
|
|
8372 |
public static _Fields findByName(String name) {
|
|
|
8373 |
return byName.get(name);
|
|
|
8374 |
}
|
|
|
8375 |
|
|
|
8376 |
private final short _thriftId;
|
|
|
8377 |
private final String _fieldName;
|
|
|
8378 |
|
|
|
8379 |
_Fields(short thriftId, String fieldName) {
|
|
|
8380 |
_thriftId = thriftId;
|
|
|
8381 |
_fieldName = fieldName;
|
|
|
8382 |
}
|
|
|
8383 |
|
|
|
8384 |
public short getThriftFieldId() {
|
|
|
8385 |
return _thriftId;
|
|
|
8386 |
}
|
|
|
8387 |
|
|
|
8388 |
public String getFieldName() {
|
|
|
8389 |
return _fieldName;
|
|
|
8390 |
}
|
|
|
8391 |
}
|
|
|
8392 |
|
|
|
8393 |
// isset id assignments
|
|
|
8394 |
|
|
|
8395 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8396 |
static {
|
|
|
8397 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8398 |
tmpMap.put(_Fields.LAST_SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("lastScanType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8399 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
8400 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8401 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_args.class, metaDataMap);
|
|
|
8402 |
}
|
|
|
8403 |
|
|
|
8404 |
public getInventoryItemsFromLastScanType_args() {
|
|
|
8405 |
}
|
|
|
8406 |
|
|
|
8407 |
public getInventoryItemsFromLastScanType_args(
|
|
|
8408 |
ScanType lastScanType)
|
|
|
8409 |
{
|
|
|
8410 |
this();
|
|
|
8411 |
this.lastScanType = lastScanType;
|
|
|
8412 |
}
|
|
|
8413 |
|
|
|
8414 |
/**
|
|
|
8415 |
* Performs a deep copy on <i>other</i>.
|
|
|
8416 |
*/
|
|
|
8417 |
public getInventoryItemsFromLastScanType_args(getInventoryItemsFromLastScanType_args other) {
|
|
|
8418 |
if (other.isSetLastScanType()) {
|
|
|
8419 |
this.lastScanType = other.lastScanType;
|
|
|
8420 |
}
|
|
|
8421 |
}
|
|
|
8422 |
|
|
|
8423 |
public getInventoryItemsFromLastScanType_args deepCopy() {
|
|
|
8424 |
return new getInventoryItemsFromLastScanType_args(this);
|
|
|
8425 |
}
|
|
|
8426 |
|
|
|
8427 |
@Override
|
|
|
8428 |
public void clear() {
|
|
|
8429 |
this.lastScanType = null;
|
|
|
8430 |
}
|
|
|
8431 |
|
|
|
8432 |
/**
|
|
|
8433 |
*
|
|
|
8434 |
* @see ScanType
|
|
|
8435 |
*/
|
|
|
8436 |
public ScanType getLastScanType() {
|
|
|
8437 |
return this.lastScanType;
|
|
|
8438 |
}
|
|
|
8439 |
|
|
|
8440 |
/**
|
|
|
8441 |
*
|
|
|
8442 |
* @see ScanType
|
|
|
8443 |
*/
|
|
|
8444 |
public void setLastScanType(ScanType lastScanType) {
|
|
|
8445 |
this.lastScanType = lastScanType;
|
|
|
8446 |
}
|
|
|
8447 |
|
|
|
8448 |
public void unsetLastScanType() {
|
|
|
8449 |
this.lastScanType = null;
|
|
|
8450 |
}
|
|
|
8451 |
|
|
|
8452 |
/** Returns true if field lastScanType is set (has been assigned a value) and false otherwise */
|
|
|
8453 |
public boolean isSetLastScanType() {
|
|
|
8454 |
return this.lastScanType != null;
|
|
|
8455 |
}
|
|
|
8456 |
|
|
|
8457 |
public void setLastScanTypeIsSet(boolean value) {
|
|
|
8458 |
if (!value) {
|
|
|
8459 |
this.lastScanType = null;
|
|
|
8460 |
}
|
|
|
8461 |
}
|
|
|
8462 |
|
|
|
8463 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8464 |
switch (field) {
|
|
|
8465 |
case LAST_SCAN_TYPE:
|
|
|
8466 |
if (value == null) {
|
|
|
8467 |
unsetLastScanType();
|
|
|
8468 |
} else {
|
|
|
8469 |
setLastScanType((ScanType)value);
|
|
|
8470 |
}
|
|
|
8471 |
break;
|
|
|
8472 |
|
|
|
8473 |
}
|
|
|
8474 |
}
|
|
|
8475 |
|
|
|
8476 |
public Object getFieldValue(_Fields field) {
|
|
|
8477 |
switch (field) {
|
|
|
8478 |
case LAST_SCAN_TYPE:
|
|
|
8479 |
return getLastScanType();
|
|
|
8480 |
|
|
|
8481 |
}
|
|
|
8482 |
throw new IllegalStateException();
|
|
|
8483 |
}
|
|
|
8484 |
|
|
|
8485 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8486 |
public boolean isSet(_Fields field) {
|
|
|
8487 |
if (field == null) {
|
|
|
8488 |
throw new IllegalArgumentException();
|
|
|
8489 |
}
|
|
|
8490 |
|
|
|
8491 |
switch (field) {
|
|
|
8492 |
case LAST_SCAN_TYPE:
|
|
|
8493 |
return isSetLastScanType();
|
|
|
8494 |
}
|
|
|
8495 |
throw new IllegalStateException();
|
|
|
8496 |
}
|
|
|
8497 |
|
|
|
8498 |
@Override
|
|
|
8499 |
public boolean equals(Object that) {
|
|
|
8500 |
if (that == null)
|
|
|
8501 |
return false;
|
|
|
8502 |
if (that instanceof getInventoryItemsFromLastScanType_args)
|
|
|
8503 |
return this.equals((getInventoryItemsFromLastScanType_args)that);
|
|
|
8504 |
return false;
|
|
|
8505 |
}
|
|
|
8506 |
|
|
|
8507 |
public boolean equals(getInventoryItemsFromLastScanType_args that) {
|
|
|
8508 |
if (that == null)
|
|
|
8509 |
return false;
|
|
|
8510 |
|
|
|
8511 |
boolean this_present_lastScanType = true && this.isSetLastScanType();
|
|
|
8512 |
boolean that_present_lastScanType = true && that.isSetLastScanType();
|
|
|
8513 |
if (this_present_lastScanType || that_present_lastScanType) {
|
|
|
8514 |
if (!(this_present_lastScanType && that_present_lastScanType))
|
|
|
8515 |
return false;
|
|
|
8516 |
if (!this.lastScanType.equals(that.lastScanType))
|
|
|
8517 |
return false;
|
|
|
8518 |
}
|
|
|
8519 |
|
|
|
8520 |
return true;
|
|
|
8521 |
}
|
|
|
8522 |
|
|
|
8523 |
@Override
|
|
|
8524 |
public int hashCode() {
|
|
|
8525 |
return 0;
|
|
|
8526 |
}
|
|
|
8527 |
|
|
|
8528 |
public int compareTo(getInventoryItemsFromLastScanType_args other) {
|
|
|
8529 |
if (!getClass().equals(other.getClass())) {
|
|
|
8530 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8531 |
}
|
|
|
8532 |
|
|
|
8533 |
int lastComparison = 0;
|
|
|
8534 |
getInventoryItemsFromLastScanType_args typedOther = (getInventoryItemsFromLastScanType_args)other;
|
|
|
8535 |
|
|
|
8536 |
lastComparison = Boolean.valueOf(isSetLastScanType()).compareTo(typedOther.isSetLastScanType());
|
|
|
8537 |
if (lastComparison != 0) {
|
|
|
8538 |
return lastComparison;
|
|
|
8539 |
}
|
|
|
8540 |
if (isSetLastScanType()) {
|
|
|
8541 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastScanType, typedOther.lastScanType);
|
|
|
8542 |
if (lastComparison != 0) {
|
|
|
8543 |
return lastComparison;
|
|
|
8544 |
}
|
|
|
8545 |
}
|
|
|
8546 |
return 0;
|
|
|
8547 |
}
|
|
|
8548 |
|
|
|
8549 |
public _Fields fieldForId(int fieldId) {
|
|
|
8550 |
return _Fields.findByThriftId(fieldId);
|
|
|
8551 |
}
|
|
|
8552 |
|
|
|
8553 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8554 |
org.apache.thrift.protocol.TField field;
|
|
|
8555 |
iprot.readStructBegin();
|
|
|
8556 |
while (true)
|
|
|
8557 |
{
|
|
|
8558 |
field = iprot.readFieldBegin();
|
|
|
8559 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8560 |
break;
|
|
|
8561 |
}
|
|
|
8562 |
switch (field.id) {
|
|
|
8563 |
case 1: // LAST_SCAN_TYPE
|
|
|
8564 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
8565 |
this.lastScanType = ScanType.findByValue(iprot.readI32());
|
|
|
8566 |
} else {
|
|
|
8567 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8568 |
}
|
|
|
8569 |
break;
|
|
|
8570 |
default:
|
|
|
8571 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8572 |
}
|
|
|
8573 |
iprot.readFieldEnd();
|
|
|
8574 |
}
|
|
|
8575 |
iprot.readStructEnd();
|
|
|
8576 |
validate();
|
|
|
8577 |
}
|
|
|
8578 |
|
|
|
8579 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8580 |
validate();
|
|
|
8581 |
|
|
|
8582 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8583 |
if (this.lastScanType != null) {
|
|
|
8584 |
oprot.writeFieldBegin(LAST_SCAN_TYPE_FIELD_DESC);
|
|
|
8585 |
oprot.writeI32(this.lastScanType.getValue());
|
|
|
8586 |
oprot.writeFieldEnd();
|
|
|
8587 |
}
|
|
|
8588 |
oprot.writeFieldStop();
|
|
|
8589 |
oprot.writeStructEnd();
|
|
|
8590 |
}
|
|
|
8591 |
|
|
|
8592 |
@Override
|
|
|
8593 |
public String toString() {
|
|
|
8594 |
StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_args(");
|
|
|
8595 |
boolean first = true;
|
|
|
8596 |
|
|
|
8597 |
sb.append("lastScanType:");
|
|
|
8598 |
if (this.lastScanType == null) {
|
|
|
8599 |
sb.append("null");
|
|
|
8600 |
} else {
|
|
|
8601 |
sb.append(this.lastScanType);
|
|
|
8602 |
}
|
|
|
8603 |
first = false;
|
|
|
8604 |
sb.append(")");
|
|
|
8605 |
return sb.toString();
|
|
|
8606 |
}
|
|
|
8607 |
|
|
|
8608 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8609 |
// check for required fields
|
|
|
8610 |
}
|
|
|
8611 |
|
|
|
8612 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8613 |
try {
|
|
|
8614 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8615 |
} catch (org.apache.thrift.TException te) {
|
|
|
8616 |
throw new java.io.IOException(te);
|
|
|
8617 |
}
|
|
|
8618 |
}
|
|
|
8619 |
|
|
|
8620 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8621 |
try {
|
|
|
8622 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8623 |
} catch (org.apache.thrift.TException te) {
|
|
|
8624 |
throw new java.io.IOException(te);
|
|
|
8625 |
}
|
|
|
8626 |
}
|
|
|
8627 |
|
|
|
8628 |
}
|
|
|
8629 |
|
|
|
8630 |
public static class getInventoryItemsFromLastScanType_result implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_result, getInventoryItemsFromLastScanType_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8631 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_result");
|
|
|
8632 |
|
|
|
8633 |
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);
|
|
|
8634 |
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);
|
|
|
8635 |
|
|
|
8636 |
private List<InventoryItem> success; // required
|
|
|
8637 |
private WarehouseServiceException wex; // required
|
|
|
8638 |
|
|
|
8639 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8640 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8641 |
SUCCESS((short)0, "success"),
|
|
|
8642 |
WEX((short)1, "wex");
|
|
|
8643 |
|
|
|
8644 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8645 |
|
|
|
8646 |
static {
|
|
|
8647 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8648 |
byName.put(field.getFieldName(), field);
|
|
|
8649 |
}
|
|
|
8650 |
}
|
|
|
8651 |
|
|
|
8652 |
/**
|
|
|
8653 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8654 |
*/
|
|
|
8655 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8656 |
switch(fieldId) {
|
|
|
8657 |
case 0: // SUCCESS
|
|
|
8658 |
return SUCCESS;
|
|
|
8659 |
case 1: // WEX
|
|
|
8660 |
return WEX;
|
|
|
8661 |
default:
|
|
|
8662 |
return null;
|
|
|
8663 |
}
|
|
|
8664 |
}
|
|
|
8665 |
|
|
|
8666 |
/**
|
|
|
8667 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8668 |
* if it is not found.
|
|
|
8669 |
*/
|
|
|
8670 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8671 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8672 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8673 |
return fields;
|
|
|
8674 |
}
|
|
|
8675 |
|
|
|
8676 |
/**
|
|
|
8677 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8678 |
*/
|
|
|
8679 |
public static _Fields findByName(String name) {
|
|
|
8680 |
return byName.get(name);
|
|
|
8681 |
}
|
|
|
8682 |
|
|
|
8683 |
private final short _thriftId;
|
|
|
8684 |
private final String _fieldName;
|
|
|
8685 |
|
|
|
8686 |
_Fields(short thriftId, String fieldName) {
|
|
|
8687 |
_thriftId = thriftId;
|
|
|
8688 |
_fieldName = fieldName;
|
|
|
8689 |
}
|
|
|
8690 |
|
|
|
8691 |
public short getThriftFieldId() {
|
|
|
8692 |
return _thriftId;
|
|
|
8693 |
}
|
|
|
8694 |
|
|
|
8695 |
public String getFieldName() {
|
|
|
8696 |
return _fieldName;
|
|
|
8697 |
}
|
|
|
8698 |
}
|
|
|
8699 |
|
|
|
8700 |
// isset id assignments
|
|
|
8701 |
|
|
|
8702 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8703 |
static {
|
|
|
8704 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8705 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8706 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
8707 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
|
|
|
8708 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8709 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
8710 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8711 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_result.class, metaDataMap);
|
|
|
8712 |
}
|
|
|
8713 |
|
|
|
8714 |
public getInventoryItemsFromLastScanType_result() {
|
|
|
8715 |
}
|
|
|
8716 |
|
|
|
8717 |
public getInventoryItemsFromLastScanType_result(
|
|
|
8718 |
List<InventoryItem> success,
|
|
|
8719 |
WarehouseServiceException wex)
|
|
|
8720 |
{
|
|
|
8721 |
this();
|
|
|
8722 |
this.success = success;
|
|
|
8723 |
this.wex = wex;
|
|
|
8724 |
}
|
|
|
8725 |
|
|
|
8726 |
/**
|
|
|
8727 |
* Performs a deep copy on <i>other</i>.
|
|
|
8728 |
*/
|
|
|
8729 |
public getInventoryItemsFromLastScanType_result(getInventoryItemsFromLastScanType_result other) {
|
|
|
8730 |
if (other.isSetSuccess()) {
|
|
|
8731 |
List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
|
|
|
8732 |
for (InventoryItem other_element : other.success) {
|
|
|
8733 |
__this__success.add(new InventoryItem(other_element));
|
|
|
8734 |
}
|
|
|
8735 |
this.success = __this__success;
|
|
|
8736 |
}
|
|
|
8737 |
if (other.isSetWex()) {
|
|
|
8738 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
8739 |
}
|
|
|
8740 |
}
|
|
|
8741 |
|
|
|
8742 |
public getInventoryItemsFromLastScanType_result deepCopy() {
|
|
|
8743 |
return new getInventoryItemsFromLastScanType_result(this);
|
|
|
8744 |
}
|
|
|
8745 |
|
|
|
8746 |
@Override
|
|
|
8747 |
public void clear() {
|
|
|
8748 |
this.success = null;
|
|
|
8749 |
this.wex = null;
|
|
|
8750 |
}
|
|
|
8751 |
|
|
|
8752 |
public int getSuccessSize() {
|
|
|
8753 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
8754 |
}
|
|
|
8755 |
|
|
|
8756 |
public java.util.Iterator<InventoryItem> getSuccessIterator() {
|
|
|
8757 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
8758 |
}
|
|
|
8759 |
|
|
|
8760 |
public void addToSuccess(InventoryItem elem) {
|
|
|
8761 |
if (this.success == null) {
|
|
|
8762 |
this.success = new ArrayList<InventoryItem>();
|
|
|
8763 |
}
|
|
|
8764 |
this.success.add(elem);
|
|
|
8765 |
}
|
|
|
8766 |
|
|
|
8767 |
public List<InventoryItem> getSuccess() {
|
|
|
8768 |
return this.success;
|
|
|
8769 |
}
|
|
|
8770 |
|
|
|
8771 |
public void setSuccess(List<InventoryItem> success) {
|
|
|
8772 |
this.success = success;
|
|
|
8773 |
}
|
|
|
8774 |
|
|
|
8775 |
public void unsetSuccess() {
|
|
|
8776 |
this.success = null;
|
|
|
8777 |
}
|
|
|
8778 |
|
|
|
8779 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
8780 |
public boolean isSetSuccess() {
|
|
|
8781 |
return this.success != null;
|
|
|
8782 |
}
|
|
|
8783 |
|
|
|
8784 |
public void setSuccessIsSet(boolean value) {
|
|
|
8785 |
if (!value) {
|
|
|
8786 |
this.success = null;
|
|
|
8787 |
}
|
|
|
8788 |
}
|
|
|
8789 |
|
|
|
8790 |
public WarehouseServiceException getWex() {
|
|
|
8791 |
return this.wex;
|
|
|
8792 |
}
|
|
|
8793 |
|
|
|
8794 |
public void setWex(WarehouseServiceException wex) {
|
|
|
8795 |
this.wex = wex;
|
|
|
8796 |
}
|
|
|
8797 |
|
|
|
8798 |
public void unsetWex() {
|
|
|
8799 |
this.wex = null;
|
|
|
8800 |
}
|
|
|
8801 |
|
|
|
8802 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
8803 |
public boolean isSetWex() {
|
|
|
8804 |
return this.wex != null;
|
|
|
8805 |
}
|
|
|
8806 |
|
|
|
8807 |
public void setWexIsSet(boolean value) {
|
|
|
8808 |
if (!value) {
|
|
|
8809 |
this.wex = null;
|
|
|
8810 |
}
|
|
|
8811 |
}
|
|
|
8812 |
|
|
|
8813 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8814 |
switch (field) {
|
|
|
8815 |
case SUCCESS:
|
|
|
8816 |
if (value == null) {
|
|
|
8817 |
unsetSuccess();
|
|
|
8818 |
} else {
|
|
|
8819 |
setSuccess((List<InventoryItem>)value);
|
|
|
8820 |
}
|
|
|
8821 |
break;
|
|
|
8822 |
|
|
|
8823 |
case WEX:
|
|
|
8824 |
if (value == null) {
|
|
|
8825 |
unsetWex();
|
|
|
8826 |
} else {
|
|
|
8827 |
setWex((WarehouseServiceException)value);
|
|
|
8828 |
}
|
|
|
8829 |
break;
|
|
|
8830 |
|
|
|
8831 |
}
|
|
|
8832 |
}
|
|
|
8833 |
|
|
|
8834 |
public Object getFieldValue(_Fields field) {
|
|
|
8835 |
switch (field) {
|
|
|
8836 |
case SUCCESS:
|
|
|
8837 |
return getSuccess();
|
|
|
8838 |
|
|
|
8839 |
case WEX:
|
|
|
8840 |
return getWex();
|
|
|
8841 |
|
|
|
8842 |
}
|
|
|
8843 |
throw new IllegalStateException();
|
|
|
8844 |
}
|
|
|
8845 |
|
|
|
8846 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8847 |
public boolean isSet(_Fields field) {
|
|
|
8848 |
if (field == null) {
|
|
|
8849 |
throw new IllegalArgumentException();
|
|
|
8850 |
}
|
|
|
8851 |
|
|
|
8852 |
switch (field) {
|
|
|
8853 |
case SUCCESS:
|
|
|
8854 |
return isSetSuccess();
|
|
|
8855 |
case WEX:
|
|
|
8856 |
return isSetWex();
|
|
|
8857 |
}
|
|
|
8858 |
throw new IllegalStateException();
|
|
|
8859 |
}
|
|
|
8860 |
|
|
|
8861 |
@Override
|
|
|
8862 |
public boolean equals(Object that) {
|
|
|
8863 |
if (that == null)
|
|
|
8864 |
return false;
|
|
|
8865 |
if (that instanceof getInventoryItemsFromLastScanType_result)
|
|
|
8866 |
return this.equals((getInventoryItemsFromLastScanType_result)that);
|
|
|
8867 |
return false;
|
|
|
8868 |
}
|
|
|
8869 |
|
|
|
8870 |
public boolean equals(getInventoryItemsFromLastScanType_result that) {
|
|
|
8871 |
if (that == null)
|
|
|
8872 |
return false;
|
|
|
8873 |
|
|
|
8874 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
8875 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
8876 |
if (this_present_success || that_present_success) {
|
|
|
8877 |
if (!(this_present_success && that_present_success))
|
|
|
8878 |
return false;
|
|
|
8879 |
if (!this.success.equals(that.success))
|
|
|
8880 |
return false;
|
|
|
8881 |
}
|
|
|
8882 |
|
|
|
8883 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
8884 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
8885 |
if (this_present_wex || that_present_wex) {
|
|
|
8886 |
if (!(this_present_wex && that_present_wex))
|
|
|
8887 |
return false;
|
|
|
8888 |
if (!this.wex.equals(that.wex))
|
|
|
8889 |
return false;
|
|
|
8890 |
}
|
|
|
8891 |
|
|
|
8892 |
return true;
|
|
|
8893 |
}
|
|
|
8894 |
|
|
|
8895 |
@Override
|
|
|
8896 |
public int hashCode() {
|
|
|
8897 |
return 0;
|
|
|
8898 |
}
|
|
|
8899 |
|
|
|
8900 |
public int compareTo(getInventoryItemsFromLastScanType_result other) {
|
|
|
8901 |
if (!getClass().equals(other.getClass())) {
|
|
|
8902 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8903 |
}
|
|
|
8904 |
|
|
|
8905 |
int lastComparison = 0;
|
|
|
8906 |
getInventoryItemsFromLastScanType_result typedOther = (getInventoryItemsFromLastScanType_result)other;
|
|
|
8907 |
|
|
|
8908 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
8909 |
if (lastComparison != 0) {
|
|
|
8910 |
return lastComparison;
|
|
|
8911 |
}
|
|
|
8912 |
if (isSetSuccess()) {
|
|
|
8913 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
8914 |
if (lastComparison != 0) {
|
|
|
8915 |
return lastComparison;
|
|
|
8916 |
}
|
|
|
8917 |
}
|
|
|
8918 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
8919 |
if (lastComparison != 0) {
|
|
|
8920 |
return lastComparison;
|
|
|
8921 |
}
|
|
|
8922 |
if (isSetWex()) {
|
|
|
8923 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
8924 |
if (lastComparison != 0) {
|
|
|
8925 |
return lastComparison;
|
|
|
8926 |
}
|
|
|
8927 |
}
|
|
|
8928 |
return 0;
|
|
|
8929 |
}
|
|
|
8930 |
|
|
|
8931 |
public _Fields fieldForId(int fieldId) {
|
|
|
8932 |
return _Fields.findByThriftId(fieldId);
|
|
|
8933 |
}
|
|
|
8934 |
|
|
|
8935 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8936 |
org.apache.thrift.protocol.TField field;
|
|
|
8937 |
iprot.readStructBegin();
|
|
|
8938 |
while (true)
|
|
|
8939 |
{
|
|
|
8940 |
field = iprot.readFieldBegin();
|
|
|
8941 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8942 |
break;
|
|
|
8943 |
}
|
|
|
8944 |
switch (field.id) {
|
|
|
8945 |
case 0: // SUCCESS
|
|
|
8946 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
8947 |
{
|
| 5361 |
mandeep.dh |
8948 |
org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
|
|
|
8949 |
this.success = new ArrayList<InventoryItem>(_list8.size);
|
|
|
8950 |
for (int _i9 = 0; _i9 < _list8.size; ++_i9)
|
| 5185 |
mandeep.dh |
8951 |
{
|
| 5361 |
mandeep.dh |
8952 |
InventoryItem _elem10; // required
|
|
|
8953 |
_elem10 = new InventoryItem();
|
|
|
8954 |
_elem10.read(iprot);
|
|
|
8955 |
this.success.add(_elem10);
|
| 5185 |
mandeep.dh |
8956 |
}
|
|
|
8957 |
iprot.readListEnd();
|
|
|
8958 |
}
|
|
|
8959 |
} else {
|
|
|
8960 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8961 |
}
|
|
|
8962 |
break;
|
|
|
8963 |
case 1: // WEX
|
|
|
8964 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
8965 |
this.wex = new WarehouseServiceException();
|
|
|
8966 |
this.wex.read(iprot);
|
|
|
8967 |
} else {
|
|
|
8968 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8969 |
}
|
|
|
8970 |
break;
|
|
|
8971 |
default:
|
|
|
8972 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8973 |
}
|
|
|
8974 |
iprot.readFieldEnd();
|
|
|
8975 |
}
|
|
|
8976 |
iprot.readStructEnd();
|
|
|
8977 |
validate();
|
|
|
8978 |
}
|
|
|
8979 |
|
|
|
8980 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8981 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8982 |
|
|
|
8983 |
if (this.isSetSuccess()) {
|
|
|
8984 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
8985 |
{
|
|
|
8986 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 5361 |
mandeep.dh |
8987 |
for (InventoryItem _iter11 : this.success)
|
| 5185 |
mandeep.dh |
8988 |
{
|
| 5361 |
mandeep.dh |
8989 |
_iter11.write(oprot);
|
| 5185 |
mandeep.dh |
8990 |
}
|
|
|
8991 |
oprot.writeListEnd();
|
|
|
8992 |
}
|
|
|
8993 |
oprot.writeFieldEnd();
|
|
|
8994 |
} else if (this.isSetWex()) {
|
|
|
8995 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
8996 |
this.wex.write(oprot);
|
|
|
8997 |
oprot.writeFieldEnd();
|
|
|
8998 |
}
|
|
|
8999 |
oprot.writeFieldStop();
|
|
|
9000 |
oprot.writeStructEnd();
|
|
|
9001 |
}
|
|
|
9002 |
|
|
|
9003 |
@Override
|
|
|
9004 |
public String toString() {
|
|
|
9005 |
StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_result(");
|
|
|
9006 |
boolean first = true;
|
|
|
9007 |
|
|
|
9008 |
sb.append("success:");
|
|
|
9009 |
if (this.success == null) {
|
|
|
9010 |
sb.append("null");
|
|
|
9011 |
} else {
|
|
|
9012 |
sb.append(this.success);
|
|
|
9013 |
}
|
|
|
9014 |
first = false;
|
|
|
9015 |
if (!first) sb.append(", ");
|
|
|
9016 |
sb.append("wex:");
|
|
|
9017 |
if (this.wex == null) {
|
|
|
9018 |
sb.append("null");
|
|
|
9019 |
} else {
|
|
|
9020 |
sb.append(this.wex);
|
|
|
9021 |
}
|
|
|
9022 |
first = false;
|
|
|
9023 |
sb.append(")");
|
|
|
9024 |
return sb.toString();
|
|
|
9025 |
}
|
|
|
9026 |
|
|
|
9027 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9028 |
// check for required fields
|
|
|
9029 |
}
|
|
|
9030 |
|
|
|
9031 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9032 |
try {
|
|
|
9033 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9034 |
} catch (org.apache.thrift.TException te) {
|
|
|
9035 |
throw new java.io.IOException(te);
|
|
|
9036 |
}
|
|
|
9037 |
}
|
|
|
9038 |
|
|
|
9039 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9040 |
try {
|
|
|
9041 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9042 |
} catch (org.apache.thrift.TException te) {
|
|
|
9043 |
throw new java.io.IOException(te);
|
|
|
9044 |
}
|
|
|
9045 |
}
|
|
|
9046 |
|
|
|
9047 |
}
|
|
|
9048 |
|
|
|
9049 |
public static class getInventoryItemFromId_args implements org.apache.thrift.TBase<getInventoryItemFromId_args, getInventoryItemFromId_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
9050 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_args");
|
|
|
9051 |
|
|
|
9052 |
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);
|
|
|
9053 |
|
|
|
9054 |
private long inventoryItemId; // required
|
|
|
9055 |
|
|
|
9056 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9057 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9058 |
INVENTORY_ITEM_ID((short)1, "inventoryItemId");
|
|
|
9059 |
|
|
|
9060 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9061 |
|
|
|
9062 |
static {
|
|
|
9063 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9064 |
byName.put(field.getFieldName(), field);
|
|
|
9065 |
}
|
|
|
9066 |
}
|
|
|
9067 |
|
|
|
9068 |
/**
|
|
|
9069 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9070 |
*/
|
|
|
9071 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9072 |
switch(fieldId) {
|
|
|
9073 |
case 1: // INVENTORY_ITEM_ID
|
|
|
9074 |
return INVENTORY_ITEM_ID;
|
|
|
9075 |
default:
|
|
|
9076 |
return null;
|
|
|
9077 |
}
|
|
|
9078 |
}
|
|
|
9079 |
|
|
|
9080 |
/**
|
|
|
9081 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9082 |
* if it is not found.
|
|
|
9083 |
*/
|
|
|
9084 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9085 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9086 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9087 |
return fields;
|
|
|
9088 |
}
|
|
|
9089 |
|
|
|
9090 |
/**
|
|
|
9091 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9092 |
*/
|
|
|
9093 |
public static _Fields findByName(String name) {
|
|
|
9094 |
return byName.get(name);
|
|
|
9095 |
}
|
|
|
9096 |
|
|
|
9097 |
private final short _thriftId;
|
|
|
9098 |
private final String _fieldName;
|
|
|
9099 |
|
|
|
9100 |
_Fields(short thriftId, String fieldName) {
|
|
|
9101 |
_thriftId = thriftId;
|
|
|
9102 |
_fieldName = fieldName;
|
|
|
9103 |
}
|
|
|
9104 |
|
|
|
9105 |
public short getThriftFieldId() {
|
|
|
9106 |
return _thriftId;
|
|
|
9107 |
}
|
|
|
9108 |
|
|
|
9109 |
public String getFieldName() {
|
|
|
9110 |
return _fieldName;
|
|
|
9111 |
}
|
|
|
9112 |
}
|
|
|
9113 |
|
|
|
9114 |
// isset id assignments
|
|
|
9115 |
private static final int __INVENTORYITEMID_ISSET_ID = 0;
|
|
|
9116 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
9117 |
|
|
|
9118 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9119 |
static {
|
|
|
9120 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9121 |
tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9122 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9123 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9124 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_args.class, metaDataMap);
|
|
|
9125 |
}
|
|
|
9126 |
|
|
|
9127 |
public getInventoryItemFromId_args() {
|
|
|
9128 |
}
|
|
|
9129 |
|
|
|
9130 |
public getInventoryItemFromId_args(
|
|
|
9131 |
long inventoryItemId)
|
|
|
9132 |
{
|
|
|
9133 |
this();
|
|
|
9134 |
this.inventoryItemId = inventoryItemId;
|
|
|
9135 |
setInventoryItemIdIsSet(true);
|
|
|
9136 |
}
|
|
|
9137 |
|
|
|
9138 |
/**
|
|
|
9139 |
* Performs a deep copy on <i>other</i>.
|
|
|
9140 |
*/
|
|
|
9141 |
public getInventoryItemFromId_args(getInventoryItemFromId_args other) {
|
|
|
9142 |
__isset_bit_vector.clear();
|
|
|
9143 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9144 |
this.inventoryItemId = other.inventoryItemId;
|
|
|
9145 |
}
|
|
|
9146 |
|
|
|
9147 |
public getInventoryItemFromId_args deepCopy() {
|
|
|
9148 |
return new getInventoryItemFromId_args(this);
|
|
|
9149 |
}
|
|
|
9150 |
|
|
|
9151 |
@Override
|
|
|
9152 |
public void clear() {
|
|
|
9153 |
setInventoryItemIdIsSet(false);
|
|
|
9154 |
this.inventoryItemId = 0;
|
|
|
9155 |
}
|
|
|
9156 |
|
|
|
9157 |
public long getInventoryItemId() {
|
|
|
9158 |
return this.inventoryItemId;
|
|
|
9159 |
}
|
|
|
9160 |
|
|
|
9161 |
public void setInventoryItemId(long inventoryItemId) {
|
|
|
9162 |
this.inventoryItemId = inventoryItemId;
|
|
|
9163 |
setInventoryItemIdIsSet(true);
|
|
|
9164 |
}
|
|
|
9165 |
|
|
|
9166 |
public void unsetInventoryItemId() {
|
|
|
9167 |
__isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
|
|
|
9168 |
}
|
|
|
9169 |
|
|
|
9170 |
/** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
|
|
|
9171 |
public boolean isSetInventoryItemId() {
|
|
|
9172 |
return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
|
|
|
9173 |
}
|
|
|
9174 |
|
|
|
9175 |
public void setInventoryItemIdIsSet(boolean value) {
|
|
|
9176 |
__isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
|
|
|
9177 |
}
|
|
|
9178 |
|
|
|
9179 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9180 |
switch (field) {
|
|
|
9181 |
case INVENTORY_ITEM_ID:
|
|
|
9182 |
if (value == null) {
|
|
|
9183 |
unsetInventoryItemId();
|
|
|
9184 |
} else {
|
|
|
9185 |
setInventoryItemId((Long)value);
|
|
|
9186 |
}
|
|
|
9187 |
break;
|
|
|
9188 |
|
|
|
9189 |
}
|
|
|
9190 |
}
|
|
|
9191 |
|
|
|
9192 |
public Object getFieldValue(_Fields field) {
|
|
|
9193 |
switch (field) {
|
|
|
9194 |
case INVENTORY_ITEM_ID:
|
|
|
9195 |
return Long.valueOf(getInventoryItemId());
|
|
|
9196 |
|
|
|
9197 |
}
|
|
|
9198 |
throw new IllegalStateException();
|
|
|
9199 |
}
|
|
|
9200 |
|
|
|
9201 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9202 |
public boolean isSet(_Fields field) {
|
|
|
9203 |
if (field == null) {
|
|
|
9204 |
throw new IllegalArgumentException();
|
|
|
9205 |
}
|
|
|
9206 |
|
|
|
9207 |
switch (field) {
|
|
|
9208 |
case INVENTORY_ITEM_ID:
|
|
|
9209 |
return isSetInventoryItemId();
|
|
|
9210 |
}
|
|
|
9211 |
throw new IllegalStateException();
|
|
|
9212 |
}
|
|
|
9213 |
|
|
|
9214 |
@Override
|
|
|
9215 |
public boolean equals(Object that) {
|
|
|
9216 |
if (that == null)
|
|
|
9217 |
return false;
|
|
|
9218 |
if (that instanceof getInventoryItemFromId_args)
|
|
|
9219 |
return this.equals((getInventoryItemFromId_args)that);
|
|
|
9220 |
return false;
|
|
|
9221 |
}
|
|
|
9222 |
|
|
|
9223 |
public boolean equals(getInventoryItemFromId_args that) {
|
|
|
9224 |
if (that == null)
|
|
|
9225 |
return false;
|
|
|
9226 |
|
|
|
9227 |
boolean this_present_inventoryItemId = true;
|
|
|
9228 |
boolean that_present_inventoryItemId = true;
|
|
|
9229 |
if (this_present_inventoryItemId || that_present_inventoryItemId) {
|
|
|
9230 |
if (!(this_present_inventoryItemId && that_present_inventoryItemId))
|
|
|
9231 |
return false;
|
|
|
9232 |
if (this.inventoryItemId != that.inventoryItemId)
|
|
|
9233 |
return false;
|
|
|
9234 |
}
|
|
|
9235 |
|
|
|
9236 |
return true;
|
|
|
9237 |
}
|
|
|
9238 |
|
|
|
9239 |
@Override
|
|
|
9240 |
public int hashCode() {
|
|
|
9241 |
return 0;
|
|
|
9242 |
}
|
|
|
9243 |
|
|
|
9244 |
public int compareTo(getInventoryItemFromId_args other) {
|
|
|
9245 |
if (!getClass().equals(other.getClass())) {
|
|
|
9246 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9247 |
}
|
|
|
9248 |
|
|
|
9249 |
int lastComparison = 0;
|
|
|
9250 |
getInventoryItemFromId_args typedOther = (getInventoryItemFromId_args)other;
|
|
|
9251 |
|
|
|
9252 |
lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
|
|
|
9253 |
if (lastComparison != 0) {
|
|
|
9254 |
return lastComparison;
|
|
|
9255 |
}
|
|
|
9256 |
if (isSetInventoryItemId()) {
|
|
|
9257 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
|
|
|
9258 |
if (lastComparison != 0) {
|
|
|
9259 |
return lastComparison;
|
|
|
9260 |
}
|
|
|
9261 |
}
|
|
|
9262 |
return 0;
|
|
|
9263 |
}
|
|
|
9264 |
|
|
|
9265 |
public _Fields fieldForId(int fieldId) {
|
|
|
9266 |
return _Fields.findByThriftId(fieldId);
|
|
|
9267 |
}
|
|
|
9268 |
|
|
|
9269 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9270 |
org.apache.thrift.protocol.TField field;
|
|
|
9271 |
iprot.readStructBegin();
|
|
|
9272 |
while (true)
|
|
|
9273 |
{
|
|
|
9274 |
field = iprot.readFieldBegin();
|
|
|
9275 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9276 |
break;
|
|
|
9277 |
}
|
|
|
9278 |
switch (field.id) {
|
|
|
9279 |
case 1: // INVENTORY_ITEM_ID
|
|
|
9280 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
9281 |
this.inventoryItemId = iprot.readI64();
|
|
|
9282 |
setInventoryItemIdIsSet(true);
|
|
|
9283 |
} else {
|
|
|
9284 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9285 |
}
|
|
|
9286 |
break;
|
|
|
9287 |
default:
|
|
|
9288 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9289 |
}
|
|
|
9290 |
iprot.readFieldEnd();
|
|
|
9291 |
}
|
|
|
9292 |
iprot.readStructEnd();
|
|
|
9293 |
validate();
|
|
|
9294 |
}
|
|
|
9295 |
|
|
|
9296 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9297 |
validate();
|
|
|
9298 |
|
|
|
9299 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9300 |
oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
|
|
|
9301 |
oprot.writeI64(this.inventoryItemId);
|
|
|
9302 |
oprot.writeFieldEnd();
|
|
|
9303 |
oprot.writeFieldStop();
|
|
|
9304 |
oprot.writeStructEnd();
|
|
|
9305 |
}
|
|
|
9306 |
|
|
|
9307 |
@Override
|
|
|
9308 |
public String toString() {
|
|
|
9309 |
StringBuilder sb = new StringBuilder("getInventoryItemFromId_args(");
|
|
|
9310 |
boolean first = true;
|
|
|
9311 |
|
|
|
9312 |
sb.append("inventoryItemId:");
|
|
|
9313 |
sb.append(this.inventoryItemId);
|
|
|
9314 |
first = false;
|
|
|
9315 |
sb.append(")");
|
|
|
9316 |
return sb.toString();
|
|
|
9317 |
}
|
|
|
9318 |
|
|
|
9319 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9320 |
// check for required fields
|
|
|
9321 |
}
|
|
|
9322 |
|
|
|
9323 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9324 |
try {
|
|
|
9325 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9326 |
} catch (org.apache.thrift.TException te) {
|
|
|
9327 |
throw new java.io.IOException(te);
|
|
|
9328 |
}
|
|
|
9329 |
}
|
|
|
9330 |
|
|
|
9331 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9332 |
try {
|
| 5372 |
mandeep.dh |
9333 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
9334 |
__isset_bit_vector = new BitSet(1);
|
| 5185 |
mandeep.dh |
9335 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9336 |
} catch (org.apache.thrift.TException te) {
|
|
|
9337 |
throw new java.io.IOException(te);
|
|
|
9338 |
}
|
|
|
9339 |
}
|
|
|
9340 |
|
|
|
9341 |
}
|
|
|
9342 |
|
|
|
9343 |
public static class getInventoryItemFromId_result implements org.apache.thrift.TBase<getInventoryItemFromId_result, getInventoryItemFromId_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
9344 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_result");
|
|
|
9345 |
|
|
|
9346 |
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);
|
|
|
9347 |
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);
|
|
|
9348 |
|
|
|
9349 |
private InventoryItem success; // required
|
|
|
9350 |
private WarehouseServiceException wex; // required
|
|
|
9351 |
|
|
|
9352 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9353 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9354 |
SUCCESS((short)0, "success"),
|
|
|
9355 |
WEX((short)1, "wex");
|
|
|
9356 |
|
|
|
9357 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9358 |
|
|
|
9359 |
static {
|
|
|
9360 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9361 |
byName.put(field.getFieldName(), field);
|
|
|
9362 |
}
|
|
|
9363 |
}
|
|
|
9364 |
|
|
|
9365 |
/**
|
|
|
9366 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9367 |
*/
|
|
|
9368 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9369 |
switch(fieldId) {
|
|
|
9370 |
case 0: // SUCCESS
|
|
|
9371 |
return SUCCESS;
|
|
|
9372 |
case 1: // WEX
|
|
|
9373 |
return WEX;
|
|
|
9374 |
default:
|
|
|
9375 |
return null;
|
|
|
9376 |
}
|
|
|
9377 |
}
|
|
|
9378 |
|
|
|
9379 |
/**
|
|
|
9380 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9381 |
* if it is not found.
|
|
|
9382 |
*/
|
|
|
9383 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9384 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9385 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9386 |
return fields;
|
|
|
9387 |
}
|
|
|
9388 |
|
|
|
9389 |
/**
|
|
|
9390 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9391 |
*/
|
|
|
9392 |
public static _Fields findByName(String name) {
|
|
|
9393 |
return byName.get(name);
|
|
|
9394 |
}
|
|
|
9395 |
|
|
|
9396 |
private final short _thriftId;
|
|
|
9397 |
private final String _fieldName;
|
|
|
9398 |
|
|
|
9399 |
_Fields(short thriftId, String fieldName) {
|
|
|
9400 |
_thriftId = thriftId;
|
|
|
9401 |
_fieldName = fieldName;
|
|
|
9402 |
}
|
|
|
9403 |
|
|
|
9404 |
public short getThriftFieldId() {
|
|
|
9405 |
return _thriftId;
|
|
|
9406 |
}
|
|
|
9407 |
|
|
|
9408 |
public String getFieldName() {
|
|
|
9409 |
return _fieldName;
|
|
|
9410 |
}
|
|
|
9411 |
}
|
|
|
9412 |
|
|
|
9413 |
// isset id assignments
|
|
|
9414 |
|
|
|
9415 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9416 |
static {
|
|
|
9417 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9418 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9419 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
9420 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9421 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
9422 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9423 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_result.class, metaDataMap);
|
|
|
9424 |
}
|
|
|
9425 |
|
|
|
9426 |
public getInventoryItemFromId_result() {
|
|
|
9427 |
}
|
|
|
9428 |
|
|
|
9429 |
public getInventoryItemFromId_result(
|
|
|
9430 |
InventoryItem success,
|
|
|
9431 |
WarehouseServiceException wex)
|
|
|
9432 |
{
|
|
|
9433 |
this();
|
|
|
9434 |
this.success = success;
|
|
|
9435 |
this.wex = wex;
|
|
|
9436 |
}
|
|
|
9437 |
|
|
|
9438 |
/**
|
|
|
9439 |
* Performs a deep copy on <i>other</i>.
|
|
|
9440 |
*/
|
|
|
9441 |
public getInventoryItemFromId_result(getInventoryItemFromId_result other) {
|
|
|
9442 |
if (other.isSetSuccess()) {
|
|
|
9443 |
this.success = new InventoryItem(other.success);
|
|
|
9444 |
}
|
|
|
9445 |
if (other.isSetWex()) {
|
|
|
9446 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
9447 |
}
|
|
|
9448 |
}
|
|
|
9449 |
|
|
|
9450 |
public getInventoryItemFromId_result deepCopy() {
|
|
|
9451 |
return new getInventoryItemFromId_result(this);
|
|
|
9452 |
}
|
|
|
9453 |
|
|
|
9454 |
@Override
|
|
|
9455 |
public void clear() {
|
|
|
9456 |
this.success = null;
|
|
|
9457 |
this.wex = null;
|
|
|
9458 |
}
|
|
|
9459 |
|
|
|
9460 |
public InventoryItem getSuccess() {
|
|
|
9461 |
return this.success;
|
|
|
9462 |
}
|
|
|
9463 |
|
|
|
9464 |
public void setSuccess(InventoryItem success) {
|
|
|
9465 |
this.success = success;
|
|
|
9466 |
}
|
|
|
9467 |
|
|
|
9468 |
public void unsetSuccess() {
|
|
|
9469 |
this.success = null;
|
|
|
9470 |
}
|
|
|
9471 |
|
|
|
9472 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
9473 |
public boolean isSetSuccess() {
|
|
|
9474 |
return this.success != null;
|
|
|
9475 |
}
|
|
|
9476 |
|
|
|
9477 |
public void setSuccessIsSet(boolean value) {
|
|
|
9478 |
if (!value) {
|
|
|
9479 |
this.success = null;
|
|
|
9480 |
}
|
|
|
9481 |
}
|
|
|
9482 |
|
|
|
9483 |
public WarehouseServiceException getWex() {
|
|
|
9484 |
return this.wex;
|
|
|
9485 |
}
|
|
|
9486 |
|
|
|
9487 |
public void setWex(WarehouseServiceException wex) {
|
|
|
9488 |
this.wex = wex;
|
|
|
9489 |
}
|
|
|
9490 |
|
|
|
9491 |
public void unsetWex() {
|
|
|
9492 |
this.wex = null;
|
|
|
9493 |
}
|
|
|
9494 |
|
|
|
9495 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
9496 |
public boolean isSetWex() {
|
|
|
9497 |
return this.wex != null;
|
|
|
9498 |
}
|
|
|
9499 |
|
|
|
9500 |
public void setWexIsSet(boolean value) {
|
|
|
9501 |
if (!value) {
|
|
|
9502 |
this.wex = null;
|
|
|
9503 |
}
|
|
|
9504 |
}
|
|
|
9505 |
|
|
|
9506 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9507 |
switch (field) {
|
|
|
9508 |
case SUCCESS:
|
|
|
9509 |
if (value == null) {
|
|
|
9510 |
unsetSuccess();
|
|
|
9511 |
} else {
|
|
|
9512 |
setSuccess((InventoryItem)value);
|
|
|
9513 |
}
|
|
|
9514 |
break;
|
|
|
9515 |
|
|
|
9516 |
case WEX:
|
|
|
9517 |
if (value == null) {
|
|
|
9518 |
unsetWex();
|
|
|
9519 |
} else {
|
|
|
9520 |
setWex((WarehouseServiceException)value);
|
|
|
9521 |
}
|
|
|
9522 |
break;
|
|
|
9523 |
|
|
|
9524 |
}
|
|
|
9525 |
}
|
|
|
9526 |
|
|
|
9527 |
public Object getFieldValue(_Fields field) {
|
|
|
9528 |
switch (field) {
|
|
|
9529 |
case SUCCESS:
|
|
|
9530 |
return getSuccess();
|
|
|
9531 |
|
|
|
9532 |
case WEX:
|
|
|
9533 |
return getWex();
|
|
|
9534 |
|
|
|
9535 |
}
|
|
|
9536 |
throw new IllegalStateException();
|
|
|
9537 |
}
|
|
|
9538 |
|
|
|
9539 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9540 |
public boolean isSet(_Fields field) {
|
|
|
9541 |
if (field == null) {
|
|
|
9542 |
throw new IllegalArgumentException();
|
|
|
9543 |
}
|
|
|
9544 |
|
|
|
9545 |
switch (field) {
|
|
|
9546 |
case SUCCESS:
|
|
|
9547 |
return isSetSuccess();
|
|
|
9548 |
case WEX:
|
|
|
9549 |
return isSetWex();
|
|
|
9550 |
}
|
|
|
9551 |
throw new IllegalStateException();
|
|
|
9552 |
}
|
|
|
9553 |
|
|
|
9554 |
@Override
|
|
|
9555 |
public boolean equals(Object that) {
|
|
|
9556 |
if (that == null)
|
|
|
9557 |
return false;
|
|
|
9558 |
if (that instanceof getInventoryItemFromId_result)
|
|
|
9559 |
return this.equals((getInventoryItemFromId_result)that);
|
|
|
9560 |
return false;
|
|
|
9561 |
}
|
|
|
9562 |
|
|
|
9563 |
public boolean equals(getInventoryItemFromId_result that) {
|
|
|
9564 |
if (that == null)
|
|
|
9565 |
return false;
|
|
|
9566 |
|
|
|
9567 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
9568 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
9569 |
if (this_present_success || that_present_success) {
|
|
|
9570 |
if (!(this_present_success && that_present_success))
|
|
|
9571 |
return false;
|
|
|
9572 |
if (!this.success.equals(that.success))
|
|
|
9573 |
return false;
|
|
|
9574 |
}
|
|
|
9575 |
|
|
|
9576 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
9577 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
9578 |
if (this_present_wex || that_present_wex) {
|
|
|
9579 |
if (!(this_present_wex && that_present_wex))
|
|
|
9580 |
return false;
|
|
|
9581 |
if (!this.wex.equals(that.wex))
|
|
|
9582 |
return false;
|
|
|
9583 |
}
|
|
|
9584 |
|
|
|
9585 |
return true;
|
|
|
9586 |
}
|
|
|
9587 |
|
|
|
9588 |
@Override
|
|
|
9589 |
public int hashCode() {
|
|
|
9590 |
return 0;
|
|
|
9591 |
}
|
|
|
9592 |
|
|
|
9593 |
public int compareTo(getInventoryItemFromId_result other) {
|
|
|
9594 |
if (!getClass().equals(other.getClass())) {
|
|
|
9595 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9596 |
}
|
|
|
9597 |
|
|
|
9598 |
int lastComparison = 0;
|
|
|
9599 |
getInventoryItemFromId_result typedOther = (getInventoryItemFromId_result)other;
|
|
|
9600 |
|
|
|
9601 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
9602 |
if (lastComparison != 0) {
|
|
|
9603 |
return lastComparison;
|
|
|
9604 |
}
|
|
|
9605 |
if (isSetSuccess()) {
|
|
|
9606 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
9607 |
if (lastComparison != 0) {
|
|
|
9608 |
return lastComparison;
|
|
|
9609 |
}
|
|
|
9610 |
}
|
|
|
9611 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
9612 |
if (lastComparison != 0) {
|
|
|
9613 |
return lastComparison;
|
|
|
9614 |
}
|
|
|
9615 |
if (isSetWex()) {
|
|
|
9616 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
9617 |
if (lastComparison != 0) {
|
|
|
9618 |
return lastComparison;
|
|
|
9619 |
}
|
|
|
9620 |
}
|
|
|
9621 |
return 0;
|
|
|
9622 |
}
|
|
|
9623 |
|
|
|
9624 |
public _Fields fieldForId(int fieldId) {
|
|
|
9625 |
return _Fields.findByThriftId(fieldId);
|
|
|
9626 |
}
|
|
|
9627 |
|
|
|
9628 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9629 |
org.apache.thrift.protocol.TField field;
|
|
|
9630 |
iprot.readStructBegin();
|
|
|
9631 |
while (true)
|
|
|
9632 |
{
|
|
|
9633 |
field = iprot.readFieldBegin();
|
|
|
9634 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9635 |
break;
|
|
|
9636 |
}
|
|
|
9637 |
switch (field.id) {
|
|
|
9638 |
case 0: // SUCCESS
|
|
|
9639 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
9640 |
this.success = new InventoryItem();
|
|
|
9641 |
this.success.read(iprot);
|
|
|
9642 |
} else {
|
|
|
9643 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9644 |
}
|
|
|
9645 |
break;
|
|
|
9646 |
case 1: // WEX
|
|
|
9647 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
9648 |
this.wex = new WarehouseServiceException();
|
|
|
9649 |
this.wex.read(iprot);
|
|
|
9650 |
} else {
|
|
|
9651 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9652 |
}
|
|
|
9653 |
break;
|
|
|
9654 |
default:
|
|
|
9655 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9656 |
}
|
|
|
9657 |
iprot.readFieldEnd();
|
|
|
9658 |
}
|
|
|
9659 |
iprot.readStructEnd();
|
|
|
9660 |
validate();
|
|
|
9661 |
}
|
|
|
9662 |
|
|
|
9663 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9664 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9665 |
|
|
|
9666 |
if (this.isSetSuccess()) {
|
|
|
9667 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
9668 |
this.success.write(oprot);
|
|
|
9669 |
oprot.writeFieldEnd();
|
|
|
9670 |
} else if (this.isSetWex()) {
|
|
|
9671 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
9672 |
this.wex.write(oprot);
|
|
|
9673 |
oprot.writeFieldEnd();
|
|
|
9674 |
}
|
|
|
9675 |
oprot.writeFieldStop();
|
|
|
9676 |
oprot.writeStructEnd();
|
|
|
9677 |
}
|
|
|
9678 |
|
|
|
9679 |
@Override
|
|
|
9680 |
public String toString() {
|
|
|
9681 |
StringBuilder sb = new StringBuilder("getInventoryItemFromId_result(");
|
|
|
9682 |
boolean first = true;
|
|
|
9683 |
|
|
|
9684 |
sb.append("success:");
|
|
|
9685 |
if (this.success == null) {
|
|
|
9686 |
sb.append("null");
|
|
|
9687 |
} else {
|
|
|
9688 |
sb.append(this.success);
|
|
|
9689 |
}
|
|
|
9690 |
first = false;
|
|
|
9691 |
if (!first) sb.append(", ");
|
|
|
9692 |
sb.append("wex:");
|
|
|
9693 |
if (this.wex == null) {
|
|
|
9694 |
sb.append("null");
|
|
|
9695 |
} else {
|
|
|
9696 |
sb.append(this.wex);
|
|
|
9697 |
}
|
|
|
9698 |
first = false;
|
|
|
9699 |
sb.append(")");
|
|
|
9700 |
return sb.toString();
|
|
|
9701 |
}
|
|
|
9702 |
|
|
|
9703 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9704 |
// check for required fields
|
|
|
9705 |
}
|
|
|
9706 |
|
|
|
9707 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9708 |
try {
|
|
|
9709 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9710 |
} catch (org.apache.thrift.TException te) {
|
|
|
9711 |
throw new java.io.IOException(te);
|
|
|
9712 |
}
|
|
|
9713 |
}
|
|
|
9714 |
|
|
|
9715 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9716 |
try {
|
|
|
9717 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9718 |
} catch (org.apache.thrift.TException te) {
|
|
|
9719 |
throw new java.io.IOException(te);
|
|
|
9720 |
}
|
|
|
9721 |
}
|
|
|
9722 |
|
|
|
9723 |
}
|
|
|
9724 |
|
| 5372 |
mandeep.dh |
9725 |
public static class getPurchaseScans_args implements org.apache.thrift.TBase<getPurchaseScans_args, getPurchaseScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
9726 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_args");
|
|
|
9727 |
|
|
|
9728 |
private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
9729 |
private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
9730 |
|
|
|
9731 |
private long startDate; // required
|
|
|
9732 |
private long endDate; // required
|
|
|
9733 |
|
|
|
9734 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9735 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9736 |
START_DATE((short)1, "startDate"),
|
|
|
9737 |
END_DATE((short)2, "endDate");
|
|
|
9738 |
|
|
|
9739 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9740 |
|
|
|
9741 |
static {
|
|
|
9742 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9743 |
byName.put(field.getFieldName(), field);
|
|
|
9744 |
}
|
|
|
9745 |
}
|
|
|
9746 |
|
|
|
9747 |
/**
|
|
|
9748 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9749 |
*/
|
|
|
9750 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9751 |
switch(fieldId) {
|
|
|
9752 |
case 1: // START_DATE
|
|
|
9753 |
return START_DATE;
|
|
|
9754 |
case 2: // END_DATE
|
|
|
9755 |
return END_DATE;
|
|
|
9756 |
default:
|
|
|
9757 |
return null;
|
|
|
9758 |
}
|
|
|
9759 |
}
|
|
|
9760 |
|
|
|
9761 |
/**
|
|
|
9762 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9763 |
* if it is not found.
|
|
|
9764 |
*/
|
|
|
9765 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9766 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9767 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9768 |
return fields;
|
|
|
9769 |
}
|
|
|
9770 |
|
|
|
9771 |
/**
|
|
|
9772 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9773 |
*/
|
|
|
9774 |
public static _Fields findByName(String name) {
|
|
|
9775 |
return byName.get(name);
|
|
|
9776 |
}
|
|
|
9777 |
|
|
|
9778 |
private final short _thriftId;
|
|
|
9779 |
private final String _fieldName;
|
|
|
9780 |
|
|
|
9781 |
_Fields(short thriftId, String fieldName) {
|
|
|
9782 |
_thriftId = thriftId;
|
|
|
9783 |
_fieldName = fieldName;
|
|
|
9784 |
}
|
|
|
9785 |
|
|
|
9786 |
public short getThriftFieldId() {
|
|
|
9787 |
return _thriftId;
|
|
|
9788 |
}
|
|
|
9789 |
|
|
|
9790 |
public String getFieldName() {
|
|
|
9791 |
return _fieldName;
|
|
|
9792 |
}
|
|
|
9793 |
}
|
|
|
9794 |
|
|
|
9795 |
// isset id assignments
|
|
|
9796 |
private static final int __STARTDATE_ISSET_ID = 0;
|
|
|
9797 |
private static final int __ENDDATE_ISSET_ID = 1;
|
|
|
9798 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
9799 |
|
|
|
9800 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9801 |
static {
|
|
|
9802 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9803 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9804 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9805 |
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9806 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9807 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9808 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_args.class, metaDataMap);
|
|
|
9809 |
}
|
|
|
9810 |
|
|
|
9811 |
public getPurchaseScans_args() {
|
|
|
9812 |
}
|
|
|
9813 |
|
|
|
9814 |
public getPurchaseScans_args(
|
|
|
9815 |
long startDate,
|
|
|
9816 |
long endDate)
|
|
|
9817 |
{
|
|
|
9818 |
this();
|
|
|
9819 |
this.startDate = startDate;
|
|
|
9820 |
setStartDateIsSet(true);
|
|
|
9821 |
this.endDate = endDate;
|
|
|
9822 |
setEndDateIsSet(true);
|
|
|
9823 |
}
|
|
|
9824 |
|
|
|
9825 |
/**
|
|
|
9826 |
* Performs a deep copy on <i>other</i>.
|
|
|
9827 |
*/
|
|
|
9828 |
public getPurchaseScans_args(getPurchaseScans_args other) {
|
|
|
9829 |
__isset_bit_vector.clear();
|
|
|
9830 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9831 |
this.startDate = other.startDate;
|
|
|
9832 |
this.endDate = other.endDate;
|
|
|
9833 |
}
|
|
|
9834 |
|
|
|
9835 |
public getPurchaseScans_args deepCopy() {
|
|
|
9836 |
return new getPurchaseScans_args(this);
|
|
|
9837 |
}
|
|
|
9838 |
|
|
|
9839 |
@Override
|
|
|
9840 |
public void clear() {
|
|
|
9841 |
setStartDateIsSet(false);
|
|
|
9842 |
this.startDate = 0;
|
|
|
9843 |
setEndDateIsSet(false);
|
|
|
9844 |
this.endDate = 0;
|
|
|
9845 |
}
|
|
|
9846 |
|
|
|
9847 |
public long getStartDate() {
|
|
|
9848 |
return this.startDate;
|
|
|
9849 |
}
|
|
|
9850 |
|
|
|
9851 |
public void setStartDate(long startDate) {
|
|
|
9852 |
this.startDate = startDate;
|
|
|
9853 |
setStartDateIsSet(true);
|
|
|
9854 |
}
|
|
|
9855 |
|
|
|
9856 |
public void unsetStartDate() {
|
|
|
9857 |
__isset_bit_vector.clear(__STARTDATE_ISSET_ID);
|
|
|
9858 |
}
|
|
|
9859 |
|
|
|
9860 |
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
|
|
|
9861 |
public boolean isSetStartDate() {
|
|
|
9862 |
return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
|
|
|
9863 |
}
|
|
|
9864 |
|
|
|
9865 |
public void setStartDateIsSet(boolean value) {
|
|
|
9866 |
__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
|
|
|
9867 |
}
|
|
|
9868 |
|
|
|
9869 |
public long getEndDate() {
|
|
|
9870 |
return this.endDate;
|
|
|
9871 |
}
|
|
|
9872 |
|
|
|
9873 |
public void setEndDate(long endDate) {
|
|
|
9874 |
this.endDate = endDate;
|
|
|
9875 |
setEndDateIsSet(true);
|
|
|
9876 |
}
|
|
|
9877 |
|
|
|
9878 |
public void unsetEndDate() {
|
|
|
9879 |
__isset_bit_vector.clear(__ENDDATE_ISSET_ID);
|
|
|
9880 |
}
|
|
|
9881 |
|
|
|
9882 |
/** Returns true if field endDate is set (has been assigned a value) and false otherwise */
|
|
|
9883 |
public boolean isSetEndDate() {
|
|
|
9884 |
return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
|
|
|
9885 |
}
|
|
|
9886 |
|
|
|
9887 |
public void setEndDateIsSet(boolean value) {
|
|
|
9888 |
__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
|
|
|
9889 |
}
|
|
|
9890 |
|
|
|
9891 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9892 |
switch (field) {
|
|
|
9893 |
case START_DATE:
|
|
|
9894 |
if (value == null) {
|
|
|
9895 |
unsetStartDate();
|
|
|
9896 |
} else {
|
|
|
9897 |
setStartDate((Long)value);
|
|
|
9898 |
}
|
|
|
9899 |
break;
|
|
|
9900 |
|
|
|
9901 |
case END_DATE:
|
|
|
9902 |
if (value == null) {
|
|
|
9903 |
unsetEndDate();
|
|
|
9904 |
} else {
|
|
|
9905 |
setEndDate((Long)value);
|
|
|
9906 |
}
|
|
|
9907 |
break;
|
|
|
9908 |
|
|
|
9909 |
}
|
|
|
9910 |
}
|
|
|
9911 |
|
|
|
9912 |
public Object getFieldValue(_Fields field) {
|
|
|
9913 |
switch (field) {
|
|
|
9914 |
case START_DATE:
|
|
|
9915 |
return Long.valueOf(getStartDate());
|
|
|
9916 |
|
|
|
9917 |
case END_DATE:
|
|
|
9918 |
return Long.valueOf(getEndDate());
|
|
|
9919 |
|
|
|
9920 |
}
|
|
|
9921 |
throw new IllegalStateException();
|
|
|
9922 |
}
|
|
|
9923 |
|
|
|
9924 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9925 |
public boolean isSet(_Fields field) {
|
|
|
9926 |
if (field == null) {
|
|
|
9927 |
throw new IllegalArgumentException();
|
|
|
9928 |
}
|
|
|
9929 |
|
|
|
9930 |
switch (field) {
|
|
|
9931 |
case START_DATE:
|
|
|
9932 |
return isSetStartDate();
|
|
|
9933 |
case END_DATE:
|
|
|
9934 |
return isSetEndDate();
|
|
|
9935 |
}
|
|
|
9936 |
throw new IllegalStateException();
|
|
|
9937 |
}
|
|
|
9938 |
|
|
|
9939 |
@Override
|
|
|
9940 |
public boolean equals(Object that) {
|
|
|
9941 |
if (that == null)
|
|
|
9942 |
return false;
|
|
|
9943 |
if (that instanceof getPurchaseScans_args)
|
|
|
9944 |
return this.equals((getPurchaseScans_args)that);
|
|
|
9945 |
return false;
|
|
|
9946 |
}
|
|
|
9947 |
|
|
|
9948 |
public boolean equals(getPurchaseScans_args that) {
|
|
|
9949 |
if (that == null)
|
|
|
9950 |
return false;
|
|
|
9951 |
|
|
|
9952 |
boolean this_present_startDate = true;
|
|
|
9953 |
boolean that_present_startDate = true;
|
|
|
9954 |
if (this_present_startDate || that_present_startDate) {
|
|
|
9955 |
if (!(this_present_startDate && that_present_startDate))
|
|
|
9956 |
return false;
|
|
|
9957 |
if (this.startDate != that.startDate)
|
|
|
9958 |
return false;
|
|
|
9959 |
}
|
|
|
9960 |
|
|
|
9961 |
boolean this_present_endDate = true;
|
|
|
9962 |
boolean that_present_endDate = true;
|
|
|
9963 |
if (this_present_endDate || that_present_endDate) {
|
|
|
9964 |
if (!(this_present_endDate && that_present_endDate))
|
|
|
9965 |
return false;
|
|
|
9966 |
if (this.endDate != that.endDate)
|
|
|
9967 |
return false;
|
|
|
9968 |
}
|
|
|
9969 |
|
|
|
9970 |
return true;
|
|
|
9971 |
}
|
|
|
9972 |
|
|
|
9973 |
@Override
|
|
|
9974 |
public int hashCode() {
|
|
|
9975 |
return 0;
|
|
|
9976 |
}
|
|
|
9977 |
|
|
|
9978 |
public int compareTo(getPurchaseScans_args other) {
|
|
|
9979 |
if (!getClass().equals(other.getClass())) {
|
|
|
9980 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9981 |
}
|
|
|
9982 |
|
|
|
9983 |
int lastComparison = 0;
|
|
|
9984 |
getPurchaseScans_args typedOther = (getPurchaseScans_args)other;
|
|
|
9985 |
|
|
|
9986 |
lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
|
|
|
9987 |
if (lastComparison != 0) {
|
|
|
9988 |
return lastComparison;
|
|
|
9989 |
}
|
|
|
9990 |
if (isSetStartDate()) {
|
|
|
9991 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
|
|
|
9992 |
if (lastComparison != 0) {
|
|
|
9993 |
return lastComparison;
|
|
|
9994 |
}
|
|
|
9995 |
}
|
|
|
9996 |
lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
|
|
|
9997 |
if (lastComparison != 0) {
|
|
|
9998 |
return lastComparison;
|
|
|
9999 |
}
|
|
|
10000 |
if (isSetEndDate()) {
|
|
|
10001 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
|
|
|
10002 |
if (lastComparison != 0) {
|
|
|
10003 |
return lastComparison;
|
|
|
10004 |
}
|
|
|
10005 |
}
|
|
|
10006 |
return 0;
|
|
|
10007 |
}
|
|
|
10008 |
|
|
|
10009 |
public _Fields fieldForId(int fieldId) {
|
|
|
10010 |
return _Fields.findByThriftId(fieldId);
|
|
|
10011 |
}
|
|
|
10012 |
|
|
|
10013 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10014 |
org.apache.thrift.protocol.TField field;
|
|
|
10015 |
iprot.readStructBegin();
|
|
|
10016 |
while (true)
|
|
|
10017 |
{
|
|
|
10018 |
field = iprot.readFieldBegin();
|
|
|
10019 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10020 |
break;
|
|
|
10021 |
}
|
|
|
10022 |
switch (field.id) {
|
|
|
10023 |
case 1: // START_DATE
|
|
|
10024 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10025 |
this.startDate = iprot.readI64();
|
|
|
10026 |
setStartDateIsSet(true);
|
|
|
10027 |
} else {
|
|
|
10028 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10029 |
}
|
|
|
10030 |
break;
|
|
|
10031 |
case 2: // END_DATE
|
|
|
10032 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10033 |
this.endDate = iprot.readI64();
|
|
|
10034 |
setEndDateIsSet(true);
|
|
|
10035 |
} else {
|
|
|
10036 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10037 |
}
|
|
|
10038 |
break;
|
|
|
10039 |
default:
|
|
|
10040 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10041 |
}
|
|
|
10042 |
iprot.readFieldEnd();
|
|
|
10043 |
}
|
|
|
10044 |
iprot.readStructEnd();
|
|
|
10045 |
validate();
|
|
|
10046 |
}
|
|
|
10047 |
|
|
|
10048 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10049 |
validate();
|
|
|
10050 |
|
|
|
10051 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10052 |
oprot.writeFieldBegin(START_DATE_FIELD_DESC);
|
|
|
10053 |
oprot.writeI64(this.startDate);
|
|
|
10054 |
oprot.writeFieldEnd();
|
|
|
10055 |
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
|
|
|
10056 |
oprot.writeI64(this.endDate);
|
|
|
10057 |
oprot.writeFieldEnd();
|
|
|
10058 |
oprot.writeFieldStop();
|
|
|
10059 |
oprot.writeStructEnd();
|
|
|
10060 |
}
|
|
|
10061 |
|
|
|
10062 |
@Override
|
|
|
10063 |
public String toString() {
|
|
|
10064 |
StringBuilder sb = new StringBuilder("getPurchaseScans_args(");
|
|
|
10065 |
boolean first = true;
|
|
|
10066 |
|
|
|
10067 |
sb.append("startDate:");
|
|
|
10068 |
sb.append(this.startDate);
|
|
|
10069 |
first = false;
|
|
|
10070 |
if (!first) sb.append(", ");
|
|
|
10071 |
sb.append("endDate:");
|
|
|
10072 |
sb.append(this.endDate);
|
|
|
10073 |
first = false;
|
|
|
10074 |
sb.append(")");
|
|
|
10075 |
return sb.toString();
|
|
|
10076 |
}
|
|
|
10077 |
|
|
|
10078 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10079 |
// check for required fields
|
|
|
10080 |
}
|
|
|
10081 |
|
|
|
10082 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10083 |
try {
|
|
|
10084 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10085 |
} catch (org.apache.thrift.TException te) {
|
|
|
10086 |
throw new java.io.IOException(te);
|
|
|
10087 |
}
|
|
|
10088 |
}
|
|
|
10089 |
|
|
|
10090 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10091 |
try {
|
|
|
10092 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
10093 |
__isset_bit_vector = new BitSet(1);
|
|
|
10094 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10095 |
} catch (org.apache.thrift.TException te) {
|
|
|
10096 |
throw new java.io.IOException(te);
|
|
|
10097 |
}
|
|
|
10098 |
}
|
|
|
10099 |
|
|
|
10100 |
}
|
|
|
10101 |
|
|
|
10102 |
public static class getPurchaseScans_result implements org.apache.thrift.TBase<getPurchaseScans_result, getPurchaseScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
10103 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_result");
|
|
|
10104 |
|
|
|
10105 |
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);
|
|
|
10106 |
|
|
|
10107 |
private List<DetailedPurchaseScan> success; // required
|
|
|
10108 |
|
|
|
10109 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10110 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10111 |
SUCCESS((short)0, "success");
|
|
|
10112 |
|
|
|
10113 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10114 |
|
|
|
10115 |
static {
|
|
|
10116 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10117 |
byName.put(field.getFieldName(), field);
|
|
|
10118 |
}
|
|
|
10119 |
}
|
|
|
10120 |
|
|
|
10121 |
/**
|
|
|
10122 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10123 |
*/
|
|
|
10124 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10125 |
switch(fieldId) {
|
|
|
10126 |
case 0: // SUCCESS
|
|
|
10127 |
return SUCCESS;
|
|
|
10128 |
default:
|
|
|
10129 |
return null;
|
|
|
10130 |
}
|
|
|
10131 |
}
|
|
|
10132 |
|
|
|
10133 |
/**
|
|
|
10134 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10135 |
* if it is not found.
|
|
|
10136 |
*/
|
|
|
10137 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10138 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10139 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10140 |
return fields;
|
|
|
10141 |
}
|
|
|
10142 |
|
|
|
10143 |
/**
|
|
|
10144 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10145 |
*/
|
|
|
10146 |
public static _Fields findByName(String name) {
|
|
|
10147 |
return byName.get(name);
|
|
|
10148 |
}
|
|
|
10149 |
|
|
|
10150 |
private final short _thriftId;
|
|
|
10151 |
private final String _fieldName;
|
|
|
10152 |
|
|
|
10153 |
_Fields(short thriftId, String fieldName) {
|
|
|
10154 |
_thriftId = thriftId;
|
|
|
10155 |
_fieldName = fieldName;
|
|
|
10156 |
}
|
|
|
10157 |
|
|
|
10158 |
public short getThriftFieldId() {
|
|
|
10159 |
return _thriftId;
|
|
|
10160 |
}
|
|
|
10161 |
|
|
|
10162 |
public String getFieldName() {
|
|
|
10163 |
return _fieldName;
|
|
|
10164 |
}
|
|
|
10165 |
}
|
|
|
10166 |
|
|
|
10167 |
// isset id assignments
|
|
|
10168 |
|
|
|
10169 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10170 |
static {
|
|
|
10171 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10172 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10173 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
10174 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DetailedPurchaseScan.class))));
|
|
|
10175 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10176 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_result.class, metaDataMap);
|
|
|
10177 |
}
|
|
|
10178 |
|
|
|
10179 |
public getPurchaseScans_result() {
|
|
|
10180 |
}
|
|
|
10181 |
|
|
|
10182 |
public getPurchaseScans_result(
|
|
|
10183 |
List<DetailedPurchaseScan> success)
|
|
|
10184 |
{
|
|
|
10185 |
this();
|
|
|
10186 |
this.success = success;
|
|
|
10187 |
}
|
|
|
10188 |
|
|
|
10189 |
/**
|
|
|
10190 |
* Performs a deep copy on <i>other</i>.
|
|
|
10191 |
*/
|
|
|
10192 |
public getPurchaseScans_result(getPurchaseScans_result other) {
|
|
|
10193 |
if (other.isSetSuccess()) {
|
|
|
10194 |
List<DetailedPurchaseScan> __this__success = new ArrayList<DetailedPurchaseScan>();
|
|
|
10195 |
for (DetailedPurchaseScan other_element : other.success) {
|
|
|
10196 |
__this__success.add(new DetailedPurchaseScan(other_element));
|
|
|
10197 |
}
|
|
|
10198 |
this.success = __this__success;
|
|
|
10199 |
}
|
|
|
10200 |
}
|
|
|
10201 |
|
|
|
10202 |
public getPurchaseScans_result deepCopy() {
|
|
|
10203 |
return new getPurchaseScans_result(this);
|
|
|
10204 |
}
|
|
|
10205 |
|
|
|
10206 |
@Override
|
|
|
10207 |
public void clear() {
|
|
|
10208 |
this.success = null;
|
|
|
10209 |
}
|
|
|
10210 |
|
|
|
10211 |
public int getSuccessSize() {
|
|
|
10212 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
10213 |
}
|
|
|
10214 |
|
|
|
10215 |
public java.util.Iterator<DetailedPurchaseScan> getSuccessIterator() {
|
|
|
10216 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
10217 |
}
|
|
|
10218 |
|
|
|
10219 |
public void addToSuccess(DetailedPurchaseScan elem) {
|
|
|
10220 |
if (this.success == null) {
|
|
|
10221 |
this.success = new ArrayList<DetailedPurchaseScan>();
|
|
|
10222 |
}
|
|
|
10223 |
this.success.add(elem);
|
|
|
10224 |
}
|
|
|
10225 |
|
|
|
10226 |
public List<DetailedPurchaseScan> getSuccess() {
|
|
|
10227 |
return this.success;
|
|
|
10228 |
}
|
|
|
10229 |
|
|
|
10230 |
public void setSuccess(List<DetailedPurchaseScan> success) {
|
|
|
10231 |
this.success = success;
|
|
|
10232 |
}
|
|
|
10233 |
|
|
|
10234 |
public void unsetSuccess() {
|
|
|
10235 |
this.success = null;
|
|
|
10236 |
}
|
|
|
10237 |
|
|
|
10238 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
10239 |
public boolean isSetSuccess() {
|
|
|
10240 |
return this.success != null;
|
|
|
10241 |
}
|
|
|
10242 |
|
|
|
10243 |
public void setSuccessIsSet(boolean value) {
|
|
|
10244 |
if (!value) {
|
|
|
10245 |
this.success = null;
|
|
|
10246 |
}
|
|
|
10247 |
}
|
|
|
10248 |
|
|
|
10249 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10250 |
switch (field) {
|
|
|
10251 |
case SUCCESS:
|
|
|
10252 |
if (value == null) {
|
|
|
10253 |
unsetSuccess();
|
|
|
10254 |
} else {
|
|
|
10255 |
setSuccess((List<DetailedPurchaseScan>)value);
|
|
|
10256 |
}
|
|
|
10257 |
break;
|
|
|
10258 |
|
|
|
10259 |
}
|
|
|
10260 |
}
|
|
|
10261 |
|
|
|
10262 |
public Object getFieldValue(_Fields field) {
|
|
|
10263 |
switch (field) {
|
|
|
10264 |
case SUCCESS:
|
|
|
10265 |
return getSuccess();
|
|
|
10266 |
|
|
|
10267 |
}
|
|
|
10268 |
throw new IllegalStateException();
|
|
|
10269 |
}
|
|
|
10270 |
|
|
|
10271 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10272 |
public boolean isSet(_Fields field) {
|
|
|
10273 |
if (field == null) {
|
|
|
10274 |
throw new IllegalArgumentException();
|
|
|
10275 |
}
|
|
|
10276 |
|
|
|
10277 |
switch (field) {
|
|
|
10278 |
case SUCCESS:
|
|
|
10279 |
return isSetSuccess();
|
|
|
10280 |
}
|
|
|
10281 |
throw new IllegalStateException();
|
|
|
10282 |
}
|
|
|
10283 |
|
|
|
10284 |
@Override
|
|
|
10285 |
public boolean equals(Object that) {
|
|
|
10286 |
if (that == null)
|
|
|
10287 |
return false;
|
|
|
10288 |
if (that instanceof getPurchaseScans_result)
|
|
|
10289 |
return this.equals((getPurchaseScans_result)that);
|
|
|
10290 |
return false;
|
|
|
10291 |
}
|
|
|
10292 |
|
|
|
10293 |
public boolean equals(getPurchaseScans_result that) {
|
|
|
10294 |
if (that == null)
|
|
|
10295 |
return false;
|
|
|
10296 |
|
|
|
10297 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
10298 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
10299 |
if (this_present_success || that_present_success) {
|
|
|
10300 |
if (!(this_present_success && that_present_success))
|
|
|
10301 |
return false;
|
|
|
10302 |
if (!this.success.equals(that.success))
|
|
|
10303 |
return false;
|
|
|
10304 |
}
|
|
|
10305 |
|
|
|
10306 |
return true;
|
|
|
10307 |
}
|
|
|
10308 |
|
|
|
10309 |
@Override
|
|
|
10310 |
public int hashCode() {
|
|
|
10311 |
return 0;
|
|
|
10312 |
}
|
|
|
10313 |
|
|
|
10314 |
public int compareTo(getPurchaseScans_result other) {
|
|
|
10315 |
if (!getClass().equals(other.getClass())) {
|
|
|
10316 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10317 |
}
|
|
|
10318 |
|
|
|
10319 |
int lastComparison = 0;
|
|
|
10320 |
getPurchaseScans_result typedOther = (getPurchaseScans_result)other;
|
|
|
10321 |
|
|
|
10322 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
10323 |
if (lastComparison != 0) {
|
|
|
10324 |
return lastComparison;
|
|
|
10325 |
}
|
|
|
10326 |
if (isSetSuccess()) {
|
|
|
10327 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
10328 |
if (lastComparison != 0) {
|
|
|
10329 |
return lastComparison;
|
|
|
10330 |
}
|
|
|
10331 |
}
|
|
|
10332 |
return 0;
|
|
|
10333 |
}
|
|
|
10334 |
|
|
|
10335 |
public _Fields fieldForId(int fieldId) {
|
|
|
10336 |
return _Fields.findByThriftId(fieldId);
|
|
|
10337 |
}
|
|
|
10338 |
|
|
|
10339 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10340 |
org.apache.thrift.protocol.TField field;
|
|
|
10341 |
iprot.readStructBegin();
|
|
|
10342 |
while (true)
|
|
|
10343 |
{
|
|
|
10344 |
field = iprot.readFieldBegin();
|
|
|
10345 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10346 |
break;
|
|
|
10347 |
}
|
|
|
10348 |
switch (field.id) {
|
|
|
10349 |
case 0: // SUCCESS
|
|
|
10350 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
10351 |
{
|
|
|
10352 |
org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
|
|
|
10353 |
this.success = new ArrayList<DetailedPurchaseScan>(_list12.size);
|
|
|
10354 |
for (int _i13 = 0; _i13 < _list12.size; ++_i13)
|
|
|
10355 |
{
|
|
|
10356 |
DetailedPurchaseScan _elem14; // required
|
|
|
10357 |
_elem14 = new DetailedPurchaseScan();
|
|
|
10358 |
_elem14.read(iprot);
|
|
|
10359 |
this.success.add(_elem14);
|
|
|
10360 |
}
|
|
|
10361 |
iprot.readListEnd();
|
|
|
10362 |
}
|
|
|
10363 |
} else {
|
|
|
10364 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10365 |
}
|
|
|
10366 |
break;
|
|
|
10367 |
default:
|
|
|
10368 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10369 |
}
|
|
|
10370 |
iprot.readFieldEnd();
|
|
|
10371 |
}
|
|
|
10372 |
iprot.readStructEnd();
|
|
|
10373 |
validate();
|
|
|
10374 |
}
|
|
|
10375 |
|
|
|
10376 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10377 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10378 |
|
|
|
10379 |
if (this.isSetSuccess()) {
|
|
|
10380 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
10381 |
{
|
|
|
10382 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
10383 |
for (DetailedPurchaseScan _iter15 : this.success)
|
|
|
10384 |
{
|
|
|
10385 |
_iter15.write(oprot);
|
|
|
10386 |
}
|
|
|
10387 |
oprot.writeListEnd();
|
|
|
10388 |
}
|
|
|
10389 |
oprot.writeFieldEnd();
|
|
|
10390 |
}
|
|
|
10391 |
oprot.writeFieldStop();
|
|
|
10392 |
oprot.writeStructEnd();
|
|
|
10393 |
}
|
|
|
10394 |
|
|
|
10395 |
@Override
|
|
|
10396 |
public String toString() {
|
|
|
10397 |
StringBuilder sb = new StringBuilder("getPurchaseScans_result(");
|
|
|
10398 |
boolean first = true;
|
|
|
10399 |
|
|
|
10400 |
sb.append("success:");
|
|
|
10401 |
if (this.success == null) {
|
|
|
10402 |
sb.append("null");
|
|
|
10403 |
} else {
|
|
|
10404 |
sb.append(this.success);
|
|
|
10405 |
}
|
|
|
10406 |
first = false;
|
|
|
10407 |
sb.append(")");
|
|
|
10408 |
return sb.toString();
|
|
|
10409 |
}
|
|
|
10410 |
|
|
|
10411 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10412 |
// check for required fields
|
|
|
10413 |
}
|
|
|
10414 |
|
|
|
10415 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10416 |
try {
|
|
|
10417 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10418 |
} catch (org.apache.thrift.TException te) {
|
|
|
10419 |
throw new java.io.IOException(te);
|
|
|
10420 |
}
|
|
|
10421 |
}
|
|
|
10422 |
|
|
|
10423 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10424 |
try {
|
|
|
10425 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10426 |
} catch (org.apache.thrift.TException te) {
|
|
|
10427 |
throw new java.io.IOException(te);
|
|
|
10428 |
}
|
|
|
10429 |
}
|
|
|
10430 |
|
|
|
10431 |
}
|
|
|
10432 |
|
| 2820 |
chandransh |
10433 |
}
|