| 2820 |
chandransh |
1 |
/**
|
| 3430 |
rajveer |
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
| 2820 |
chandransh |
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.warehouse;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
| 3430 |
rajveer |
18 |
import java.nio.ByteBuffer;
|
| 2820 |
chandransh |
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class WarehouseService {
|
|
|
24 |
|
| 3374 |
rajveer |
25 |
public interface Iface extends in.shop2020.generic.GenericService.Iface {
|
| 2820 |
chandransh |
26 |
|
|
|
27 |
/**
|
| 4496 |
mandeep.dh |
28 |
* Retrieves serialized inventory item given a serial number
|
| 2832 |
chandransh |
29 |
*
|
| 4496 |
mandeep.dh |
30 |
* @param serialNumber
|
| 2832 |
chandransh |
31 |
*/
|
| 4541 |
mandeep.dh |
32 |
public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2832 |
chandransh |
33 |
|
|
|
34 |
/**
|
| 5361 |
mandeep.dh |
35 |
* Retrieves non-serialized inventory item from a given supplier
|
| 2820 |
chandransh |
36 |
*
|
| 5530 |
mandeep.dh |
37 |
* @param itemNumber
|
| 4496 |
mandeep.dh |
38 |
* @param itemId
|
| 5530 |
mandeep.dh |
39 |
* @param fulfilmentWarehouseId
|
| 2820 |
chandransh |
40 |
*/
|
| 5530 |
mandeep.dh |
41 |
public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
42 |
|
|
|
43 |
/**
|
| 4496 |
mandeep.dh |
44 |
* Scan non-serialized items.
|
| 2820 |
chandransh |
45 |
*
|
| 5361 |
mandeep.dh |
46 |
* @param inventoryItem
|
| 2820 |
chandransh |
47 |
* @param type
|
| 4496 |
mandeep.dh |
48 |
* @param quantity
|
| 5361 |
mandeep.dh |
49 |
* @param billingWarehouseId
|
| 2820 |
chandransh |
50 |
*/
|
| 5361 |
mandeep.dh |
51 |
public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
52 |
|
| 4496 |
mandeep.dh |
53 |
/**
|
|
|
54 |
* Scan serialized items linked with an order. Returns its price.
|
|
|
55 |
*
|
| 4555 |
mandeep.dh |
56 |
* @param serialNumber
|
| 4496 |
mandeep.dh |
57 |
* @param type
|
|
|
58 |
* @param orderId
|
| 5110 |
mandeep.dh |
59 |
* @param fulfilmentWarehouseId
|
|
|
60 |
* @param quantity
|
|
|
61 |
* @param billingWarehouseId
|
| 4496 |
mandeep.dh |
62 |
*/
|
| 5110 |
mandeep.dh |
63 |
public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 4496 |
mandeep.dh |
64 |
|
|
|
65 |
/**
|
|
|
66 |
* Scan non-serialized items linked with an order.
|
|
|
67 |
*
|
| 5361 |
mandeep.dh |
68 |
* @param inventoryItem
|
| 4496 |
mandeep.dh |
69 |
* @param type
|
|
|
70 |
* @param quantity
|
|
|
71 |
* @param orderId
|
| 5110 |
mandeep.dh |
72 |
* @param fulfilmentWarehouseId
|
| 5361 |
mandeep.dh |
73 |
* @param billingWarehouseId
|
| 4496 |
mandeep.dh |
74 |
*/
|
| 5361 |
mandeep.dh |
75 |
public InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 4496 |
mandeep.dh |
76 |
|
|
|
77 |
/**
|
|
|
78 |
* Created item number to item id mapping
|
|
|
79 |
*
|
|
|
80 |
* @param itemNumber
|
|
|
81 |
* @param itemId
|
|
|
82 |
*/
|
|
|
83 |
public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException;
|
|
|
84 |
|
| 4622 |
amit.gupta |
85 |
/**
|
|
|
86 |
* Get itemNumber mappings for itemId
|
|
|
87 |
*
|
|
|
88 |
* @param itemId
|
|
|
89 |
*/
|
|
|
90 |
public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException;
|
|
|
91 |
|
| 5110 |
mandeep.dh |
92 |
/**
|
|
|
93 |
* Gets item ids for a given item number
|
|
|
94 |
*
|
|
|
95 |
* @param itemNumber
|
|
|
96 |
*/
|
|
|
97 |
public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException;
|
|
|
98 |
|
| 5185 |
mandeep.dh |
99 |
/**
|
|
|
100 |
* Retrieves all inventory items given a last scan type
|
|
|
101 |
*
|
|
|
102 |
* @param lastScanType
|
|
|
103 |
*/
|
|
|
104 |
public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
105 |
|
|
|
106 |
/**
|
|
|
107 |
* Retrieves inventory item given a inventoryItem id
|
|
|
108 |
*
|
|
|
109 |
* @param inventoryItemId
|
|
|
110 |
*/
|
|
|
111 |
public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
112 |
|
| 5372 |
mandeep.dh |
113 |
/**
|
|
|
114 |
* Returns the purchase scans grouped by items for Purchase register reconciliation
|
|
|
115 |
*
|
|
|
116 |
* @param startDate
|
|
|
117 |
* @param endDate
|
|
|
118 |
*/
|
|
|
119 |
public List<DetailedPurchaseScan> getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException;
|
|
|
120 |
|
| 5496 |
mandeep.dh |
121 |
/**
|
|
|
122 |
* Returns the invoices and the count of scans against on a given day.
|
|
|
123 |
*
|
|
|
124 |
* @param date
|
|
|
125 |
*/
|
|
|
126 |
public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException;
|
|
|
127 |
|
| 5620 |
mandeep.dh |
128 |
/**
|
|
|
129 |
* Returns inventory item for a given order
|
|
|
130 |
*
|
|
|
131 |
* @param orderId
|
|
|
132 |
*/
|
|
|
133 |
public InventoryItem getInventoryItemFromOrder(long orderId) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
134 |
|
| 5711 |
mandeep.dh |
135 |
/**
|
|
|
136 |
* Fetches the stock inventory age week-wise
|
|
|
137 |
*/
|
|
|
138 |
public List<InventoryAge> getInventoryAge() throws org.apache.thrift.TException;
|
|
|
139 |
|
| 6322 |
amar.kumar |
140 |
/**
|
|
|
141 |
* Fetches the scanRecords for a given item for a given time interval
|
|
|
142 |
*
|
|
|
143 |
* @param itemId
|
|
|
144 |
* @param fromDate
|
|
|
145 |
* @param toDate
|
|
|
146 |
*/
|
|
|
147 |
public List<Scan> getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException;
|
|
|
148 |
|
|
|
149 |
/**
|
|
|
150 |
* Fetches the scanRecords for a given serialNumber for a given time interval
|
|
|
151 |
*
|
|
|
152 |
* @param serialNumber
|
|
|
153 |
*/
|
|
|
154 |
public List<Scan> getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException;
|
|
|
155 |
|
| 6467 |
amar.kumar |
156 |
/**
|
| 6548 |
amar.kumar |
157 |
* Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
|
| 6467 |
amar.kumar |
158 |
*
|
|
|
159 |
* @param saleReturnItems
|
|
|
160 |
* @param vendorId
|
|
|
161 |
*/
|
|
|
162 |
public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
163 |
|
| 6548 |
amar.kumar |
164 |
/**
|
|
|
165 |
* Inserts scans for lost Items and updates lastScanType in InventoryItems
|
|
|
166 |
*
|
|
|
167 |
* @param lostItems
|
|
|
168 |
* @param vendorId
|
|
|
169 |
*/
|
|
|
170 |
public void scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
171 |
|
|
|
172 |
/**
|
|
|
173 |
* Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
|
|
|
174 |
*/
|
|
|
175 |
public List<InventoryAvailability> getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException;
|
|
|
176 |
|
| 6630 |
amar.kumar |
177 |
/**
|
|
|
178 |
* Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
|
|
|
179 |
*/
|
|
|
180 |
public List<InventoryAvailability> getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException;
|
|
|
181 |
|
| 6762 |
amar.kumar |
182 |
/**
|
|
|
183 |
* Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
|
|
|
184 |
*
|
|
|
185 |
* @param date
|
|
|
186 |
*/
|
|
|
187 |
public List<InventoryAvailability> getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException;
|
|
|
188 |
|
|
|
189 |
/**
|
|
|
190 |
* Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
|
|
|
191 |
*
|
|
|
192 |
* @param date
|
|
|
193 |
*/
|
|
|
194 |
public List<InventoryAvailability> getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException;
|
|
|
195 |
|
|
|
196 |
/**
|
| 6880 |
amar.kumar |
197 |
* Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
|
| 6762 |
amar.kumar |
198 |
*
|
|
|
199 |
* @param itemId
|
|
|
200 |
* @param serialNumber
|
|
|
201 |
* @param itemNumber
|
|
|
202 |
* @param invoiceNumber
|
|
|
203 |
* @param warehouseId
|
|
|
204 |
* @param unitPrice
|
|
|
205 |
* @param orderId
|
|
|
206 |
*/
|
|
|
207 |
public InventoryItem scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
208 |
|
|
|
209 |
/**
|
| 6880 |
amar.kumar |
210 |
* Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
|
| 6762 |
amar.kumar |
211 |
*
|
|
|
212 |
* @param orderId
|
|
|
213 |
* @param unitPrice
|
|
|
214 |
*/
|
|
|
215 |
public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException;
|
|
|
216 |
|
| 6880 |
amar.kumar |
217 |
public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
|
|
|
218 |
|
|
|
219 |
public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
|
|
|
220 |
|
| 2820 |
chandransh |
221 |
}
|
|
|
222 |
|
| 3430 |
rajveer |
223 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
|
|
224 |
|
| 4496 |
mandeep.dh |
225 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
226 |
|
| 5530 |
mandeep.dh |
227 |
public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
228 |
|
| 5361 |
mandeep.dh |
229 |
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 |
230 |
|
| 5110 |
mandeep.dh |
231 |
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 |
232 |
|
| 5361 |
mandeep.dh |
233 |
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 |
234 |
|
|
|
235 |
public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
236 |
|
| 4622 |
amit.gupta |
237 |
public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
238 |
|
| 5110 |
mandeep.dh |
239 |
public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemIds_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
240 |
|
| 5185 |
mandeep.dh |
241 |
public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
242 |
|
|
|
243 |
public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
244 |
|
| 5372 |
mandeep.dh |
245 |
public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
246 |
|
| 5496 |
mandeep.dh |
247 |
public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
248 |
|
| 5620 |
mandeep.dh |
249 |
public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
250 |
|
| 5711 |
mandeep.dh |
251 |
public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAge_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
252 |
|
| 6322 |
amar.kumar |
253 |
public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
254 |
|
|
|
255 |
public void getScanRecordsForSerialNumber(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
256 |
|
| 6467 |
amar.kumar |
257 |
public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
258 |
|
| 6548 |
amar.kumar |
259 |
public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForLostItem_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
260 |
|
|
|
261 |
public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
262 |
|
| 6630 |
amar.kumar |
263 |
public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
264 |
|
| 6762 |
amar.kumar |
265 |
public void getHistoricSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
266 |
|
|
|
267 |
public void getHistoricNonSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
268 |
|
|
|
269 |
public void scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursExternalSale_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
270 |
|
|
|
271 |
public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
272 |
|
| 6880 |
amar.kumar |
273 |
public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
274 |
|
|
|
275 |
public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
276 |
|
| 3430 |
rajveer |
277 |
}
|
|
|
278 |
|
| 3374 |
rajveer |
279 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 3430 |
rajveer |
280 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
|
|
281 |
public Factory() {}
|
|
|
282 |
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
|
|
|
283 |
return new Client(prot);
|
|
|
284 |
}
|
|
|
285 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
286 |
return new Client(iprot, oprot);
|
|
|
287 |
}
|
|
|
288 |
}
|
|
|
289 |
|
|
|
290 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
| 2820 |
chandransh |
291 |
{
|
| 3430 |
rajveer |
292 |
super(prot, prot);
|
| 2820 |
chandransh |
293 |
}
|
|
|
294 |
|
| 3430 |
rajveer |
295 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
| 3374 |
rajveer |
296 |
super(iprot, oprot);
|
| 2820 |
chandransh |
297 |
}
|
|
|
298 |
|
| 4541 |
mandeep.dh |
299 |
public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2832 |
chandransh |
300 |
{
|
| 4496 |
mandeep.dh |
301 |
send_getInventoryItem(serialNumber);
|
|
|
302 |
return recv_getInventoryItem();
|
| 2832 |
chandransh |
303 |
}
|
|
|
304 |
|
| 4496 |
mandeep.dh |
305 |
public void send_getInventoryItem(String serialNumber) throws org.apache.thrift.TException
|
| 2832 |
chandransh |
306 |
{
|
| 4496 |
mandeep.dh |
307 |
getInventoryItem_args args = new getInventoryItem_args();
|
|
|
308 |
args.setSerialNumber(serialNumber);
|
|
|
309 |
sendBase("getInventoryItem", args);
|
| 2832 |
chandransh |
310 |
}
|
|
|
311 |
|
| 4541 |
mandeep.dh |
312 |
public InventoryItem recv_getInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2832 |
chandransh |
313 |
{
|
| 4496 |
mandeep.dh |
314 |
getInventoryItem_result result = new getInventoryItem_result();
|
|
|
315 |
receiveBase(result, "getInventoryItem");
|
| 2832 |
chandransh |
316 |
if (result.isSetSuccess()) {
|
|
|
317 |
return result.success;
|
|
|
318 |
}
|
| 4541 |
mandeep.dh |
319 |
if (result.wex != null) {
|
|
|
320 |
throw result.wex;
|
|
|
321 |
}
|
| 4496 |
mandeep.dh |
322 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
|
|
|
323 |
}
|
|
|
324 |
|
| 5530 |
mandeep.dh |
325 |
public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
326 |
{
|
| 5530 |
mandeep.dh |
327 |
send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
328 |
return recv_getNonSeralizedInventoryItem();
|
| 4496 |
mandeep.dh |
329 |
}
|
|
|
330 |
|
| 5530 |
mandeep.dh |
331 |
public void send_getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
332 |
{
|
| 5361 |
mandeep.dh |
333 |
getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
|
| 5530 |
mandeep.dh |
334 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
335 |
args.setItemId(itemId);
|
| 5530 |
mandeep.dh |
336 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
337 |
sendBase("getNonSeralizedInventoryItem", args);
|
| 4496 |
mandeep.dh |
338 |
}
|
|
|
339 |
|
| 5361 |
mandeep.dh |
340 |
public InventoryItem recv_getNonSeralizedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
341 |
{
|
| 5361 |
mandeep.dh |
342 |
getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
|
|
|
343 |
receiveBase(result, "getNonSeralizedInventoryItem");
|
| 4496 |
mandeep.dh |
344 |
if (result.isSetSuccess()) {
|
|
|
345 |
return result.success;
|
| 2832 |
chandransh |
346 |
}
|
| 5361 |
mandeep.dh |
347 |
if (result.wex != null) {
|
|
|
348 |
throw result.wex;
|
| 2820 |
chandransh |
349 |
}
|
| 5361 |
mandeep.dh |
350 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
|
| 4496 |
mandeep.dh |
351 |
}
|
|
|
352 |
|
| 5361 |
mandeep.dh |
353 |
public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
354 |
{
|
| 5361 |
mandeep.dh |
355 |
send_scan(inventoryItem, type, quantity, billingWarehouseId);
|
| 4496 |
mandeep.dh |
356 |
recv_scan();
|
| 3383 |
chandransh |
357 |
}
|
|
|
358 |
|
| 5361 |
mandeep.dh |
359 |
public void send_scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws org.apache.thrift.TException
|
| 3383 |
chandransh |
360 |
{
|
| 4496 |
mandeep.dh |
361 |
scan_args args = new scan_args();
|
| 5361 |
mandeep.dh |
362 |
args.setInventoryItem(inventoryItem);
|
| 4496 |
mandeep.dh |
363 |
args.setType(type);
|
|
|
364 |
args.setQuantity(quantity);
|
| 5361 |
mandeep.dh |
365 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
366 |
sendBase("scan", args);
|
| 3383 |
chandransh |
367 |
}
|
|
|
368 |
|
| 4496 |
mandeep.dh |
369 |
public void recv_scan() throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
370 |
{
|
| 4496 |
mandeep.dh |
371 |
scan_result result = new scan_result();
|
|
|
372 |
receiveBase(result, "scan");
|
|
|
373 |
if (result.wex != null) {
|
|
|
374 |
throw result.wex;
|
|
|
375 |
}
|
|
|
376 |
return;
|
|
|
377 |
}
|
|
|
378 |
|
| 5110 |
mandeep.dh |
379 |
public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
380 |
{
|
| 5110 |
mandeep.dh |
381 |
send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId);
|
| 4496 |
mandeep.dh |
382 |
return recv_scanSerializedItemForOrder();
|
|
|
383 |
}
|
|
|
384 |
|
| 5110 |
mandeep.dh |
385 |
public void send_scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
386 |
{
|
|
|
387 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
| 4555 |
mandeep.dh |
388 |
args.setSerialNumber(serialNumber);
|
| 4496 |
mandeep.dh |
389 |
args.setType(type);
|
|
|
390 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
391 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
|
|
392 |
args.setQuantity(quantity);
|
|
|
393 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
394 |
sendBase("scanSerializedItemForOrder", args);
|
|
|
395 |
}
|
|
|
396 |
|
| 4555 |
mandeep.dh |
397 |
public InventoryItem recv_scanSerializedItemForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
398 |
{
|
|
|
399 |
scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
|
|
|
400 |
receiveBase(result, "scanSerializedItemForOrder");
|
| 3383 |
chandransh |
401 |
if (result.isSetSuccess()) {
|
|
|
402 |
return result.success;
|
|
|
403 |
}
|
|
|
404 |
if (result.wex != null) {
|
|
|
405 |
throw result.wex;
|
|
|
406 |
}
|
| 4496 |
mandeep.dh |
407 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
|
| 3383 |
chandransh |
408 |
}
|
|
|
409 |
|
| 5361 |
mandeep.dh |
410 |
public InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
411 |
{
|
| 5361 |
mandeep.dh |
412 |
send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId);
|
|
|
413 |
return recv_scanForOrder();
|
| 2820 |
chandransh |
414 |
}
|
|
|
415 |
|
| 5361 |
mandeep.dh |
416 |
public void send_scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
417 |
{
|
| 4496 |
mandeep.dh |
418 |
scanForOrder_args args = new scanForOrder_args();
|
| 5361 |
mandeep.dh |
419 |
args.setInventoryItem(inventoryItem);
|
| 3430 |
rajveer |
420 |
args.setType(type);
|
| 4496 |
mandeep.dh |
421 |
args.setQuantity(quantity);
|
|
|
422 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
423 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
424 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
425 |
sendBase("scanForOrder", args);
|
| 2820 |
chandransh |
426 |
}
|
|
|
427 |
|
| 5361 |
mandeep.dh |
428 |
public InventoryItem recv_scanForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
429 |
{
|
| 4496 |
mandeep.dh |
430 |
scanForOrder_result result = new scanForOrder_result();
|
|
|
431 |
receiveBase(result, "scanForOrder");
|
| 5361 |
mandeep.dh |
432 |
if (result.isSetSuccess()) {
|
|
|
433 |
return result.success;
|
|
|
434 |
}
|
| 2820 |
chandransh |
435 |
if (result.wex != null) {
|
|
|
436 |
throw result.wex;
|
|
|
437 |
}
|
| 5361 |
mandeep.dh |
438 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
|
| 2820 |
chandransh |
439 |
}
|
|
|
440 |
|
| 4496 |
mandeep.dh |
441 |
public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
442 |
{
|
| 4496 |
mandeep.dh |
443 |
send_createItemNumberMapping(itemNumber, itemId);
|
|
|
444 |
recv_createItemNumberMapping();
|
| 2820 |
chandransh |
445 |
}
|
|
|
446 |
|
| 4496 |
mandeep.dh |
447 |
public void send_createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
448 |
{
|
| 4496 |
mandeep.dh |
449 |
createItemNumberMapping_args args = new createItemNumberMapping_args();
|
| 3430 |
rajveer |
450 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
451 |
args.setItemId(itemId);
|
|
|
452 |
sendBase("createItemNumberMapping", args);
|
| 2820 |
chandransh |
453 |
}
|
|
|
454 |
|
| 4496 |
mandeep.dh |
455 |
public void recv_createItemNumberMapping() throws org.apache.thrift.TException
|
| 2820 |
chandransh |
456 |
{
|
| 4496 |
mandeep.dh |
457 |
createItemNumberMapping_result result = new createItemNumberMapping_result();
|
|
|
458 |
receiveBase(result, "createItemNumberMapping");
|
| 2820 |
chandransh |
459 |
return;
|
|
|
460 |
}
|
|
|
461 |
|
| 4622 |
amit.gupta |
462 |
public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException
|
|
|
463 |
{
|
|
|
464 |
send_getItemNumbers(itemId);
|
|
|
465 |
return recv_getItemNumbers();
|
|
|
466 |
}
|
|
|
467 |
|
|
|
468 |
public void send_getItemNumbers(long itemId) throws org.apache.thrift.TException
|
|
|
469 |
{
|
|
|
470 |
getItemNumbers_args args = new getItemNumbers_args();
|
|
|
471 |
args.setItemId(itemId);
|
|
|
472 |
sendBase("getItemNumbers", args);
|
|
|
473 |
}
|
|
|
474 |
|
|
|
475 |
public List<String> recv_getItemNumbers() throws org.apache.thrift.TException
|
|
|
476 |
{
|
|
|
477 |
getItemNumbers_result result = new getItemNumbers_result();
|
|
|
478 |
receiveBase(result, "getItemNumbers");
|
|
|
479 |
if (result.isSetSuccess()) {
|
|
|
480 |
return result.success;
|
|
|
481 |
}
|
|
|
482 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
|
|
|
483 |
}
|
|
|
484 |
|
| 5110 |
mandeep.dh |
485 |
public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException
|
|
|
486 |
{
|
|
|
487 |
send_getItemIds(itemNumber);
|
|
|
488 |
return recv_getItemIds();
|
|
|
489 |
}
|
|
|
490 |
|
|
|
491 |
public void send_getItemIds(String itemNumber) throws org.apache.thrift.TException
|
|
|
492 |
{
|
|
|
493 |
getItemIds_args args = new getItemIds_args();
|
|
|
494 |
args.setItemNumber(itemNumber);
|
|
|
495 |
sendBase("getItemIds", args);
|
|
|
496 |
}
|
|
|
497 |
|
|
|
498 |
public List<Long> recv_getItemIds() throws org.apache.thrift.TException
|
|
|
499 |
{
|
|
|
500 |
getItemIds_result result = new getItemIds_result();
|
|
|
501 |
receiveBase(result, "getItemIds");
|
|
|
502 |
if (result.isSetSuccess()) {
|
|
|
503 |
return result.success;
|
|
|
504 |
}
|
|
|
505 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
|
|
|
506 |
}
|
|
|
507 |
|
| 5185 |
mandeep.dh |
508 |
public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
509 |
{
|
|
|
510 |
send_getInventoryItemsFromLastScanType(lastScanType);
|
|
|
511 |
return recv_getInventoryItemsFromLastScanType();
|
|
|
512 |
}
|
|
|
513 |
|
|
|
514 |
public void send_getInventoryItemsFromLastScanType(ScanType lastScanType) throws org.apache.thrift.TException
|
|
|
515 |
{
|
|
|
516 |
getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
|
|
|
517 |
args.setLastScanType(lastScanType);
|
|
|
518 |
sendBase("getInventoryItemsFromLastScanType", args);
|
|
|
519 |
}
|
|
|
520 |
|
|
|
521 |
public List<InventoryItem> recv_getInventoryItemsFromLastScanType() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
522 |
{
|
|
|
523 |
getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
|
|
|
524 |
receiveBase(result, "getInventoryItemsFromLastScanType");
|
|
|
525 |
if (result.isSetSuccess()) {
|
|
|
526 |
return result.success;
|
|
|
527 |
}
|
|
|
528 |
if (result.wex != null) {
|
|
|
529 |
throw result.wex;
|
|
|
530 |
}
|
|
|
531 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
|
|
|
532 |
}
|
|
|
533 |
|
|
|
534 |
public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
535 |
{
|
|
|
536 |
send_getInventoryItemFromId(inventoryItemId);
|
|
|
537 |
return recv_getInventoryItemFromId();
|
|
|
538 |
}
|
|
|
539 |
|
|
|
540 |
public void send_getInventoryItemFromId(long inventoryItemId) throws org.apache.thrift.TException
|
|
|
541 |
{
|
|
|
542 |
getInventoryItemFromId_args args = new getInventoryItemFromId_args();
|
|
|
543 |
args.setInventoryItemId(inventoryItemId);
|
|
|
544 |
sendBase("getInventoryItemFromId", args);
|
|
|
545 |
}
|
|
|
546 |
|
|
|
547 |
public InventoryItem recv_getInventoryItemFromId() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
548 |
{
|
|
|
549 |
getInventoryItemFromId_result result = new getInventoryItemFromId_result();
|
|
|
550 |
receiveBase(result, "getInventoryItemFromId");
|
|
|
551 |
if (result.isSetSuccess()) {
|
|
|
552 |
return result.success;
|
|
|
553 |
}
|
|
|
554 |
if (result.wex != null) {
|
|
|
555 |
throw result.wex;
|
|
|
556 |
}
|
|
|
557 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
|
|
|
558 |
}
|
|
|
559 |
|
| 5372 |
mandeep.dh |
560 |
public List<DetailedPurchaseScan> getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
561 |
{
|
|
|
562 |
send_getPurchaseScans(startDate, endDate);
|
|
|
563 |
return recv_getPurchaseScans();
|
|
|
564 |
}
|
|
|
565 |
|
|
|
566 |
public void send_getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
567 |
{
|
|
|
568 |
getPurchaseScans_args args = new getPurchaseScans_args();
|
|
|
569 |
args.setStartDate(startDate);
|
|
|
570 |
args.setEndDate(endDate);
|
|
|
571 |
sendBase("getPurchaseScans", args);
|
|
|
572 |
}
|
|
|
573 |
|
|
|
574 |
public List<DetailedPurchaseScan> recv_getPurchaseScans() throws org.apache.thrift.TException
|
|
|
575 |
{
|
|
|
576 |
getPurchaseScans_result result = new getPurchaseScans_result();
|
|
|
577 |
receiveBase(result, "getPurchaseScans");
|
|
|
578 |
if (result.isSetSuccess()) {
|
|
|
579 |
return result.success;
|
|
|
580 |
}
|
|
|
581 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
|
|
|
582 |
}
|
|
|
583 |
|
| 5496 |
mandeep.dh |
584 |
public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
|
|
|
585 |
{
|
|
|
586 |
send_fetchScansPerInvoiceNumber(date);
|
|
|
587 |
return recv_fetchScansPerInvoiceNumber();
|
|
|
588 |
}
|
|
|
589 |
|
|
|
590 |
public void send_fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
|
|
|
591 |
{
|
|
|
592 |
fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
|
|
|
593 |
args.setDate(date);
|
|
|
594 |
sendBase("fetchScansPerInvoiceNumber", args);
|
|
|
595 |
}
|
|
|
596 |
|
|
|
597 |
public List<InvoiceScan> recv_fetchScansPerInvoiceNumber() throws org.apache.thrift.TException
|
|
|
598 |
{
|
|
|
599 |
fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
|
|
|
600 |
receiveBase(result, "fetchScansPerInvoiceNumber");
|
|
|
601 |
if (result.isSetSuccess()) {
|
|
|
602 |
return result.success;
|
|
|
603 |
}
|
|
|
604 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
|
|
|
605 |
}
|
|
|
606 |
|
| 5620 |
mandeep.dh |
607 |
public InventoryItem getInventoryItemFromOrder(long orderId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
608 |
{
|
|
|
609 |
send_getInventoryItemFromOrder(orderId);
|
|
|
610 |
return recv_getInventoryItemFromOrder();
|
|
|
611 |
}
|
|
|
612 |
|
|
|
613 |
public void send_getInventoryItemFromOrder(long orderId) throws org.apache.thrift.TException
|
|
|
614 |
{
|
|
|
615 |
getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
|
|
|
616 |
args.setOrderId(orderId);
|
|
|
617 |
sendBase("getInventoryItemFromOrder", args);
|
|
|
618 |
}
|
|
|
619 |
|
|
|
620 |
public InventoryItem recv_getInventoryItemFromOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
621 |
{
|
|
|
622 |
getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
|
|
|
623 |
receiveBase(result, "getInventoryItemFromOrder");
|
|
|
624 |
if (result.isSetSuccess()) {
|
|
|
625 |
return result.success;
|
|
|
626 |
}
|
|
|
627 |
if (result.we != null) {
|
|
|
628 |
throw result.we;
|
|
|
629 |
}
|
|
|
630 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
|
|
|
631 |
}
|
|
|
632 |
|
| 5711 |
mandeep.dh |
633 |
public List<InventoryAge> getInventoryAge() throws org.apache.thrift.TException
|
|
|
634 |
{
|
|
|
635 |
send_getInventoryAge();
|
|
|
636 |
return recv_getInventoryAge();
|
|
|
637 |
}
|
|
|
638 |
|
|
|
639 |
public void send_getInventoryAge() throws org.apache.thrift.TException
|
|
|
640 |
{
|
|
|
641 |
getInventoryAge_args args = new getInventoryAge_args();
|
|
|
642 |
sendBase("getInventoryAge", args);
|
|
|
643 |
}
|
|
|
644 |
|
|
|
645 |
public List<InventoryAge> recv_getInventoryAge() throws org.apache.thrift.TException
|
|
|
646 |
{
|
|
|
647 |
getInventoryAge_result result = new getInventoryAge_result();
|
|
|
648 |
receiveBase(result, "getInventoryAge");
|
|
|
649 |
if (result.isSetSuccess()) {
|
|
|
650 |
return result.success;
|
|
|
651 |
}
|
|
|
652 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
|
|
|
653 |
}
|
|
|
654 |
|
| 6322 |
amar.kumar |
655 |
public List<Scan> getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
|
|
|
656 |
{
|
|
|
657 |
send_getInventoryScansForItem(itemId, fromDate, toDate);
|
|
|
658 |
return recv_getInventoryScansForItem();
|
|
|
659 |
}
|
|
|
660 |
|
|
|
661 |
public void send_getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
|
|
|
662 |
{
|
|
|
663 |
getInventoryScansForItem_args args = new getInventoryScansForItem_args();
|
|
|
664 |
args.setItemId(itemId);
|
|
|
665 |
args.setFromDate(fromDate);
|
|
|
666 |
args.setToDate(toDate);
|
|
|
667 |
sendBase("getInventoryScansForItem", args);
|
|
|
668 |
}
|
|
|
669 |
|
|
|
670 |
public List<Scan> recv_getInventoryScansForItem() throws org.apache.thrift.TException
|
|
|
671 |
{
|
|
|
672 |
getInventoryScansForItem_result result = new getInventoryScansForItem_result();
|
|
|
673 |
receiveBase(result, "getInventoryScansForItem");
|
|
|
674 |
if (result.isSetSuccess()) {
|
|
|
675 |
return result.success;
|
|
|
676 |
}
|
|
|
677 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
|
|
|
678 |
}
|
|
|
679 |
|
|
|
680 |
public List<Scan> getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException
|
|
|
681 |
{
|
|
|
682 |
send_getScanRecordsForSerialNumber(serialNumber);
|
|
|
683 |
return recv_getScanRecordsForSerialNumber();
|
|
|
684 |
}
|
|
|
685 |
|
|
|
686 |
public void send_getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException
|
|
|
687 |
{
|
|
|
688 |
getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
|
|
|
689 |
args.setSerialNumber(serialNumber);
|
|
|
690 |
sendBase("getScanRecordsForSerialNumber", args);
|
|
|
691 |
}
|
|
|
692 |
|
|
|
693 |
public List<Scan> recv_getScanRecordsForSerialNumber() throws org.apache.thrift.TException
|
|
|
694 |
{
|
|
|
695 |
getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
|
|
|
696 |
receiveBase(result, "getScanRecordsForSerialNumber");
|
|
|
697 |
if (result.isSetSuccess()) {
|
|
|
698 |
return result.success;
|
|
|
699 |
}
|
|
|
700 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
|
|
|
701 |
}
|
|
|
702 |
|
| 6467 |
amar.kumar |
703 |
public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
704 |
{
|
|
|
705 |
send_scanForPurchaseReturn(saleReturnItems, vendorId);
|
|
|
706 |
recv_scanForPurchaseReturn();
|
|
|
707 |
}
|
|
|
708 |
|
|
|
709 |
public void send_scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws org.apache.thrift.TException
|
|
|
710 |
{
|
|
|
711 |
scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
|
|
|
712 |
args.setSaleReturnItems(saleReturnItems);
|
|
|
713 |
args.setVendorId(vendorId);
|
|
|
714 |
sendBase("scanForPurchaseReturn", args);
|
|
|
715 |
}
|
|
|
716 |
|
|
|
717 |
public void recv_scanForPurchaseReturn() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
718 |
{
|
|
|
719 |
scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
|
|
|
720 |
receiveBase(result, "scanForPurchaseReturn");
|
|
|
721 |
if (result.ex != null) {
|
|
|
722 |
throw result.ex;
|
|
|
723 |
}
|
|
|
724 |
return;
|
|
|
725 |
}
|
|
|
726 |
|
| 6548 |
amar.kumar |
727 |
public void scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
728 |
{
|
|
|
729 |
send_scanForLostItem(lostItems, vendorId);
|
|
|
730 |
recv_scanForLostItem();
|
|
|
731 |
}
|
|
|
732 |
|
|
|
733 |
public void send_scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws org.apache.thrift.TException
|
|
|
734 |
{
|
|
|
735 |
scanForLostItem_args args = new scanForLostItem_args();
|
|
|
736 |
args.setLostItems(lostItems);
|
|
|
737 |
args.setVendorId(vendorId);
|
|
|
738 |
sendBase("scanForLostItem", args);
|
|
|
739 |
}
|
|
|
740 |
|
|
|
741 |
public void recv_scanForLostItem() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
742 |
{
|
|
|
743 |
scanForLostItem_result result = new scanForLostItem_result();
|
|
|
744 |
receiveBase(result, "scanForLostItem");
|
|
|
745 |
if (result.ex != null) {
|
|
|
746 |
throw result.ex;
|
|
|
747 |
}
|
|
|
748 |
return;
|
|
|
749 |
}
|
|
|
750 |
|
|
|
751 |
public List<InventoryAvailability> getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
752 |
{
|
|
|
753 |
send_getCurrentSerializedInventoryByScans();
|
|
|
754 |
return recv_getCurrentSerializedInventoryByScans();
|
|
|
755 |
}
|
|
|
756 |
|
|
|
757 |
public void send_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
758 |
{
|
|
|
759 |
getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
|
|
|
760 |
sendBase("getCurrentSerializedInventoryByScans", args);
|
|
|
761 |
}
|
|
|
762 |
|
|
|
763 |
public List<InventoryAvailability> recv_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
764 |
{
|
|
|
765 |
getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
|
|
|
766 |
receiveBase(result, "getCurrentSerializedInventoryByScans");
|
|
|
767 |
if (result.isSetSuccess()) {
|
|
|
768 |
return result.success;
|
|
|
769 |
}
|
|
|
770 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
|
|
|
771 |
}
|
|
|
772 |
|
| 6630 |
amar.kumar |
773 |
public List<InventoryAvailability> getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
774 |
{
|
|
|
775 |
send_getCurrentNonSerializedInventoryByScans();
|
|
|
776 |
return recv_getCurrentNonSerializedInventoryByScans();
|
|
|
777 |
}
|
|
|
778 |
|
|
|
779 |
public void send_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
780 |
{
|
|
|
781 |
getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
|
|
|
782 |
sendBase("getCurrentNonSerializedInventoryByScans", args);
|
|
|
783 |
}
|
|
|
784 |
|
|
|
785 |
public List<InventoryAvailability> recv_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
786 |
{
|
|
|
787 |
getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
|
|
|
788 |
receiveBase(result, "getCurrentNonSerializedInventoryByScans");
|
|
|
789 |
if (result.isSetSuccess()) {
|
|
|
790 |
return result.success;
|
|
|
791 |
}
|
|
|
792 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
|
|
|
793 |
}
|
|
|
794 |
|
| 6762 |
amar.kumar |
795 |
public List<InventoryAvailability> getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException
|
|
|
796 |
{
|
|
|
797 |
send_getHistoricSerializedInventoryByScans(date);
|
|
|
798 |
return recv_getHistoricSerializedInventoryByScans();
|
|
|
799 |
}
|
|
|
800 |
|
|
|
801 |
public void send_getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException
|
|
|
802 |
{
|
|
|
803 |
getHistoricSerializedInventoryByScans_args args = new getHistoricSerializedInventoryByScans_args();
|
|
|
804 |
args.setDate(date);
|
|
|
805 |
sendBase("getHistoricSerializedInventoryByScans", args);
|
|
|
806 |
}
|
|
|
807 |
|
|
|
808 |
public List<InventoryAvailability> recv_getHistoricSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
809 |
{
|
|
|
810 |
getHistoricSerializedInventoryByScans_result result = new getHistoricSerializedInventoryByScans_result();
|
|
|
811 |
receiveBase(result, "getHistoricSerializedInventoryByScans");
|
|
|
812 |
if (result.isSetSuccess()) {
|
|
|
813 |
return result.success;
|
|
|
814 |
}
|
|
|
815 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
|
|
|
816 |
}
|
|
|
817 |
|
|
|
818 |
public List<InventoryAvailability> getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException
|
|
|
819 |
{
|
|
|
820 |
send_getHistoricNonSerializedInventoryByScans(date);
|
|
|
821 |
return recv_getHistoricNonSerializedInventoryByScans();
|
|
|
822 |
}
|
|
|
823 |
|
|
|
824 |
public void send_getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException
|
|
|
825 |
{
|
|
|
826 |
getHistoricNonSerializedInventoryByScans_args args = new getHistoricNonSerializedInventoryByScans_args();
|
|
|
827 |
args.setDate(date);
|
|
|
828 |
sendBase("getHistoricNonSerializedInventoryByScans", args);
|
|
|
829 |
}
|
|
|
830 |
|
|
|
831 |
public List<InventoryAvailability> recv_getHistoricNonSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
832 |
{
|
|
|
833 |
getHistoricNonSerializedInventoryByScans_result result = new getHistoricNonSerializedInventoryByScans_result();
|
|
|
834 |
receiveBase(result, "getHistoricNonSerializedInventoryByScans");
|
|
|
835 |
if (result.isSetSuccess()) {
|
|
|
836 |
return result.success;
|
|
|
837 |
}
|
|
|
838 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
|
|
|
839 |
}
|
|
|
840 |
|
|
|
841 |
public InventoryItem scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
842 |
{
|
|
|
843 |
send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId);
|
|
|
844 |
return recv_scanForOursExternalSale();
|
|
|
845 |
}
|
|
|
846 |
|
|
|
847 |
public void send_scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws org.apache.thrift.TException
|
|
|
848 |
{
|
|
|
849 |
scanForOursExternalSale_args args = new scanForOursExternalSale_args();
|
|
|
850 |
args.setItemId(itemId);
|
|
|
851 |
args.setSerialNumber(serialNumber);
|
|
|
852 |
args.setItemNumber(itemNumber);
|
|
|
853 |
args.setInvoiceNumber(invoiceNumber);
|
|
|
854 |
args.setWarehouseId(warehouseId);
|
|
|
855 |
args.setUnitPrice(unitPrice);
|
|
|
856 |
args.setOrderId(orderId);
|
|
|
857 |
sendBase("scanForOursExternalSale", args);
|
|
|
858 |
}
|
|
|
859 |
|
|
|
860 |
public InventoryItem recv_scanForOursExternalSale() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
861 |
{
|
|
|
862 |
scanForOursExternalSale_result result = new scanForOursExternalSale_result();
|
|
|
863 |
receiveBase(result, "scanForOursExternalSale");
|
|
|
864 |
if (result.isSetSuccess()) {
|
|
|
865 |
return result.success;
|
|
|
866 |
}
|
|
|
867 |
if (result.ex != null) {
|
|
|
868 |
throw result.ex;
|
|
|
869 |
}
|
|
|
870 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
|
|
|
871 |
}
|
|
|
872 |
|
|
|
873 |
public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException
|
|
|
874 |
{
|
|
|
875 |
send_scanForOursExternalSaleReturn(orderId, unitPrice);
|
|
|
876 |
recv_scanForOursExternalSaleReturn();
|
|
|
877 |
}
|
|
|
878 |
|
|
|
879 |
public void send_scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException
|
|
|
880 |
{
|
|
|
881 |
scanForOursExternalSaleReturn_args args = new scanForOursExternalSaleReturn_args();
|
|
|
882 |
args.setOrderId(orderId);
|
|
|
883 |
args.setUnitPrice(unitPrice);
|
|
|
884 |
sendBase("scanForOursExternalSaleReturn", args);
|
|
|
885 |
}
|
|
|
886 |
|
|
|
887 |
public void recv_scanForOursExternalSaleReturn() throws org.apache.thrift.TException
|
|
|
888 |
{
|
|
|
889 |
scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
|
|
|
890 |
receiveBase(result, "scanForOursExternalSaleReturn");
|
|
|
891 |
return;
|
|
|
892 |
}
|
|
|
893 |
|
| 6880 |
amar.kumar |
894 |
public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
895 |
{
|
|
|
896 |
send_getMovementNonSerializedInventoryByScans(startDate, endDate);
|
|
|
897 |
return recv_getMovementNonSerializedInventoryByScans();
|
|
|
898 |
}
|
|
|
899 |
|
|
|
900 |
public void send_getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
901 |
{
|
|
|
902 |
getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
|
|
|
903 |
args.setStartDate(startDate);
|
|
|
904 |
args.setEndDate(endDate);
|
|
|
905 |
sendBase("getMovementNonSerializedInventoryByScans", args);
|
|
|
906 |
}
|
|
|
907 |
|
|
|
908 |
public List<InventoryMovement> recv_getMovementNonSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
909 |
{
|
|
|
910 |
getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
|
|
|
911 |
receiveBase(result, "getMovementNonSerializedInventoryByScans");
|
|
|
912 |
if (result.isSetSuccess()) {
|
|
|
913 |
return result.success;
|
|
|
914 |
}
|
|
|
915 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
|
|
|
916 |
}
|
|
|
917 |
|
|
|
918 |
public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
919 |
{
|
|
|
920 |
send_getMovementSerializedInventoryByScans(startDate, endDate);
|
|
|
921 |
return recv_getMovementSerializedInventoryByScans();
|
|
|
922 |
}
|
|
|
923 |
|
|
|
924 |
public void send_getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
925 |
{
|
|
|
926 |
getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
|
|
|
927 |
args.setStartDate(startDate);
|
|
|
928 |
args.setEndDate(endDate);
|
|
|
929 |
sendBase("getMovementSerializedInventoryByScans", args);
|
|
|
930 |
}
|
|
|
931 |
|
|
|
932 |
public List<InventoryMovement> recv_getMovementSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
933 |
{
|
|
|
934 |
getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
|
|
|
935 |
receiveBase(result, "getMovementSerializedInventoryByScans");
|
|
|
936 |
if (result.isSetSuccess()) {
|
|
|
937 |
return result.success;
|
|
|
938 |
}
|
|
|
939 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
|
|
|
940 |
}
|
|
|
941 |
|
| 2820 |
chandransh |
942 |
}
|
| 3430 |
rajveer |
943 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
|
|
944 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
945 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
946 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
947 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
948 |
this.clientManager = clientManager;
|
|
|
949 |
this.protocolFactory = protocolFactory;
|
|
|
950 |
}
|
|
|
951 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
952 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
953 |
}
|
| 2820 |
chandransh |
954 |
}
|
|
|
955 |
|
| 3430 |
rajveer |
956 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
957 |
super(protocolFactory, clientManager, transport);
|
|
|
958 |
}
|
| 2820 |
chandransh |
959 |
|
| 4496 |
mandeep.dh |
960 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
961 |
checkReady();
|
| 4496 |
mandeep.dh |
962 |
getInventoryItem_call method_call = new getInventoryItem_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
963 |
this.___currentMethod = method_call;
|
|
|
964 |
___manager.call(method_call);
|
|
|
965 |
}
|
|
|
966 |
|
| 4496 |
mandeep.dh |
967 |
public static class getInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
968 |
private String serialNumber;
|
|
|
969 |
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 |
970 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4496 |
mandeep.dh |
971 |
this.serialNumber = serialNumber;
|
| 3430 |
rajveer |
972 |
}
|
|
|
973 |
|
|
|
974 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
975 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
976 |
getInventoryItem_args args = new getInventoryItem_args();
|
|
|
977 |
args.setSerialNumber(serialNumber);
|
| 3430 |
rajveer |
978 |
args.write(prot);
|
|
|
979 |
prot.writeMessageEnd();
|
|
|
980 |
}
|
|
|
981 |
|
| 4541 |
mandeep.dh |
982 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 3430 |
rajveer |
983 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
984 |
throw new IllegalStateException("Method call not finished!");
|
|
|
985 |
}
|
|
|
986 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
987 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
988 |
return (new Client(prot)).recv_getInventoryItem();
|
| 3430 |
rajveer |
989 |
}
|
|
|
990 |
}
|
|
|
991 |
|
| 5530 |
mandeep.dh |
992 |
public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
993 |
checkReady();
|
| 5530 |
mandeep.dh |
994 |
getNonSeralizedInventoryItem_call method_call = new getNonSeralizedInventoryItem_call(itemNumber, itemId, fulfilmentWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
995 |
this.___currentMethod = method_call;
|
|
|
996 |
___manager.call(method_call);
|
|
|
997 |
}
|
|
|
998 |
|
| 5361 |
mandeep.dh |
999 |
public static class getNonSeralizedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5530 |
mandeep.dh |
1000 |
private String itemNumber;
|
| 4496 |
mandeep.dh |
1001 |
private long itemId;
|
| 5530 |
mandeep.dh |
1002 |
private long fulfilmentWarehouseId;
|
|
|
1003 |
public getNonSeralizedInventoryItem_call(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
1004 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5530 |
mandeep.dh |
1005 |
this.itemNumber = itemNumber;
|
| 4496 |
mandeep.dh |
1006 |
this.itemId = itemId;
|
| 5530 |
mandeep.dh |
1007 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| 3430 |
rajveer |
1008 |
}
|
|
|
1009 |
|
|
|
1010 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 5361 |
mandeep.dh |
1011 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1012 |
getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
|
| 5530 |
mandeep.dh |
1013 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
1014 |
args.setItemId(itemId);
|
| 5530 |
mandeep.dh |
1015 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 3430 |
rajveer |
1016 |
args.write(prot);
|
|
|
1017 |
prot.writeMessageEnd();
|
|
|
1018 |
}
|
|
|
1019 |
|
| 5361 |
mandeep.dh |
1020 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 3430 |
rajveer |
1021 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1022 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1023 |
}
|
|
|
1024 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1025 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 5361 |
mandeep.dh |
1026 |
return (new Client(prot)).recv_getNonSeralizedInventoryItem();
|
| 3430 |
rajveer |
1027 |
}
|
|
|
1028 |
}
|
|
|
1029 |
|
| 5361 |
mandeep.dh |
1030 |
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 |
1031 |
checkReady();
|
| 5361 |
mandeep.dh |
1032 |
scan_call method_call = new scan_call(inventoryItem, type, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
1033 |
this.___currentMethod = method_call;
|
|
|
1034 |
___manager.call(method_call);
|
|
|
1035 |
}
|
|
|
1036 |
|
| 4496 |
mandeep.dh |
1037 |
public static class scan_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5361 |
mandeep.dh |
1038 |
private InventoryItem inventoryItem;
|
| 3430 |
rajveer |
1039 |
private ScanType type;
|
| 4496 |
mandeep.dh |
1040 |
private long quantity;
|
| 5361 |
mandeep.dh |
1041 |
private long billingWarehouseId;
|
|
|
1042 |
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 |
1043 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5361 |
mandeep.dh |
1044 |
this.inventoryItem = inventoryItem;
|
| 3430 |
rajveer |
1045 |
this.type = type;
|
| 4496 |
mandeep.dh |
1046 |
this.quantity = quantity;
|
| 5361 |
mandeep.dh |
1047 |
this.billingWarehouseId = billingWarehouseId;
|
| 3430 |
rajveer |
1048 |
}
|
|
|
1049 |
|
|
|
1050 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
1051 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scan", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1052 |
scan_args args = new scan_args();
|
| 5361 |
mandeep.dh |
1053 |
args.setInventoryItem(inventoryItem);
|
| 3430 |
rajveer |
1054 |
args.setType(type);
|
| 4496 |
mandeep.dh |
1055 |
args.setQuantity(quantity);
|
| 5361 |
mandeep.dh |
1056 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 3430 |
rajveer |
1057 |
args.write(prot);
|
|
|
1058 |
prot.writeMessageEnd();
|
|
|
1059 |
}
|
|
|
1060 |
|
|
|
1061 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1062 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1063 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1064 |
}
|
|
|
1065 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1066 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
1067 |
(new Client(prot)).recv_scan();
|
| 3430 |
rajveer |
1068 |
}
|
|
|
1069 |
}
|
|
|
1070 |
|
| 5110 |
mandeep.dh |
1071 |
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 |
1072 |
checkReady();
|
| 5110 |
mandeep.dh |
1073 |
scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 4496 |
mandeep.dh |
1074 |
this.___currentMethod = method_call;
|
|
|
1075 |
___manager.call(method_call);
|
|
|
1076 |
}
|
|
|
1077 |
|
|
|
1078 |
public static class scanSerializedItemForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 4555 |
mandeep.dh |
1079 |
private String serialNumber;
|
| 4496 |
mandeep.dh |
1080 |
private ScanType type;
|
|
|
1081 |
private long orderId;
|
| 5110 |
mandeep.dh |
1082 |
private long fulfilmentWarehouseId;
|
|
|
1083 |
private double quantity;
|
|
|
1084 |
private long billingWarehouseId;
|
|
|
1085 |
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 |
1086 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4555 |
mandeep.dh |
1087 |
this.serialNumber = serialNumber;
|
| 4496 |
mandeep.dh |
1088 |
this.type = type;
|
|
|
1089 |
this.orderId = orderId;
|
| 5110 |
mandeep.dh |
1090 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
1091 |
this.quantity = quantity;
|
|
|
1092 |
this.billingWarehouseId = billingWarehouseId;
|
| 4496 |
mandeep.dh |
1093 |
}
|
|
|
1094 |
|
|
|
1095 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1096 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItemForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1097 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
| 4555 |
mandeep.dh |
1098 |
args.setSerialNumber(serialNumber);
|
| 4496 |
mandeep.dh |
1099 |
args.setType(type);
|
|
|
1100 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
1101 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
|
|
1102 |
args.setQuantity(quantity);
|
|
|
1103 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
1104 |
args.write(prot);
|
|
|
1105 |
prot.writeMessageEnd();
|
|
|
1106 |
}
|
|
|
1107 |
|
| 4555 |
mandeep.dh |
1108 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
1109 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1110 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1111 |
}
|
|
|
1112 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1113 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1114 |
return (new Client(prot)).recv_scanSerializedItemForOrder();
|
|
|
1115 |
}
|
|
|
1116 |
}
|
|
|
1117 |
|
| 5361 |
mandeep.dh |
1118 |
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 |
1119 |
checkReady();
|
| 5361 |
mandeep.dh |
1120 |
scanForOrder_call method_call = new scanForOrder_call(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 4496 |
mandeep.dh |
1121 |
this.___currentMethod = method_call;
|
|
|
1122 |
___manager.call(method_call);
|
|
|
1123 |
}
|
|
|
1124 |
|
|
|
1125 |
public static class scanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5361 |
mandeep.dh |
1126 |
private InventoryItem inventoryItem;
|
| 4496 |
mandeep.dh |
1127 |
private ScanType type;
|
|
|
1128 |
private long quantity;
|
|
|
1129 |
private long orderId;
|
| 5110 |
mandeep.dh |
1130 |
private long fulfilmentWarehouseId;
|
| 5361 |
mandeep.dh |
1131 |
private long billingWarehouseId;
|
|
|
1132 |
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 |
1133 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5361 |
mandeep.dh |
1134 |
this.inventoryItem = inventoryItem;
|
| 4496 |
mandeep.dh |
1135 |
this.type = type;
|
|
|
1136 |
this.quantity = quantity;
|
|
|
1137 |
this.orderId = orderId;
|
| 5110 |
mandeep.dh |
1138 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| 5361 |
mandeep.dh |
1139 |
this.billingWarehouseId = billingWarehouseId;
|
| 4496 |
mandeep.dh |
1140 |
}
|
|
|
1141 |
|
|
|
1142 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1143 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1144 |
scanForOrder_args args = new scanForOrder_args();
|
| 5361 |
mandeep.dh |
1145 |
args.setInventoryItem(inventoryItem);
|
| 4496 |
mandeep.dh |
1146 |
args.setType(type);
|
|
|
1147 |
args.setQuantity(quantity);
|
|
|
1148 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
1149 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
1150 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
1151 |
args.write(prot);
|
|
|
1152 |
prot.writeMessageEnd();
|
|
|
1153 |
}
|
|
|
1154 |
|
| 5361 |
mandeep.dh |
1155 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
1156 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1157 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1158 |
}
|
|
|
1159 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1160 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 5361 |
mandeep.dh |
1161 |
return (new Client(prot)).recv_scanForOrder();
|
| 4496 |
mandeep.dh |
1162 |
}
|
|
|
1163 |
}
|
|
|
1164 |
|
|
|
1165 |
public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1166 |
checkReady();
|
|
|
1167 |
createItemNumberMapping_call method_call = new createItemNumberMapping_call(itemNumber, itemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1168 |
this.___currentMethod = method_call;
|
|
|
1169 |
___manager.call(method_call);
|
|
|
1170 |
}
|
|
|
1171 |
|
|
|
1172 |
public static class createItemNumberMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1173 |
private String itemNumber;
|
|
|
1174 |
private long itemId;
|
|
|
1175 |
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 {
|
|
|
1176 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1177 |
this.itemNumber = itemNumber;
|
|
|
1178 |
this.itemId = itemId;
|
|
|
1179 |
}
|
|
|
1180 |
|
|
|
1181 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1182 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createItemNumberMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1183 |
createItemNumberMapping_args args = new createItemNumberMapping_args();
|
|
|
1184 |
args.setItemNumber(itemNumber);
|
|
|
1185 |
args.setItemId(itemId);
|
|
|
1186 |
args.write(prot);
|
|
|
1187 |
prot.writeMessageEnd();
|
|
|
1188 |
}
|
|
|
1189 |
|
|
|
1190 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
1191 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1192 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1193 |
}
|
|
|
1194 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1195 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1196 |
(new Client(prot)).recv_createItemNumberMapping();
|
|
|
1197 |
}
|
|
|
1198 |
}
|
|
|
1199 |
|
| 4622 |
amit.gupta |
1200 |
public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemNumbers_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1201 |
checkReady();
|
|
|
1202 |
getItemNumbers_call method_call = new getItemNumbers_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1203 |
this.___currentMethod = method_call;
|
|
|
1204 |
___manager.call(method_call);
|
|
|
1205 |
}
|
|
|
1206 |
|
|
|
1207 |
public static class getItemNumbers_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1208 |
private long itemId;
|
|
|
1209 |
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 {
|
|
|
1210 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1211 |
this.itemId = itemId;
|
|
|
1212 |
}
|
|
|
1213 |
|
|
|
1214 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1215 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemNumbers", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1216 |
getItemNumbers_args args = new getItemNumbers_args();
|
|
|
1217 |
args.setItemId(itemId);
|
|
|
1218 |
args.write(prot);
|
|
|
1219 |
prot.writeMessageEnd();
|
|
|
1220 |
}
|
|
|
1221 |
|
|
|
1222 |
public List<String> getResult() throws org.apache.thrift.TException {
|
|
|
1223 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1224 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1225 |
}
|
|
|
1226 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1227 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1228 |
return (new Client(prot)).recv_getItemNumbers();
|
|
|
1229 |
}
|
|
|
1230 |
}
|
|
|
1231 |
|
| 5110 |
mandeep.dh |
1232 |
public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<getItemIds_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1233 |
checkReady();
|
|
|
1234 |
getItemIds_call method_call = new getItemIds_call(itemNumber, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1235 |
this.___currentMethod = method_call;
|
|
|
1236 |
___manager.call(method_call);
|
|
|
1237 |
}
|
|
|
1238 |
|
|
|
1239 |
public static class getItemIds_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1240 |
private String itemNumber;
|
|
|
1241 |
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 {
|
|
|
1242 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1243 |
this.itemNumber = itemNumber;
|
|
|
1244 |
}
|
|
|
1245 |
|
|
|
1246 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1247 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1248 |
getItemIds_args args = new getItemIds_args();
|
|
|
1249 |
args.setItemNumber(itemNumber);
|
|
|
1250 |
args.write(prot);
|
|
|
1251 |
prot.writeMessageEnd();
|
|
|
1252 |
}
|
|
|
1253 |
|
|
|
1254 |
public List<Long> getResult() throws org.apache.thrift.TException {
|
|
|
1255 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1256 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1257 |
}
|
|
|
1258 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1259 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1260 |
return (new Client(prot)).recv_getItemIds();
|
|
|
1261 |
}
|
|
|
1262 |
}
|
|
|
1263 |
|
| 5185 |
mandeep.dh |
1264 |
public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1265 |
checkReady();
|
|
|
1266 |
getInventoryItemsFromLastScanType_call method_call = new getInventoryItemsFromLastScanType_call(lastScanType, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1267 |
this.___currentMethod = method_call;
|
|
|
1268 |
___manager.call(method_call);
|
|
|
1269 |
}
|
|
|
1270 |
|
|
|
1271 |
public static class getInventoryItemsFromLastScanType_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1272 |
private ScanType lastScanType;
|
|
|
1273 |
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 {
|
|
|
1274 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1275 |
this.lastScanType = lastScanType;
|
|
|
1276 |
}
|
|
|
1277 |
|
|
|
1278 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1279 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemsFromLastScanType", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1280 |
getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
|
|
|
1281 |
args.setLastScanType(lastScanType);
|
|
|
1282 |
args.write(prot);
|
|
|
1283 |
prot.writeMessageEnd();
|
|
|
1284 |
}
|
|
|
1285 |
|
|
|
1286 |
public List<InventoryItem> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1287 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1288 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1289 |
}
|
|
|
1290 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1291 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1292 |
return (new Client(prot)).recv_getInventoryItemsFromLastScanType();
|
|
|
1293 |
}
|
|
|
1294 |
}
|
|
|
1295 |
|
|
|
1296 |
public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1297 |
checkReady();
|
|
|
1298 |
getInventoryItemFromId_call method_call = new getInventoryItemFromId_call(inventoryItemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1299 |
this.___currentMethod = method_call;
|
|
|
1300 |
___manager.call(method_call);
|
|
|
1301 |
}
|
|
|
1302 |
|
|
|
1303 |
public static class getInventoryItemFromId_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1304 |
private long inventoryItemId;
|
|
|
1305 |
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 {
|
|
|
1306 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1307 |
this.inventoryItemId = inventoryItemId;
|
|
|
1308 |
}
|
|
|
1309 |
|
|
|
1310 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1311 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromId", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1312 |
getInventoryItemFromId_args args = new getInventoryItemFromId_args();
|
|
|
1313 |
args.setInventoryItemId(inventoryItemId);
|
|
|
1314 |
args.write(prot);
|
|
|
1315 |
prot.writeMessageEnd();
|
|
|
1316 |
}
|
|
|
1317 |
|
|
|
1318 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1319 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1320 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1321 |
}
|
|
|
1322 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1323 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1324 |
return (new Client(prot)).recv_getInventoryItemFromId();
|
|
|
1325 |
}
|
|
|
1326 |
}
|
|
|
1327 |
|
| 5372 |
mandeep.dh |
1328 |
public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1329 |
checkReady();
|
|
|
1330 |
getPurchaseScans_call method_call = new getPurchaseScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1331 |
this.___currentMethod = method_call;
|
|
|
1332 |
___manager.call(method_call);
|
|
|
1333 |
}
|
|
|
1334 |
|
|
|
1335 |
public static class getPurchaseScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1336 |
private long startDate;
|
|
|
1337 |
private long endDate;
|
|
|
1338 |
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 {
|
|
|
1339 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1340 |
this.startDate = startDate;
|
|
|
1341 |
this.endDate = endDate;
|
|
|
1342 |
}
|
|
|
1343 |
|
|
|
1344 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1345 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1346 |
getPurchaseScans_args args = new getPurchaseScans_args();
|
|
|
1347 |
args.setStartDate(startDate);
|
|
|
1348 |
args.setEndDate(endDate);
|
|
|
1349 |
args.write(prot);
|
|
|
1350 |
prot.writeMessageEnd();
|
|
|
1351 |
}
|
|
|
1352 |
|
|
|
1353 |
public List<DetailedPurchaseScan> getResult() throws org.apache.thrift.TException {
|
|
|
1354 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1355 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1356 |
}
|
|
|
1357 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1358 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1359 |
return (new Client(prot)).recv_getPurchaseScans();
|
|
|
1360 |
}
|
|
|
1361 |
}
|
|
|
1362 |
|
| 5496 |
mandeep.dh |
1363 |
public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1364 |
checkReady();
|
|
|
1365 |
fetchScansPerInvoiceNumber_call method_call = new fetchScansPerInvoiceNumber_call(date, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1366 |
this.___currentMethod = method_call;
|
|
|
1367 |
___manager.call(method_call);
|
|
|
1368 |
}
|
|
|
1369 |
|
|
|
1370 |
public static class fetchScansPerInvoiceNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1371 |
private long date;
|
|
|
1372 |
public fetchScansPerInvoiceNumber_call(long date, org.apache.thrift.async.AsyncMethodCallback<fetchScansPerInvoiceNumber_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1373 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1374 |
this.date = date;
|
|
|
1375 |
}
|
|
|
1376 |
|
|
|
1377 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1378 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchScansPerInvoiceNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1379 |
fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
|
|
|
1380 |
args.setDate(date);
|
|
|
1381 |
args.write(prot);
|
|
|
1382 |
prot.writeMessageEnd();
|
|
|
1383 |
}
|
|
|
1384 |
|
|
|
1385 |
public List<InvoiceScan> getResult() throws org.apache.thrift.TException {
|
|
|
1386 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1387 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1388 |
}
|
|
|
1389 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1390 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1391 |
return (new Client(prot)).recv_fetchScansPerInvoiceNumber();
|
|
|
1392 |
}
|
|
|
1393 |
}
|
|
|
1394 |
|
| 5620 |
mandeep.dh |
1395 |
public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1396 |
checkReady();
|
|
|
1397 |
getInventoryItemFromOrder_call method_call = new getInventoryItemFromOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1398 |
this.___currentMethod = method_call;
|
|
|
1399 |
___manager.call(method_call);
|
|
|
1400 |
}
|
|
|
1401 |
|
|
|
1402 |
public static class getInventoryItemFromOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1403 |
private long orderId;
|
|
|
1404 |
public getInventoryItemFromOrder_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1405 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1406 |
this.orderId = orderId;
|
|
|
1407 |
}
|
|
|
1408 |
|
|
|
1409 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1410 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1411 |
getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
|
|
|
1412 |
args.setOrderId(orderId);
|
|
|
1413 |
args.write(prot);
|
|
|
1414 |
prot.writeMessageEnd();
|
|
|
1415 |
}
|
|
|
1416 |
|
|
|
1417 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1418 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1419 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1420 |
}
|
|
|
1421 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1422 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1423 |
return (new Client(prot)).recv_getInventoryItemFromOrder();
|
|
|
1424 |
}
|
|
|
1425 |
}
|
|
|
1426 |
|
| 5711 |
mandeep.dh |
1427 |
public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<getInventoryAge_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1428 |
checkReady();
|
|
|
1429 |
getInventoryAge_call method_call = new getInventoryAge_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1430 |
this.___currentMethod = method_call;
|
|
|
1431 |
___manager.call(method_call);
|
|
|
1432 |
}
|
|
|
1433 |
|
|
|
1434 |
public static class getInventoryAge_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1435 |
public getInventoryAge_call(org.apache.thrift.async.AsyncMethodCallback<getInventoryAge_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1436 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1437 |
}
|
|
|
1438 |
|
|
|
1439 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1440 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryAge", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1441 |
getInventoryAge_args args = new getInventoryAge_args();
|
|
|
1442 |
args.write(prot);
|
|
|
1443 |
prot.writeMessageEnd();
|
|
|
1444 |
}
|
|
|
1445 |
|
|
|
1446 |
public List<InventoryAge> getResult() throws org.apache.thrift.TException {
|
|
|
1447 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1448 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1449 |
}
|
|
|
1450 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1451 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1452 |
return (new Client(prot)).recv_getInventoryAge();
|
|
|
1453 |
}
|
|
|
1454 |
}
|
|
|
1455 |
|
| 6322 |
amar.kumar |
1456 |
public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1457 |
checkReady();
|
|
|
1458 |
getInventoryScansForItem_call method_call = new getInventoryScansForItem_call(itemId, fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1459 |
this.___currentMethod = method_call;
|
|
|
1460 |
___manager.call(method_call);
|
|
|
1461 |
}
|
|
|
1462 |
|
|
|
1463 |
public static class getInventoryScansForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1464 |
private long itemId;
|
|
|
1465 |
private long fromDate;
|
|
|
1466 |
private long toDate;
|
|
|
1467 |
public getInventoryScansForItem_call(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getInventoryScansForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1468 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1469 |
this.itemId = itemId;
|
|
|
1470 |
this.fromDate = fromDate;
|
|
|
1471 |
this.toDate = toDate;
|
|
|
1472 |
}
|
|
|
1473 |
|
|
|
1474 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1475 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryScansForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1476 |
getInventoryScansForItem_args args = new getInventoryScansForItem_args();
|
|
|
1477 |
args.setItemId(itemId);
|
|
|
1478 |
args.setFromDate(fromDate);
|
|
|
1479 |
args.setToDate(toDate);
|
|
|
1480 |
args.write(prot);
|
|
|
1481 |
prot.writeMessageEnd();
|
|
|
1482 |
}
|
|
|
1483 |
|
|
|
1484 |
public List<Scan> getResult() throws org.apache.thrift.TException {
|
|
|
1485 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1486 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1487 |
}
|
|
|
1488 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1489 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1490 |
return (new Client(prot)).recv_getInventoryScansForItem();
|
|
|
1491 |
}
|
|
|
1492 |
}
|
|
|
1493 |
|
|
|
1494 |
public void getScanRecordsForSerialNumber(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1495 |
checkReady();
|
|
|
1496 |
getScanRecordsForSerialNumber_call method_call = new getScanRecordsForSerialNumber_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1497 |
this.___currentMethod = method_call;
|
|
|
1498 |
___manager.call(method_call);
|
|
|
1499 |
}
|
|
|
1500 |
|
|
|
1501 |
public static class getScanRecordsForSerialNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1502 |
private long serialNumber;
|
|
|
1503 |
public getScanRecordsForSerialNumber_call(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1504 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1505 |
this.serialNumber = serialNumber;
|
|
|
1506 |
}
|
|
|
1507 |
|
|
|
1508 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1509 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScanRecordsForSerialNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1510 |
getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
|
|
|
1511 |
args.setSerialNumber(serialNumber);
|
|
|
1512 |
args.write(prot);
|
|
|
1513 |
prot.writeMessageEnd();
|
|
|
1514 |
}
|
|
|
1515 |
|
|
|
1516 |
public List<Scan> getResult() throws org.apache.thrift.TException {
|
|
|
1517 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1518 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1519 |
}
|
|
|
1520 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1521 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1522 |
return (new Client(prot)).recv_getScanRecordsForSerialNumber();
|
|
|
1523 |
}
|
|
|
1524 |
}
|
|
|
1525 |
|
| 6467 |
amar.kumar |
1526 |
public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1527 |
checkReady();
|
|
|
1528 |
scanForPurchaseReturn_call method_call = new scanForPurchaseReturn_call(saleReturnItems, vendorId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1529 |
this.___currentMethod = method_call;
|
|
|
1530 |
___manager.call(method_call);
|
|
|
1531 |
}
|
|
|
1532 |
|
|
|
1533 |
public static class scanForPurchaseReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1534 |
private List<InventoryItem> saleReturnItems;
|
|
|
1535 |
private long vendorId;
|
|
|
1536 |
public scanForPurchaseReturn_call(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForPurchaseReturn_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1537 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1538 |
this.saleReturnItems = saleReturnItems;
|
|
|
1539 |
this.vendorId = vendorId;
|
|
|
1540 |
}
|
|
|
1541 |
|
|
|
1542 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1543 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForPurchaseReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1544 |
scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
|
|
|
1545 |
args.setSaleReturnItems(saleReturnItems);
|
|
|
1546 |
args.setVendorId(vendorId);
|
|
|
1547 |
args.write(prot);
|
|
|
1548 |
prot.writeMessageEnd();
|
|
|
1549 |
}
|
|
|
1550 |
|
|
|
1551 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1552 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1553 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1554 |
}
|
|
|
1555 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1556 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1557 |
(new Client(prot)).recv_scanForPurchaseReturn();
|
|
|
1558 |
}
|
|
|
1559 |
}
|
|
|
1560 |
|
| 6548 |
amar.kumar |
1561 |
public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForLostItem_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1562 |
checkReady();
|
|
|
1563 |
scanForLostItem_call method_call = new scanForLostItem_call(lostItems, vendorId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1564 |
this.___currentMethod = method_call;
|
|
|
1565 |
___manager.call(method_call);
|
|
|
1566 |
}
|
|
|
1567 |
|
|
|
1568 |
public static class scanForLostItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1569 |
private List<InventoryItem> lostItems;
|
|
|
1570 |
private long vendorId;
|
|
|
1571 |
public scanForLostItem_call(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForLostItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1572 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1573 |
this.lostItems = lostItems;
|
|
|
1574 |
this.vendorId = vendorId;
|
|
|
1575 |
}
|
|
|
1576 |
|
|
|
1577 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1578 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForLostItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1579 |
scanForLostItem_args args = new scanForLostItem_args();
|
|
|
1580 |
args.setLostItems(lostItems);
|
|
|
1581 |
args.setVendorId(vendorId);
|
|
|
1582 |
args.write(prot);
|
|
|
1583 |
prot.writeMessageEnd();
|
|
|
1584 |
}
|
|
|
1585 |
|
|
|
1586 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1587 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1588 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1589 |
}
|
|
|
1590 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1591 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1592 |
(new Client(prot)).recv_scanForLostItem();
|
|
|
1593 |
}
|
|
|
1594 |
}
|
|
|
1595 |
|
|
|
1596 |
public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1597 |
checkReady();
|
|
|
1598 |
getCurrentSerializedInventoryByScans_call method_call = new getCurrentSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1599 |
this.___currentMethod = method_call;
|
|
|
1600 |
___manager.call(method_call);
|
|
|
1601 |
}
|
|
|
1602 |
|
|
|
1603 |
public static class getCurrentSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1604 |
public getCurrentSerializedInventoryByScans_call(org.apache.thrift.async.AsyncMethodCallback<getCurrentSerializedInventoryByScans_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1605 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1606 |
}
|
|
|
1607 |
|
|
|
1608 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1609 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1610 |
getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
|
|
|
1611 |
args.write(prot);
|
|
|
1612 |
prot.writeMessageEnd();
|
|
|
1613 |
}
|
|
|
1614 |
|
|
|
1615 |
public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
|
|
|
1616 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1617 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1618 |
}
|
|
|
1619 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1620 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1621 |
return (new Client(prot)).recv_getCurrentSerializedInventoryByScans();
|
|
|
1622 |
}
|
|
|
1623 |
}
|
|
|
1624 |
|
| 6630 |
amar.kumar |
1625 |
public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1626 |
checkReady();
|
|
|
1627 |
getCurrentNonSerializedInventoryByScans_call method_call = new getCurrentNonSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1628 |
this.___currentMethod = method_call;
|
|
|
1629 |
___manager.call(method_call);
|
|
|
1630 |
}
|
|
|
1631 |
|
|
|
1632 |
public static class getCurrentNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1633 |
public getCurrentNonSerializedInventoryByScans_call(org.apache.thrift.async.AsyncMethodCallback<getCurrentNonSerializedInventoryByScans_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1634 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1635 |
}
|
|
|
1636 |
|
|
|
1637 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1638 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1639 |
getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
|
|
|
1640 |
args.write(prot);
|
|
|
1641 |
prot.writeMessageEnd();
|
|
|
1642 |
}
|
|
|
1643 |
|
|
|
1644 |
public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
|
|
|
1645 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1646 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1647 |
}
|
|
|
1648 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1649 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1650 |
return (new Client(prot)).recv_getCurrentNonSerializedInventoryByScans();
|
|
|
1651 |
}
|
|
|
1652 |
}
|
|
|
1653 |
|
| 6762 |
amar.kumar |
1654 |
public void getHistoricSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1655 |
checkReady();
|
|
|
1656 |
getHistoricSerializedInventoryByScans_call method_call = new getHistoricSerializedInventoryByScans_call(date, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1657 |
this.___currentMethod = method_call;
|
|
|
1658 |
___manager.call(method_call);
|
|
|
1659 |
}
|
|
|
1660 |
|
|
|
1661 |
public static class getHistoricSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1662 |
private long date;
|
|
|
1663 |
public getHistoricSerializedInventoryByScans_call(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricSerializedInventoryByScans_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 {
|
|
|
1664 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1665 |
this.date = date;
|
|
|
1666 |
}
|
|
|
1667 |
|
|
|
1668 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1669 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistoricSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1670 |
getHistoricSerializedInventoryByScans_args args = new getHistoricSerializedInventoryByScans_args();
|
|
|
1671 |
args.setDate(date);
|
|
|
1672 |
args.write(prot);
|
|
|
1673 |
prot.writeMessageEnd();
|
|
|
1674 |
}
|
|
|
1675 |
|
|
|
1676 |
public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
|
|
|
1677 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1678 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1679 |
}
|
|
|
1680 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1681 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1682 |
return (new Client(prot)).recv_getHistoricSerializedInventoryByScans();
|
|
|
1683 |
}
|
|
|
1684 |
}
|
|
|
1685 |
|
|
|
1686 |
public void getHistoricNonSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1687 |
checkReady();
|
|
|
1688 |
getHistoricNonSerializedInventoryByScans_call method_call = new getHistoricNonSerializedInventoryByScans_call(date, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1689 |
this.___currentMethod = method_call;
|
|
|
1690 |
___manager.call(method_call);
|
|
|
1691 |
}
|
|
|
1692 |
|
|
|
1693 |
public static class getHistoricNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1694 |
private long date;
|
|
|
1695 |
public getHistoricNonSerializedInventoryByScans_call(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricNonSerializedInventoryByScans_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 {
|
|
|
1696 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1697 |
this.date = date;
|
|
|
1698 |
}
|
|
|
1699 |
|
|
|
1700 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1701 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistoricNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1702 |
getHistoricNonSerializedInventoryByScans_args args = new getHistoricNonSerializedInventoryByScans_args();
|
|
|
1703 |
args.setDate(date);
|
|
|
1704 |
args.write(prot);
|
|
|
1705 |
prot.writeMessageEnd();
|
|
|
1706 |
}
|
|
|
1707 |
|
|
|
1708 |
public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
|
|
|
1709 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1710 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1711 |
}
|
|
|
1712 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1713 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1714 |
return (new Client(prot)).recv_getHistoricNonSerializedInventoryByScans();
|
|
|
1715 |
}
|
|
|
1716 |
}
|
|
|
1717 |
|
|
|
1718 |
public void scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSale_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1719 |
checkReady();
|
|
|
1720 |
scanForOursExternalSale_call method_call = new scanForOursExternalSale_call(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1721 |
this.___currentMethod = method_call;
|
|
|
1722 |
___manager.call(method_call);
|
|
|
1723 |
}
|
|
|
1724 |
|
|
|
1725 |
public static class scanForOursExternalSale_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1726 |
private long itemId;
|
|
|
1727 |
private String serialNumber;
|
|
|
1728 |
private String itemNumber;
|
|
|
1729 |
private String invoiceNumber;
|
|
|
1730 |
private long warehouseId;
|
|
|
1731 |
private double unitPrice;
|
|
|
1732 |
private long orderId;
|
|
|
1733 |
public scanForOursExternalSale_call(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSale_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 {
|
|
|
1734 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1735 |
this.itemId = itemId;
|
|
|
1736 |
this.serialNumber = serialNumber;
|
|
|
1737 |
this.itemNumber = itemNumber;
|
|
|
1738 |
this.invoiceNumber = invoiceNumber;
|
|
|
1739 |
this.warehouseId = warehouseId;
|
|
|
1740 |
this.unitPrice = unitPrice;
|
|
|
1741 |
this.orderId = orderId;
|
|
|
1742 |
}
|
|
|
1743 |
|
|
|
1744 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1745 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursExternalSale", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1746 |
scanForOursExternalSale_args args = new scanForOursExternalSale_args();
|
|
|
1747 |
args.setItemId(itemId);
|
|
|
1748 |
args.setSerialNumber(serialNumber);
|
|
|
1749 |
args.setItemNumber(itemNumber);
|
|
|
1750 |
args.setInvoiceNumber(invoiceNumber);
|
|
|
1751 |
args.setWarehouseId(warehouseId);
|
|
|
1752 |
args.setUnitPrice(unitPrice);
|
|
|
1753 |
args.setOrderId(orderId);
|
|
|
1754 |
args.write(prot);
|
|
|
1755 |
prot.writeMessageEnd();
|
|
|
1756 |
}
|
|
|
1757 |
|
|
|
1758 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1759 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1760 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1761 |
}
|
|
|
1762 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1763 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1764 |
return (new Client(prot)).recv_scanForOursExternalSale();
|
|
|
1765 |
}
|
|
|
1766 |
}
|
|
|
1767 |
|
|
|
1768 |
public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1769 |
checkReady();
|
|
|
1770 |
scanForOursExternalSaleReturn_call method_call = new scanForOursExternalSaleReturn_call(orderId, unitPrice, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1771 |
this.___currentMethod = method_call;
|
|
|
1772 |
___manager.call(method_call);
|
|
|
1773 |
}
|
|
|
1774 |
|
|
|
1775 |
public static class scanForOursExternalSaleReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1776 |
private long orderId;
|
|
|
1777 |
private double unitPrice;
|
|
|
1778 |
public scanForOursExternalSaleReturn_call(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSaleReturn_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 {
|
|
|
1779 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1780 |
this.orderId = orderId;
|
|
|
1781 |
this.unitPrice = unitPrice;
|
|
|
1782 |
}
|
|
|
1783 |
|
|
|
1784 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1785 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursExternalSaleReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1786 |
scanForOursExternalSaleReturn_args args = new scanForOursExternalSaleReturn_args();
|
|
|
1787 |
args.setOrderId(orderId);
|
|
|
1788 |
args.setUnitPrice(unitPrice);
|
|
|
1789 |
args.write(prot);
|
|
|
1790 |
prot.writeMessageEnd();
|
|
|
1791 |
}
|
|
|
1792 |
|
|
|
1793 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
1794 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1795 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1796 |
}
|
|
|
1797 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1798 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1799 |
(new Client(prot)).recv_scanForOursExternalSaleReturn();
|
|
|
1800 |
}
|
|
|
1801 |
}
|
|
|
1802 |
|
| 6880 |
amar.kumar |
1803 |
public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1804 |
checkReady();
|
|
|
1805 |
getMovementNonSerializedInventoryByScans_call method_call = new getMovementNonSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1806 |
this.___currentMethod = method_call;
|
|
|
1807 |
___manager.call(method_call);
|
|
|
1808 |
}
|
|
|
1809 |
|
|
|
1810 |
public static class getMovementNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1811 |
private long startDate;
|
|
|
1812 |
private long endDate;
|
|
|
1813 |
public getMovementNonSerializedInventoryByScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementNonSerializedInventoryByScans_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 {
|
|
|
1814 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1815 |
this.startDate = startDate;
|
|
|
1816 |
this.endDate = endDate;
|
|
|
1817 |
}
|
|
|
1818 |
|
|
|
1819 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1820 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1821 |
getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
|
|
|
1822 |
args.setStartDate(startDate);
|
|
|
1823 |
args.setEndDate(endDate);
|
|
|
1824 |
args.write(prot);
|
|
|
1825 |
prot.writeMessageEnd();
|
|
|
1826 |
}
|
|
|
1827 |
|
|
|
1828 |
public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
|
|
|
1829 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1830 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1831 |
}
|
|
|
1832 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1833 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1834 |
return (new Client(prot)).recv_getMovementNonSerializedInventoryByScans();
|
|
|
1835 |
}
|
|
|
1836 |
}
|
|
|
1837 |
|
|
|
1838 |
public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1839 |
checkReady();
|
|
|
1840 |
getMovementSerializedInventoryByScans_call method_call = new getMovementSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1841 |
this.___currentMethod = method_call;
|
|
|
1842 |
___manager.call(method_call);
|
|
|
1843 |
}
|
|
|
1844 |
|
|
|
1845 |
public static class getMovementSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1846 |
private long startDate;
|
|
|
1847 |
private long endDate;
|
|
|
1848 |
public getMovementSerializedInventoryByScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementSerializedInventoryByScans_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 {
|
|
|
1849 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1850 |
this.startDate = startDate;
|
|
|
1851 |
this.endDate = endDate;
|
|
|
1852 |
}
|
|
|
1853 |
|
|
|
1854 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1855 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1856 |
getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
|
|
|
1857 |
args.setStartDate(startDate);
|
|
|
1858 |
args.setEndDate(endDate);
|
|
|
1859 |
args.write(prot);
|
|
|
1860 |
prot.writeMessageEnd();
|
|
|
1861 |
}
|
|
|
1862 |
|
|
|
1863 |
public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
|
|
|
1864 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1865 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1866 |
}
|
|
|
1867 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1868 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1869 |
return (new Client(prot)).recv_getMovementSerializedInventoryByScans();
|
|
|
1870 |
}
|
|
|
1871 |
}
|
|
|
1872 |
|
| 3430 |
rajveer |
1873 |
}
|
|
|
1874 |
|
|
|
1875 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
|
|
1876 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
1877 |
public Processor(I iface) {
|
|
|
1878 |
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
|
|
|
1879 |
}
|
|
|
1880 |
|
|
|
1881 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
1882 |
super(iface, getProcessMap(processMap));
|
|
|
1883 |
}
|
|
|
1884 |
|
|
|
1885 |
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 |
1886 |
processMap.put("getInventoryItem", new getInventoryItem());
|
| 5361 |
mandeep.dh |
1887 |
processMap.put("getNonSeralizedInventoryItem", new getNonSeralizedInventoryItem());
|
| 4496 |
mandeep.dh |
1888 |
processMap.put("scan", new scan());
|
|
|
1889 |
processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
|
|
|
1890 |
processMap.put("scanForOrder", new scanForOrder());
|
|
|
1891 |
processMap.put("createItemNumberMapping", new createItemNumberMapping());
|
| 4622 |
amit.gupta |
1892 |
processMap.put("getItemNumbers", new getItemNumbers());
|
| 5110 |
mandeep.dh |
1893 |
processMap.put("getItemIds", new getItemIds());
|
| 5185 |
mandeep.dh |
1894 |
processMap.put("getInventoryItemsFromLastScanType", new getInventoryItemsFromLastScanType());
|
|
|
1895 |
processMap.put("getInventoryItemFromId", new getInventoryItemFromId());
|
| 5372 |
mandeep.dh |
1896 |
processMap.put("getPurchaseScans", new getPurchaseScans());
|
| 5496 |
mandeep.dh |
1897 |
processMap.put("fetchScansPerInvoiceNumber", new fetchScansPerInvoiceNumber());
|
| 5620 |
mandeep.dh |
1898 |
processMap.put("getInventoryItemFromOrder", new getInventoryItemFromOrder());
|
| 5711 |
mandeep.dh |
1899 |
processMap.put("getInventoryAge", new getInventoryAge());
|
| 6322 |
amar.kumar |
1900 |
processMap.put("getInventoryScansForItem", new getInventoryScansForItem());
|
|
|
1901 |
processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
|
| 6467 |
amar.kumar |
1902 |
processMap.put("scanForPurchaseReturn", new scanForPurchaseReturn());
|
| 6548 |
amar.kumar |
1903 |
processMap.put("scanForLostItem", new scanForLostItem());
|
|
|
1904 |
processMap.put("getCurrentSerializedInventoryByScans", new getCurrentSerializedInventoryByScans());
|
| 6630 |
amar.kumar |
1905 |
processMap.put("getCurrentNonSerializedInventoryByScans", new getCurrentNonSerializedInventoryByScans());
|
| 6762 |
amar.kumar |
1906 |
processMap.put("getHistoricSerializedInventoryByScans", new getHistoricSerializedInventoryByScans());
|
|
|
1907 |
processMap.put("getHistoricNonSerializedInventoryByScans", new getHistoricNonSerializedInventoryByScans());
|
|
|
1908 |
processMap.put("scanForOursExternalSale", new scanForOursExternalSale());
|
|
|
1909 |
processMap.put("scanForOursExternalSaleReturn", new scanForOursExternalSaleReturn());
|
| 6880 |
amar.kumar |
1910 |
processMap.put("getMovementNonSerializedInventoryByScans", new getMovementNonSerializedInventoryByScans());
|
|
|
1911 |
processMap.put("getMovementSerializedInventoryByScans", new getMovementSerializedInventoryByScans());
|
| 3430 |
rajveer |
1912 |
return processMap;
|
|
|
1913 |
}
|
|
|
1914 |
|
| 4496 |
mandeep.dh |
1915 |
private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
|
|
|
1916 |
public getInventoryItem() {
|
|
|
1917 |
super("getInventoryItem");
|
| 3430 |
rajveer |
1918 |
}
|
|
|
1919 |
|
| 4496 |
mandeep.dh |
1920 |
protected getInventoryItem_args getEmptyArgsInstance() {
|
|
|
1921 |
return new getInventoryItem_args();
|
| 3430 |
rajveer |
1922 |
}
|
|
|
1923 |
|
| 4496 |
mandeep.dh |
1924 |
protected getInventoryItem_result getResult(I iface, getInventoryItem_args args) throws org.apache.thrift.TException {
|
|
|
1925 |
getInventoryItem_result result = new getInventoryItem_result();
|
| 4541 |
mandeep.dh |
1926 |
try {
|
|
|
1927 |
result.success = iface.getInventoryItem(args.serialNumber);
|
|
|
1928 |
} catch (WarehouseServiceException wex) {
|
|
|
1929 |
result.wex = wex;
|
|
|
1930 |
}
|
| 3430 |
rajveer |
1931 |
return result;
|
| 2832 |
chandransh |
1932 |
}
|
|
|
1933 |
}
|
|
|
1934 |
|
| 5361 |
mandeep.dh |
1935 |
private static class getNonSeralizedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonSeralizedInventoryItem_args> {
|
|
|
1936 |
public getNonSeralizedInventoryItem() {
|
|
|
1937 |
super("getNonSeralizedInventoryItem");
|
| 3430 |
rajveer |
1938 |
}
|
|
|
1939 |
|
| 5361 |
mandeep.dh |
1940 |
protected getNonSeralizedInventoryItem_args getEmptyArgsInstance() {
|
|
|
1941 |
return new getNonSeralizedInventoryItem_args();
|
| 3430 |
rajveer |
1942 |
}
|
|
|
1943 |
|
| 5361 |
mandeep.dh |
1944 |
protected getNonSeralizedInventoryItem_result getResult(I iface, getNonSeralizedInventoryItem_args args) throws org.apache.thrift.TException {
|
|
|
1945 |
getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
|
|
|
1946 |
try {
|
| 5530 |
mandeep.dh |
1947 |
result.success = iface.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
1948 |
} catch (WarehouseServiceException wex) {
|
|
|
1949 |
result.wex = wex;
|
|
|
1950 |
}
|
| 3430 |
rajveer |
1951 |
return result;
|
| 2820 |
chandransh |
1952 |
}
|
|
|
1953 |
}
|
|
|
1954 |
|
| 4496 |
mandeep.dh |
1955 |
private static class scan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scan_args> {
|
|
|
1956 |
public scan() {
|
|
|
1957 |
super("scan");
|
| 3430 |
rajveer |
1958 |
}
|
|
|
1959 |
|
| 4496 |
mandeep.dh |
1960 |
protected scan_args getEmptyArgsInstance() {
|
|
|
1961 |
return new scan_args();
|
| 3430 |
rajveer |
1962 |
}
|
|
|
1963 |
|
| 4496 |
mandeep.dh |
1964 |
protected scan_result getResult(I iface, scan_args args) throws org.apache.thrift.TException {
|
|
|
1965 |
scan_result result = new scan_result();
|
| 3383 |
chandransh |
1966 |
try {
|
| 5361 |
mandeep.dh |
1967 |
iface.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId);
|
| 3383 |
chandransh |
1968 |
} catch (WarehouseServiceException wex) {
|
|
|
1969 |
result.wex = wex;
|
|
|
1970 |
}
|
| 3430 |
rajveer |
1971 |
return result;
|
| 3383 |
chandransh |
1972 |
}
|
|
|
1973 |
}
|
|
|
1974 |
|
| 4496 |
mandeep.dh |
1975 |
private static class scanSerializedItemForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItemForOrder_args> {
|
|
|
1976 |
public scanSerializedItemForOrder() {
|
|
|
1977 |
super("scanSerializedItemForOrder");
|
| 3430 |
rajveer |
1978 |
}
|
|
|
1979 |
|
| 4496 |
mandeep.dh |
1980 |
protected scanSerializedItemForOrder_args getEmptyArgsInstance() {
|
|
|
1981 |
return new scanSerializedItemForOrder_args();
|
| 3430 |
rajveer |
1982 |
}
|
|
|
1983 |
|
| 4496 |
mandeep.dh |
1984 |
protected scanSerializedItemForOrder_result getResult(I iface, scanSerializedItemForOrder_args args) throws org.apache.thrift.TException {
|
|
|
1985 |
scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
|
| 2820 |
chandransh |
1986 |
try {
|
| 5110 |
mandeep.dh |
1987 |
result.success = iface.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId);
|
| 2820 |
chandransh |
1988 |
} catch (WarehouseServiceException wex) {
|
|
|
1989 |
result.wex = wex;
|
|
|
1990 |
}
|
| 3430 |
rajveer |
1991 |
return result;
|
| 2820 |
chandransh |
1992 |
}
|
|
|
1993 |
}
|
|
|
1994 |
|
| 4496 |
mandeep.dh |
1995 |
private static class scanForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOrder_args> {
|
|
|
1996 |
public scanForOrder() {
|
|
|
1997 |
super("scanForOrder");
|
| 3430 |
rajveer |
1998 |
}
|
|
|
1999 |
|
| 4496 |
mandeep.dh |
2000 |
protected scanForOrder_args getEmptyArgsInstance() {
|
|
|
2001 |
return new scanForOrder_args();
|
| 3430 |
rajveer |
2002 |
}
|
|
|
2003 |
|
| 4496 |
mandeep.dh |
2004 |
protected scanForOrder_result getResult(I iface, scanForOrder_args args) throws org.apache.thrift.TException {
|
|
|
2005 |
scanForOrder_result result = new scanForOrder_result();
|
| 2820 |
chandransh |
2006 |
try {
|
| 5361 |
mandeep.dh |
2007 |
result.success = iface.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId);
|
| 2820 |
chandransh |
2008 |
} catch (WarehouseServiceException wex) {
|
|
|
2009 |
result.wex = wex;
|
|
|
2010 |
}
|
| 3430 |
rajveer |
2011 |
return result;
|
| 2820 |
chandransh |
2012 |
}
|
|
|
2013 |
}
|
|
|
2014 |
|
| 4496 |
mandeep.dh |
2015 |
private static class createItemNumberMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createItemNumberMapping_args> {
|
|
|
2016 |
public createItemNumberMapping() {
|
|
|
2017 |
super("createItemNumberMapping");
|
|
|
2018 |
}
|
|
|
2019 |
|
|
|
2020 |
protected createItemNumberMapping_args getEmptyArgsInstance() {
|
|
|
2021 |
return new createItemNumberMapping_args();
|
|
|
2022 |
}
|
|
|
2023 |
|
|
|
2024 |
protected createItemNumberMapping_result getResult(I iface, createItemNumberMapping_args args) throws org.apache.thrift.TException {
|
|
|
2025 |
createItemNumberMapping_result result = new createItemNumberMapping_result();
|
|
|
2026 |
iface.createItemNumberMapping(args.itemNumber, args.itemId);
|
|
|
2027 |
return result;
|
|
|
2028 |
}
|
|
|
2029 |
}
|
|
|
2030 |
|
| 4622 |
amit.gupta |
2031 |
private static class getItemNumbers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemNumbers_args> {
|
|
|
2032 |
public getItemNumbers() {
|
|
|
2033 |
super("getItemNumbers");
|
|
|
2034 |
}
|
|
|
2035 |
|
|
|
2036 |
protected getItemNumbers_args getEmptyArgsInstance() {
|
|
|
2037 |
return new getItemNumbers_args();
|
|
|
2038 |
}
|
|
|
2039 |
|
|
|
2040 |
protected getItemNumbers_result getResult(I iface, getItemNumbers_args args) throws org.apache.thrift.TException {
|
|
|
2041 |
getItemNumbers_result result = new getItemNumbers_result();
|
|
|
2042 |
result.success = iface.getItemNumbers(args.itemId);
|
|
|
2043 |
return result;
|
|
|
2044 |
}
|
|
|
2045 |
}
|
|
|
2046 |
|
| 5110 |
mandeep.dh |
2047 |
private static class getItemIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemIds_args> {
|
|
|
2048 |
public getItemIds() {
|
|
|
2049 |
super("getItemIds");
|
|
|
2050 |
}
|
|
|
2051 |
|
|
|
2052 |
protected getItemIds_args getEmptyArgsInstance() {
|
|
|
2053 |
return new getItemIds_args();
|
|
|
2054 |
}
|
|
|
2055 |
|
|
|
2056 |
protected getItemIds_result getResult(I iface, getItemIds_args args) throws org.apache.thrift.TException {
|
|
|
2057 |
getItemIds_result result = new getItemIds_result();
|
|
|
2058 |
result.success = iface.getItemIds(args.itemNumber);
|
|
|
2059 |
return result;
|
|
|
2060 |
}
|
|
|
2061 |
}
|
|
|
2062 |
|
| 5185 |
mandeep.dh |
2063 |
private static class getInventoryItemsFromLastScanType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemsFromLastScanType_args> {
|
|
|
2064 |
public getInventoryItemsFromLastScanType() {
|
|
|
2065 |
super("getInventoryItemsFromLastScanType");
|
|
|
2066 |
}
|
|
|
2067 |
|
|
|
2068 |
protected getInventoryItemsFromLastScanType_args getEmptyArgsInstance() {
|
|
|
2069 |
return new getInventoryItemsFromLastScanType_args();
|
|
|
2070 |
}
|
|
|
2071 |
|
|
|
2072 |
protected getInventoryItemsFromLastScanType_result getResult(I iface, getInventoryItemsFromLastScanType_args args) throws org.apache.thrift.TException {
|
|
|
2073 |
getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
|
|
|
2074 |
try {
|
|
|
2075 |
result.success = iface.getInventoryItemsFromLastScanType(args.lastScanType);
|
|
|
2076 |
} catch (WarehouseServiceException wex) {
|
|
|
2077 |
result.wex = wex;
|
|
|
2078 |
}
|
|
|
2079 |
return result;
|
|
|
2080 |
}
|
|
|
2081 |
}
|
|
|
2082 |
|
|
|
2083 |
private static class getInventoryItemFromId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromId_args> {
|
|
|
2084 |
public getInventoryItemFromId() {
|
|
|
2085 |
super("getInventoryItemFromId");
|
|
|
2086 |
}
|
|
|
2087 |
|
|
|
2088 |
protected getInventoryItemFromId_args getEmptyArgsInstance() {
|
|
|
2089 |
return new getInventoryItemFromId_args();
|
|
|
2090 |
}
|
|
|
2091 |
|
|
|
2092 |
protected getInventoryItemFromId_result getResult(I iface, getInventoryItemFromId_args args) throws org.apache.thrift.TException {
|
|
|
2093 |
getInventoryItemFromId_result result = new getInventoryItemFromId_result();
|
|
|
2094 |
try {
|
|
|
2095 |
result.success = iface.getInventoryItemFromId(args.inventoryItemId);
|
|
|
2096 |
} catch (WarehouseServiceException wex) {
|
|
|
2097 |
result.wex = wex;
|
|
|
2098 |
}
|
|
|
2099 |
return result;
|
|
|
2100 |
}
|
|
|
2101 |
}
|
|
|
2102 |
|
| 5372 |
mandeep.dh |
2103 |
private static class getPurchaseScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseScans_args> {
|
|
|
2104 |
public getPurchaseScans() {
|
|
|
2105 |
super("getPurchaseScans");
|
|
|
2106 |
}
|
|
|
2107 |
|
|
|
2108 |
protected getPurchaseScans_args getEmptyArgsInstance() {
|
|
|
2109 |
return new getPurchaseScans_args();
|
|
|
2110 |
}
|
|
|
2111 |
|
|
|
2112 |
protected getPurchaseScans_result getResult(I iface, getPurchaseScans_args args) throws org.apache.thrift.TException {
|
|
|
2113 |
getPurchaseScans_result result = new getPurchaseScans_result();
|
|
|
2114 |
result.success = iface.getPurchaseScans(args.startDate, args.endDate);
|
|
|
2115 |
return result;
|
|
|
2116 |
}
|
|
|
2117 |
}
|
|
|
2118 |
|
| 5496 |
mandeep.dh |
2119 |
private static class fetchScansPerInvoiceNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fetchScansPerInvoiceNumber_args> {
|
|
|
2120 |
public fetchScansPerInvoiceNumber() {
|
|
|
2121 |
super("fetchScansPerInvoiceNumber");
|
|
|
2122 |
}
|
|
|
2123 |
|
|
|
2124 |
protected fetchScansPerInvoiceNumber_args getEmptyArgsInstance() {
|
|
|
2125 |
return new fetchScansPerInvoiceNumber_args();
|
|
|
2126 |
}
|
|
|
2127 |
|
|
|
2128 |
protected fetchScansPerInvoiceNumber_result getResult(I iface, fetchScansPerInvoiceNumber_args args) throws org.apache.thrift.TException {
|
|
|
2129 |
fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
|
|
|
2130 |
result.success = iface.fetchScansPerInvoiceNumber(args.date);
|
|
|
2131 |
return result;
|
|
|
2132 |
}
|
|
|
2133 |
}
|
|
|
2134 |
|
| 5620 |
mandeep.dh |
2135 |
private static class getInventoryItemFromOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromOrder_args> {
|
|
|
2136 |
public getInventoryItemFromOrder() {
|
|
|
2137 |
super("getInventoryItemFromOrder");
|
|
|
2138 |
}
|
|
|
2139 |
|
|
|
2140 |
protected getInventoryItemFromOrder_args getEmptyArgsInstance() {
|
|
|
2141 |
return new getInventoryItemFromOrder_args();
|
|
|
2142 |
}
|
|
|
2143 |
|
|
|
2144 |
protected getInventoryItemFromOrder_result getResult(I iface, getInventoryItemFromOrder_args args) throws org.apache.thrift.TException {
|
|
|
2145 |
getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
|
|
|
2146 |
try {
|
|
|
2147 |
result.success = iface.getInventoryItemFromOrder(args.orderId);
|
|
|
2148 |
} catch (WarehouseServiceException we) {
|
|
|
2149 |
result.we = we;
|
|
|
2150 |
}
|
|
|
2151 |
return result;
|
|
|
2152 |
}
|
|
|
2153 |
}
|
|
|
2154 |
|
| 5711 |
mandeep.dh |
2155 |
private static class getInventoryAge<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryAge_args> {
|
|
|
2156 |
public getInventoryAge() {
|
|
|
2157 |
super("getInventoryAge");
|
|
|
2158 |
}
|
|
|
2159 |
|
|
|
2160 |
protected getInventoryAge_args getEmptyArgsInstance() {
|
|
|
2161 |
return new getInventoryAge_args();
|
|
|
2162 |
}
|
|
|
2163 |
|
|
|
2164 |
protected getInventoryAge_result getResult(I iface, getInventoryAge_args args) throws org.apache.thrift.TException {
|
|
|
2165 |
getInventoryAge_result result = new getInventoryAge_result();
|
|
|
2166 |
result.success = iface.getInventoryAge();
|
|
|
2167 |
return result;
|
|
|
2168 |
}
|
|
|
2169 |
}
|
|
|
2170 |
|
| 6322 |
amar.kumar |
2171 |
private static class getInventoryScansForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryScansForItem_args> {
|
|
|
2172 |
public getInventoryScansForItem() {
|
|
|
2173 |
super("getInventoryScansForItem");
|
|
|
2174 |
}
|
|
|
2175 |
|
|
|
2176 |
protected getInventoryScansForItem_args getEmptyArgsInstance() {
|
|
|
2177 |
return new getInventoryScansForItem_args();
|
|
|
2178 |
}
|
|
|
2179 |
|
|
|
2180 |
protected getInventoryScansForItem_result getResult(I iface, getInventoryScansForItem_args args) throws org.apache.thrift.TException {
|
|
|
2181 |
getInventoryScansForItem_result result = new getInventoryScansForItem_result();
|
|
|
2182 |
result.success = iface.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate);
|
|
|
2183 |
return result;
|
|
|
2184 |
}
|
|
|
2185 |
}
|
|
|
2186 |
|
|
|
2187 |
private static class getScanRecordsForSerialNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScanRecordsForSerialNumber_args> {
|
|
|
2188 |
public getScanRecordsForSerialNumber() {
|
|
|
2189 |
super("getScanRecordsForSerialNumber");
|
|
|
2190 |
}
|
|
|
2191 |
|
|
|
2192 |
protected getScanRecordsForSerialNumber_args getEmptyArgsInstance() {
|
|
|
2193 |
return new getScanRecordsForSerialNumber_args();
|
|
|
2194 |
}
|
|
|
2195 |
|
|
|
2196 |
protected getScanRecordsForSerialNumber_result getResult(I iface, getScanRecordsForSerialNumber_args args) throws org.apache.thrift.TException {
|
|
|
2197 |
getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
|
|
|
2198 |
result.success = iface.getScanRecordsForSerialNumber(args.serialNumber);
|
|
|
2199 |
return result;
|
|
|
2200 |
}
|
|
|
2201 |
}
|
|
|
2202 |
|
| 6467 |
amar.kumar |
2203 |
private static class scanForPurchaseReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForPurchaseReturn_args> {
|
|
|
2204 |
public scanForPurchaseReturn() {
|
|
|
2205 |
super("scanForPurchaseReturn");
|
|
|
2206 |
}
|
|
|
2207 |
|
|
|
2208 |
protected scanForPurchaseReturn_args getEmptyArgsInstance() {
|
|
|
2209 |
return new scanForPurchaseReturn_args();
|
|
|
2210 |
}
|
|
|
2211 |
|
|
|
2212 |
protected scanForPurchaseReturn_result getResult(I iface, scanForPurchaseReturn_args args) throws org.apache.thrift.TException {
|
|
|
2213 |
scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
|
|
|
2214 |
try {
|
|
|
2215 |
iface.scanForPurchaseReturn(args.saleReturnItems, args.vendorId);
|
|
|
2216 |
} catch (WarehouseServiceException ex) {
|
|
|
2217 |
result.ex = ex;
|
|
|
2218 |
}
|
|
|
2219 |
return result;
|
|
|
2220 |
}
|
|
|
2221 |
}
|
|
|
2222 |
|
| 6548 |
amar.kumar |
2223 |
private static class scanForLostItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForLostItem_args> {
|
|
|
2224 |
public scanForLostItem() {
|
|
|
2225 |
super("scanForLostItem");
|
|
|
2226 |
}
|
|
|
2227 |
|
|
|
2228 |
protected scanForLostItem_args getEmptyArgsInstance() {
|
|
|
2229 |
return new scanForLostItem_args();
|
|
|
2230 |
}
|
|
|
2231 |
|
|
|
2232 |
protected scanForLostItem_result getResult(I iface, scanForLostItem_args args) throws org.apache.thrift.TException {
|
|
|
2233 |
scanForLostItem_result result = new scanForLostItem_result();
|
|
|
2234 |
try {
|
|
|
2235 |
iface.scanForLostItem(args.lostItems, args.vendorId);
|
|
|
2236 |
} catch (WarehouseServiceException ex) {
|
|
|
2237 |
result.ex = ex;
|
|
|
2238 |
}
|
|
|
2239 |
return result;
|
|
|
2240 |
}
|
|
|
2241 |
}
|
|
|
2242 |
|
|
|
2243 |
private static class getCurrentSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentSerializedInventoryByScans_args> {
|
|
|
2244 |
public getCurrentSerializedInventoryByScans() {
|
|
|
2245 |
super("getCurrentSerializedInventoryByScans");
|
|
|
2246 |
}
|
|
|
2247 |
|
|
|
2248 |
protected getCurrentSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
2249 |
return new getCurrentSerializedInventoryByScans_args();
|
|
|
2250 |
}
|
|
|
2251 |
|
|
|
2252 |
protected getCurrentSerializedInventoryByScans_result getResult(I iface, getCurrentSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
2253 |
getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
|
|
|
2254 |
result.success = iface.getCurrentSerializedInventoryByScans();
|
|
|
2255 |
return result;
|
|
|
2256 |
}
|
|
|
2257 |
}
|
|
|
2258 |
|
| 6630 |
amar.kumar |
2259 |
private static class getCurrentNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentNonSerializedInventoryByScans_args> {
|
|
|
2260 |
public getCurrentNonSerializedInventoryByScans() {
|
|
|
2261 |
super("getCurrentNonSerializedInventoryByScans");
|
|
|
2262 |
}
|
|
|
2263 |
|
|
|
2264 |
protected getCurrentNonSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
2265 |
return new getCurrentNonSerializedInventoryByScans_args();
|
|
|
2266 |
}
|
|
|
2267 |
|
|
|
2268 |
protected getCurrentNonSerializedInventoryByScans_result getResult(I iface, getCurrentNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
2269 |
getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
|
|
|
2270 |
result.success = iface.getCurrentNonSerializedInventoryByScans();
|
|
|
2271 |
return result;
|
|
|
2272 |
}
|
|
|
2273 |
}
|
|
|
2274 |
|
| 6762 |
amar.kumar |
2275 |
private static class getHistoricSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistoricSerializedInventoryByScans_args> {
|
|
|
2276 |
public getHistoricSerializedInventoryByScans() {
|
|
|
2277 |
super("getHistoricSerializedInventoryByScans");
|
|
|
2278 |
}
|
|
|
2279 |
|
|
|
2280 |
protected getHistoricSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
2281 |
return new getHistoricSerializedInventoryByScans_args();
|
|
|
2282 |
}
|
|
|
2283 |
|
|
|
2284 |
protected getHistoricSerializedInventoryByScans_result getResult(I iface, getHistoricSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
2285 |
getHistoricSerializedInventoryByScans_result result = new getHistoricSerializedInventoryByScans_result();
|
|
|
2286 |
result.success = iface.getHistoricSerializedInventoryByScans(args.date);
|
|
|
2287 |
return result;
|
|
|
2288 |
}
|
|
|
2289 |
}
|
|
|
2290 |
|
|
|
2291 |
private static class getHistoricNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistoricNonSerializedInventoryByScans_args> {
|
|
|
2292 |
public getHistoricNonSerializedInventoryByScans() {
|
|
|
2293 |
super("getHistoricNonSerializedInventoryByScans");
|
|
|
2294 |
}
|
|
|
2295 |
|
|
|
2296 |
protected getHistoricNonSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
2297 |
return new getHistoricNonSerializedInventoryByScans_args();
|
|
|
2298 |
}
|
|
|
2299 |
|
|
|
2300 |
protected getHistoricNonSerializedInventoryByScans_result getResult(I iface, getHistoricNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
2301 |
getHistoricNonSerializedInventoryByScans_result result = new getHistoricNonSerializedInventoryByScans_result();
|
|
|
2302 |
result.success = iface.getHistoricNonSerializedInventoryByScans(args.date);
|
|
|
2303 |
return result;
|
|
|
2304 |
}
|
|
|
2305 |
}
|
|
|
2306 |
|
|
|
2307 |
private static class scanForOursExternalSale<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursExternalSale_args> {
|
|
|
2308 |
public scanForOursExternalSale() {
|
|
|
2309 |
super("scanForOursExternalSale");
|
|
|
2310 |
}
|
|
|
2311 |
|
|
|
2312 |
protected scanForOursExternalSale_args getEmptyArgsInstance() {
|
|
|
2313 |
return new scanForOursExternalSale_args();
|
|
|
2314 |
}
|
|
|
2315 |
|
|
|
2316 |
protected scanForOursExternalSale_result getResult(I iface, scanForOursExternalSale_args args) throws org.apache.thrift.TException {
|
|
|
2317 |
scanForOursExternalSale_result result = new scanForOursExternalSale_result();
|
|
|
2318 |
try {
|
|
|
2319 |
result.success = iface.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.orderId);
|
|
|
2320 |
} catch (WarehouseServiceException ex) {
|
|
|
2321 |
result.ex = ex;
|
|
|
2322 |
}
|
|
|
2323 |
return result;
|
|
|
2324 |
}
|
|
|
2325 |
}
|
|
|
2326 |
|
|
|
2327 |
private static class scanForOursExternalSaleReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursExternalSaleReturn_args> {
|
|
|
2328 |
public scanForOursExternalSaleReturn() {
|
|
|
2329 |
super("scanForOursExternalSaleReturn");
|
|
|
2330 |
}
|
|
|
2331 |
|
|
|
2332 |
protected scanForOursExternalSaleReturn_args getEmptyArgsInstance() {
|
|
|
2333 |
return new scanForOursExternalSaleReturn_args();
|
|
|
2334 |
}
|
|
|
2335 |
|
|
|
2336 |
protected scanForOursExternalSaleReturn_result getResult(I iface, scanForOursExternalSaleReturn_args args) throws org.apache.thrift.TException {
|
|
|
2337 |
scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
|
|
|
2338 |
iface.scanForOursExternalSaleReturn(args.orderId, args.unitPrice);
|
|
|
2339 |
return result;
|
|
|
2340 |
}
|
|
|
2341 |
}
|
|
|
2342 |
|
| 6880 |
amar.kumar |
2343 |
private static class getMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementNonSerializedInventoryByScans_args> {
|
|
|
2344 |
public getMovementNonSerializedInventoryByScans() {
|
|
|
2345 |
super("getMovementNonSerializedInventoryByScans");
|
|
|
2346 |
}
|
|
|
2347 |
|
|
|
2348 |
protected getMovementNonSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
2349 |
return new getMovementNonSerializedInventoryByScans_args();
|
|
|
2350 |
}
|
|
|
2351 |
|
|
|
2352 |
protected getMovementNonSerializedInventoryByScans_result getResult(I iface, getMovementNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
2353 |
getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
|
|
|
2354 |
result.success = iface.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate);
|
|
|
2355 |
return result;
|
|
|
2356 |
}
|
|
|
2357 |
}
|
|
|
2358 |
|
|
|
2359 |
private static class getMovementSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementSerializedInventoryByScans_args> {
|
|
|
2360 |
public getMovementSerializedInventoryByScans() {
|
|
|
2361 |
super("getMovementSerializedInventoryByScans");
|
|
|
2362 |
}
|
|
|
2363 |
|
|
|
2364 |
protected getMovementSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
2365 |
return new getMovementSerializedInventoryByScans_args();
|
|
|
2366 |
}
|
|
|
2367 |
|
|
|
2368 |
protected getMovementSerializedInventoryByScans_result getResult(I iface, getMovementSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
2369 |
getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
|
|
|
2370 |
result.success = iface.getMovementSerializedInventoryByScans(args.startDate, args.endDate);
|
|
|
2371 |
return result;
|
|
|
2372 |
}
|
|
|
2373 |
}
|
|
|
2374 |
|
| 2820 |
chandransh |
2375 |
}
|
|
|
2376 |
|
| 4496 |
mandeep.dh |
2377 |
public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2378 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
|
| 2832 |
chandransh |
2379 |
|
| 4496 |
mandeep.dh |
2380 |
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 |
2381 |
|
| 4496 |
mandeep.dh |
2382 |
private String serialNumber; // required
|
| 2832 |
chandransh |
2383 |
|
|
|
2384 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2385 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
2386 |
SERIAL_NUMBER((short)1, "serialNumber");
|
| 2832 |
chandransh |
2387 |
|
|
|
2388 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2389 |
|
|
|
2390 |
static {
|
|
|
2391 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2392 |
byName.put(field.getFieldName(), field);
|
|
|
2393 |
}
|
|
|
2394 |
}
|
|
|
2395 |
|
|
|
2396 |
/**
|
|
|
2397 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2398 |
*/
|
|
|
2399 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2400 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
2401 |
case 1: // SERIAL_NUMBER
|
|
|
2402 |
return SERIAL_NUMBER;
|
| 3430 |
rajveer |
2403 |
default:
|
|
|
2404 |
return null;
|
|
|
2405 |
}
|
| 2832 |
chandransh |
2406 |
}
|
|
|
2407 |
|
|
|
2408 |
/**
|
|
|
2409 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2410 |
* if it is not found.
|
|
|
2411 |
*/
|
|
|
2412 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2413 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2414 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2415 |
return fields;
|
|
|
2416 |
}
|
|
|
2417 |
|
|
|
2418 |
/**
|
|
|
2419 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2420 |
*/
|
|
|
2421 |
public static _Fields findByName(String name) {
|
|
|
2422 |
return byName.get(name);
|
|
|
2423 |
}
|
|
|
2424 |
|
|
|
2425 |
private final short _thriftId;
|
|
|
2426 |
private final String _fieldName;
|
|
|
2427 |
|
|
|
2428 |
_Fields(short thriftId, String fieldName) {
|
|
|
2429 |
_thriftId = thriftId;
|
|
|
2430 |
_fieldName = fieldName;
|
|
|
2431 |
}
|
|
|
2432 |
|
|
|
2433 |
public short getThriftFieldId() {
|
|
|
2434 |
return _thriftId;
|
|
|
2435 |
}
|
|
|
2436 |
|
|
|
2437 |
public String getFieldName() {
|
|
|
2438 |
return _fieldName;
|
|
|
2439 |
}
|
|
|
2440 |
}
|
|
|
2441 |
|
|
|
2442 |
// isset id assignments
|
|
|
2443 |
|
| 3430 |
rajveer |
2444 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2832 |
chandransh |
2445 |
static {
|
| 3430 |
rajveer |
2446 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
2447 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2448 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 3430 |
rajveer |
2449 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
2450 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_args.class, metaDataMap);
|
| 2832 |
chandransh |
2451 |
}
|
|
|
2452 |
|
| 4496 |
mandeep.dh |
2453 |
public getInventoryItem_args() {
|
| 2832 |
chandransh |
2454 |
}
|
|
|
2455 |
|
| 4496 |
mandeep.dh |
2456 |
public getInventoryItem_args(
|
|
|
2457 |
String serialNumber)
|
| 2832 |
chandransh |
2458 |
{
|
|
|
2459 |
this();
|
| 4496 |
mandeep.dh |
2460 |
this.serialNumber = serialNumber;
|
| 2832 |
chandransh |
2461 |
}
|
|
|
2462 |
|
|
|
2463 |
/**
|
|
|
2464 |
* Performs a deep copy on <i>other</i>.
|
|
|
2465 |
*/
|
| 4496 |
mandeep.dh |
2466 |
public getInventoryItem_args(getInventoryItem_args other) {
|
|
|
2467 |
if (other.isSetSerialNumber()) {
|
|
|
2468 |
this.serialNumber = other.serialNumber;
|
|
|
2469 |
}
|
| 2832 |
chandransh |
2470 |
}
|
|
|
2471 |
|
| 4496 |
mandeep.dh |
2472 |
public getInventoryItem_args deepCopy() {
|
|
|
2473 |
return new getInventoryItem_args(this);
|
| 2832 |
chandransh |
2474 |
}
|
|
|
2475 |
|
| 3430 |
rajveer |
2476 |
@Override
|
|
|
2477 |
public void clear() {
|
| 4496 |
mandeep.dh |
2478 |
this.serialNumber = null;
|
| 2832 |
chandransh |
2479 |
}
|
|
|
2480 |
|
| 4496 |
mandeep.dh |
2481 |
public String getSerialNumber() {
|
|
|
2482 |
return this.serialNumber;
|
| 2832 |
chandransh |
2483 |
}
|
|
|
2484 |
|
| 4496 |
mandeep.dh |
2485 |
public void setSerialNumber(String serialNumber) {
|
|
|
2486 |
this.serialNumber = serialNumber;
|
| 2832 |
chandransh |
2487 |
}
|
|
|
2488 |
|
| 4496 |
mandeep.dh |
2489 |
public void unsetSerialNumber() {
|
|
|
2490 |
this.serialNumber = null;
|
| 2832 |
chandransh |
2491 |
}
|
|
|
2492 |
|
| 4496 |
mandeep.dh |
2493 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
2494 |
public boolean isSetSerialNumber() {
|
|
|
2495 |
return this.serialNumber != null;
|
| 2832 |
chandransh |
2496 |
}
|
|
|
2497 |
|
| 4496 |
mandeep.dh |
2498 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
2499 |
if (!value) {
|
|
|
2500 |
this.serialNumber = null;
|
|
|
2501 |
}
|
| 2832 |
chandransh |
2502 |
}
|
|
|
2503 |
|
|
|
2504 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2505 |
switch (field) {
|
| 4496 |
mandeep.dh |
2506 |
case SERIAL_NUMBER:
|
| 2832 |
chandransh |
2507 |
if (value == null) {
|
| 4496 |
mandeep.dh |
2508 |
unsetSerialNumber();
|
| 2832 |
chandransh |
2509 |
} else {
|
| 4496 |
mandeep.dh |
2510 |
setSerialNumber((String)value);
|
| 2832 |
chandransh |
2511 |
}
|
|
|
2512 |
break;
|
|
|
2513 |
|
|
|
2514 |
}
|
|
|
2515 |
}
|
|
|
2516 |
|
|
|
2517 |
public Object getFieldValue(_Fields field) {
|
|
|
2518 |
switch (field) {
|
| 4496 |
mandeep.dh |
2519 |
case SERIAL_NUMBER:
|
|
|
2520 |
return getSerialNumber();
|
| 2832 |
chandransh |
2521 |
|
|
|
2522 |
}
|
|
|
2523 |
throw new IllegalStateException();
|
|
|
2524 |
}
|
|
|
2525 |
|
| 3430 |
rajveer |
2526 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2527 |
public boolean isSet(_Fields field) {
|
|
|
2528 |
if (field == null) {
|
|
|
2529 |
throw new IllegalArgumentException();
|
|
|
2530 |
}
|
| 2832 |
chandransh |
2531 |
|
|
|
2532 |
switch (field) {
|
| 4496 |
mandeep.dh |
2533 |
case SERIAL_NUMBER:
|
|
|
2534 |
return isSetSerialNumber();
|
| 2832 |
chandransh |
2535 |
}
|
|
|
2536 |
throw new IllegalStateException();
|
|
|
2537 |
}
|
|
|
2538 |
|
|
|
2539 |
@Override
|
|
|
2540 |
public boolean equals(Object that) {
|
|
|
2541 |
if (that == null)
|
|
|
2542 |
return false;
|
| 4496 |
mandeep.dh |
2543 |
if (that instanceof getInventoryItem_args)
|
|
|
2544 |
return this.equals((getInventoryItem_args)that);
|
| 2832 |
chandransh |
2545 |
return false;
|
|
|
2546 |
}
|
|
|
2547 |
|
| 4496 |
mandeep.dh |
2548 |
public boolean equals(getInventoryItem_args that) {
|
| 2832 |
chandransh |
2549 |
if (that == null)
|
|
|
2550 |
return false;
|
|
|
2551 |
|
| 4496 |
mandeep.dh |
2552 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
2553 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
2554 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
2555 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
| 2832 |
chandransh |
2556 |
return false;
|
| 4496 |
mandeep.dh |
2557 |
if (!this.serialNumber.equals(that.serialNumber))
|
| 2832 |
chandransh |
2558 |
return false;
|
|
|
2559 |
}
|
|
|
2560 |
|
|
|
2561 |
return true;
|
|
|
2562 |
}
|
|
|
2563 |
|
|
|
2564 |
@Override
|
|
|
2565 |
public int hashCode() {
|
|
|
2566 |
return 0;
|
|
|
2567 |
}
|
|
|
2568 |
|
| 4496 |
mandeep.dh |
2569 |
public int compareTo(getInventoryItem_args other) {
|
| 2832 |
chandransh |
2570 |
if (!getClass().equals(other.getClass())) {
|
|
|
2571 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2572 |
}
|
|
|
2573 |
|
|
|
2574 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
2575 |
getInventoryItem_args typedOther = (getInventoryItem_args)other;
|
| 2832 |
chandransh |
2576 |
|
| 4496 |
mandeep.dh |
2577 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
| 2832 |
chandransh |
2578 |
if (lastComparison != 0) {
|
|
|
2579 |
return lastComparison;
|
|
|
2580 |
}
|
| 4496 |
mandeep.dh |
2581 |
if (isSetSerialNumber()) {
|
|
|
2582 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
| 3430 |
rajveer |
2583 |
if (lastComparison != 0) {
|
|
|
2584 |
return lastComparison;
|
|
|
2585 |
}
|
| 2832 |
chandransh |
2586 |
}
|
|
|
2587 |
return 0;
|
|
|
2588 |
}
|
|
|
2589 |
|
| 3430 |
rajveer |
2590 |
public _Fields fieldForId(int fieldId) {
|
|
|
2591 |
return _Fields.findByThriftId(fieldId);
|
|
|
2592 |
}
|
|
|
2593 |
|
|
|
2594 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2595 |
org.apache.thrift.protocol.TField field;
|
| 2832 |
chandransh |
2596 |
iprot.readStructBegin();
|
|
|
2597 |
while (true)
|
|
|
2598 |
{
|
|
|
2599 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2600 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2832 |
chandransh |
2601 |
break;
|
|
|
2602 |
}
|
| 3430 |
rajveer |
2603 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
2604 |
case 1: // SERIAL_NUMBER
|
|
|
2605 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
2606 |
this.serialNumber = iprot.readString();
|
| 3430 |
rajveer |
2607 |
} else {
|
|
|
2608 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2609 |
}
|
|
|
2610 |
break;
|
|
|
2611 |
default:
|
|
|
2612 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2832 |
chandransh |
2613 |
}
|
| 3430 |
rajveer |
2614 |
iprot.readFieldEnd();
|
| 2832 |
chandransh |
2615 |
}
|
|
|
2616 |
iprot.readStructEnd();
|
|
|
2617 |
validate();
|
|
|
2618 |
}
|
|
|
2619 |
|
| 3430 |
rajveer |
2620 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
2621 |
validate();
|
|
|
2622 |
|
|
|
2623 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4496 |
mandeep.dh |
2624 |
if (this.serialNumber != null) {
|
|
|
2625 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
2626 |
oprot.writeString(this.serialNumber);
|
|
|
2627 |
oprot.writeFieldEnd();
|
|
|
2628 |
}
|
| 2832 |
chandransh |
2629 |
oprot.writeFieldStop();
|
|
|
2630 |
oprot.writeStructEnd();
|
|
|
2631 |
}
|
|
|
2632 |
|
|
|
2633 |
@Override
|
|
|
2634 |
public String toString() {
|
| 4496 |
mandeep.dh |
2635 |
StringBuilder sb = new StringBuilder("getInventoryItem_args(");
|
| 2832 |
chandransh |
2636 |
boolean first = true;
|
|
|
2637 |
|
| 4496 |
mandeep.dh |
2638 |
sb.append("serialNumber:");
|
|
|
2639 |
if (this.serialNumber == null) {
|
|
|
2640 |
sb.append("null");
|
|
|
2641 |
} else {
|
|
|
2642 |
sb.append(this.serialNumber);
|
|
|
2643 |
}
|
| 2832 |
chandransh |
2644 |
first = false;
|
|
|
2645 |
sb.append(")");
|
|
|
2646 |
return sb.toString();
|
|
|
2647 |
}
|
|
|
2648 |
|
| 3430 |
rajveer |
2649 |
public void validate() throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
2650 |
// check for required fields
|
|
|
2651 |
}
|
|
|
2652 |
|
| 3430 |
rajveer |
2653 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2654 |
try {
|
|
|
2655 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2656 |
} catch (org.apache.thrift.TException te) {
|
|
|
2657 |
throw new java.io.IOException(te);
|
|
|
2658 |
}
|
|
|
2659 |
}
|
|
|
2660 |
|
|
|
2661 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2662 |
try {
|
|
|
2663 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2664 |
} catch (org.apache.thrift.TException te) {
|
|
|
2665 |
throw new java.io.IOException(te);
|
|
|
2666 |
}
|
|
|
2667 |
}
|
|
|
2668 |
|
| 2832 |
chandransh |
2669 |
}
|
|
|
2670 |
|
| 4496 |
mandeep.dh |
2671 |
public static class getInventoryItem_result implements org.apache.thrift.TBase<getInventoryItem_result, getInventoryItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
2672 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_result");
|
| 2832 |
chandransh |
2673 |
|
| 3430 |
rajveer |
2674 |
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 |
2675 |
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 |
2676 |
|
| 4496 |
mandeep.dh |
2677 |
private InventoryItem success; // required
|
| 4541 |
mandeep.dh |
2678 |
private WarehouseServiceException wex; // required
|
| 2832 |
chandransh |
2679 |
|
|
|
2680 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2681 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4541 |
mandeep.dh |
2682 |
SUCCESS((short)0, "success"),
|
|
|
2683 |
WEX((short)1, "wex");
|
| 2832 |
chandransh |
2684 |
|
|
|
2685 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2686 |
|
|
|
2687 |
static {
|
|
|
2688 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2689 |
byName.put(field.getFieldName(), field);
|
|
|
2690 |
}
|
|
|
2691 |
}
|
|
|
2692 |
|
|
|
2693 |
/**
|
|
|
2694 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2695 |
*/
|
|
|
2696 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2697 |
switch(fieldId) {
|
|
|
2698 |
case 0: // SUCCESS
|
|
|
2699 |
return SUCCESS;
|
| 4541 |
mandeep.dh |
2700 |
case 1: // WEX
|
|
|
2701 |
return WEX;
|
| 3430 |
rajveer |
2702 |
default:
|
|
|
2703 |
return null;
|
|
|
2704 |
}
|
| 2832 |
chandransh |
2705 |
}
|
|
|
2706 |
|
|
|
2707 |
/**
|
|
|
2708 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2709 |
* if it is not found.
|
|
|
2710 |
*/
|
|
|
2711 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2712 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2713 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2714 |
return fields;
|
|
|
2715 |
}
|
|
|
2716 |
|
|
|
2717 |
/**
|
|
|
2718 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2719 |
*/
|
|
|
2720 |
public static _Fields findByName(String name) {
|
|
|
2721 |
return byName.get(name);
|
|
|
2722 |
}
|
|
|
2723 |
|
|
|
2724 |
private final short _thriftId;
|
|
|
2725 |
private final String _fieldName;
|
|
|
2726 |
|
|
|
2727 |
_Fields(short thriftId, String fieldName) {
|
|
|
2728 |
_thriftId = thriftId;
|
|
|
2729 |
_fieldName = fieldName;
|
|
|
2730 |
}
|
|
|
2731 |
|
|
|
2732 |
public short getThriftFieldId() {
|
|
|
2733 |
return _thriftId;
|
|
|
2734 |
}
|
|
|
2735 |
|
|
|
2736 |
public String getFieldName() {
|
|
|
2737 |
return _fieldName;
|
|
|
2738 |
}
|
|
|
2739 |
}
|
|
|
2740 |
|
|
|
2741 |
// isset id assignments
|
|
|
2742 |
|
| 3430 |
rajveer |
2743 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2832 |
chandransh |
2744 |
static {
|
| 3430 |
rajveer |
2745 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2746 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
2747 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 4541 |
mandeep.dh |
2748 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2749 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
| 3430 |
rajveer |
2750 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
2751 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_result.class, metaDataMap);
|
| 2832 |
chandransh |
2752 |
}
|
|
|
2753 |
|
| 4496 |
mandeep.dh |
2754 |
public getInventoryItem_result() {
|
| 2832 |
chandransh |
2755 |
}
|
|
|
2756 |
|
| 4496 |
mandeep.dh |
2757 |
public getInventoryItem_result(
|
| 4541 |
mandeep.dh |
2758 |
InventoryItem success,
|
|
|
2759 |
WarehouseServiceException wex)
|
| 2832 |
chandransh |
2760 |
{
|
|
|
2761 |
this();
|
|
|
2762 |
this.success = success;
|
| 4541 |
mandeep.dh |
2763 |
this.wex = wex;
|
| 2832 |
chandransh |
2764 |
}
|
|
|
2765 |
|
|
|
2766 |
/**
|
|
|
2767 |
* Performs a deep copy on <i>other</i>.
|
|
|
2768 |
*/
|
| 4496 |
mandeep.dh |
2769 |
public getInventoryItem_result(getInventoryItem_result other) {
|
| 2832 |
chandransh |
2770 |
if (other.isSetSuccess()) {
|
| 4496 |
mandeep.dh |
2771 |
this.success = new InventoryItem(other.success);
|
| 2832 |
chandransh |
2772 |
}
|
| 4541 |
mandeep.dh |
2773 |
if (other.isSetWex()) {
|
|
|
2774 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
2775 |
}
|
| 2832 |
chandransh |
2776 |
}
|
|
|
2777 |
|
| 4496 |
mandeep.dh |
2778 |
public getInventoryItem_result deepCopy() {
|
|
|
2779 |
return new getInventoryItem_result(this);
|
| 2832 |
chandransh |
2780 |
}
|
|
|
2781 |
|
| 3430 |
rajveer |
2782 |
@Override
|
|
|
2783 |
public void clear() {
|
|
|
2784 |
this.success = null;
|
| 4541 |
mandeep.dh |
2785 |
this.wex = null;
|
| 2832 |
chandransh |
2786 |
}
|
|
|
2787 |
|
| 4496 |
mandeep.dh |
2788 |
public InventoryItem getSuccess() {
|
| 2832 |
chandransh |
2789 |
return this.success;
|
|
|
2790 |
}
|
|
|
2791 |
|
| 4496 |
mandeep.dh |
2792 |
public void setSuccess(InventoryItem success) {
|
| 2832 |
chandransh |
2793 |
this.success = success;
|
|
|
2794 |
}
|
|
|
2795 |
|
|
|
2796 |
public void unsetSuccess() {
|
|
|
2797 |
this.success = null;
|
|
|
2798 |
}
|
|
|
2799 |
|
| 3430 |
rajveer |
2800 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2832 |
chandransh |
2801 |
public boolean isSetSuccess() {
|
|
|
2802 |
return this.success != null;
|
|
|
2803 |
}
|
|
|
2804 |
|
|
|
2805 |
public void setSuccessIsSet(boolean value) {
|
|
|
2806 |
if (!value) {
|
|
|
2807 |
this.success = null;
|
|
|
2808 |
}
|
|
|
2809 |
}
|
|
|
2810 |
|
| 4541 |
mandeep.dh |
2811 |
public WarehouseServiceException getWex() {
|
|
|
2812 |
return this.wex;
|
|
|
2813 |
}
|
|
|
2814 |
|
|
|
2815 |
public void setWex(WarehouseServiceException wex) {
|
|
|
2816 |
this.wex = wex;
|
|
|
2817 |
}
|
|
|
2818 |
|
|
|
2819 |
public void unsetWex() {
|
|
|
2820 |
this.wex = null;
|
|
|
2821 |
}
|
|
|
2822 |
|
|
|
2823 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
2824 |
public boolean isSetWex() {
|
|
|
2825 |
return this.wex != null;
|
|
|
2826 |
}
|
|
|
2827 |
|
|
|
2828 |
public void setWexIsSet(boolean value) {
|
|
|
2829 |
if (!value) {
|
|
|
2830 |
this.wex = null;
|
|
|
2831 |
}
|
|
|
2832 |
}
|
|
|
2833 |
|
| 2832 |
chandransh |
2834 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2835 |
switch (field) {
|
|
|
2836 |
case SUCCESS:
|
|
|
2837 |
if (value == null) {
|
|
|
2838 |
unsetSuccess();
|
|
|
2839 |
} else {
|
| 4496 |
mandeep.dh |
2840 |
setSuccess((InventoryItem)value);
|
| 2832 |
chandransh |
2841 |
}
|
|
|
2842 |
break;
|
|
|
2843 |
|
| 4541 |
mandeep.dh |
2844 |
case WEX:
|
|
|
2845 |
if (value == null) {
|
|
|
2846 |
unsetWex();
|
|
|
2847 |
} else {
|
|
|
2848 |
setWex((WarehouseServiceException)value);
|
|
|
2849 |
}
|
|
|
2850 |
break;
|
|
|
2851 |
|
| 2832 |
chandransh |
2852 |
}
|
|
|
2853 |
}
|
|
|
2854 |
|
|
|
2855 |
public Object getFieldValue(_Fields field) {
|
|
|
2856 |
switch (field) {
|
|
|
2857 |
case SUCCESS:
|
|
|
2858 |
return getSuccess();
|
|
|
2859 |
|
| 4541 |
mandeep.dh |
2860 |
case WEX:
|
|
|
2861 |
return getWex();
|
|
|
2862 |
|
| 2832 |
chandransh |
2863 |
}
|
|
|
2864 |
throw new IllegalStateException();
|
|
|
2865 |
}
|
|
|
2866 |
|
| 3430 |
rajveer |
2867 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2868 |
public boolean isSet(_Fields field) {
|
|
|
2869 |
if (field == null) {
|
|
|
2870 |
throw new IllegalArgumentException();
|
|
|
2871 |
}
|
| 2832 |
chandransh |
2872 |
|
|
|
2873 |
switch (field) {
|
|
|
2874 |
case SUCCESS:
|
|
|
2875 |
return isSetSuccess();
|
| 4541 |
mandeep.dh |
2876 |
case WEX:
|
|
|
2877 |
return isSetWex();
|
| 2832 |
chandransh |
2878 |
}
|
|
|
2879 |
throw new IllegalStateException();
|
|
|
2880 |
}
|
|
|
2881 |
|
|
|
2882 |
@Override
|
|
|
2883 |
public boolean equals(Object that) {
|
|
|
2884 |
if (that == null)
|
|
|
2885 |
return false;
|
| 4496 |
mandeep.dh |
2886 |
if (that instanceof getInventoryItem_result)
|
|
|
2887 |
return this.equals((getInventoryItem_result)that);
|
| 2832 |
chandransh |
2888 |
return false;
|
|
|
2889 |
}
|
|
|
2890 |
|
| 4496 |
mandeep.dh |
2891 |
public boolean equals(getInventoryItem_result that) {
|
| 2832 |
chandransh |
2892 |
if (that == null)
|
|
|
2893 |
return false;
|
|
|
2894 |
|
|
|
2895 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
2896 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
2897 |
if (this_present_success || that_present_success) {
|
|
|
2898 |
if (!(this_present_success && that_present_success))
|
|
|
2899 |
return false;
|
|
|
2900 |
if (!this.success.equals(that.success))
|
|
|
2901 |
return false;
|
|
|
2902 |
}
|
|
|
2903 |
|
| 4541 |
mandeep.dh |
2904 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
2905 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
2906 |
if (this_present_wex || that_present_wex) {
|
|
|
2907 |
if (!(this_present_wex && that_present_wex))
|
|
|
2908 |
return false;
|
|
|
2909 |
if (!this.wex.equals(that.wex))
|
|
|
2910 |
return false;
|
|
|
2911 |
}
|
|
|
2912 |
|
| 2832 |
chandransh |
2913 |
return true;
|
|
|
2914 |
}
|
|
|
2915 |
|
|
|
2916 |
@Override
|
|
|
2917 |
public int hashCode() {
|
|
|
2918 |
return 0;
|
|
|
2919 |
}
|
|
|
2920 |
|
| 4496 |
mandeep.dh |
2921 |
public int compareTo(getInventoryItem_result other) {
|
| 2832 |
chandransh |
2922 |
if (!getClass().equals(other.getClass())) {
|
|
|
2923 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2924 |
}
|
|
|
2925 |
|
|
|
2926 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
2927 |
getInventoryItem_result typedOther = (getInventoryItem_result)other;
|
| 2832 |
chandransh |
2928 |
|
| 3430 |
rajveer |
2929 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2832 |
chandransh |
2930 |
if (lastComparison != 0) {
|
|
|
2931 |
return lastComparison;
|
|
|
2932 |
}
|
| 3430 |
rajveer |
2933 |
if (isSetSuccess()) {
|
|
|
2934 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
2935 |
if (lastComparison != 0) {
|
|
|
2936 |
return lastComparison;
|
|
|
2937 |
}
|
| 2832 |
chandransh |
2938 |
}
|
| 4541 |
mandeep.dh |
2939 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
2940 |
if (lastComparison != 0) {
|
|
|
2941 |
return lastComparison;
|
|
|
2942 |
}
|
|
|
2943 |
if (isSetWex()) {
|
|
|
2944 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
2945 |
if (lastComparison != 0) {
|
|
|
2946 |
return lastComparison;
|
|
|
2947 |
}
|
|
|
2948 |
}
|
| 2832 |
chandransh |
2949 |
return 0;
|
|
|
2950 |
}
|
|
|
2951 |
|
| 3430 |
rajveer |
2952 |
public _Fields fieldForId(int fieldId) {
|
|
|
2953 |
return _Fields.findByThriftId(fieldId);
|
|
|
2954 |
}
|
|
|
2955 |
|
|
|
2956 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2957 |
org.apache.thrift.protocol.TField field;
|
| 2832 |
chandransh |
2958 |
iprot.readStructBegin();
|
|
|
2959 |
while (true)
|
|
|
2960 |
{
|
|
|
2961 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2962 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2832 |
chandransh |
2963 |
break;
|
|
|
2964 |
}
|
| 3430 |
rajveer |
2965 |
switch (field.id) {
|
|
|
2966 |
case 0: // SUCCESS
|
|
|
2967 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
| 4496 |
mandeep.dh |
2968 |
this.success = new InventoryItem();
|
| 3430 |
rajveer |
2969 |
this.success.read(iprot);
|
|
|
2970 |
} else {
|
|
|
2971 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2972 |
}
|
|
|
2973 |
break;
|
| 4541 |
mandeep.dh |
2974 |
case 1: // WEX
|
|
|
2975 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2976 |
this.wex = new WarehouseServiceException();
|
|
|
2977 |
this.wex.read(iprot);
|
|
|
2978 |
} else {
|
|
|
2979 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2980 |
}
|
|
|
2981 |
break;
|
| 3430 |
rajveer |
2982 |
default:
|
|
|
2983 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2832 |
chandransh |
2984 |
}
|
| 3430 |
rajveer |
2985 |
iprot.readFieldEnd();
|
| 2832 |
chandransh |
2986 |
}
|
|
|
2987 |
iprot.readStructEnd();
|
|
|
2988 |
validate();
|
|
|
2989 |
}
|
|
|
2990 |
|
| 3430 |
rajveer |
2991 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
2992 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2993 |
|
|
|
2994 |
if (this.isSetSuccess()) {
|
|
|
2995 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
2996 |
this.success.write(oprot);
|
|
|
2997 |
oprot.writeFieldEnd();
|
| 4541 |
mandeep.dh |
2998 |
} else if (this.isSetWex()) {
|
|
|
2999 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
3000 |
this.wex.write(oprot);
|
|
|
3001 |
oprot.writeFieldEnd();
|
| 2832 |
chandransh |
3002 |
}
|
|
|
3003 |
oprot.writeFieldStop();
|
|
|
3004 |
oprot.writeStructEnd();
|
|
|
3005 |
}
|
|
|
3006 |
|
|
|
3007 |
@Override
|
|
|
3008 |
public String toString() {
|
| 4496 |
mandeep.dh |
3009 |
StringBuilder sb = new StringBuilder("getInventoryItem_result(");
|
| 2832 |
chandransh |
3010 |
boolean first = true;
|
|
|
3011 |
|
|
|
3012 |
sb.append("success:");
|
|
|
3013 |
if (this.success == null) {
|
|
|
3014 |
sb.append("null");
|
|
|
3015 |
} else {
|
|
|
3016 |
sb.append(this.success);
|
|
|
3017 |
}
|
|
|
3018 |
first = false;
|
| 4541 |
mandeep.dh |
3019 |
if (!first) sb.append(", ");
|
|
|
3020 |
sb.append("wex:");
|
|
|
3021 |
if (this.wex == null) {
|
|
|
3022 |
sb.append("null");
|
|
|
3023 |
} else {
|
|
|
3024 |
sb.append(this.wex);
|
|
|
3025 |
}
|
|
|
3026 |
first = false;
|
| 2832 |
chandransh |
3027 |
sb.append(")");
|
|
|
3028 |
return sb.toString();
|
|
|
3029 |
}
|
|
|
3030 |
|
| 3430 |
rajveer |
3031 |
public void validate() throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
3032 |
// check for required fields
|
|
|
3033 |
}
|
|
|
3034 |
|
| 3430 |
rajveer |
3035 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3036 |
try {
|
|
|
3037 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3038 |
} catch (org.apache.thrift.TException te) {
|
|
|
3039 |
throw new java.io.IOException(te);
|
|
|
3040 |
}
|
|
|
3041 |
}
|
|
|
3042 |
|
|
|
3043 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3044 |
try {
|
|
|
3045 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3046 |
} catch (org.apache.thrift.TException te) {
|
|
|
3047 |
throw new java.io.IOException(te);
|
|
|
3048 |
}
|
|
|
3049 |
}
|
|
|
3050 |
|
| 2832 |
chandransh |
3051 |
}
|
|
|
3052 |
|
| 5361 |
mandeep.dh |
3053 |
public static class getNonSeralizedInventoryItem_args implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_args, getNonSeralizedInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3054 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_args");
|
| 2820 |
chandransh |
3055 |
|
| 5530 |
mandeep.dh |
3056 |
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);
|
|
|
3057 |
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);
|
|
|
3058 |
private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
|
| 2820 |
chandransh |
3059 |
|
| 5530 |
mandeep.dh |
3060 |
private String itemNumber; // required
|
| 4496 |
mandeep.dh |
3061 |
private long itemId; // required
|
| 5530 |
mandeep.dh |
3062 |
private long fulfilmentWarehouseId; // required
|
| 2820 |
chandransh |
3063 |
|
|
|
3064 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3065 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5530 |
mandeep.dh |
3066 |
ITEM_NUMBER((short)1, "itemNumber"),
|
|
|
3067 |
ITEM_ID((short)2, "itemId"),
|
|
|
3068 |
FULFILMENT_WAREHOUSE_ID((short)3, "fulfilmentWarehouseId");
|
| 2820 |
chandransh |
3069 |
|
|
|
3070 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3071 |
|
|
|
3072 |
static {
|
|
|
3073 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3074 |
byName.put(field.getFieldName(), field);
|
|
|
3075 |
}
|
|
|
3076 |
}
|
|
|
3077 |
|
|
|
3078 |
/**
|
|
|
3079 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3080 |
*/
|
|
|
3081 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3082 |
switch(fieldId) {
|
| 5530 |
mandeep.dh |
3083 |
case 1: // ITEM_NUMBER
|
|
|
3084 |
return ITEM_NUMBER;
|
|
|
3085 |
case 2: // ITEM_ID
|
| 4496 |
mandeep.dh |
3086 |
return ITEM_ID;
|
| 5530 |
mandeep.dh |
3087 |
case 3: // FULFILMENT_WAREHOUSE_ID
|
|
|
3088 |
return FULFILMENT_WAREHOUSE_ID;
|
| 3430 |
rajveer |
3089 |
default:
|
|
|
3090 |
return null;
|
|
|
3091 |
}
|
| 2820 |
chandransh |
3092 |
}
|
|
|
3093 |
|
|
|
3094 |
/**
|
|
|
3095 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3096 |
* if it is not found.
|
|
|
3097 |
*/
|
|
|
3098 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3099 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3100 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3101 |
return fields;
|
|
|
3102 |
}
|
|
|
3103 |
|
|
|
3104 |
/**
|
|
|
3105 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3106 |
*/
|
|
|
3107 |
public static _Fields findByName(String name) {
|
|
|
3108 |
return byName.get(name);
|
|
|
3109 |
}
|
|
|
3110 |
|
|
|
3111 |
private final short _thriftId;
|
|
|
3112 |
private final String _fieldName;
|
|
|
3113 |
|
|
|
3114 |
_Fields(short thriftId, String fieldName) {
|
|
|
3115 |
_thriftId = thriftId;
|
|
|
3116 |
_fieldName = fieldName;
|
|
|
3117 |
}
|
|
|
3118 |
|
|
|
3119 |
public short getThriftFieldId() {
|
|
|
3120 |
return _thriftId;
|
|
|
3121 |
}
|
|
|
3122 |
|
|
|
3123 |
public String getFieldName() {
|
|
|
3124 |
return _fieldName;
|
|
|
3125 |
}
|
|
|
3126 |
}
|
|
|
3127 |
|
|
|
3128 |
// isset id assignments
|
| 4496 |
mandeep.dh |
3129 |
private static final int __ITEMID_ISSET_ID = 0;
|
| 5530 |
mandeep.dh |
3130 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
|
| 5361 |
mandeep.dh |
3131 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 2820 |
chandransh |
3132 |
|
| 3430 |
rajveer |
3133 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
3134 |
static {
|
| 3430 |
rajveer |
3135 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5530 |
mandeep.dh |
3136 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3137 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 4496 |
mandeep.dh |
3138 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 3430 |
rajveer |
3139 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5530 |
mandeep.dh |
3140 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
3141 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
3142 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 5361 |
mandeep.dh |
3143 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_args.class, metaDataMap);
|
| 2820 |
chandransh |
3144 |
}
|
|
|
3145 |
|
| 5361 |
mandeep.dh |
3146 |
public getNonSeralizedInventoryItem_args() {
|
| 2820 |
chandransh |
3147 |
}
|
|
|
3148 |
|
| 5361 |
mandeep.dh |
3149 |
public getNonSeralizedInventoryItem_args(
|
| 5530 |
mandeep.dh |
3150 |
String itemNumber,
|
| 4496 |
mandeep.dh |
3151 |
long itemId,
|
| 5530 |
mandeep.dh |
3152 |
long fulfilmentWarehouseId)
|
| 2820 |
chandransh |
3153 |
{
|
|
|
3154 |
this();
|
| 5530 |
mandeep.dh |
3155 |
this.itemNumber = itemNumber;
|
| 4496 |
mandeep.dh |
3156 |
this.itemId = itemId;
|
|
|
3157 |
setItemIdIsSet(true);
|
| 5530 |
mandeep.dh |
3158 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
3159 |
setFulfilmentWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
3160 |
}
|
|
|
3161 |
|
|
|
3162 |
/**
|
|
|
3163 |
* Performs a deep copy on <i>other</i>.
|
|
|
3164 |
*/
|
| 5361 |
mandeep.dh |
3165 |
public getNonSeralizedInventoryItem_args(getNonSeralizedInventoryItem_args other) {
|
| 2820 |
chandransh |
3166 |
__isset_bit_vector.clear();
|
|
|
3167 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5530 |
mandeep.dh |
3168 |
if (other.isSetItemNumber()) {
|
|
|
3169 |
this.itemNumber = other.itemNumber;
|
|
|
3170 |
}
|
| 4496 |
mandeep.dh |
3171 |
this.itemId = other.itemId;
|
| 5530 |
mandeep.dh |
3172 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
| 2820 |
chandransh |
3173 |
}
|
|
|
3174 |
|
| 5361 |
mandeep.dh |
3175 |
public getNonSeralizedInventoryItem_args deepCopy() {
|
|
|
3176 |
return new getNonSeralizedInventoryItem_args(this);
|
| 2820 |
chandransh |
3177 |
}
|
|
|
3178 |
|
| 3430 |
rajveer |
3179 |
@Override
|
|
|
3180 |
public void clear() {
|
| 5530 |
mandeep.dh |
3181 |
this.itemNumber = null;
|
| 4496 |
mandeep.dh |
3182 |
setItemIdIsSet(false);
|
|
|
3183 |
this.itemId = 0;
|
| 5530 |
mandeep.dh |
3184 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
3185 |
this.fulfilmentWarehouseId = 0;
|
| 2820 |
chandransh |
3186 |
}
|
|
|
3187 |
|
| 5530 |
mandeep.dh |
3188 |
public String getItemNumber() {
|
|
|
3189 |
return this.itemNumber;
|
|
|
3190 |
}
|
|
|
3191 |
|
|
|
3192 |
public void setItemNumber(String itemNumber) {
|
|
|
3193 |
this.itemNumber = itemNumber;
|
|
|
3194 |
}
|
|
|
3195 |
|
|
|
3196 |
public void unsetItemNumber() {
|
|
|
3197 |
this.itemNumber = null;
|
|
|
3198 |
}
|
|
|
3199 |
|
|
|
3200 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
3201 |
public boolean isSetItemNumber() {
|
|
|
3202 |
return this.itemNumber != null;
|
|
|
3203 |
}
|
|
|
3204 |
|
|
|
3205 |
public void setItemNumberIsSet(boolean value) {
|
|
|
3206 |
if (!value) {
|
|
|
3207 |
this.itemNumber = null;
|
|
|
3208 |
}
|
|
|
3209 |
}
|
|
|
3210 |
|
| 4496 |
mandeep.dh |
3211 |
public long getItemId() {
|
|
|
3212 |
return this.itemId;
|
| 2820 |
chandransh |
3213 |
}
|
|
|
3214 |
|
| 4496 |
mandeep.dh |
3215 |
public void setItemId(long itemId) {
|
|
|
3216 |
this.itemId = itemId;
|
|
|
3217 |
setItemIdIsSet(true);
|
| 2820 |
chandransh |
3218 |
}
|
|
|
3219 |
|
| 4496 |
mandeep.dh |
3220 |
public void unsetItemId() {
|
|
|
3221 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
| 2820 |
chandransh |
3222 |
}
|
|
|
3223 |
|
| 4496 |
mandeep.dh |
3224 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
3225 |
public boolean isSetItemId() {
|
|
|
3226 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
| 2820 |
chandransh |
3227 |
}
|
|
|
3228 |
|
| 4496 |
mandeep.dh |
3229 |
public void setItemIdIsSet(boolean value) {
|
|
|
3230 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
| 2820 |
chandransh |
3231 |
}
|
|
|
3232 |
|
| 5530 |
mandeep.dh |
3233 |
public long getFulfilmentWarehouseId() {
|
|
|
3234 |
return this.fulfilmentWarehouseId;
|
| 2820 |
chandransh |
3235 |
}
|
|
|
3236 |
|
| 5530 |
mandeep.dh |
3237 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
3238 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
3239 |
setFulfilmentWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
3240 |
}
|
|
|
3241 |
|
| 5530 |
mandeep.dh |
3242 |
public void unsetFulfilmentWarehouseId() {
|
|
|
3243 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
3244 |
}
|
|
|
3245 |
|
| 5530 |
mandeep.dh |
3246 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
3247 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
3248 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
3249 |
}
|
|
|
3250 |
|
| 5530 |
mandeep.dh |
3251 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
3252 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 2820 |
chandransh |
3253 |
}
|
|
|
3254 |
|
|
|
3255 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3256 |
switch (field) {
|
| 5530 |
mandeep.dh |
3257 |
case ITEM_NUMBER:
|
|
|
3258 |
if (value == null) {
|
|
|
3259 |
unsetItemNumber();
|
|
|
3260 |
} else {
|
|
|
3261 |
setItemNumber((String)value);
|
|
|
3262 |
}
|
|
|
3263 |
break;
|
|
|
3264 |
|
| 4496 |
mandeep.dh |
3265 |
case ITEM_ID:
|
| 2820 |
chandransh |
3266 |
if (value == null) {
|
| 4496 |
mandeep.dh |
3267 |
unsetItemId();
|
| 2820 |
chandransh |
3268 |
} else {
|
| 4496 |
mandeep.dh |
3269 |
setItemId((Long)value);
|
| 2820 |
chandransh |
3270 |
}
|
|
|
3271 |
break;
|
|
|
3272 |
|
| 5530 |
mandeep.dh |
3273 |
case FULFILMENT_WAREHOUSE_ID:
|
| 2820 |
chandransh |
3274 |
if (value == null) {
|
| 5530 |
mandeep.dh |
3275 |
unsetFulfilmentWarehouseId();
|
| 2820 |
chandransh |
3276 |
} else {
|
| 5530 |
mandeep.dh |
3277 |
setFulfilmentWarehouseId((Long)value);
|
| 2820 |
chandransh |
3278 |
}
|
|
|
3279 |
break;
|
|
|
3280 |
|
|
|
3281 |
}
|
|
|
3282 |
}
|
|
|
3283 |
|
|
|
3284 |
public Object getFieldValue(_Fields field) {
|
|
|
3285 |
switch (field) {
|
| 5530 |
mandeep.dh |
3286 |
case ITEM_NUMBER:
|
|
|
3287 |
return getItemNumber();
|
|
|
3288 |
|
| 4496 |
mandeep.dh |
3289 |
case ITEM_ID:
|
|
|
3290 |
return Long.valueOf(getItemId());
|
| 2820 |
chandransh |
3291 |
|
| 5530 |
mandeep.dh |
3292 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
3293 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 2820 |
chandransh |
3294 |
|
|
|
3295 |
}
|
|
|
3296 |
throw new IllegalStateException();
|
|
|
3297 |
}
|
|
|
3298 |
|
| 3430 |
rajveer |
3299 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3300 |
public boolean isSet(_Fields field) {
|
|
|
3301 |
if (field == null) {
|
|
|
3302 |
throw new IllegalArgumentException();
|
|
|
3303 |
}
|
| 2820 |
chandransh |
3304 |
|
|
|
3305 |
switch (field) {
|
| 5530 |
mandeep.dh |
3306 |
case ITEM_NUMBER:
|
|
|
3307 |
return isSetItemNumber();
|
| 4496 |
mandeep.dh |
3308 |
case ITEM_ID:
|
|
|
3309 |
return isSetItemId();
|
| 5530 |
mandeep.dh |
3310 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
3311 |
return isSetFulfilmentWarehouseId();
|
| 2820 |
chandransh |
3312 |
}
|
|
|
3313 |
throw new IllegalStateException();
|
|
|
3314 |
}
|
|
|
3315 |
|
|
|
3316 |
@Override
|
|
|
3317 |
public boolean equals(Object that) {
|
|
|
3318 |
if (that == null)
|
|
|
3319 |
return false;
|
| 5361 |
mandeep.dh |
3320 |
if (that instanceof getNonSeralizedInventoryItem_args)
|
|
|
3321 |
return this.equals((getNonSeralizedInventoryItem_args)that);
|
| 2820 |
chandransh |
3322 |
return false;
|
|
|
3323 |
}
|
|
|
3324 |
|
| 5361 |
mandeep.dh |
3325 |
public boolean equals(getNonSeralizedInventoryItem_args that) {
|
| 2820 |
chandransh |
3326 |
if (that == null)
|
|
|
3327 |
return false;
|
|
|
3328 |
|
| 5530 |
mandeep.dh |
3329 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
3330 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
3331 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
3332 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
3333 |
return false;
|
|
|
3334 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
3335 |
return false;
|
|
|
3336 |
}
|
|
|
3337 |
|
| 4496 |
mandeep.dh |
3338 |
boolean this_present_itemId = true;
|
|
|
3339 |
boolean that_present_itemId = true;
|
|
|
3340 |
if (this_present_itemId || that_present_itemId) {
|
|
|
3341 |
if (!(this_present_itemId && that_present_itemId))
|
| 2820 |
chandransh |
3342 |
return false;
|
| 4496 |
mandeep.dh |
3343 |
if (this.itemId != that.itemId)
|
| 2820 |
chandransh |
3344 |
return false;
|
|
|
3345 |
}
|
|
|
3346 |
|
| 5530 |
mandeep.dh |
3347 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
3348 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
3349 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
3350 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 2820 |
chandransh |
3351 |
return false;
|
| 5530 |
mandeep.dh |
3352 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 2820 |
chandransh |
3353 |
return false;
|
|
|
3354 |
}
|
|
|
3355 |
|
|
|
3356 |
return true;
|
|
|
3357 |
}
|
|
|
3358 |
|
|
|
3359 |
@Override
|
|
|
3360 |
public int hashCode() {
|
|
|
3361 |
return 0;
|
|
|
3362 |
}
|
|
|
3363 |
|
| 5361 |
mandeep.dh |
3364 |
public int compareTo(getNonSeralizedInventoryItem_args other) {
|
| 2820 |
chandransh |
3365 |
if (!getClass().equals(other.getClass())) {
|
|
|
3366 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3367 |
}
|
|
|
3368 |
|
|
|
3369 |
int lastComparison = 0;
|
| 5361 |
mandeep.dh |
3370 |
getNonSeralizedInventoryItem_args typedOther = (getNonSeralizedInventoryItem_args)other;
|
| 2820 |
chandransh |
3371 |
|
| 5530 |
mandeep.dh |
3372 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
3373 |
if (lastComparison != 0) {
|
|
|
3374 |
return lastComparison;
|
|
|
3375 |
}
|
|
|
3376 |
if (isSetItemNumber()) {
|
|
|
3377 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
3378 |
if (lastComparison != 0) {
|
|
|
3379 |
return lastComparison;
|
|
|
3380 |
}
|
|
|
3381 |
}
|
| 4496 |
mandeep.dh |
3382 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
| 2820 |
chandransh |
3383 |
if (lastComparison != 0) {
|
|
|
3384 |
return lastComparison;
|
|
|
3385 |
}
|
| 4496 |
mandeep.dh |
3386 |
if (isSetItemId()) {
|
|
|
3387 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
| 3430 |
rajveer |
3388 |
if (lastComparison != 0) {
|
|
|
3389 |
return lastComparison;
|
|
|
3390 |
}
|
| 2820 |
chandransh |
3391 |
}
|
| 5530 |
mandeep.dh |
3392 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 2820 |
chandransh |
3393 |
if (lastComparison != 0) {
|
|
|
3394 |
return lastComparison;
|
|
|
3395 |
}
|
| 5530 |
mandeep.dh |
3396 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
3397 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 3430 |
rajveer |
3398 |
if (lastComparison != 0) {
|
|
|
3399 |
return lastComparison;
|
|
|
3400 |
}
|
| 2820 |
chandransh |
3401 |
}
|
|
|
3402 |
return 0;
|
|
|
3403 |
}
|
|
|
3404 |
|
| 3430 |
rajveer |
3405 |
public _Fields fieldForId(int fieldId) {
|
|
|
3406 |
return _Fields.findByThriftId(fieldId);
|
|
|
3407 |
}
|
|
|
3408 |
|
|
|
3409 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3410 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
3411 |
iprot.readStructBegin();
|
|
|
3412 |
while (true)
|
|
|
3413 |
{
|
|
|
3414 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3415 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
3416 |
break;
|
|
|
3417 |
}
|
| 3430 |
rajveer |
3418 |
switch (field.id) {
|
| 5530 |
mandeep.dh |
3419 |
case 1: // ITEM_NUMBER
|
|
|
3420 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
3421 |
this.itemNumber = iprot.readString();
|
|
|
3422 |
} else {
|
|
|
3423 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3424 |
}
|
|
|
3425 |
break;
|
|
|
3426 |
case 2: // ITEM_ID
|
| 3430 |
rajveer |
3427 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 4496 |
mandeep.dh |
3428 |
this.itemId = iprot.readI64();
|
|
|
3429 |
setItemIdIsSet(true);
|
| 3430 |
rajveer |
3430 |
} else {
|
|
|
3431 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3432 |
}
|
|
|
3433 |
break;
|
| 5530 |
mandeep.dh |
3434 |
case 3: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
3435 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5530 |
mandeep.dh |
3436 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
3437 |
setFulfilmentWarehouseIdIsSet(true);
|
| 3430 |
rajveer |
3438 |
} else {
|
|
|
3439 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3440 |
}
|
|
|
3441 |
break;
|
|
|
3442 |
default:
|
|
|
3443 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
3444 |
}
|
| 3430 |
rajveer |
3445 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
3446 |
}
|
|
|
3447 |
iprot.readStructEnd();
|
|
|
3448 |
validate();
|
|
|
3449 |
}
|
|
|
3450 |
|
| 3430 |
rajveer |
3451 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
3452 |
validate();
|
|
|
3453 |
|
|
|
3454 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5530 |
mandeep.dh |
3455 |
if (this.itemNumber != null) {
|
|
|
3456 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
3457 |
oprot.writeString(this.itemNumber);
|
|
|
3458 |
oprot.writeFieldEnd();
|
|
|
3459 |
}
|
| 4496 |
mandeep.dh |
3460 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
3461 |
oprot.writeI64(this.itemId);
|
| 2820 |
chandransh |
3462 |
oprot.writeFieldEnd();
|
| 5530 |
mandeep.dh |
3463 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
3464 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 2820 |
chandransh |
3465 |
oprot.writeFieldEnd();
|
|
|
3466 |
oprot.writeFieldStop();
|
|
|
3467 |
oprot.writeStructEnd();
|
|
|
3468 |
}
|
|
|
3469 |
|
|
|
3470 |
@Override
|
|
|
3471 |
public String toString() {
|
| 5361 |
mandeep.dh |
3472 |
StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_args(");
|
| 2820 |
chandransh |
3473 |
boolean first = true;
|
|
|
3474 |
|
| 5530 |
mandeep.dh |
3475 |
sb.append("itemNumber:");
|
|
|
3476 |
if (this.itemNumber == null) {
|
|
|
3477 |
sb.append("null");
|
|
|
3478 |
} else {
|
|
|
3479 |
sb.append(this.itemNumber);
|
|
|
3480 |
}
|
|
|
3481 |
first = false;
|
|
|
3482 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
3483 |
sb.append("itemId:");
|
|
|
3484 |
sb.append(this.itemId);
|
| 2820 |
chandransh |
3485 |
first = false;
|
|
|
3486 |
if (!first) sb.append(", ");
|
| 5530 |
mandeep.dh |
3487 |
sb.append("fulfilmentWarehouseId:");
|
|
|
3488 |
sb.append(this.fulfilmentWarehouseId);
|
| 2820 |
chandransh |
3489 |
first = false;
|
|
|
3490 |
sb.append(")");
|
|
|
3491 |
return sb.toString();
|
|
|
3492 |
}
|
|
|
3493 |
|
| 3430 |
rajveer |
3494 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
3495 |
// check for required fields
|
|
|
3496 |
}
|
|
|
3497 |
|
| 3430 |
rajveer |
3498 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3499 |
try {
|
|
|
3500 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3501 |
} catch (org.apache.thrift.TException te) {
|
|
|
3502 |
throw new java.io.IOException(te);
|
|
|
3503 |
}
|
|
|
3504 |
}
|
|
|
3505 |
|
|
|
3506 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3507 |
try {
|
| 4496 |
mandeep.dh |
3508 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
3509 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
3510 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3511 |
} catch (org.apache.thrift.TException te) {
|
|
|
3512 |
throw new java.io.IOException(te);
|
|
|
3513 |
}
|
|
|
3514 |
}
|
|
|
3515 |
|
| 2820 |
chandransh |
3516 |
}
|
|
|
3517 |
|
| 5361 |
mandeep.dh |
3518 |
public static class getNonSeralizedInventoryItem_result implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_result, getNonSeralizedInventoryItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3519 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_result");
|
| 2820 |
chandransh |
3520 |
|
| 5361 |
mandeep.dh |
3521 |
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);
|
|
|
3522 |
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 |
3523 |
|
| 5361 |
mandeep.dh |
3524 |
private InventoryItem success; // required
|
|
|
3525 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
3526 |
|
|
|
3527 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3528 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
3529 |
SUCCESS((short)0, "success"),
|
|
|
3530 |
WEX((short)1, "wex");
|
| 2820 |
chandransh |
3531 |
|
|
|
3532 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3533 |
|
|
|
3534 |
static {
|
|
|
3535 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3536 |
byName.put(field.getFieldName(), field);
|
|
|
3537 |
}
|
|
|
3538 |
}
|
|
|
3539 |
|
|
|
3540 |
/**
|
|
|
3541 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3542 |
*/
|
|
|
3543 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3544 |
switch(fieldId) {
|
|
|
3545 |
case 0: // SUCCESS
|
|
|
3546 |
return SUCCESS;
|
| 5361 |
mandeep.dh |
3547 |
case 1: // WEX
|
|
|
3548 |
return WEX;
|
| 3430 |
rajveer |
3549 |
default:
|
|
|
3550 |
return null;
|
|
|
3551 |
}
|
| 2820 |
chandransh |
3552 |
}
|
|
|
3553 |
|
|
|
3554 |
/**
|
|
|
3555 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3556 |
* if it is not found.
|
|
|
3557 |
*/
|
|
|
3558 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3559 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3560 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3561 |
return fields;
|
|
|
3562 |
}
|
|
|
3563 |
|
|
|
3564 |
/**
|
|
|
3565 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3566 |
*/
|
|
|
3567 |
public static _Fields findByName(String name) {
|
|
|
3568 |
return byName.get(name);
|
|
|
3569 |
}
|
|
|
3570 |
|
|
|
3571 |
private final short _thriftId;
|
|
|
3572 |
private final String _fieldName;
|
|
|
3573 |
|
|
|
3574 |
_Fields(short thriftId, String fieldName) {
|
|
|
3575 |
_thriftId = thriftId;
|
|
|
3576 |
_fieldName = fieldName;
|
|
|
3577 |
}
|
|
|
3578 |
|
|
|
3579 |
public short getThriftFieldId() {
|
|
|
3580 |
return _thriftId;
|
|
|
3581 |
}
|
|
|
3582 |
|
|
|
3583 |
public String getFieldName() {
|
|
|
3584 |
return _fieldName;
|
|
|
3585 |
}
|
|
|
3586 |
}
|
|
|
3587 |
|
|
|
3588 |
// isset id assignments
|
|
|
3589 |
|
| 3430 |
rajveer |
3590 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
3591 |
static {
|
| 3430 |
rajveer |
3592 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3593 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 5361 |
mandeep.dh |
3594 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
3595 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3596 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
| 3430 |
rajveer |
3597 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 5361 |
mandeep.dh |
3598 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_result.class, metaDataMap);
|
| 2820 |
chandransh |
3599 |
}
|
|
|
3600 |
|
| 5361 |
mandeep.dh |
3601 |
public getNonSeralizedInventoryItem_result() {
|
| 2820 |
chandransh |
3602 |
}
|
|
|
3603 |
|
| 5361 |
mandeep.dh |
3604 |
public getNonSeralizedInventoryItem_result(
|
|
|
3605 |
InventoryItem success,
|
|
|
3606 |
WarehouseServiceException wex)
|
| 2820 |
chandransh |
3607 |
{
|
|
|
3608 |
this();
|
|
|
3609 |
this.success = success;
|
| 5361 |
mandeep.dh |
3610 |
this.wex = wex;
|
| 2820 |
chandransh |
3611 |
}
|
|
|
3612 |
|
|
|
3613 |
/**
|
|
|
3614 |
* Performs a deep copy on <i>other</i>.
|
|
|
3615 |
*/
|
| 5361 |
mandeep.dh |
3616 |
public getNonSeralizedInventoryItem_result(getNonSeralizedInventoryItem_result other) {
|
| 4496 |
mandeep.dh |
3617 |
if (other.isSetSuccess()) {
|
| 5361 |
mandeep.dh |
3618 |
this.success = new InventoryItem(other.success);
|
| 2820 |
chandransh |
3619 |
}
|
| 5361 |
mandeep.dh |
3620 |
if (other.isSetWex()) {
|
|
|
3621 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
3622 |
}
|
| 2820 |
chandransh |
3623 |
}
|
|
|
3624 |
|
| 5361 |
mandeep.dh |
3625 |
public getNonSeralizedInventoryItem_result deepCopy() {
|
|
|
3626 |
return new getNonSeralizedInventoryItem_result(this);
|
| 2820 |
chandransh |
3627 |
}
|
|
|
3628 |
|
| 3430 |
rajveer |
3629 |
@Override
|
|
|
3630 |
public void clear() {
|
| 4496 |
mandeep.dh |
3631 |
this.success = null;
|
| 5361 |
mandeep.dh |
3632 |
this.wex = null;
|
| 2820 |
chandransh |
3633 |
}
|
|
|
3634 |
|
| 5361 |
mandeep.dh |
3635 |
public InventoryItem getSuccess() {
|
| 2820 |
chandransh |
3636 |
return this.success;
|
|
|
3637 |
}
|
|
|
3638 |
|
| 5361 |
mandeep.dh |
3639 |
public void setSuccess(InventoryItem success) {
|
| 2820 |
chandransh |
3640 |
this.success = success;
|
|
|
3641 |
}
|
|
|
3642 |
|
|
|
3643 |
public void unsetSuccess() {
|
| 4496 |
mandeep.dh |
3644 |
this.success = null;
|
| 2820 |
chandransh |
3645 |
}
|
|
|
3646 |
|
| 3430 |
rajveer |
3647 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
3648 |
public boolean isSetSuccess() {
|
| 4496 |
mandeep.dh |
3649 |
return this.success != null;
|
| 2820 |
chandransh |
3650 |
}
|
|
|
3651 |
|
|
|
3652 |
public void setSuccessIsSet(boolean value) {
|
| 4496 |
mandeep.dh |
3653 |
if (!value) {
|
|
|
3654 |
this.success = null;
|
|
|
3655 |
}
|
| 2820 |
chandransh |
3656 |
}
|
|
|
3657 |
|
| 5361 |
mandeep.dh |
3658 |
public WarehouseServiceException getWex() {
|
|
|
3659 |
return this.wex;
|
| 2820 |
chandransh |
3660 |
}
|
|
|
3661 |
|
| 5361 |
mandeep.dh |
3662 |
public void setWex(WarehouseServiceException wex) {
|
|
|
3663 |
this.wex = wex;
|
| 2820 |
chandransh |
3664 |
}
|
|
|
3665 |
|
| 5361 |
mandeep.dh |
3666 |
public void unsetWex() {
|
|
|
3667 |
this.wex = null;
|
| 2820 |
chandransh |
3668 |
}
|
|
|
3669 |
|
| 5361 |
mandeep.dh |
3670 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
3671 |
public boolean isSetWex() {
|
|
|
3672 |
return this.wex != null;
|
| 2820 |
chandransh |
3673 |
}
|
|
|
3674 |
|
| 5361 |
mandeep.dh |
3675 |
public void setWexIsSet(boolean value) {
|
|
|
3676 |
if (!value) {
|
|
|
3677 |
this.wex = null;
|
| 2820 |
chandransh |
3678 |
}
|
|
|
3679 |
}
|
|
|
3680 |
|
|
|
3681 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3682 |
switch (field) {
|
| 5361 |
mandeep.dh |
3683 |
case SUCCESS:
|
| 2820 |
chandransh |
3684 |
if (value == null) {
|
| 5361 |
mandeep.dh |
3685 |
unsetSuccess();
|
| 2820 |
chandransh |
3686 |
} else {
|
| 5361 |
mandeep.dh |
3687 |
setSuccess((InventoryItem)value);
|
| 2820 |
chandransh |
3688 |
}
|
|
|
3689 |
break;
|
|
|
3690 |
|
| 5361 |
mandeep.dh |
3691 |
case WEX:
|
| 2820 |
chandransh |
3692 |
if (value == null) {
|
| 5361 |
mandeep.dh |
3693 |
unsetWex();
|
| 2820 |
chandransh |
3694 |
} else {
|
| 5361 |
mandeep.dh |
3695 |
setWex((WarehouseServiceException)value);
|
| 2820 |
chandransh |
3696 |
}
|
|
|
3697 |
break;
|
|
|
3698 |
|
|
|
3699 |
}
|
|
|
3700 |
}
|
|
|
3701 |
|
|
|
3702 |
public Object getFieldValue(_Fields field) {
|
|
|
3703 |
switch (field) {
|
|
|
3704 |
case SUCCESS:
|
| 4496 |
mandeep.dh |
3705 |
return getSuccess();
|
| 2820 |
chandransh |
3706 |
|
| 5361 |
mandeep.dh |
3707 |
case WEX:
|
|
|
3708 |
return getWex();
|
|
|
3709 |
|
| 2820 |
chandransh |
3710 |
}
|
|
|
3711 |
throw new IllegalStateException();
|
|
|
3712 |
}
|
|
|
3713 |
|
| 3430 |
rajveer |
3714 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3715 |
public boolean isSet(_Fields field) {
|
|
|
3716 |
if (field == null) {
|
|
|
3717 |
throw new IllegalArgumentException();
|
|
|
3718 |
}
|
| 2820 |
chandransh |
3719 |
|
|
|
3720 |
switch (field) {
|
|
|
3721 |
case SUCCESS:
|
|
|
3722 |
return isSetSuccess();
|
| 5361 |
mandeep.dh |
3723 |
case WEX:
|
|
|
3724 |
return isSetWex();
|
| 2820 |
chandransh |
3725 |
}
|
|
|
3726 |
throw new IllegalStateException();
|
|
|
3727 |
}
|
|
|
3728 |
|
|
|
3729 |
@Override
|
|
|
3730 |
public boolean equals(Object that) {
|
|
|
3731 |
if (that == null)
|
|
|
3732 |
return false;
|
| 5361 |
mandeep.dh |
3733 |
if (that instanceof getNonSeralizedInventoryItem_result)
|
|
|
3734 |
return this.equals((getNonSeralizedInventoryItem_result)that);
|
| 2820 |
chandransh |
3735 |
return false;
|
|
|
3736 |
}
|
|
|
3737 |
|
| 5361 |
mandeep.dh |
3738 |
public boolean equals(getNonSeralizedInventoryItem_result that) {
|
| 2820 |
chandransh |
3739 |
if (that == null)
|
|
|
3740 |
return false;
|
|
|
3741 |
|
| 4496 |
mandeep.dh |
3742 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
3743 |
boolean that_present_success = true && that.isSetSuccess();
|
| 2820 |
chandransh |
3744 |
if (this_present_success || that_present_success) {
|
|
|
3745 |
if (!(this_present_success && that_present_success))
|
|
|
3746 |
return false;
|
| 4496 |
mandeep.dh |
3747 |
if (!this.success.equals(that.success))
|
| 2820 |
chandransh |
3748 |
return false;
|
|
|
3749 |
}
|
|
|
3750 |
|
| 5361 |
mandeep.dh |
3751 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
3752 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
3753 |
if (this_present_wex || that_present_wex) {
|
|
|
3754 |
if (!(this_present_wex && that_present_wex))
|
| 4496 |
mandeep.dh |
3755 |
return false;
|
| 5361 |
mandeep.dh |
3756 |
if (!this.wex.equals(that.wex))
|
| 4496 |
mandeep.dh |
3757 |
return false;
|
|
|
3758 |
}
|
|
|
3759 |
|
|
|
3760 |
return true;
|
|
|
3761 |
}
|
|
|
3762 |
|
|
|
3763 |
@Override
|
|
|
3764 |
public int hashCode() {
|
|
|
3765 |
return 0;
|
|
|
3766 |
}
|
|
|
3767 |
|
| 5361 |
mandeep.dh |
3768 |
public int compareTo(getNonSeralizedInventoryItem_result other) {
|
| 4496 |
mandeep.dh |
3769 |
if (!getClass().equals(other.getClass())) {
|
|
|
3770 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3771 |
}
|
|
|
3772 |
|
|
|
3773 |
int lastComparison = 0;
|
| 5361 |
mandeep.dh |
3774 |
getNonSeralizedInventoryItem_result typedOther = (getNonSeralizedInventoryItem_result)other;
|
| 4496 |
mandeep.dh |
3775 |
|
|
|
3776 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
3777 |
if (lastComparison != 0) {
|
|
|
3778 |
return lastComparison;
|
|
|
3779 |
}
|
|
|
3780 |
if (isSetSuccess()) {
|
|
|
3781 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
3782 |
if (lastComparison != 0) {
|
|
|
3783 |
return lastComparison;
|
|
|
3784 |
}
|
|
|
3785 |
}
|
| 5361 |
mandeep.dh |
3786 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
3787 |
if (lastComparison != 0) {
|
|
|
3788 |
return lastComparison;
|
|
|
3789 |
}
|
| 5361 |
mandeep.dh |
3790 |
if (isSetWex()) {
|
|
|
3791 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
| 3430 |
rajveer |
3792 |
if (lastComparison != 0) {
|
|
|
3793 |
return lastComparison;
|
|
|
3794 |
}
|
| 2820 |
chandransh |
3795 |
}
|
|
|
3796 |
return 0;
|
|
|
3797 |
}
|
|
|
3798 |
|
| 3430 |
rajveer |
3799 |
public _Fields fieldForId(int fieldId) {
|
|
|
3800 |
return _Fields.findByThriftId(fieldId);
|
|
|
3801 |
}
|
|
|
3802 |
|
|
|
3803 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3804 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
3805 |
iprot.readStructBegin();
|
|
|
3806 |
while (true)
|
|
|
3807 |
{
|
|
|
3808 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3809 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
3810 |
break;
|
|
|
3811 |
}
|
| 3430 |
rajveer |
3812 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
3813 |
case 0: // SUCCESS
|
|
|
3814 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3815 |
this.success = new InventoryItem();
|
|
|
3816 |
this.success.read(iprot);
|
| 3430 |
rajveer |
3817 |
} else {
|
|
|
3818 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3819 |
}
|
|
|
3820 |
break;
|
| 5361 |
mandeep.dh |
3821 |
case 1: // WEX
|
|
|
3822 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3823 |
this.wex = new WarehouseServiceException();
|
|
|
3824 |
this.wex.read(iprot);
|
| 4496 |
mandeep.dh |
3825 |
} else {
|
|
|
3826 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3827 |
}
|
|
|
3828 |
break;
|
|
|
3829 |
default:
|
|
|
3830 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3831 |
}
|
|
|
3832 |
iprot.readFieldEnd();
|
|
|
3833 |
}
|
|
|
3834 |
iprot.readStructEnd();
|
|
|
3835 |
validate();
|
|
|
3836 |
}
|
|
|
3837 |
|
|
|
3838 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
3839 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3840 |
|
|
|
3841 |
if (this.isSetSuccess()) {
|
|
|
3842 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 5361 |
mandeep.dh |
3843 |
this.success.write(oprot);
|
| 4496 |
mandeep.dh |
3844 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
3845 |
} else if (this.isSetWex()) {
|
|
|
3846 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
3847 |
this.wex.write(oprot);
|
|
|
3848 |
oprot.writeFieldEnd();
|
| 4496 |
mandeep.dh |
3849 |
}
|
|
|
3850 |
oprot.writeFieldStop();
|
|
|
3851 |
oprot.writeStructEnd();
|
|
|
3852 |
}
|
|
|
3853 |
|
|
|
3854 |
@Override
|
|
|
3855 |
public String toString() {
|
| 5361 |
mandeep.dh |
3856 |
StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_result(");
|
| 4496 |
mandeep.dh |
3857 |
boolean first = true;
|
|
|
3858 |
|
|
|
3859 |
sb.append("success:");
|
|
|
3860 |
if (this.success == null) {
|
|
|
3861 |
sb.append("null");
|
|
|
3862 |
} else {
|
|
|
3863 |
sb.append(this.success);
|
|
|
3864 |
}
|
|
|
3865 |
first = false;
|
| 5361 |
mandeep.dh |
3866 |
if (!first) sb.append(", ");
|
|
|
3867 |
sb.append("wex:");
|
|
|
3868 |
if (this.wex == null) {
|
|
|
3869 |
sb.append("null");
|
|
|
3870 |
} else {
|
|
|
3871 |
sb.append(this.wex);
|
|
|
3872 |
}
|
|
|
3873 |
first = false;
|
| 4496 |
mandeep.dh |
3874 |
sb.append(")");
|
|
|
3875 |
return sb.toString();
|
|
|
3876 |
}
|
|
|
3877 |
|
|
|
3878 |
public void validate() throws org.apache.thrift.TException {
|
|
|
3879 |
// check for required fields
|
|
|
3880 |
}
|
|
|
3881 |
|
|
|
3882 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3883 |
try {
|
|
|
3884 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3885 |
} catch (org.apache.thrift.TException te) {
|
|
|
3886 |
throw new java.io.IOException(te);
|
|
|
3887 |
}
|
|
|
3888 |
}
|
|
|
3889 |
|
|
|
3890 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3891 |
try {
|
|
|
3892 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3893 |
} catch (org.apache.thrift.TException te) {
|
|
|
3894 |
throw new java.io.IOException(te);
|
|
|
3895 |
}
|
|
|
3896 |
}
|
|
|
3897 |
|
|
|
3898 |
}
|
|
|
3899 |
|
|
|
3900 |
public static class scan_args implements org.apache.thrift.TBase<scan_args, scan_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3901 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_args");
|
| 3383 |
chandransh |
3902 |
|
| 5361 |
mandeep.dh |
3903 |
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 |
3904 |
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);
|
|
|
3905 |
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 |
3906 |
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 |
3907 |
|
| 5361 |
mandeep.dh |
3908 |
private InventoryItem inventoryItem; // required
|
| 4496 |
mandeep.dh |
3909 |
private ScanType type; // required
|
|
|
3910 |
private long quantity; // required
|
| 5361 |
mandeep.dh |
3911 |
private long billingWarehouseId; // required
|
| 3383 |
chandransh |
3912 |
|
|
|
3913 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3914 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
3915 |
INVENTORY_ITEM((short)1, "inventoryItem"),
|
| 4496 |
mandeep.dh |
3916 |
/**
|
|
|
3917 |
*
|
|
|
3918 |
* @see ScanType
|
|
|
3919 |
*/
|
|
|
3920 |
TYPE((short)2, "type"),
|
|
|
3921 |
QUANTITY((short)3, "quantity"),
|
| 5361 |
mandeep.dh |
3922 |
BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId");
|
| 3383 |
chandransh |
3923 |
|
|
|
3924 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3925 |
|
|
|
3926 |
static {
|
|
|
3927 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3928 |
byName.put(field.getFieldName(), field);
|
|
|
3929 |
}
|
|
|
3930 |
}
|
|
|
3931 |
|
|
|
3932 |
/**
|
|
|
3933 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3934 |
*/
|
|
|
3935 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3936 |
switch(fieldId) {
|
| 5361 |
mandeep.dh |
3937 |
case 1: // INVENTORY_ITEM
|
|
|
3938 |
return INVENTORY_ITEM;
|
| 4496 |
mandeep.dh |
3939 |
case 2: // TYPE
|
|
|
3940 |
return TYPE;
|
|
|
3941 |
case 3: // QUANTITY
|
|
|
3942 |
return QUANTITY;
|
| 5361 |
mandeep.dh |
3943 |
case 4: // BILLING_WAREHOUSE_ID
|
|
|
3944 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
3945 |
default:
|
|
|
3946 |
return null;
|
|
|
3947 |
}
|
| 3383 |
chandransh |
3948 |
}
|
|
|
3949 |
|
|
|
3950 |
/**
|
|
|
3951 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3952 |
* if it is not found.
|
|
|
3953 |
*/
|
|
|
3954 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3955 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3956 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3957 |
return fields;
|
|
|
3958 |
}
|
|
|
3959 |
|
|
|
3960 |
/**
|
|
|
3961 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3962 |
*/
|
|
|
3963 |
public static _Fields findByName(String name) {
|
|
|
3964 |
return byName.get(name);
|
|
|
3965 |
}
|
|
|
3966 |
|
|
|
3967 |
private final short _thriftId;
|
|
|
3968 |
private final String _fieldName;
|
|
|
3969 |
|
|
|
3970 |
_Fields(short thriftId, String fieldName) {
|
|
|
3971 |
_thriftId = thriftId;
|
|
|
3972 |
_fieldName = fieldName;
|
|
|
3973 |
}
|
|
|
3974 |
|
|
|
3975 |
public short getThriftFieldId() {
|
|
|
3976 |
return _thriftId;
|
|
|
3977 |
}
|
|
|
3978 |
|
|
|
3979 |
public String getFieldName() {
|
|
|
3980 |
return _fieldName;
|
|
|
3981 |
}
|
|
|
3982 |
}
|
|
|
3983 |
|
|
|
3984 |
// isset id assignments
|
| 5361 |
mandeep.dh |
3985 |
private static final int __QUANTITY_ISSET_ID = 0;
|
|
|
3986 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
|
|
|
3987 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 3383 |
chandransh |
3988 |
|
| 3430 |
rajveer |
3989 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
3990 |
static {
|
| 3430 |
rajveer |
3991 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5361 |
mandeep.dh |
3992 |
tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3993 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 4496 |
mandeep.dh |
3994 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3995 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
3996 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3997 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5361 |
mandeep.dh |
3998 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
3999 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
4000 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
4001 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap);
|
| 3383 |
chandransh |
4002 |
}
|
|
|
4003 |
|
| 4496 |
mandeep.dh |
4004 |
public scan_args() {
|
| 3383 |
chandransh |
4005 |
}
|
|
|
4006 |
|
| 4496 |
mandeep.dh |
4007 |
public scan_args(
|
| 5361 |
mandeep.dh |
4008 |
InventoryItem inventoryItem,
|
| 4496 |
mandeep.dh |
4009 |
ScanType type,
|
|
|
4010 |
long quantity,
|
| 5361 |
mandeep.dh |
4011 |
long billingWarehouseId)
|
| 3383 |
chandransh |
4012 |
{
|
|
|
4013 |
this();
|
| 5361 |
mandeep.dh |
4014 |
this.inventoryItem = inventoryItem;
|
| 4496 |
mandeep.dh |
4015 |
this.type = type;
|
|
|
4016 |
this.quantity = quantity;
|
|
|
4017 |
setQuantityIsSet(true);
|
| 5361 |
mandeep.dh |
4018 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
4019 |
setBillingWarehouseIdIsSet(true);
|
| 3383 |
chandransh |
4020 |
}
|
|
|
4021 |
|
|
|
4022 |
/**
|
|
|
4023 |
* Performs a deep copy on <i>other</i>.
|
|
|
4024 |
*/
|
| 4496 |
mandeep.dh |
4025 |
public scan_args(scan_args other) {
|
| 3383 |
chandransh |
4026 |
__isset_bit_vector.clear();
|
|
|
4027 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5361 |
mandeep.dh |
4028 |
if (other.isSetInventoryItem()) {
|
|
|
4029 |
this.inventoryItem = new InventoryItem(other.inventoryItem);
|
|
|
4030 |
}
|
| 4496 |
mandeep.dh |
4031 |
if (other.isSetType()) {
|
|
|
4032 |
this.type = other.type;
|
|
|
4033 |
}
|
|
|
4034 |
this.quantity = other.quantity;
|
| 5361 |
mandeep.dh |
4035 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 3383 |
chandransh |
4036 |
}
|
|
|
4037 |
|
| 4496 |
mandeep.dh |
4038 |
public scan_args deepCopy() {
|
|
|
4039 |
return new scan_args(this);
|
| 3383 |
chandransh |
4040 |
}
|
|
|
4041 |
|
| 3430 |
rajveer |
4042 |
@Override
|
|
|
4043 |
public void clear() {
|
| 5361 |
mandeep.dh |
4044 |
this.inventoryItem = null;
|
| 4496 |
mandeep.dh |
4045 |
this.type = null;
|
|
|
4046 |
setQuantityIsSet(false);
|
|
|
4047 |
this.quantity = 0;
|
| 5361 |
mandeep.dh |
4048 |
setBillingWarehouseIdIsSet(false);
|
|
|
4049 |
this.billingWarehouseId = 0;
|
| 3383 |
chandransh |
4050 |
}
|
|
|
4051 |
|
| 5361 |
mandeep.dh |
4052 |
public InventoryItem getInventoryItem() {
|
|
|
4053 |
return this.inventoryItem;
|
| 3383 |
chandransh |
4054 |
}
|
|
|
4055 |
|
| 5361 |
mandeep.dh |
4056 |
public void setInventoryItem(InventoryItem inventoryItem) {
|
|
|
4057 |
this.inventoryItem = inventoryItem;
|
| 3383 |
chandransh |
4058 |
}
|
|
|
4059 |
|
| 5361 |
mandeep.dh |
4060 |
public void unsetInventoryItem() {
|
|
|
4061 |
this.inventoryItem = null;
|
| 3383 |
chandransh |
4062 |
}
|
|
|
4063 |
|
| 5361 |
mandeep.dh |
4064 |
/** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
|
|
|
4065 |
public boolean isSetInventoryItem() {
|
|
|
4066 |
return this.inventoryItem != null;
|
| 3383 |
chandransh |
4067 |
}
|
|
|
4068 |
|
| 5361 |
mandeep.dh |
4069 |
public void setInventoryItemIsSet(boolean value) {
|
|
|
4070 |
if (!value) {
|
|
|
4071 |
this.inventoryItem = null;
|
|
|
4072 |
}
|
| 3383 |
chandransh |
4073 |
}
|
|
|
4074 |
|
| 4496 |
mandeep.dh |
4075 |
/**
|
|
|
4076 |
*
|
|
|
4077 |
* @see ScanType
|
|
|
4078 |
*/
|
|
|
4079 |
public ScanType getType() {
|
|
|
4080 |
return this.type;
|
| 3383 |
chandransh |
4081 |
}
|
|
|
4082 |
|
| 4496 |
mandeep.dh |
4083 |
/**
|
|
|
4084 |
*
|
|
|
4085 |
* @see ScanType
|
|
|
4086 |
*/
|
|
|
4087 |
public void setType(ScanType type) {
|
|
|
4088 |
this.type = type;
|
| 3383 |
chandransh |
4089 |
}
|
|
|
4090 |
|
| 4496 |
mandeep.dh |
4091 |
public void unsetType() {
|
|
|
4092 |
this.type = null;
|
| 3383 |
chandransh |
4093 |
}
|
|
|
4094 |
|
| 4496 |
mandeep.dh |
4095 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
4096 |
public boolean isSetType() {
|
|
|
4097 |
return this.type != null;
|
| 3383 |
chandransh |
4098 |
}
|
|
|
4099 |
|
| 4496 |
mandeep.dh |
4100 |
public void setTypeIsSet(boolean value) {
|
|
|
4101 |
if (!value) {
|
|
|
4102 |
this.type = null;
|
|
|
4103 |
}
|
| 3383 |
chandransh |
4104 |
}
|
|
|
4105 |
|
| 4496 |
mandeep.dh |
4106 |
public long getQuantity() {
|
|
|
4107 |
return this.quantity;
|
|
|
4108 |
}
|
|
|
4109 |
|
|
|
4110 |
public void setQuantity(long quantity) {
|
|
|
4111 |
this.quantity = quantity;
|
|
|
4112 |
setQuantityIsSet(true);
|
|
|
4113 |
}
|
|
|
4114 |
|
|
|
4115 |
public void unsetQuantity() {
|
|
|
4116 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
4117 |
}
|
|
|
4118 |
|
|
|
4119 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
4120 |
public boolean isSetQuantity() {
|
|
|
4121 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
4122 |
}
|
|
|
4123 |
|
|
|
4124 |
public void setQuantityIsSet(boolean value) {
|
|
|
4125 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
4126 |
}
|
|
|
4127 |
|
| 5361 |
mandeep.dh |
4128 |
public long getBillingWarehouseId() {
|
|
|
4129 |
return this.billingWarehouseId;
|
| 4496 |
mandeep.dh |
4130 |
}
|
|
|
4131 |
|
| 5361 |
mandeep.dh |
4132 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
4133 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
4134 |
setBillingWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
4135 |
}
|
|
|
4136 |
|
| 5361 |
mandeep.dh |
4137 |
public void unsetBillingWarehouseId() {
|
|
|
4138 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
4139 |
}
|
|
|
4140 |
|
| 5361 |
mandeep.dh |
4141 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
4142 |
public boolean isSetBillingWarehouseId() {
|
|
|
4143 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
4144 |
}
|
|
|
4145 |
|
| 5361 |
mandeep.dh |
4146 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
4147 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
| 4496 |
mandeep.dh |
4148 |
}
|
|
|
4149 |
|
| 3383 |
chandransh |
4150 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4151 |
switch (field) {
|
| 5361 |
mandeep.dh |
4152 |
case INVENTORY_ITEM:
|
| 3383 |
chandransh |
4153 |
if (value == null) {
|
| 5361 |
mandeep.dh |
4154 |
unsetInventoryItem();
|
| 3383 |
chandransh |
4155 |
} else {
|
| 5361 |
mandeep.dh |
4156 |
setInventoryItem((InventoryItem)value);
|
| 3383 |
chandransh |
4157 |
}
|
|
|
4158 |
break;
|
|
|
4159 |
|
| 4496 |
mandeep.dh |
4160 |
case TYPE:
|
| 3383 |
chandransh |
4161 |
if (value == null) {
|
| 4496 |
mandeep.dh |
4162 |
unsetType();
|
| 3383 |
chandransh |
4163 |
} else {
|
| 4496 |
mandeep.dh |
4164 |
setType((ScanType)value);
|
| 3383 |
chandransh |
4165 |
}
|
|
|
4166 |
break;
|
|
|
4167 |
|
| 4496 |
mandeep.dh |
4168 |
case QUANTITY:
|
|
|
4169 |
if (value == null) {
|
|
|
4170 |
unsetQuantity();
|
|
|
4171 |
} else {
|
|
|
4172 |
setQuantity((Long)value);
|
|
|
4173 |
}
|
|
|
4174 |
break;
|
|
|
4175 |
|
| 5361 |
mandeep.dh |
4176 |
case BILLING_WAREHOUSE_ID:
|
| 4496 |
mandeep.dh |
4177 |
if (value == null) {
|
| 5361 |
mandeep.dh |
4178 |
unsetBillingWarehouseId();
|
| 4496 |
mandeep.dh |
4179 |
} else {
|
| 5361 |
mandeep.dh |
4180 |
setBillingWarehouseId((Long)value);
|
| 4496 |
mandeep.dh |
4181 |
}
|
|
|
4182 |
break;
|
|
|
4183 |
|
| 3383 |
chandransh |
4184 |
}
|
|
|
4185 |
}
|
|
|
4186 |
|
|
|
4187 |
public Object getFieldValue(_Fields field) {
|
|
|
4188 |
switch (field) {
|
| 5361 |
mandeep.dh |
4189 |
case INVENTORY_ITEM:
|
|
|
4190 |
return getInventoryItem();
|
| 3383 |
chandransh |
4191 |
|
| 4496 |
mandeep.dh |
4192 |
case TYPE:
|
|
|
4193 |
return getType();
|
| 3383 |
chandransh |
4194 |
|
| 4496 |
mandeep.dh |
4195 |
case QUANTITY:
|
|
|
4196 |
return Long.valueOf(getQuantity());
|
|
|
4197 |
|
| 5361 |
mandeep.dh |
4198 |
case BILLING_WAREHOUSE_ID:
|
|
|
4199 |
return Long.valueOf(getBillingWarehouseId());
|
| 4496 |
mandeep.dh |
4200 |
|
| 3383 |
chandransh |
4201 |
}
|
|
|
4202 |
throw new IllegalStateException();
|
|
|
4203 |
}
|
|
|
4204 |
|
| 3430 |
rajveer |
4205 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4206 |
public boolean isSet(_Fields field) {
|
|
|
4207 |
if (field == null) {
|
|
|
4208 |
throw new IllegalArgumentException();
|
|
|
4209 |
}
|
| 3383 |
chandransh |
4210 |
|
|
|
4211 |
switch (field) {
|
| 5361 |
mandeep.dh |
4212 |
case INVENTORY_ITEM:
|
|
|
4213 |
return isSetInventoryItem();
|
| 4496 |
mandeep.dh |
4214 |
case TYPE:
|
|
|
4215 |
return isSetType();
|
|
|
4216 |
case QUANTITY:
|
|
|
4217 |
return isSetQuantity();
|
| 5361 |
mandeep.dh |
4218 |
case BILLING_WAREHOUSE_ID:
|
|
|
4219 |
return isSetBillingWarehouseId();
|
| 3383 |
chandransh |
4220 |
}
|
|
|
4221 |
throw new IllegalStateException();
|
|
|
4222 |
}
|
|
|
4223 |
|
|
|
4224 |
@Override
|
|
|
4225 |
public boolean equals(Object that) {
|
|
|
4226 |
if (that == null)
|
|
|
4227 |
return false;
|
| 4496 |
mandeep.dh |
4228 |
if (that instanceof scan_args)
|
|
|
4229 |
return this.equals((scan_args)that);
|
| 3383 |
chandransh |
4230 |
return false;
|
|
|
4231 |
}
|
|
|
4232 |
|
| 4496 |
mandeep.dh |
4233 |
public boolean equals(scan_args that) {
|
| 3383 |
chandransh |
4234 |
if (that == null)
|
|
|
4235 |
return false;
|
|
|
4236 |
|
| 5361 |
mandeep.dh |
4237 |
boolean this_present_inventoryItem = true && this.isSetInventoryItem();
|
|
|
4238 |
boolean that_present_inventoryItem = true && that.isSetInventoryItem();
|
|
|
4239 |
if (this_present_inventoryItem || that_present_inventoryItem) {
|
|
|
4240 |
if (!(this_present_inventoryItem && that_present_inventoryItem))
|
| 3383 |
chandransh |
4241 |
return false;
|
| 5361 |
mandeep.dh |
4242 |
if (!this.inventoryItem.equals(that.inventoryItem))
|
| 3383 |
chandransh |
4243 |
return false;
|
|
|
4244 |
}
|
|
|
4245 |
|
| 4496 |
mandeep.dh |
4246 |
boolean this_present_type = true && this.isSetType();
|
|
|
4247 |
boolean that_present_type = true && that.isSetType();
|
|
|
4248 |
if (this_present_type || that_present_type) {
|
|
|
4249 |
if (!(this_present_type && that_present_type))
|
| 3383 |
chandransh |
4250 |
return false;
|
| 4496 |
mandeep.dh |
4251 |
if (!this.type.equals(that.type))
|
| 3383 |
chandransh |
4252 |
return false;
|
|
|
4253 |
}
|
|
|
4254 |
|
| 4496 |
mandeep.dh |
4255 |
boolean this_present_quantity = true;
|
|
|
4256 |
boolean that_present_quantity = true;
|
|
|
4257 |
if (this_present_quantity || that_present_quantity) {
|
|
|
4258 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
4259 |
return false;
|
|
|
4260 |
if (this.quantity != that.quantity)
|
|
|
4261 |
return false;
|
|
|
4262 |
}
|
|
|
4263 |
|
| 5361 |
mandeep.dh |
4264 |
boolean this_present_billingWarehouseId = true;
|
|
|
4265 |
boolean that_present_billingWarehouseId = true;
|
|
|
4266 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
4267 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
| 4496 |
mandeep.dh |
4268 |
return false;
|
| 5361 |
mandeep.dh |
4269 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
| 4496 |
mandeep.dh |
4270 |
return false;
|
|
|
4271 |
}
|
|
|
4272 |
|
| 3383 |
chandransh |
4273 |
return true;
|
|
|
4274 |
}
|
|
|
4275 |
|
|
|
4276 |
@Override
|
|
|
4277 |
public int hashCode() {
|
|
|
4278 |
return 0;
|
|
|
4279 |
}
|
|
|
4280 |
|
| 4496 |
mandeep.dh |
4281 |
public int compareTo(scan_args other) {
|
| 3383 |
chandransh |
4282 |
if (!getClass().equals(other.getClass())) {
|
|
|
4283 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4284 |
}
|
|
|
4285 |
|
|
|
4286 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
4287 |
scan_args typedOther = (scan_args)other;
|
| 3383 |
chandransh |
4288 |
|
| 5361 |
mandeep.dh |
4289 |
lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
|
| 3383 |
chandransh |
4290 |
if (lastComparison != 0) {
|
|
|
4291 |
return lastComparison;
|
|
|
4292 |
}
|
| 5361 |
mandeep.dh |
4293 |
if (isSetInventoryItem()) {
|
|
|
4294 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
|
| 3430 |
rajveer |
4295 |
if (lastComparison != 0) {
|
|
|
4296 |
return lastComparison;
|
|
|
4297 |
}
|
| 3383 |
chandransh |
4298 |
}
|
| 4496 |
mandeep.dh |
4299 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 3383 |
chandransh |
4300 |
if (lastComparison != 0) {
|
|
|
4301 |
return lastComparison;
|
|
|
4302 |
}
|
| 4496 |
mandeep.dh |
4303 |
if (isSetType()) {
|
|
|
4304 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
4305 |
if (lastComparison != 0) {
|
|
|
4306 |
return lastComparison;
|
|
|
4307 |
}
|
| 3383 |
chandransh |
4308 |
}
|
| 4496 |
mandeep.dh |
4309 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
|
|
4310 |
if (lastComparison != 0) {
|
|
|
4311 |
return lastComparison;
|
|
|
4312 |
}
|
|
|
4313 |
if (isSetQuantity()) {
|
|
|
4314 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
|
|
4315 |
if (lastComparison != 0) {
|
|
|
4316 |
return lastComparison;
|
|
|
4317 |
}
|
|
|
4318 |
}
|
| 5361 |
mandeep.dh |
4319 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
| 4496 |
mandeep.dh |
4320 |
if (lastComparison != 0) {
|
|
|
4321 |
return lastComparison;
|
|
|
4322 |
}
|
| 5361 |
mandeep.dh |
4323 |
if (isSetBillingWarehouseId()) {
|
|
|
4324 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
| 4496 |
mandeep.dh |
4325 |
if (lastComparison != 0) {
|
|
|
4326 |
return lastComparison;
|
|
|
4327 |
}
|
|
|
4328 |
}
|
| 3383 |
chandransh |
4329 |
return 0;
|
|
|
4330 |
}
|
|
|
4331 |
|
| 3430 |
rajveer |
4332 |
public _Fields fieldForId(int fieldId) {
|
|
|
4333 |
return _Fields.findByThriftId(fieldId);
|
|
|
4334 |
}
|
|
|
4335 |
|
|
|
4336 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4337 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
4338 |
iprot.readStructBegin();
|
|
|
4339 |
while (true)
|
|
|
4340 |
{
|
|
|
4341 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4342 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
4343 |
break;
|
|
|
4344 |
}
|
| 3430 |
rajveer |
4345 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
4346 |
case 1: // INVENTORY_ITEM
|
|
|
4347 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4348 |
this.inventoryItem = new InventoryItem();
|
|
|
4349 |
this.inventoryItem.read(iprot);
|
| 3430 |
rajveer |
4350 |
} else {
|
|
|
4351 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4352 |
}
|
|
|
4353 |
break;
|
| 4496 |
mandeep.dh |
4354 |
case 2: // TYPE
|
|
|
4355 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
4356 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
4357 |
} else {
|
|
|
4358 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4359 |
}
|
|
|
4360 |
break;
|
| 4496 |
mandeep.dh |
4361 |
case 3: // QUANTITY
|
|
|
4362 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4363 |
this.quantity = iprot.readI64();
|
|
|
4364 |
setQuantityIsSet(true);
|
|
|
4365 |
} else {
|
|
|
4366 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4367 |
}
|
|
|
4368 |
break;
|
| 5361 |
mandeep.dh |
4369 |
case 4: // BILLING_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
4370 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5361 |
mandeep.dh |
4371 |
this.billingWarehouseId = iprot.readI64();
|
|
|
4372 |
setBillingWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
4373 |
} else {
|
|
|
4374 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4375 |
}
|
|
|
4376 |
break;
|
| 3430 |
rajveer |
4377 |
default:
|
|
|
4378 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
4379 |
}
|
| 3430 |
rajveer |
4380 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
4381 |
}
|
|
|
4382 |
iprot.readStructEnd();
|
|
|
4383 |
validate();
|
|
|
4384 |
}
|
|
|
4385 |
|
| 3430 |
rajveer |
4386 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
4387 |
validate();
|
|
|
4388 |
|
|
|
4389 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5361 |
mandeep.dh |
4390 |
if (this.inventoryItem != null) {
|
|
|
4391 |
oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
|
|
|
4392 |
this.inventoryItem.write(oprot);
|
|
|
4393 |
oprot.writeFieldEnd();
|
|
|
4394 |
}
|
| 4496 |
mandeep.dh |
4395 |
if (this.type != null) {
|
|
|
4396 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
4397 |
oprot.writeI32(this.type.getValue());
|
|
|
4398 |
oprot.writeFieldEnd();
|
|
|
4399 |
}
|
|
|
4400 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
4401 |
oprot.writeI64(this.quantity);
|
| 3383 |
chandransh |
4402 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
4403 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
4404 |
oprot.writeI64(this.billingWarehouseId);
|
| 4496 |
mandeep.dh |
4405 |
oprot.writeFieldEnd();
|
| 3383 |
chandransh |
4406 |
oprot.writeFieldStop();
|
|
|
4407 |
oprot.writeStructEnd();
|
|
|
4408 |
}
|
|
|
4409 |
|
|
|
4410 |
@Override
|
|
|
4411 |
public String toString() {
|
| 4496 |
mandeep.dh |
4412 |
StringBuilder sb = new StringBuilder("scan_args(");
|
| 3383 |
chandransh |
4413 |
boolean first = true;
|
|
|
4414 |
|
| 5361 |
mandeep.dh |
4415 |
sb.append("inventoryItem:");
|
|
|
4416 |
if (this.inventoryItem == null) {
|
|
|
4417 |
sb.append("null");
|
|
|
4418 |
} else {
|
|
|
4419 |
sb.append(this.inventoryItem);
|
|
|
4420 |
}
|
| 3383 |
chandransh |
4421 |
first = false;
|
|
|
4422 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
4423 |
sb.append("type:");
|
|
|
4424 |
if (this.type == null) {
|
|
|
4425 |
sb.append("null");
|
|
|
4426 |
} else {
|
|
|
4427 |
sb.append(this.type);
|
|
|
4428 |
}
|
| 3383 |
chandransh |
4429 |
first = false;
|
| 4496 |
mandeep.dh |
4430 |
if (!first) sb.append(", ");
|
|
|
4431 |
sb.append("quantity:");
|
|
|
4432 |
sb.append(this.quantity);
|
|
|
4433 |
first = false;
|
|
|
4434 |
if (!first) sb.append(", ");
|
| 5361 |
mandeep.dh |
4435 |
sb.append("billingWarehouseId:");
|
|
|
4436 |
sb.append(this.billingWarehouseId);
|
| 4496 |
mandeep.dh |
4437 |
first = false;
|
| 3383 |
chandransh |
4438 |
sb.append(")");
|
|
|
4439 |
return sb.toString();
|
|
|
4440 |
}
|
|
|
4441 |
|
| 3430 |
rajveer |
4442 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
4443 |
// check for required fields
|
|
|
4444 |
}
|
|
|
4445 |
|
| 3430 |
rajveer |
4446 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4447 |
try {
|
|
|
4448 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4449 |
} catch (org.apache.thrift.TException te) {
|
|
|
4450 |
throw new java.io.IOException(te);
|
|
|
4451 |
}
|
|
|
4452 |
}
|
|
|
4453 |
|
|
|
4454 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4455 |
try {
|
| 4496 |
mandeep.dh |
4456 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
4457 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
4458 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4459 |
} catch (org.apache.thrift.TException te) {
|
|
|
4460 |
throw new java.io.IOException(te);
|
|
|
4461 |
}
|
|
|
4462 |
}
|
|
|
4463 |
|
| 3383 |
chandransh |
4464 |
}
|
|
|
4465 |
|
| 4496 |
mandeep.dh |
4466 |
public static class scan_result implements org.apache.thrift.TBase<scan_result, scan_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
4467 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_result");
|
| 3383 |
chandransh |
4468 |
|
| 3430 |
rajveer |
4469 |
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 |
4470 |
|
| 3430 |
rajveer |
4471 |
private WarehouseServiceException wex; // required
|
| 3383 |
chandransh |
4472 |
|
|
|
4473 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4474 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3383 |
chandransh |
4475 |
WEX((short)1, "wex");
|
|
|
4476 |
|
|
|
4477 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4478 |
|
|
|
4479 |
static {
|
|
|
4480 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4481 |
byName.put(field.getFieldName(), field);
|
|
|
4482 |
}
|
|
|
4483 |
}
|
|
|
4484 |
|
|
|
4485 |
/**
|
|
|
4486 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4487 |
*/
|
|
|
4488 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4489 |
switch(fieldId) {
|
|
|
4490 |
case 1: // WEX
|
|
|
4491 |
return WEX;
|
|
|
4492 |
default:
|
|
|
4493 |
return null;
|
|
|
4494 |
}
|
| 3383 |
chandransh |
4495 |
}
|
|
|
4496 |
|
|
|
4497 |
/**
|
|
|
4498 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4499 |
* if it is not found.
|
|
|
4500 |
*/
|
|
|
4501 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4502 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4503 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4504 |
return fields;
|
|
|
4505 |
}
|
|
|
4506 |
|
|
|
4507 |
/**
|
|
|
4508 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4509 |
*/
|
|
|
4510 |
public static _Fields findByName(String name) {
|
|
|
4511 |
return byName.get(name);
|
|
|
4512 |
}
|
|
|
4513 |
|
|
|
4514 |
private final short _thriftId;
|
|
|
4515 |
private final String _fieldName;
|
|
|
4516 |
|
|
|
4517 |
_Fields(short thriftId, String fieldName) {
|
|
|
4518 |
_thriftId = thriftId;
|
|
|
4519 |
_fieldName = fieldName;
|
|
|
4520 |
}
|
|
|
4521 |
|
|
|
4522 |
public short getThriftFieldId() {
|
|
|
4523 |
return _thriftId;
|
|
|
4524 |
}
|
|
|
4525 |
|
|
|
4526 |
public String getFieldName() {
|
|
|
4527 |
return _fieldName;
|
|
|
4528 |
}
|
|
|
4529 |
}
|
|
|
4530 |
|
|
|
4531 |
// isset id assignments
|
|
|
4532 |
|
| 3430 |
rajveer |
4533 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
4534 |
static {
|
| 3430 |
rajveer |
4535 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4536 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4537 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
4538 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
4539 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_result.class, metaDataMap);
|
| 3383 |
chandransh |
4540 |
}
|
|
|
4541 |
|
| 4496 |
mandeep.dh |
4542 |
public scan_result() {
|
| 3383 |
chandransh |
4543 |
}
|
|
|
4544 |
|
| 4496 |
mandeep.dh |
4545 |
public scan_result(
|
| 3383 |
chandransh |
4546 |
WarehouseServiceException wex)
|
|
|
4547 |
{
|
|
|
4548 |
this();
|
|
|
4549 |
this.wex = wex;
|
|
|
4550 |
}
|
|
|
4551 |
|
|
|
4552 |
/**
|
|
|
4553 |
* Performs a deep copy on <i>other</i>.
|
|
|
4554 |
*/
|
| 4496 |
mandeep.dh |
4555 |
public scan_result(scan_result other) {
|
| 3383 |
chandransh |
4556 |
if (other.isSetWex()) {
|
|
|
4557 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
4558 |
}
|
|
|
4559 |
}
|
|
|
4560 |
|
| 4496 |
mandeep.dh |
4561 |
public scan_result deepCopy() {
|
|
|
4562 |
return new scan_result(this);
|
| 3383 |
chandransh |
4563 |
}
|
|
|
4564 |
|
| 3430 |
rajveer |
4565 |
@Override
|
|
|
4566 |
public void clear() {
|
|
|
4567 |
this.wex = null;
|
| 3383 |
chandransh |
4568 |
}
|
|
|
4569 |
|
|
|
4570 |
public WarehouseServiceException getWex() {
|
|
|
4571 |
return this.wex;
|
|
|
4572 |
}
|
|
|
4573 |
|
| 3430 |
rajveer |
4574 |
public void setWex(WarehouseServiceException wex) {
|
| 3383 |
chandransh |
4575 |
this.wex = wex;
|
|
|
4576 |
}
|
|
|
4577 |
|
|
|
4578 |
public void unsetWex() {
|
|
|
4579 |
this.wex = null;
|
|
|
4580 |
}
|
|
|
4581 |
|
| 3430 |
rajveer |
4582 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 3383 |
chandransh |
4583 |
public boolean isSetWex() {
|
|
|
4584 |
return this.wex != null;
|
|
|
4585 |
}
|
|
|
4586 |
|
|
|
4587 |
public void setWexIsSet(boolean value) {
|
|
|
4588 |
if (!value) {
|
|
|
4589 |
this.wex = null;
|
|
|
4590 |
}
|
|
|
4591 |
}
|
|
|
4592 |
|
|
|
4593 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4594 |
switch (field) {
|
|
|
4595 |
case WEX:
|
|
|
4596 |
if (value == null) {
|
|
|
4597 |
unsetWex();
|
|
|
4598 |
} else {
|
|
|
4599 |
setWex((WarehouseServiceException)value);
|
|
|
4600 |
}
|
|
|
4601 |
break;
|
|
|
4602 |
|
|
|
4603 |
}
|
|
|
4604 |
}
|
|
|
4605 |
|
|
|
4606 |
public Object getFieldValue(_Fields field) {
|
|
|
4607 |
switch (field) {
|
|
|
4608 |
case WEX:
|
|
|
4609 |
return getWex();
|
|
|
4610 |
|
|
|
4611 |
}
|
|
|
4612 |
throw new IllegalStateException();
|
|
|
4613 |
}
|
|
|
4614 |
|
| 3430 |
rajveer |
4615 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4616 |
public boolean isSet(_Fields field) {
|
|
|
4617 |
if (field == null) {
|
|
|
4618 |
throw new IllegalArgumentException();
|
|
|
4619 |
}
|
| 3383 |
chandransh |
4620 |
|
|
|
4621 |
switch (field) {
|
|
|
4622 |
case WEX:
|
|
|
4623 |
return isSetWex();
|
|
|
4624 |
}
|
|
|
4625 |
throw new IllegalStateException();
|
|
|
4626 |
}
|
|
|
4627 |
|
|
|
4628 |
@Override
|
|
|
4629 |
public boolean equals(Object that) {
|
|
|
4630 |
if (that == null)
|
|
|
4631 |
return false;
|
| 4496 |
mandeep.dh |
4632 |
if (that instanceof scan_result)
|
|
|
4633 |
return this.equals((scan_result)that);
|
| 3383 |
chandransh |
4634 |
return false;
|
|
|
4635 |
}
|
|
|
4636 |
|
| 4496 |
mandeep.dh |
4637 |
public boolean equals(scan_result that) {
|
| 3383 |
chandransh |
4638 |
if (that == null)
|
|
|
4639 |
return false;
|
|
|
4640 |
|
|
|
4641 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
4642 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
4643 |
if (this_present_wex || that_present_wex) {
|
|
|
4644 |
if (!(this_present_wex && that_present_wex))
|
|
|
4645 |
return false;
|
|
|
4646 |
if (!this.wex.equals(that.wex))
|
|
|
4647 |
return false;
|
|
|
4648 |
}
|
|
|
4649 |
|
|
|
4650 |
return true;
|
|
|
4651 |
}
|
|
|
4652 |
|
|
|
4653 |
@Override
|
|
|
4654 |
public int hashCode() {
|
|
|
4655 |
return 0;
|
|
|
4656 |
}
|
|
|
4657 |
|
| 4496 |
mandeep.dh |
4658 |
public int compareTo(scan_result other) {
|
| 3383 |
chandransh |
4659 |
if (!getClass().equals(other.getClass())) {
|
|
|
4660 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4661 |
}
|
|
|
4662 |
|
|
|
4663 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
4664 |
scan_result typedOther = (scan_result)other;
|
| 3383 |
chandransh |
4665 |
|
| 3430 |
rajveer |
4666 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 3383 |
chandransh |
4667 |
if (lastComparison != 0) {
|
|
|
4668 |
return lastComparison;
|
|
|
4669 |
}
|
| 3430 |
rajveer |
4670 |
if (isSetWex()) {
|
|
|
4671 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
4672 |
if (lastComparison != 0) {
|
|
|
4673 |
return lastComparison;
|
|
|
4674 |
}
|
| 3383 |
chandransh |
4675 |
}
|
|
|
4676 |
return 0;
|
|
|
4677 |
}
|
|
|
4678 |
|
| 3430 |
rajveer |
4679 |
public _Fields fieldForId(int fieldId) {
|
|
|
4680 |
return _Fields.findByThriftId(fieldId);
|
|
|
4681 |
}
|
|
|
4682 |
|
|
|
4683 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4684 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
4685 |
iprot.readStructBegin();
|
|
|
4686 |
while (true)
|
|
|
4687 |
{
|
|
|
4688 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4689 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
4690 |
break;
|
|
|
4691 |
}
|
| 3430 |
rajveer |
4692 |
switch (field.id) {
|
|
|
4693 |
case 1: // WEX
|
|
|
4694 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4695 |
this.wex = new WarehouseServiceException();
|
|
|
4696 |
this.wex.read(iprot);
|
|
|
4697 |
} else {
|
|
|
4698 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4699 |
}
|
|
|
4700 |
break;
|
|
|
4701 |
default:
|
|
|
4702 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
4703 |
}
|
| 3430 |
rajveer |
4704 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
4705 |
}
|
|
|
4706 |
iprot.readStructEnd();
|
|
|
4707 |
validate();
|
|
|
4708 |
}
|
|
|
4709 |
|
| 3430 |
rajveer |
4710 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
4711 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4712 |
|
| 4496 |
mandeep.dh |
4713 |
if (this.isSetWex()) {
|
| 3383 |
chandransh |
4714 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
4715 |
this.wex.write(oprot);
|
|
|
4716 |
oprot.writeFieldEnd();
|
|
|
4717 |
}
|
|
|
4718 |
oprot.writeFieldStop();
|
|
|
4719 |
oprot.writeStructEnd();
|
|
|
4720 |
}
|
|
|
4721 |
|
|
|
4722 |
@Override
|
|
|
4723 |
public String toString() {
|
| 4496 |
mandeep.dh |
4724 |
StringBuilder sb = new StringBuilder("scan_result(");
|
| 3383 |
chandransh |
4725 |
boolean first = true;
|
|
|
4726 |
|
|
|
4727 |
sb.append("wex:");
|
|
|
4728 |
if (this.wex == null) {
|
|
|
4729 |
sb.append("null");
|
|
|
4730 |
} else {
|
|
|
4731 |
sb.append(this.wex);
|
|
|
4732 |
}
|
|
|
4733 |
first = false;
|
|
|
4734 |
sb.append(")");
|
|
|
4735 |
return sb.toString();
|
|
|
4736 |
}
|
|
|
4737 |
|
| 3430 |
rajveer |
4738 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
4739 |
// check for required fields
|
|
|
4740 |
}
|
|
|
4741 |
|
| 3430 |
rajveer |
4742 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4743 |
try {
|
|
|
4744 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4745 |
} catch (org.apache.thrift.TException te) {
|
|
|
4746 |
throw new java.io.IOException(te);
|
|
|
4747 |
}
|
|
|
4748 |
}
|
|
|
4749 |
|
|
|
4750 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4751 |
try {
|
|
|
4752 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4753 |
} catch (org.apache.thrift.TException te) {
|
|
|
4754 |
throw new java.io.IOException(te);
|
|
|
4755 |
}
|
|
|
4756 |
}
|
|
|
4757 |
|
| 3383 |
chandransh |
4758 |
}
|
|
|
4759 |
|
| 4496 |
mandeep.dh |
4760 |
public static class scanSerializedItemForOrder_args implements org.apache.thrift.TBase<scanSerializedItemForOrder_args, scanSerializedItemForOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4761 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
|
| 2820 |
chandransh |
4762 |
|
| 4555 |
mandeep.dh |
4763 |
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 |
4764 |
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);
|
|
|
4765 |
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 |
4766 |
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);
|
|
|
4767 |
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);
|
|
|
4768 |
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 |
4769 |
|
| 4555 |
mandeep.dh |
4770 |
private String serialNumber; // required
|
| 3430 |
rajveer |
4771 |
private ScanType type; // required
|
| 4496 |
mandeep.dh |
4772 |
private long orderId; // required
|
| 5110 |
mandeep.dh |
4773 |
private long fulfilmentWarehouseId; // required
|
|
|
4774 |
private double quantity; // required
|
|
|
4775 |
private long billingWarehouseId; // required
|
| 2820 |
chandransh |
4776 |
|
|
|
4777 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4778 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4555 |
mandeep.dh |
4779 |
SERIAL_NUMBER((short)1, "serialNumber"),
|
| 2820 |
chandransh |
4780 |
/**
|
|
|
4781 |
*
|
|
|
4782 |
* @see ScanType
|
|
|
4783 |
*/
|
| 4496 |
mandeep.dh |
4784 |
TYPE((short)2, "type"),
|
|
|
4785 |
ORDER_ID((short)3, "orderId"),
|
| 5110 |
mandeep.dh |
4786 |
FULFILMENT_WAREHOUSE_ID((short)4, "fulfilmentWarehouseId"),
|
|
|
4787 |
QUANTITY((short)5, "quantity"),
|
|
|
4788 |
BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
|
| 2820 |
chandransh |
4789 |
|
|
|
4790 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4791 |
|
|
|
4792 |
static {
|
|
|
4793 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4794 |
byName.put(field.getFieldName(), field);
|
|
|
4795 |
}
|
|
|
4796 |
}
|
|
|
4797 |
|
|
|
4798 |
/**
|
|
|
4799 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4800 |
*/
|
|
|
4801 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4802 |
switch(fieldId) {
|
| 4555 |
mandeep.dh |
4803 |
case 1: // SERIAL_NUMBER
|
|
|
4804 |
return SERIAL_NUMBER;
|
| 4496 |
mandeep.dh |
4805 |
case 2: // TYPE
|
| 3430 |
rajveer |
4806 |
return TYPE;
|
| 4496 |
mandeep.dh |
4807 |
case 3: // ORDER_ID
|
|
|
4808 |
return ORDER_ID;
|
| 5110 |
mandeep.dh |
4809 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
|
|
4810 |
return FULFILMENT_WAREHOUSE_ID;
|
|
|
4811 |
case 5: // QUANTITY
|
|
|
4812 |
return QUANTITY;
|
|
|
4813 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
4814 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
4815 |
default:
|
|
|
4816 |
return null;
|
|
|
4817 |
}
|
| 2820 |
chandransh |
4818 |
}
|
|
|
4819 |
|
|
|
4820 |
/**
|
|
|
4821 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4822 |
* if it is not found.
|
|
|
4823 |
*/
|
|
|
4824 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4825 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4826 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4827 |
return fields;
|
|
|
4828 |
}
|
|
|
4829 |
|
|
|
4830 |
/**
|
|
|
4831 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4832 |
*/
|
|
|
4833 |
public static _Fields findByName(String name) {
|
|
|
4834 |
return byName.get(name);
|
|
|
4835 |
}
|
|
|
4836 |
|
|
|
4837 |
private final short _thriftId;
|
|
|
4838 |
private final String _fieldName;
|
|
|
4839 |
|
|
|
4840 |
_Fields(short thriftId, String fieldName) {
|
|
|
4841 |
_thriftId = thriftId;
|
|
|
4842 |
_fieldName = fieldName;
|
|
|
4843 |
}
|
|
|
4844 |
|
|
|
4845 |
public short getThriftFieldId() {
|
|
|
4846 |
return _thriftId;
|
|
|
4847 |
}
|
|
|
4848 |
|
|
|
4849 |
public String getFieldName() {
|
|
|
4850 |
return _fieldName;
|
|
|
4851 |
}
|
|
|
4852 |
}
|
|
|
4853 |
|
|
|
4854 |
// isset id assignments
|
| 4555 |
mandeep.dh |
4855 |
private static final int __ORDERID_ISSET_ID = 0;
|
| 5110 |
mandeep.dh |
4856 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
|
|
|
4857 |
private static final int __QUANTITY_ISSET_ID = 2;
|
|
|
4858 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
|
|
|
4859 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 2820 |
chandransh |
4860 |
|
| 3430 |
rajveer |
4861 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
4862 |
static {
|
| 3430 |
rajveer |
4863 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4555 |
mandeep.dh |
4864 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4865 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 3430 |
rajveer |
4866 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4867 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 4496 |
mandeep.dh |
4868 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4869 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
4870 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
4871 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
4872 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4873 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
4874 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4875 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
4876 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
4877 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_args.class, metaDataMap);
|
| 2820 |
chandransh |
4878 |
}
|
|
|
4879 |
|
| 4496 |
mandeep.dh |
4880 |
public scanSerializedItemForOrder_args() {
|
| 2820 |
chandransh |
4881 |
}
|
|
|
4882 |
|
| 4496 |
mandeep.dh |
4883 |
public scanSerializedItemForOrder_args(
|
| 4555 |
mandeep.dh |
4884 |
String serialNumber,
|
| 4496 |
mandeep.dh |
4885 |
ScanType type,
|
|
|
4886 |
long orderId,
|
| 5110 |
mandeep.dh |
4887 |
long fulfilmentWarehouseId,
|
|
|
4888 |
double quantity,
|
|
|
4889 |
long billingWarehouseId)
|
| 2820 |
chandransh |
4890 |
{
|
|
|
4891 |
this();
|
| 4555 |
mandeep.dh |
4892 |
this.serialNumber = serialNumber;
|
| 2820 |
chandransh |
4893 |
this.type = type;
|
| 4496 |
mandeep.dh |
4894 |
this.orderId = orderId;
|
|
|
4895 |
setOrderIdIsSet(true);
|
| 5110 |
mandeep.dh |
4896 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
4897 |
setFulfilmentWarehouseIdIsSet(true);
|
|
|
4898 |
this.quantity = quantity;
|
|
|
4899 |
setQuantityIsSet(true);
|
|
|
4900 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
4901 |
setBillingWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
4902 |
}
|
|
|
4903 |
|
|
|
4904 |
/**
|
|
|
4905 |
* Performs a deep copy on <i>other</i>.
|
|
|
4906 |
*/
|
| 4496 |
mandeep.dh |
4907 |
public scanSerializedItemForOrder_args(scanSerializedItemForOrder_args other) {
|
| 2820 |
chandransh |
4908 |
__isset_bit_vector.clear();
|
|
|
4909 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 4555 |
mandeep.dh |
4910 |
if (other.isSetSerialNumber()) {
|
|
|
4911 |
this.serialNumber = other.serialNumber;
|
|
|
4912 |
}
|
| 2820 |
chandransh |
4913 |
if (other.isSetType()) {
|
|
|
4914 |
this.type = other.type;
|
|
|
4915 |
}
|
| 4496 |
mandeep.dh |
4916 |
this.orderId = other.orderId;
|
| 5110 |
mandeep.dh |
4917 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
|
|
4918 |
this.quantity = other.quantity;
|
|
|
4919 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 2820 |
chandransh |
4920 |
}
|
|
|
4921 |
|
| 4496 |
mandeep.dh |
4922 |
public scanSerializedItemForOrder_args deepCopy() {
|
|
|
4923 |
return new scanSerializedItemForOrder_args(this);
|
| 2820 |
chandransh |
4924 |
}
|
|
|
4925 |
|
| 3430 |
rajveer |
4926 |
@Override
|
|
|
4927 |
public void clear() {
|
| 4555 |
mandeep.dh |
4928 |
this.serialNumber = null;
|
| 3430 |
rajveer |
4929 |
this.type = null;
|
| 4496 |
mandeep.dh |
4930 |
setOrderIdIsSet(false);
|
|
|
4931 |
this.orderId = 0;
|
| 5110 |
mandeep.dh |
4932 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
4933 |
this.fulfilmentWarehouseId = 0;
|
|
|
4934 |
setQuantityIsSet(false);
|
|
|
4935 |
this.quantity = 0.0;
|
|
|
4936 |
setBillingWarehouseIdIsSet(false);
|
|
|
4937 |
this.billingWarehouseId = 0;
|
| 2820 |
chandransh |
4938 |
}
|
|
|
4939 |
|
| 4555 |
mandeep.dh |
4940 |
public String getSerialNumber() {
|
|
|
4941 |
return this.serialNumber;
|
| 2820 |
chandransh |
4942 |
}
|
|
|
4943 |
|
| 4555 |
mandeep.dh |
4944 |
public void setSerialNumber(String serialNumber) {
|
|
|
4945 |
this.serialNumber = serialNumber;
|
| 2820 |
chandransh |
4946 |
}
|
|
|
4947 |
|
| 4555 |
mandeep.dh |
4948 |
public void unsetSerialNumber() {
|
|
|
4949 |
this.serialNumber = null;
|
| 2820 |
chandransh |
4950 |
}
|
|
|
4951 |
|
| 4555 |
mandeep.dh |
4952 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
4953 |
public boolean isSetSerialNumber() {
|
|
|
4954 |
return this.serialNumber != null;
|
| 2820 |
chandransh |
4955 |
}
|
|
|
4956 |
|
| 4555 |
mandeep.dh |
4957 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
4958 |
if (!value) {
|
|
|
4959 |
this.serialNumber = null;
|
|
|
4960 |
}
|
| 2820 |
chandransh |
4961 |
}
|
|
|
4962 |
|
| 4496 |
mandeep.dh |
4963 |
/**
|
|
|
4964 |
*
|
|
|
4965 |
* @see ScanType
|
|
|
4966 |
*/
|
|
|
4967 |
public ScanType getType() {
|
|
|
4968 |
return this.type;
|
| 2820 |
chandransh |
4969 |
}
|
|
|
4970 |
|
| 4496 |
mandeep.dh |
4971 |
/**
|
|
|
4972 |
*
|
|
|
4973 |
* @see ScanType
|
|
|
4974 |
*/
|
|
|
4975 |
public void setType(ScanType type) {
|
|
|
4976 |
this.type = type;
|
| 2820 |
chandransh |
4977 |
}
|
|
|
4978 |
|
| 4496 |
mandeep.dh |
4979 |
public void unsetType() {
|
|
|
4980 |
this.type = null;
|
| 2820 |
chandransh |
4981 |
}
|
|
|
4982 |
|
| 4496 |
mandeep.dh |
4983 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
4984 |
public boolean isSetType() {
|
|
|
4985 |
return this.type != null;
|
| 2820 |
chandransh |
4986 |
}
|
|
|
4987 |
|
| 4496 |
mandeep.dh |
4988 |
public void setTypeIsSet(boolean value) {
|
| 2820 |
chandransh |
4989 |
if (!value) {
|
| 4496 |
mandeep.dh |
4990 |
this.type = null;
|
| 2820 |
chandransh |
4991 |
}
|
|
|
4992 |
}
|
|
|
4993 |
|
| 4496 |
mandeep.dh |
4994 |
public long getOrderId() {
|
|
|
4995 |
return this.orderId;
|
| 2820 |
chandransh |
4996 |
}
|
|
|
4997 |
|
| 4496 |
mandeep.dh |
4998 |
public void setOrderId(long orderId) {
|
|
|
4999 |
this.orderId = orderId;
|
|
|
5000 |
setOrderIdIsSet(true);
|
| 2820 |
chandransh |
5001 |
}
|
|
|
5002 |
|
| 4496 |
mandeep.dh |
5003 |
public void unsetOrderId() {
|
|
|
5004 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
| 2820 |
chandransh |
5005 |
}
|
|
|
5006 |
|
| 4496 |
mandeep.dh |
5007 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
5008 |
public boolean isSetOrderId() {
|
|
|
5009 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
| 2820 |
chandransh |
5010 |
}
|
|
|
5011 |
|
| 4496 |
mandeep.dh |
5012 |
public void setOrderIdIsSet(boolean value) {
|
|
|
5013 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
| 2820 |
chandransh |
5014 |
}
|
|
|
5015 |
|
| 5110 |
mandeep.dh |
5016 |
public long getFulfilmentWarehouseId() {
|
|
|
5017 |
return this.fulfilmentWarehouseId;
|
| 2820 |
chandransh |
5018 |
}
|
|
|
5019 |
|
| 5110 |
mandeep.dh |
5020 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
5021 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
5022 |
setFulfilmentWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
5023 |
}
|
|
|
5024 |
|
| 5110 |
mandeep.dh |
5025 |
public void unsetFulfilmentWarehouseId() {
|
|
|
5026 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
5027 |
}
|
|
|
5028 |
|
| 5110 |
mandeep.dh |
5029 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
5030 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
5031 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
5032 |
}
|
|
|
5033 |
|
| 5110 |
mandeep.dh |
5034 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
5035 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 2820 |
chandransh |
5036 |
}
|
|
|
5037 |
|
| 5110 |
mandeep.dh |
5038 |
public double getQuantity() {
|
|
|
5039 |
return this.quantity;
|
|
|
5040 |
}
|
|
|
5041 |
|
|
|
5042 |
public void setQuantity(double quantity) {
|
|
|
5043 |
this.quantity = quantity;
|
|
|
5044 |
setQuantityIsSet(true);
|
|
|
5045 |
}
|
|
|
5046 |
|
|
|
5047 |
public void unsetQuantity() {
|
|
|
5048 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
5049 |
}
|
|
|
5050 |
|
|
|
5051 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
5052 |
public boolean isSetQuantity() {
|
|
|
5053 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
5054 |
}
|
|
|
5055 |
|
|
|
5056 |
public void setQuantityIsSet(boolean value) {
|
|
|
5057 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
5058 |
}
|
|
|
5059 |
|
|
|
5060 |
public long getBillingWarehouseId() {
|
|
|
5061 |
return this.billingWarehouseId;
|
|
|
5062 |
}
|
|
|
5063 |
|
|
|
5064 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
5065 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
5066 |
setBillingWarehouseIdIsSet(true);
|
|
|
5067 |
}
|
|
|
5068 |
|
|
|
5069 |
public void unsetBillingWarehouseId() {
|
|
|
5070 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
5071 |
}
|
|
|
5072 |
|
|
|
5073 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
5074 |
public boolean isSetBillingWarehouseId() {
|
|
|
5075 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
5076 |
}
|
|
|
5077 |
|
|
|
5078 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
5079 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
|
|
5080 |
}
|
|
|
5081 |
|
| 2820 |
chandransh |
5082 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5083 |
switch (field) {
|
| 4555 |
mandeep.dh |
5084 |
case SERIAL_NUMBER:
|
| 2820 |
chandransh |
5085 |
if (value == null) {
|
| 4555 |
mandeep.dh |
5086 |
unsetSerialNumber();
|
| 2820 |
chandransh |
5087 |
} else {
|
| 4555 |
mandeep.dh |
5088 |
setSerialNumber((String)value);
|
| 2820 |
chandransh |
5089 |
}
|
|
|
5090 |
break;
|
|
|
5091 |
|
| 4496 |
mandeep.dh |
5092 |
case TYPE:
|
| 2820 |
chandransh |
5093 |
if (value == null) {
|
| 4496 |
mandeep.dh |
5094 |
unsetType();
|
| 2820 |
chandransh |
5095 |
} else {
|
| 4496 |
mandeep.dh |
5096 |
setType((ScanType)value);
|
| 2820 |
chandransh |
5097 |
}
|
|
|
5098 |
break;
|
|
|
5099 |
|
| 4496 |
mandeep.dh |
5100 |
case ORDER_ID:
|
| 2820 |
chandransh |
5101 |
if (value == null) {
|
| 4496 |
mandeep.dh |
5102 |
unsetOrderId();
|
| 2820 |
chandransh |
5103 |
} else {
|
| 4496 |
mandeep.dh |
5104 |
setOrderId((Long)value);
|
| 2820 |
chandransh |
5105 |
}
|
|
|
5106 |
break;
|
|
|
5107 |
|
| 5110 |
mandeep.dh |
5108 |
case FULFILMENT_WAREHOUSE_ID:
|
| 2820 |
chandransh |
5109 |
if (value == null) {
|
| 5110 |
mandeep.dh |
5110 |
unsetFulfilmentWarehouseId();
|
| 2820 |
chandransh |
5111 |
} else {
|
| 5110 |
mandeep.dh |
5112 |
setFulfilmentWarehouseId((Long)value);
|
| 2820 |
chandransh |
5113 |
}
|
|
|
5114 |
break;
|
|
|
5115 |
|
| 5110 |
mandeep.dh |
5116 |
case QUANTITY:
|
|
|
5117 |
if (value == null) {
|
|
|
5118 |
unsetQuantity();
|
|
|
5119 |
} else {
|
|
|
5120 |
setQuantity((Double)value);
|
|
|
5121 |
}
|
|
|
5122 |
break;
|
|
|
5123 |
|
|
|
5124 |
case BILLING_WAREHOUSE_ID:
|
|
|
5125 |
if (value == null) {
|
|
|
5126 |
unsetBillingWarehouseId();
|
|
|
5127 |
} else {
|
|
|
5128 |
setBillingWarehouseId((Long)value);
|
|
|
5129 |
}
|
|
|
5130 |
break;
|
|
|
5131 |
|
| 2820 |
chandransh |
5132 |
}
|
|
|
5133 |
}
|
|
|
5134 |
|
|
|
5135 |
public Object getFieldValue(_Fields field) {
|
|
|
5136 |
switch (field) {
|
| 4555 |
mandeep.dh |
5137 |
case SERIAL_NUMBER:
|
|
|
5138 |
return getSerialNumber();
|
| 2820 |
chandransh |
5139 |
|
|
|
5140 |
case TYPE:
|
|
|
5141 |
return getType();
|
|
|
5142 |
|
| 4496 |
mandeep.dh |
5143 |
case ORDER_ID:
|
|
|
5144 |
return Long.valueOf(getOrderId());
|
|
|
5145 |
|
| 5110 |
mandeep.dh |
5146 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
5147 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
5148 |
|
| 5110 |
mandeep.dh |
5149 |
case QUANTITY:
|
|
|
5150 |
return Double.valueOf(getQuantity());
|
|
|
5151 |
|
|
|
5152 |
case BILLING_WAREHOUSE_ID:
|
|
|
5153 |
return Long.valueOf(getBillingWarehouseId());
|
|
|
5154 |
|
| 2820 |
chandransh |
5155 |
}
|
|
|
5156 |
throw new IllegalStateException();
|
|
|
5157 |
}
|
|
|
5158 |
|
| 3430 |
rajveer |
5159 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5160 |
public boolean isSet(_Fields field) {
|
|
|
5161 |
if (field == null) {
|
|
|
5162 |
throw new IllegalArgumentException();
|
|
|
5163 |
}
|
| 2820 |
chandransh |
5164 |
|
|
|
5165 |
switch (field) {
|
| 4555 |
mandeep.dh |
5166 |
case SERIAL_NUMBER:
|
|
|
5167 |
return isSetSerialNumber();
|
| 2820 |
chandransh |
5168 |
case TYPE:
|
|
|
5169 |
return isSetType();
|
| 4496 |
mandeep.dh |
5170 |
case ORDER_ID:
|
|
|
5171 |
return isSetOrderId();
|
| 5110 |
mandeep.dh |
5172 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
5173 |
return isSetFulfilmentWarehouseId();
|
|
|
5174 |
case QUANTITY:
|
|
|
5175 |
return isSetQuantity();
|
|
|
5176 |
case BILLING_WAREHOUSE_ID:
|
|
|
5177 |
return isSetBillingWarehouseId();
|
| 2820 |
chandransh |
5178 |
}
|
|
|
5179 |
throw new IllegalStateException();
|
|
|
5180 |
}
|
|
|
5181 |
|
|
|
5182 |
@Override
|
|
|
5183 |
public boolean equals(Object that) {
|
|
|
5184 |
if (that == null)
|
|
|
5185 |
return false;
|
| 4496 |
mandeep.dh |
5186 |
if (that instanceof scanSerializedItemForOrder_args)
|
|
|
5187 |
return this.equals((scanSerializedItemForOrder_args)that);
|
| 2820 |
chandransh |
5188 |
return false;
|
|
|
5189 |
}
|
|
|
5190 |
|
| 4496 |
mandeep.dh |
5191 |
public boolean equals(scanSerializedItemForOrder_args that) {
|
| 2820 |
chandransh |
5192 |
if (that == null)
|
|
|
5193 |
return false;
|
|
|
5194 |
|
| 4555 |
mandeep.dh |
5195 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
5196 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
5197 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
5198 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
| 2820 |
chandransh |
5199 |
return false;
|
| 4555 |
mandeep.dh |
5200 |
if (!this.serialNumber.equals(that.serialNumber))
|
| 2820 |
chandransh |
5201 |
return false;
|
|
|
5202 |
}
|
|
|
5203 |
|
| 4496 |
mandeep.dh |
5204 |
boolean this_present_type = true && this.isSetType();
|
|
|
5205 |
boolean that_present_type = true && that.isSetType();
|
|
|
5206 |
if (this_present_type || that_present_type) {
|
|
|
5207 |
if (!(this_present_type && that_present_type))
|
| 2820 |
chandransh |
5208 |
return false;
|
| 4496 |
mandeep.dh |
5209 |
if (!this.type.equals(that.type))
|
| 2820 |
chandransh |
5210 |
return false;
|
|
|
5211 |
}
|
|
|
5212 |
|
| 4496 |
mandeep.dh |
5213 |
boolean this_present_orderId = true;
|
|
|
5214 |
boolean that_present_orderId = true;
|
|
|
5215 |
if (this_present_orderId || that_present_orderId) {
|
|
|
5216 |
if (!(this_present_orderId && that_present_orderId))
|
| 2820 |
chandransh |
5217 |
return false;
|
| 4496 |
mandeep.dh |
5218 |
if (this.orderId != that.orderId)
|
| 2820 |
chandransh |
5219 |
return false;
|
|
|
5220 |
}
|
|
|
5221 |
|
| 5110 |
mandeep.dh |
5222 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
5223 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
5224 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
5225 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 2820 |
chandransh |
5226 |
return false;
|
| 5110 |
mandeep.dh |
5227 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 2820 |
chandransh |
5228 |
return false;
|
|
|
5229 |
}
|
|
|
5230 |
|
| 5110 |
mandeep.dh |
5231 |
boolean this_present_quantity = true;
|
|
|
5232 |
boolean that_present_quantity = true;
|
|
|
5233 |
if (this_present_quantity || that_present_quantity) {
|
|
|
5234 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
5235 |
return false;
|
|
|
5236 |
if (this.quantity != that.quantity)
|
|
|
5237 |
return false;
|
|
|
5238 |
}
|
|
|
5239 |
|
|
|
5240 |
boolean this_present_billingWarehouseId = true;
|
|
|
5241 |
boolean that_present_billingWarehouseId = true;
|
|
|
5242 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
5243 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
|
|
5244 |
return false;
|
|
|
5245 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
|
|
5246 |
return false;
|
|
|
5247 |
}
|
|
|
5248 |
|
| 2820 |
chandransh |
5249 |
return true;
|
|
|
5250 |
}
|
|
|
5251 |
|
|
|
5252 |
@Override
|
|
|
5253 |
public int hashCode() {
|
|
|
5254 |
return 0;
|
|
|
5255 |
}
|
|
|
5256 |
|
| 4496 |
mandeep.dh |
5257 |
public int compareTo(scanSerializedItemForOrder_args other) {
|
| 2820 |
chandransh |
5258 |
if (!getClass().equals(other.getClass())) {
|
|
|
5259 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5260 |
}
|
|
|
5261 |
|
|
|
5262 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
5263 |
scanSerializedItemForOrder_args typedOther = (scanSerializedItemForOrder_args)other;
|
| 2820 |
chandransh |
5264 |
|
| 4555 |
mandeep.dh |
5265 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
| 2820 |
chandransh |
5266 |
if (lastComparison != 0) {
|
|
|
5267 |
return lastComparison;
|
|
|
5268 |
}
|
| 4555 |
mandeep.dh |
5269 |
if (isSetSerialNumber()) {
|
|
|
5270 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
| 3430 |
rajveer |
5271 |
if (lastComparison != 0) {
|
|
|
5272 |
return lastComparison;
|
|
|
5273 |
}
|
| 2820 |
chandransh |
5274 |
}
|
| 4496 |
mandeep.dh |
5275 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 2820 |
chandransh |
5276 |
if (lastComparison != 0) {
|
|
|
5277 |
return lastComparison;
|
|
|
5278 |
}
|
| 4496 |
mandeep.dh |
5279 |
if (isSetType()) {
|
|
|
5280 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
5281 |
if (lastComparison != 0) {
|
|
|
5282 |
return lastComparison;
|
|
|
5283 |
}
|
| 2820 |
chandransh |
5284 |
}
|
| 4496 |
mandeep.dh |
5285 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
| 2820 |
chandransh |
5286 |
if (lastComparison != 0) {
|
|
|
5287 |
return lastComparison;
|
|
|
5288 |
}
|
| 4496 |
mandeep.dh |
5289 |
if (isSetOrderId()) {
|
|
|
5290 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
| 3430 |
rajveer |
5291 |
if (lastComparison != 0) {
|
|
|
5292 |
return lastComparison;
|
|
|
5293 |
}
|
| 2820 |
chandransh |
5294 |
}
|
| 5110 |
mandeep.dh |
5295 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 2820 |
chandransh |
5296 |
if (lastComparison != 0) {
|
|
|
5297 |
return lastComparison;
|
|
|
5298 |
}
|
| 5110 |
mandeep.dh |
5299 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
5300 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 3430 |
rajveer |
5301 |
if (lastComparison != 0) {
|
|
|
5302 |
return lastComparison;
|
|
|
5303 |
}
|
| 2820 |
chandransh |
5304 |
}
|
| 5110 |
mandeep.dh |
5305 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
|
|
5306 |
if (lastComparison != 0) {
|
|
|
5307 |
return lastComparison;
|
|
|
5308 |
}
|
|
|
5309 |
if (isSetQuantity()) {
|
|
|
5310 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
|
|
5311 |
if (lastComparison != 0) {
|
|
|
5312 |
return lastComparison;
|
|
|
5313 |
}
|
|
|
5314 |
}
|
|
|
5315 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
|
|
5316 |
if (lastComparison != 0) {
|
|
|
5317 |
return lastComparison;
|
|
|
5318 |
}
|
|
|
5319 |
if (isSetBillingWarehouseId()) {
|
|
|
5320 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
|
|
5321 |
if (lastComparison != 0) {
|
|
|
5322 |
return lastComparison;
|
|
|
5323 |
}
|
|
|
5324 |
}
|
| 2820 |
chandransh |
5325 |
return 0;
|
|
|
5326 |
}
|
|
|
5327 |
|
| 3430 |
rajveer |
5328 |
public _Fields fieldForId(int fieldId) {
|
|
|
5329 |
return _Fields.findByThriftId(fieldId);
|
|
|
5330 |
}
|
|
|
5331 |
|
|
|
5332 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5333 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
5334 |
iprot.readStructBegin();
|
|
|
5335 |
while (true)
|
|
|
5336 |
{
|
|
|
5337 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5338 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
5339 |
break;
|
|
|
5340 |
}
|
| 3430 |
rajveer |
5341 |
switch (field.id) {
|
| 4555 |
mandeep.dh |
5342 |
case 1: // SERIAL_NUMBER
|
|
|
5343 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
5344 |
this.serialNumber = iprot.readString();
|
| 3430 |
rajveer |
5345 |
} else {
|
|
|
5346 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5347 |
}
|
|
|
5348 |
break;
|
| 4496 |
mandeep.dh |
5349 |
case 2: // TYPE
|
|
|
5350 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
5351 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
5352 |
} else {
|
|
|
5353 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5354 |
}
|
|
|
5355 |
break;
|
| 4496 |
mandeep.dh |
5356 |
case 3: // ORDER_ID
|
|
|
5357 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5358 |
this.orderId = iprot.readI64();
|
|
|
5359 |
setOrderIdIsSet(true);
|
| 3430 |
rajveer |
5360 |
} else {
|
|
|
5361 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5362 |
}
|
|
|
5363 |
break;
|
| 5110 |
mandeep.dh |
5364 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
5365 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5110 |
mandeep.dh |
5366 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
5367 |
setFulfilmentWarehouseIdIsSet(true);
|
| 3430 |
rajveer |
5368 |
} else {
|
|
|
5369 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5370 |
}
|
|
|
5371 |
break;
|
| 5110 |
mandeep.dh |
5372 |
case 5: // QUANTITY
|
|
|
5373 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
5374 |
this.quantity = iprot.readDouble();
|
|
|
5375 |
setQuantityIsSet(true);
|
|
|
5376 |
} else {
|
|
|
5377 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5378 |
}
|
|
|
5379 |
break;
|
|
|
5380 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
5381 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5382 |
this.billingWarehouseId = iprot.readI64();
|
|
|
5383 |
setBillingWarehouseIdIsSet(true);
|
|
|
5384 |
} else {
|
|
|
5385 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5386 |
}
|
|
|
5387 |
break;
|
| 3430 |
rajveer |
5388 |
default:
|
|
|
5389 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
5390 |
}
|
| 3430 |
rajveer |
5391 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
5392 |
}
|
|
|
5393 |
iprot.readStructEnd();
|
|
|
5394 |
validate();
|
|
|
5395 |
}
|
|
|
5396 |
|
| 3430 |
rajveer |
5397 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5398 |
validate();
|
|
|
5399 |
|
|
|
5400 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4555 |
mandeep.dh |
5401 |
if (this.serialNumber != null) {
|
|
|
5402 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
5403 |
oprot.writeString(this.serialNumber);
|
|
|
5404 |
oprot.writeFieldEnd();
|
|
|
5405 |
}
|
| 2820 |
chandransh |
5406 |
if (this.type != null) {
|
|
|
5407 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
5408 |
oprot.writeI32(this.type.getValue());
|
|
|
5409 |
oprot.writeFieldEnd();
|
|
|
5410 |
}
|
| 4496 |
mandeep.dh |
5411 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
5412 |
oprot.writeI64(this.orderId);
|
|
|
5413 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
5414 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
5415 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
5416 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
5417 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
5418 |
oprot.writeDouble(this.quantity);
|
|
|
5419 |
oprot.writeFieldEnd();
|
|
|
5420 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
5421 |
oprot.writeI64(this.billingWarehouseId);
|
|
|
5422 |
oprot.writeFieldEnd();
|
| 2820 |
chandransh |
5423 |
oprot.writeFieldStop();
|
|
|
5424 |
oprot.writeStructEnd();
|
|
|
5425 |
}
|
|
|
5426 |
|
|
|
5427 |
@Override
|
|
|
5428 |
public String toString() {
|
| 4496 |
mandeep.dh |
5429 |
StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_args(");
|
| 2820 |
chandransh |
5430 |
boolean first = true;
|
|
|
5431 |
|
| 4555 |
mandeep.dh |
5432 |
sb.append("serialNumber:");
|
|
|
5433 |
if (this.serialNumber == null) {
|
|
|
5434 |
sb.append("null");
|
|
|
5435 |
} else {
|
|
|
5436 |
sb.append(this.serialNumber);
|
|
|
5437 |
}
|
| 2820 |
chandransh |
5438 |
first = false;
|
|
|
5439 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
5440 |
sb.append("type:");
|
|
|
5441 |
if (this.type == null) {
|
| 2820 |
chandransh |
5442 |
sb.append("null");
|
|
|
5443 |
} else {
|
| 4496 |
mandeep.dh |
5444 |
sb.append(this.type);
|
| 2820 |
chandransh |
5445 |
}
|
|
|
5446 |
first = false;
|
|
|
5447 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
5448 |
sb.append("orderId:");
|
|
|
5449 |
sb.append(this.orderId);
|
| 2820 |
chandransh |
5450 |
first = false;
|
|
|
5451 |
if (!first) sb.append(", ");
|
| 5110 |
mandeep.dh |
5452 |
sb.append("fulfilmentWarehouseId:");
|
|
|
5453 |
sb.append(this.fulfilmentWarehouseId);
|
| 2820 |
chandransh |
5454 |
first = false;
|
| 5110 |
mandeep.dh |
5455 |
if (!first) sb.append(", ");
|
|
|
5456 |
sb.append("quantity:");
|
|
|
5457 |
sb.append(this.quantity);
|
|
|
5458 |
first = false;
|
|
|
5459 |
if (!first) sb.append(", ");
|
|
|
5460 |
sb.append("billingWarehouseId:");
|
|
|
5461 |
sb.append(this.billingWarehouseId);
|
|
|
5462 |
first = false;
|
| 2820 |
chandransh |
5463 |
sb.append(")");
|
|
|
5464 |
return sb.toString();
|
|
|
5465 |
}
|
|
|
5466 |
|
| 3430 |
rajveer |
5467 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5468 |
// check for required fields
|
|
|
5469 |
}
|
|
|
5470 |
|
| 3430 |
rajveer |
5471 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5472 |
try {
|
|
|
5473 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5474 |
} catch (org.apache.thrift.TException te) {
|
|
|
5475 |
throw new java.io.IOException(te);
|
|
|
5476 |
}
|
|
|
5477 |
}
|
|
|
5478 |
|
|
|
5479 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5480 |
try {
|
|
|
5481 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5482 |
} catch (org.apache.thrift.TException te) {
|
|
|
5483 |
throw new java.io.IOException(te);
|
|
|
5484 |
}
|
|
|
5485 |
}
|
|
|
5486 |
|
| 2820 |
chandransh |
5487 |
}
|
|
|
5488 |
|
| 4496 |
mandeep.dh |
5489 |
public static class scanSerializedItemForOrder_result implements org.apache.thrift.TBase<scanSerializedItemForOrder_result, scanSerializedItemForOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
5490 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_result");
|
| 2820 |
chandransh |
5491 |
|
| 4555 |
mandeep.dh |
5492 |
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 |
5493 |
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 |
5494 |
|
| 4555 |
mandeep.dh |
5495 |
private InventoryItem success; // required
|
| 3430 |
rajveer |
5496 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
5497 |
|
|
|
5498 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5499 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
5500 |
SUCCESS((short)0, "success"),
|
| 2820 |
chandransh |
5501 |
WEX((short)1, "wex");
|
|
|
5502 |
|
|
|
5503 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5504 |
|
|
|
5505 |
static {
|
|
|
5506 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5507 |
byName.put(field.getFieldName(), field);
|
|
|
5508 |
}
|
|
|
5509 |
}
|
|
|
5510 |
|
|
|
5511 |
/**
|
|
|
5512 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5513 |
*/
|
|
|
5514 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5515 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
5516 |
case 0: // SUCCESS
|
|
|
5517 |
return SUCCESS;
|
| 3430 |
rajveer |
5518 |
case 1: // WEX
|
|
|
5519 |
return WEX;
|
|
|
5520 |
default:
|
|
|
5521 |
return null;
|
|
|
5522 |
}
|
| 2820 |
chandransh |
5523 |
}
|
|
|
5524 |
|
|
|
5525 |
/**
|
|
|
5526 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5527 |
* if it is not found.
|
|
|
5528 |
*/
|
|
|
5529 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5530 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5531 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5532 |
return fields;
|
|
|
5533 |
}
|
|
|
5534 |
|
|
|
5535 |
/**
|
|
|
5536 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5537 |
*/
|
|
|
5538 |
public static _Fields findByName(String name) {
|
|
|
5539 |
return byName.get(name);
|
|
|
5540 |
}
|
|
|
5541 |
|
|
|
5542 |
private final short _thriftId;
|
|
|
5543 |
private final String _fieldName;
|
|
|
5544 |
|
|
|
5545 |
_Fields(short thriftId, String fieldName) {
|
|
|
5546 |
_thriftId = thriftId;
|
|
|
5547 |
_fieldName = fieldName;
|
|
|
5548 |
}
|
|
|
5549 |
|
|
|
5550 |
public short getThriftFieldId() {
|
|
|
5551 |
return _thriftId;
|
|
|
5552 |
}
|
|
|
5553 |
|
|
|
5554 |
public String getFieldName() {
|
|
|
5555 |
return _fieldName;
|
|
|
5556 |
}
|
|
|
5557 |
}
|
|
|
5558 |
|
|
|
5559 |
// isset id assignments
|
|
|
5560 |
|
| 3430 |
rajveer |
5561 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
5562 |
static {
|
| 3430 |
rajveer |
5563 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
5564 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4555 |
mandeep.dh |
5565 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
5566 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5567 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
5568 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
5569 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_result.class, metaDataMap);
|
| 2820 |
chandransh |
5570 |
}
|
|
|
5571 |
|
| 4496 |
mandeep.dh |
5572 |
public scanSerializedItemForOrder_result() {
|
| 2820 |
chandransh |
5573 |
}
|
|
|
5574 |
|
| 4496 |
mandeep.dh |
5575 |
public scanSerializedItemForOrder_result(
|
| 4555 |
mandeep.dh |
5576 |
InventoryItem success,
|
| 2820 |
chandransh |
5577 |
WarehouseServiceException wex)
|
|
|
5578 |
{
|
|
|
5579 |
this();
|
| 4496 |
mandeep.dh |
5580 |
this.success = success;
|
| 2820 |
chandransh |
5581 |
this.wex = wex;
|
|
|
5582 |
}
|
|
|
5583 |
|
|
|
5584 |
/**
|
|
|
5585 |
* Performs a deep copy on <i>other</i>.
|
|
|
5586 |
*/
|
| 4496 |
mandeep.dh |
5587 |
public scanSerializedItemForOrder_result(scanSerializedItemForOrder_result other) {
|
| 4555 |
mandeep.dh |
5588 |
if (other.isSetSuccess()) {
|
|
|
5589 |
this.success = new InventoryItem(other.success);
|
|
|
5590 |
}
|
| 2820 |
chandransh |
5591 |
if (other.isSetWex()) {
|
|
|
5592 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
5593 |
}
|
|
|
5594 |
}
|
|
|
5595 |
|
| 4496 |
mandeep.dh |
5596 |
public scanSerializedItemForOrder_result deepCopy() {
|
|
|
5597 |
return new scanSerializedItemForOrder_result(this);
|
| 2820 |
chandransh |
5598 |
}
|
|
|
5599 |
|
| 3430 |
rajveer |
5600 |
@Override
|
|
|
5601 |
public void clear() {
|
| 4555 |
mandeep.dh |
5602 |
this.success = null;
|
| 3430 |
rajveer |
5603 |
this.wex = null;
|
| 2820 |
chandransh |
5604 |
}
|
|
|
5605 |
|
| 4555 |
mandeep.dh |
5606 |
public InventoryItem getSuccess() {
|
| 4496 |
mandeep.dh |
5607 |
return this.success;
|
|
|
5608 |
}
|
|
|
5609 |
|
| 4555 |
mandeep.dh |
5610 |
public void setSuccess(InventoryItem success) {
|
| 4496 |
mandeep.dh |
5611 |
this.success = success;
|
|
|
5612 |
}
|
|
|
5613 |
|
|
|
5614 |
public void unsetSuccess() {
|
| 4555 |
mandeep.dh |
5615 |
this.success = null;
|
| 4496 |
mandeep.dh |
5616 |
}
|
|
|
5617 |
|
|
|
5618 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
5619 |
public boolean isSetSuccess() {
|
| 4555 |
mandeep.dh |
5620 |
return this.success != null;
|
| 4496 |
mandeep.dh |
5621 |
}
|
|
|
5622 |
|
|
|
5623 |
public void setSuccessIsSet(boolean value) {
|
| 4555 |
mandeep.dh |
5624 |
if (!value) {
|
|
|
5625 |
this.success = null;
|
|
|
5626 |
}
|
| 4496 |
mandeep.dh |
5627 |
}
|
|
|
5628 |
|
| 2820 |
chandransh |
5629 |
public WarehouseServiceException getWex() {
|
|
|
5630 |
return this.wex;
|
|
|
5631 |
}
|
|
|
5632 |
|
| 3430 |
rajveer |
5633 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
5634 |
this.wex = wex;
|
|
|
5635 |
}
|
|
|
5636 |
|
|
|
5637 |
public void unsetWex() {
|
|
|
5638 |
this.wex = null;
|
|
|
5639 |
}
|
|
|
5640 |
|
| 3430 |
rajveer |
5641 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
5642 |
public boolean isSetWex() {
|
|
|
5643 |
return this.wex != null;
|
|
|
5644 |
}
|
|
|
5645 |
|
|
|
5646 |
public void setWexIsSet(boolean value) {
|
|
|
5647 |
if (!value) {
|
|
|
5648 |
this.wex = null;
|
|
|
5649 |
}
|
|
|
5650 |
}
|
|
|
5651 |
|
|
|
5652 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5653 |
switch (field) {
|
| 4496 |
mandeep.dh |
5654 |
case SUCCESS:
|
|
|
5655 |
if (value == null) {
|
|
|
5656 |
unsetSuccess();
|
|
|
5657 |
} else {
|
| 4555 |
mandeep.dh |
5658 |
setSuccess((InventoryItem)value);
|
| 4496 |
mandeep.dh |
5659 |
}
|
|
|
5660 |
break;
|
|
|
5661 |
|
| 2820 |
chandransh |
5662 |
case WEX:
|
|
|
5663 |
if (value == null) {
|
|
|
5664 |
unsetWex();
|
|
|
5665 |
} else {
|
|
|
5666 |
setWex((WarehouseServiceException)value);
|
|
|
5667 |
}
|
|
|
5668 |
break;
|
|
|
5669 |
|
|
|
5670 |
}
|
|
|
5671 |
}
|
|
|
5672 |
|
|
|
5673 |
public Object getFieldValue(_Fields field) {
|
|
|
5674 |
switch (field) {
|
| 4496 |
mandeep.dh |
5675 |
case SUCCESS:
|
| 4555 |
mandeep.dh |
5676 |
return getSuccess();
|
| 4496 |
mandeep.dh |
5677 |
|
| 2820 |
chandransh |
5678 |
case WEX:
|
|
|
5679 |
return getWex();
|
|
|
5680 |
|
|
|
5681 |
}
|
|
|
5682 |
throw new IllegalStateException();
|
|
|
5683 |
}
|
|
|
5684 |
|
| 3430 |
rajveer |
5685 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5686 |
public boolean isSet(_Fields field) {
|
|
|
5687 |
if (field == null) {
|
|
|
5688 |
throw new IllegalArgumentException();
|
|
|
5689 |
}
|
| 2820 |
chandransh |
5690 |
|
|
|
5691 |
switch (field) {
|
| 4496 |
mandeep.dh |
5692 |
case SUCCESS:
|
|
|
5693 |
return isSetSuccess();
|
| 2820 |
chandransh |
5694 |
case WEX:
|
|
|
5695 |
return isSetWex();
|
|
|
5696 |
}
|
|
|
5697 |
throw new IllegalStateException();
|
|
|
5698 |
}
|
|
|
5699 |
|
|
|
5700 |
@Override
|
|
|
5701 |
public boolean equals(Object that) {
|
|
|
5702 |
if (that == null)
|
|
|
5703 |
return false;
|
| 4496 |
mandeep.dh |
5704 |
if (that instanceof scanSerializedItemForOrder_result)
|
|
|
5705 |
return this.equals((scanSerializedItemForOrder_result)that);
|
| 2820 |
chandransh |
5706 |
return false;
|
|
|
5707 |
}
|
|
|
5708 |
|
| 4496 |
mandeep.dh |
5709 |
public boolean equals(scanSerializedItemForOrder_result that) {
|
| 2820 |
chandransh |
5710 |
if (that == null)
|
|
|
5711 |
return false;
|
|
|
5712 |
|
| 4555 |
mandeep.dh |
5713 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
5714 |
boolean that_present_success = true && that.isSetSuccess();
|
| 4496 |
mandeep.dh |
5715 |
if (this_present_success || that_present_success) {
|
|
|
5716 |
if (!(this_present_success && that_present_success))
|
|
|
5717 |
return false;
|
| 4555 |
mandeep.dh |
5718 |
if (!this.success.equals(that.success))
|
| 4496 |
mandeep.dh |
5719 |
return false;
|
|
|
5720 |
}
|
|
|
5721 |
|
| 2820 |
chandransh |
5722 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
5723 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
5724 |
if (this_present_wex || that_present_wex) {
|
|
|
5725 |
if (!(this_present_wex && that_present_wex))
|
|
|
5726 |
return false;
|
|
|
5727 |
if (!this.wex.equals(that.wex))
|
|
|
5728 |
return false;
|
|
|
5729 |
}
|
|
|
5730 |
|
|
|
5731 |
return true;
|
|
|
5732 |
}
|
|
|
5733 |
|
|
|
5734 |
@Override
|
|
|
5735 |
public int hashCode() {
|
|
|
5736 |
return 0;
|
|
|
5737 |
}
|
|
|
5738 |
|
| 4496 |
mandeep.dh |
5739 |
public int compareTo(scanSerializedItemForOrder_result other) {
|
| 2820 |
chandransh |
5740 |
if (!getClass().equals(other.getClass())) {
|
|
|
5741 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5742 |
}
|
|
|
5743 |
|
|
|
5744 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
5745 |
scanSerializedItemForOrder_result typedOther = (scanSerializedItemForOrder_result)other;
|
| 2820 |
chandransh |
5746 |
|
| 4496 |
mandeep.dh |
5747 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
5748 |
if (lastComparison != 0) {
|
|
|
5749 |
return lastComparison;
|
|
|
5750 |
}
|
|
|
5751 |
if (isSetSuccess()) {
|
|
|
5752 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
5753 |
if (lastComparison != 0) {
|
|
|
5754 |
return lastComparison;
|
|
|
5755 |
}
|
|
|
5756 |
}
|
| 3430 |
rajveer |
5757 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
5758 |
if (lastComparison != 0) {
|
|
|
5759 |
return lastComparison;
|
|
|
5760 |
}
|
| 3430 |
rajveer |
5761 |
if (isSetWex()) {
|
|
|
5762 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
5763 |
if (lastComparison != 0) {
|
|
|
5764 |
return lastComparison;
|
|
|
5765 |
}
|
| 2820 |
chandransh |
5766 |
}
|
|
|
5767 |
return 0;
|
|
|
5768 |
}
|
|
|
5769 |
|
| 3430 |
rajveer |
5770 |
public _Fields fieldForId(int fieldId) {
|
|
|
5771 |
return _Fields.findByThriftId(fieldId);
|
|
|
5772 |
}
|
|
|
5773 |
|
|
|
5774 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5775 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
5776 |
iprot.readStructBegin();
|
|
|
5777 |
while (true)
|
|
|
5778 |
{
|
|
|
5779 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5780 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
5781 |
break;
|
|
|
5782 |
}
|
| 3430 |
rajveer |
5783 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
5784 |
case 0: // SUCCESS
|
| 4555 |
mandeep.dh |
5785 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5786 |
this.success = new InventoryItem();
|
|
|
5787 |
this.success.read(iprot);
|
| 4496 |
mandeep.dh |
5788 |
} else {
|
|
|
5789 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5790 |
}
|
|
|
5791 |
break;
|
| 3430 |
rajveer |
5792 |
case 1: // WEX
|
|
|
5793 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5794 |
this.wex = new WarehouseServiceException();
|
|
|
5795 |
this.wex.read(iprot);
|
|
|
5796 |
} else {
|
|
|
5797 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5798 |
}
|
|
|
5799 |
break;
|
|
|
5800 |
default:
|
|
|
5801 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
5802 |
}
|
| 3430 |
rajveer |
5803 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
5804 |
}
|
|
|
5805 |
iprot.readStructEnd();
|
|
|
5806 |
validate();
|
|
|
5807 |
}
|
|
|
5808 |
|
| 3430 |
rajveer |
5809 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5810 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5811 |
|
| 4496 |
mandeep.dh |
5812 |
if (this.isSetSuccess()) {
|
|
|
5813 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 4555 |
mandeep.dh |
5814 |
this.success.write(oprot);
|
| 4496 |
mandeep.dh |
5815 |
oprot.writeFieldEnd();
|
|
|
5816 |
} else if (this.isSetWex()) {
|
| 2820 |
chandransh |
5817 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
5818 |
this.wex.write(oprot);
|
|
|
5819 |
oprot.writeFieldEnd();
|
|
|
5820 |
}
|
|
|
5821 |
oprot.writeFieldStop();
|
|
|
5822 |
oprot.writeStructEnd();
|
|
|
5823 |
}
|
|
|
5824 |
|
|
|
5825 |
@Override
|
|
|
5826 |
public String toString() {
|
| 4496 |
mandeep.dh |
5827 |
StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_result(");
|
| 2820 |
chandransh |
5828 |
boolean first = true;
|
|
|
5829 |
|
| 4496 |
mandeep.dh |
5830 |
sb.append("success:");
|
| 4555 |
mandeep.dh |
5831 |
if (this.success == null) {
|
|
|
5832 |
sb.append("null");
|
|
|
5833 |
} else {
|
|
|
5834 |
sb.append(this.success);
|
|
|
5835 |
}
|
| 4496 |
mandeep.dh |
5836 |
first = false;
|
|
|
5837 |
if (!first) sb.append(", ");
|
| 2820 |
chandransh |
5838 |
sb.append("wex:");
|
|
|
5839 |
if (this.wex == null) {
|
|
|
5840 |
sb.append("null");
|
|
|
5841 |
} else {
|
|
|
5842 |
sb.append(this.wex);
|
|
|
5843 |
}
|
|
|
5844 |
first = false;
|
|
|
5845 |
sb.append(")");
|
|
|
5846 |
return sb.toString();
|
|
|
5847 |
}
|
|
|
5848 |
|
| 3430 |
rajveer |
5849 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5850 |
// check for required fields
|
|
|
5851 |
}
|
|
|
5852 |
|
| 3430 |
rajveer |
5853 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5854 |
try {
|
|
|
5855 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5856 |
} catch (org.apache.thrift.TException te) {
|
|
|
5857 |
throw new java.io.IOException(te);
|
|
|
5858 |
}
|
|
|
5859 |
}
|
|
|
5860 |
|
|
|
5861 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5862 |
try {
|
|
|
5863 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5864 |
} catch (org.apache.thrift.TException te) {
|
|
|
5865 |
throw new java.io.IOException(te);
|
|
|
5866 |
}
|
|
|
5867 |
}
|
|
|
5868 |
|
| 2820 |
chandransh |
5869 |
}
|
|
|
5870 |
|
| 4496 |
mandeep.dh |
5871 |
public static class scanForOrder_args implements org.apache.thrift.TBase<scanForOrder_args, scanForOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
5872 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_args");
|
| 2820 |
chandransh |
5873 |
|
| 5361 |
mandeep.dh |
5874 |
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 |
5875 |
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);
|
|
|
5876 |
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);
|
|
|
5877 |
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 |
5878 |
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 |
5879 |
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 |
5880 |
|
| 5361 |
mandeep.dh |
5881 |
private InventoryItem inventoryItem; // required
|
| 3430 |
rajveer |
5882 |
private ScanType type; // required
|
| 4496 |
mandeep.dh |
5883 |
private long quantity; // required
|
|
|
5884 |
private long orderId; // required
|
| 5110 |
mandeep.dh |
5885 |
private long fulfilmentWarehouseId; // required
|
| 5361 |
mandeep.dh |
5886 |
private long billingWarehouseId; // required
|
| 2820 |
chandransh |
5887 |
|
|
|
5888 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5889 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
5890 |
INVENTORY_ITEM((short)1, "inventoryItem"),
|
| 2820 |
chandransh |
5891 |
/**
|
|
|
5892 |
*
|
|
|
5893 |
* @see ScanType
|
|
|
5894 |
*/
|
| 4496 |
mandeep.dh |
5895 |
TYPE((short)2, "type"),
|
|
|
5896 |
QUANTITY((short)3, "quantity"),
|
|
|
5897 |
ORDER_ID((short)4, "orderId"),
|
| 5361 |
mandeep.dh |
5898 |
FULFILMENT_WAREHOUSE_ID((short)5, "fulfilmentWarehouseId"),
|
|
|
5899 |
BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
|
| 2820 |
chandransh |
5900 |
|
|
|
5901 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5902 |
|
|
|
5903 |
static {
|
|
|
5904 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5905 |
byName.put(field.getFieldName(), field);
|
|
|
5906 |
}
|
|
|
5907 |
}
|
|
|
5908 |
|
|
|
5909 |
/**
|
|
|
5910 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5911 |
*/
|
|
|
5912 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5913 |
switch(fieldId) {
|
| 5361 |
mandeep.dh |
5914 |
case 1: // INVENTORY_ITEM
|
|
|
5915 |
return INVENTORY_ITEM;
|
| 4496 |
mandeep.dh |
5916 |
case 2: // TYPE
|
| 3430 |
rajveer |
5917 |
return TYPE;
|
| 4496 |
mandeep.dh |
5918 |
case 3: // QUANTITY
|
|
|
5919 |
return QUANTITY;
|
|
|
5920 |
case 4: // ORDER_ID
|
|
|
5921 |
return ORDER_ID;
|
| 5110 |
mandeep.dh |
5922 |
case 5: // FULFILMENT_WAREHOUSE_ID
|
|
|
5923 |
return FULFILMENT_WAREHOUSE_ID;
|
| 5361 |
mandeep.dh |
5924 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
5925 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
5926 |
default:
|
|
|
5927 |
return null;
|
|
|
5928 |
}
|
| 2820 |
chandransh |
5929 |
}
|
|
|
5930 |
|
|
|
5931 |
/**
|
|
|
5932 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5933 |
* if it is not found.
|
|
|
5934 |
*/
|
|
|
5935 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5936 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5937 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5938 |
return fields;
|
|
|
5939 |
}
|
|
|
5940 |
|
|
|
5941 |
/**
|
|
|
5942 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5943 |
*/
|
|
|
5944 |
public static _Fields findByName(String name) {
|
|
|
5945 |
return byName.get(name);
|
|
|
5946 |
}
|
|
|
5947 |
|
|
|
5948 |
private final short _thriftId;
|
|
|
5949 |
private final String _fieldName;
|
|
|
5950 |
|
|
|
5951 |
_Fields(short thriftId, String fieldName) {
|
|
|
5952 |
_thriftId = thriftId;
|
|
|
5953 |
_fieldName = fieldName;
|
|
|
5954 |
}
|
|
|
5955 |
|
|
|
5956 |
public short getThriftFieldId() {
|
|
|
5957 |
return _thriftId;
|
|
|
5958 |
}
|
|
|
5959 |
|
|
|
5960 |
public String getFieldName() {
|
|
|
5961 |
return _fieldName;
|
|
|
5962 |
}
|
|
|
5963 |
}
|
|
|
5964 |
|
|
|
5965 |
// isset id assignments
|
| 5361 |
mandeep.dh |
5966 |
private static final int __QUANTITY_ISSET_ID = 0;
|
|
|
5967 |
private static final int __ORDERID_ISSET_ID = 1;
|
|
|
5968 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 2;
|
|
|
5969 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
|
| 4496 |
mandeep.dh |
5970 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 2820 |
chandransh |
5971 |
|
| 3430 |
rajveer |
5972 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
5973 |
static {
|
| 3430 |
rajveer |
5974 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5361 |
mandeep.dh |
5975 |
tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5976 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
5977 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5978 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 4496 |
mandeep.dh |
5979 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5980 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5981 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5982 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
5983 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
5984 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5361 |
mandeep.dh |
5985 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5986 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
5987 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
5988 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_args.class, metaDataMap);
|
| 2820 |
chandransh |
5989 |
}
|
|
|
5990 |
|
| 4496 |
mandeep.dh |
5991 |
public scanForOrder_args() {
|
| 2820 |
chandransh |
5992 |
}
|
|
|
5993 |
|
| 4496 |
mandeep.dh |
5994 |
public scanForOrder_args(
|
| 5361 |
mandeep.dh |
5995 |
InventoryItem inventoryItem,
|
| 4496 |
mandeep.dh |
5996 |
ScanType type,
|
|
|
5997 |
long quantity,
|
|
|
5998 |
long orderId,
|
| 5361 |
mandeep.dh |
5999 |
long fulfilmentWarehouseId,
|
|
|
6000 |
long billingWarehouseId)
|
| 2820 |
chandransh |
6001 |
{
|
|
|
6002 |
this();
|
| 5361 |
mandeep.dh |
6003 |
this.inventoryItem = inventoryItem;
|
| 2820 |
chandransh |
6004 |
this.type = type;
|
| 4496 |
mandeep.dh |
6005 |
this.quantity = quantity;
|
|
|
6006 |
setQuantityIsSet(true);
|
|
|
6007 |
this.orderId = orderId;
|
|
|
6008 |
setOrderIdIsSet(true);
|
| 5110 |
mandeep.dh |
6009 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
6010 |
setFulfilmentWarehouseIdIsSet(true);
|
| 5361 |
mandeep.dh |
6011 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
6012 |
setBillingWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
6013 |
}
|
|
|
6014 |
|
|
|
6015 |
/**
|
|
|
6016 |
* Performs a deep copy on <i>other</i>.
|
|
|
6017 |
*/
|
| 4496 |
mandeep.dh |
6018 |
public scanForOrder_args(scanForOrder_args other) {
|
|
|
6019 |
__isset_bit_vector.clear();
|
|
|
6020 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5361 |
mandeep.dh |
6021 |
if (other.isSetInventoryItem()) {
|
|
|
6022 |
this.inventoryItem = new InventoryItem(other.inventoryItem);
|
|
|
6023 |
}
|
| 2820 |
chandransh |
6024 |
if (other.isSetType()) {
|
|
|
6025 |
this.type = other.type;
|
|
|
6026 |
}
|
| 4496 |
mandeep.dh |
6027 |
this.quantity = other.quantity;
|
|
|
6028 |
this.orderId = other.orderId;
|
| 5110 |
mandeep.dh |
6029 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
| 5361 |
mandeep.dh |
6030 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 2820 |
chandransh |
6031 |
}
|
|
|
6032 |
|
| 4496 |
mandeep.dh |
6033 |
public scanForOrder_args deepCopy() {
|
|
|
6034 |
return new scanForOrder_args(this);
|
| 2820 |
chandransh |
6035 |
}
|
|
|
6036 |
|
| 3430 |
rajveer |
6037 |
@Override
|
|
|
6038 |
public void clear() {
|
| 5361 |
mandeep.dh |
6039 |
this.inventoryItem = null;
|
| 3430 |
rajveer |
6040 |
this.type = null;
|
| 4496 |
mandeep.dh |
6041 |
setQuantityIsSet(false);
|
|
|
6042 |
this.quantity = 0;
|
|
|
6043 |
setOrderIdIsSet(false);
|
|
|
6044 |
this.orderId = 0;
|
| 5110 |
mandeep.dh |
6045 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
6046 |
this.fulfilmentWarehouseId = 0;
|
| 5361 |
mandeep.dh |
6047 |
setBillingWarehouseIdIsSet(false);
|
|
|
6048 |
this.billingWarehouseId = 0;
|
| 2820 |
chandransh |
6049 |
}
|
|
|
6050 |
|
| 5361 |
mandeep.dh |
6051 |
public InventoryItem getInventoryItem() {
|
|
|
6052 |
return this.inventoryItem;
|
| 2820 |
chandransh |
6053 |
}
|
|
|
6054 |
|
| 5361 |
mandeep.dh |
6055 |
public void setInventoryItem(InventoryItem inventoryItem) {
|
|
|
6056 |
this.inventoryItem = inventoryItem;
|
| 2820 |
chandransh |
6057 |
}
|
|
|
6058 |
|
| 5361 |
mandeep.dh |
6059 |
public void unsetInventoryItem() {
|
|
|
6060 |
this.inventoryItem = null;
|
| 2820 |
chandransh |
6061 |
}
|
|
|
6062 |
|
| 5361 |
mandeep.dh |
6063 |
/** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
|
|
|
6064 |
public boolean isSetInventoryItem() {
|
|
|
6065 |
return this.inventoryItem != null;
|
| 2820 |
chandransh |
6066 |
}
|
|
|
6067 |
|
| 5361 |
mandeep.dh |
6068 |
public void setInventoryItemIsSet(boolean value) {
|
|
|
6069 |
if (!value) {
|
|
|
6070 |
this.inventoryItem = null;
|
|
|
6071 |
}
|
| 2820 |
chandransh |
6072 |
}
|
|
|
6073 |
|
|
|
6074 |
/**
|
|
|
6075 |
*
|
|
|
6076 |
* @see ScanType
|
|
|
6077 |
*/
|
|
|
6078 |
public ScanType getType() {
|
|
|
6079 |
return this.type;
|
|
|
6080 |
}
|
|
|
6081 |
|
|
|
6082 |
/**
|
|
|
6083 |
*
|
|
|
6084 |
* @see ScanType
|
|
|
6085 |
*/
|
| 3430 |
rajveer |
6086 |
public void setType(ScanType type) {
|
| 2820 |
chandransh |
6087 |
this.type = type;
|
|
|
6088 |
}
|
|
|
6089 |
|
|
|
6090 |
public void unsetType() {
|
|
|
6091 |
this.type = null;
|
|
|
6092 |
}
|
|
|
6093 |
|
| 3430 |
rajveer |
6094 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
6095 |
public boolean isSetType() {
|
|
|
6096 |
return this.type != null;
|
|
|
6097 |
}
|
|
|
6098 |
|
|
|
6099 |
public void setTypeIsSet(boolean value) {
|
|
|
6100 |
if (!value) {
|
|
|
6101 |
this.type = null;
|
|
|
6102 |
}
|
|
|
6103 |
}
|
|
|
6104 |
|
| 4496 |
mandeep.dh |
6105 |
public long getQuantity() {
|
|
|
6106 |
return this.quantity;
|
|
|
6107 |
}
|
|
|
6108 |
|
|
|
6109 |
public void setQuantity(long quantity) {
|
|
|
6110 |
this.quantity = quantity;
|
|
|
6111 |
setQuantityIsSet(true);
|
|
|
6112 |
}
|
|
|
6113 |
|
|
|
6114 |
public void unsetQuantity() {
|
|
|
6115 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
6116 |
}
|
|
|
6117 |
|
|
|
6118 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
6119 |
public boolean isSetQuantity() {
|
|
|
6120 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
6121 |
}
|
|
|
6122 |
|
|
|
6123 |
public void setQuantityIsSet(boolean value) {
|
|
|
6124 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
6125 |
}
|
|
|
6126 |
|
|
|
6127 |
public long getOrderId() {
|
|
|
6128 |
return this.orderId;
|
|
|
6129 |
}
|
|
|
6130 |
|
|
|
6131 |
public void setOrderId(long orderId) {
|
|
|
6132 |
this.orderId = orderId;
|
|
|
6133 |
setOrderIdIsSet(true);
|
|
|
6134 |
}
|
|
|
6135 |
|
|
|
6136 |
public void unsetOrderId() {
|
|
|
6137 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
6138 |
}
|
|
|
6139 |
|
|
|
6140 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
6141 |
public boolean isSetOrderId() {
|
|
|
6142 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
6143 |
}
|
|
|
6144 |
|
|
|
6145 |
public void setOrderIdIsSet(boolean value) {
|
|
|
6146 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
6147 |
}
|
|
|
6148 |
|
| 5110 |
mandeep.dh |
6149 |
public long getFulfilmentWarehouseId() {
|
|
|
6150 |
return this.fulfilmentWarehouseId;
|
| 4496 |
mandeep.dh |
6151 |
}
|
|
|
6152 |
|
| 5110 |
mandeep.dh |
6153 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
6154 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
6155 |
setFulfilmentWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
6156 |
}
|
|
|
6157 |
|
| 5110 |
mandeep.dh |
6158 |
public void unsetFulfilmentWarehouseId() {
|
|
|
6159 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
6160 |
}
|
|
|
6161 |
|
| 5110 |
mandeep.dh |
6162 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
6163 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
6164 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
6165 |
}
|
|
|
6166 |
|
| 5110 |
mandeep.dh |
6167 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
6168 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 4496 |
mandeep.dh |
6169 |
}
|
|
|
6170 |
|
| 5361 |
mandeep.dh |
6171 |
public long getBillingWarehouseId() {
|
|
|
6172 |
return this.billingWarehouseId;
|
|
|
6173 |
}
|
|
|
6174 |
|
|
|
6175 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
6176 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
6177 |
setBillingWarehouseIdIsSet(true);
|
|
|
6178 |
}
|
|
|
6179 |
|
|
|
6180 |
public void unsetBillingWarehouseId() {
|
|
|
6181 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
6182 |
}
|
|
|
6183 |
|
|
|
6184 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
6185 |
public boolean isSetBillingWarehouseId() {
|
|
|
6186 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
6187 |
}
|
|
|
6188 |
|
|
|
6189 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
6190 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
|
|
6191 |
}
|
|
|
6192 |
|
| 2820 |
chandransh |
6193 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6194 |
switch (field) {
|
| 5361 |
mandeep.dh |
6195 |
case INVENTORY_ITEM:
|
| 2820 |
chandransh |
6196 |
if (value == null) {
|
| 5361 |
mandeep.dh |
6197 |
unsetInventoryItem();
|
| 2820 |
chandransh |
6198 |
} else {
|
| 5361 |
mandeep.dh |
6199 |
setInventoryItem((InventoryItem)value);
|
| 2820 |
chandransh |
6200 |
}
|
|
|
6201 |
break;
|
|
|
6202 |
|
| 4496 |
mandeep.dh |
6203 |
case TYPE:
|
| 2820 |
chandransh |
6204 |
if (value == null) {
|
| 4496 |
mandeep.dh |
6205 |
unsetType();
|
| 2820 |
chandransh |
6206 |
} else {
|
| 4496 |
mandeep.dh |
6207 |
setType((ScanType)value);
|
| 2820 |
chandransh |
6208 |
}
|
|
|
6209 |
break;
|
|
|
6210 |
|
| 4496 |
mandeep.dh |
6211 |
case QUANTITY:
|
| 2820 |
chandransh |
6212 |
if (value == null) {
|
| 4496 |
mandeep.dh |
6213 |
unsetQuantity();
|
| 2820 |
chandransh |
6214 |
} else {
|
| 4496 |
mandeep.dh |
6215 |
setQuantity((Long)value);
|
| 2820 |
chandransh |
6216 |
}
|
|
|
6217 |
break;
|
|
|
6218 |
|
| 4496 |
mandeep.dh |
6219 |
case ORDER_ID:
|
|
|
6220 |
if (value == null) {
|
|
|
6221 |
unsetOrderId();
|
|
|
6222 |
} else {
|
|
|
6223 |
setOrderId((Long)value);
|
|
|
6224 |
}
|
|
|
6225 |
break;
|
|
|
6226 |
|
| 5110 |
mandeep.dh |
6227 |
case FULFILMENT_WAREHOUSE_ID:
|
| 4496 |
mandeep.dh |
6228 |
if (value == null) {
|
| 5110 |
mandeep.dh |
6229 |
unsetFulfilmentWarehouseId();
|
| 4496 |
mandeep.dh |
6230 |
} else {
|
| 5110 |
mandeep.dh |
6231 |
setFulfilmentWarehouseId((Long)value);
|
| 4496 |
mandeep.dh |
6232 |
}
|
|
|
6233 |
break;
|
|
|
6234 |
|
| 5361 |
mandeep.dh |
6235 |
case BILLING_WAREHOUSE_ID:
|
|
|
6236 |
if (value == null) {
|
|
|
6237 |
unsetBillingWarehouseId();
|
|
|
6238 |
} else {
|
|
|
6239 |
setBillingWarehouseId((Long)value);
|
|
|
6240 |
}
|
|
|
6241 |
break;
|
|
|
6242 |
|
| 2820 |
chandransh |
6243 |
}
|
|
|
6244 |
}
|
|
|
6245 |
|
|
|
6246 |
public Object getFieldValue(_Fields field) {
|
|
|
6247 |
switch (field) {
|
| 5361 |
mandeep.dh |
6248 |
case INVENTORY_ITEM:
|
|
|
6249 |
return getInventoryItem();
|
| 2820 |
chandransh |
6250 |
|
|
|
6251 |
case TYPE:
|
|
|
6252 |
return getType();
|
|
|
6253 |
|
| 4496 |
mandeep.dh |
6254 |
case QUANTITY:
|
|
|
6255 |
return Long.valueOf(getQuantity());
|
|
|
6256 |
|
|
|
6257 |
case ORDER_ID:
|
|
|
6258 |
return Long.valueOf(getOrderId());
|
|
|
6259 |
|
| 5110 |
mandeep.dh |
6260 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
6261 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
6262 |
|
| 5361 |
mandeep.dh |
6263 |
case BILLING_WAREHOUSE_ID:
|
|
|
6264 |
return Long.valueOf(getBillingWarehouseId());
|
|
|
6265 |
|
| 2820 |
chandransh |
6266 |
}
|
|
|
6267 |
throw new IllegalStateException();
|
|
|
6268 |
}
|
|
|
6269 |
|
| 3430 |
rajveer |
6270 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6271 |
public boolean isSet(_Fields field) {
|
|
|
6272 |
if (field == null) {
|
|
|
6273 |
throw new IllegalArgumentException();
|
|
|
6274 |
}
|
| 2820 |
chandransh |
6275 |
|
|
|
6276 |
switch (field) {
|
| 5361 |
mandeep.dh |
6277 |
case INVENTORY_ITEM:
|
|
|
6278 |
return isSetInventoryItem();
|
| 2820 |
chandransh |
6279 |
case TYPE:
|
|
|
6280 |
return isSetType();
|
| 4496 |
mandeep.dh |
6281 |
case QUANTITY:
|
|
|
6282 |
return isSetQuantity();
|
|
|
6283 |
case ORDER_ID:
|
|
|
6284 |
return isSetOrderId();
|
| 5110 |
mandeep.dh |
6285 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
6286 |
return isSetFulfilmentWarehouseId();
|
| 5361 |
mandeep.dh |
6287 |
case BILLING_WAREHOUSE_ID:
|
|
|
6288 |
return isSetBillingWarehouseId();
|
| 2820 |
chandransh |
6289 |
}
|
|
|
6290 |
throw new IllegalStateException();
|
|
|
6291 |
}
|
|
|
6292 |
|
|
|
6293 |
@Override
|
|
|
6294 |
public boolean equals(Object that) {
|
|
|
6295 |
if (that == null)
|
|
|
6296 |
return false;
|
| 4496 |
mandeep.dh |
6297 |
if (that instanceof scanForOrder_args)
|
|
|
6298 |
return this.equals((scanForOrder_args)that);
|
| 2820 |
chandransh |
6299 |
return false;
|
|
|
6300 |
}
|
|
|
6301 |
|
| 4496 |
mandeep.dh |
6302 |
public boolean equals(scanForOrder_args that) {
|
| 2820 |
chandransh |
6303 |
if (that == null)
|
|
|
6304 |
return false;
|
|
|
6305 |
|
| 5361 |
mandeep.dh |
6306 |
boolean this_present_inventoryItem = true && this.isSetInventoryItem();
|
|
|
6307 |
boolean that_present_inventoryItem = true && that.isSetInventoryItem();
|
|
|
6308 |
if (this_present_inventoryItem || that_present_inventoryItem) {
|
|
|
6309 |
if (!(this_present_inventoryItem && that_present_inventoryItem))
|
| 2820 |
chandransh |
6310 |
return false;
|
| 5361 |
mandeep.dh |
6311 |
if (!this.inventoryItem.equals(that.inventoryItem))
|
| 2820 |
chandransh |
6312 |
return false;
|
|
|
6313 |
}
|
|
|
6314 |
|
|
|
6315 |
boolean this_present_type = true && this.isSetType();
|
|
|
6316 |
boolean that_present_type = true && that.isSetType();
|
|
|
6317 |
if (this_present_type || that_present_type) {
|
|
|
6318 |
if (!(this_present_type && that_present_type))
|
|
|
6319 |
return false;
|
|
|
6320 |
if (!this.type.equals(that.type))
|
|
|
6321 |
return false;
|
|
|
6322 |
}
|
|
|
6323 |
|
| 4496 |
mandeep.dh |
6324 |
boolean this_present_quantity = true;
|
|
|
6325 |
boolean that_present_quantity = true;
|
|
|
6326 |
if (this_present_quantity || that_present_quantity) {
|
|
|
6327 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
6328 |
return false;
|
|
|
6329 |
if (this.quantity != that.quantity)
|
|
|
6330 |
return false;
|
|
|
6331 |
}
|
|
|
6332 |
|
|
|
6333 |
boolean this_present_orderId = true;
|
|
|
6334 |
boolean that_present_orderId = true;
|
|
|
6335 |
if (this_present_orderId || that_present_orderId) {
|
|
|
6336 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
6337 |
return false;
|
|
|
6338 |
if (this.orderId != that.orderId)
|
|
|
6339 |
return false;
|
|
|
6340 |
}
|
|
|
6341 |
|
| 5110 |
mandeep.dh |
6342 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
6343 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
6344 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
6345 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 4496 |
mandeep.dh |
6346 |
return false;
|
| 5110 |
mandeep.dh |
6347 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 4496 |
mandeep.dh |
6348 |
return false;
|
|
|
6349 |
}
|
|
|
6350 |
|
| 5361 |
mandeep.dh |
6351 |
boolean this_present_billingWarehouseId = true;
|
|
|
6352 |
boolean that_present_billingWarehouseId = true;
|
|
|
6353 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
6354 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
|
|
6355 |
return false;
|
|
|
6356 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
|
|
6357 |
return false;
|
|
|
6358 |
}
|
|
|
6359 |
|
| 2820 |
chandransh |
6360 |
return true;
|
|
|
6361 |
}
|
|
|
6362 |
|
|
|
6363 |
@Override
|
|
|
6364 |
public int hashCode() {
|
|
|
6365 |
return 0;
|
|
|
6366 |
}
|
|
|
6367 |
|
| 4496 |
mandeep.dh |
6368 |
public int compareTo(scanForOrder_args other) {
|
| 2820 |
chandransh |
6369 |
if (!getClass().equals(other.getClass())) {
|
|
|
6370 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6371 |
}
|
|
|
6372 |
|
|
|
6373 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
6374 |
scanForOrder_args typedOther = (scanForOrder_args)other;
|
| 2820 |
chandransh |
6375 |
|
| 5361 |
mandeep.dh |
6376 |
lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
|
| 2820 |
chandransh |
6377 |
if (lastComparison != 0) {
|
|
|
6378 |
return lastComparison;
|
|
|
6379 |
}
|
| 5361 |
mandeep.dh |
6380 |
if (isSetInventoryItem()) {
|
|
|
6381 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
|
| 3430 |
rajveer |
6382 |
if (lastComparison != 0) {
|
|
|
6383 |
return lastComparison;
|
|
|
6384 |
}
|
| 2820 |
chandransh |
6385 |
}
|
| 4496 |
mandeep.dh |
6386 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 2820 |
chandransh |
6387 |
if (lastComparison != 0) {
|
|
|
6388 |
return lastComparison;
|
|
|
6389 |
}
|
| 4496 |
mandeep.dh |
6390 |
if (isSetType()) {
|
|
|
6391 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
6392 |
if (lastComparison != 0) {
|
|
|
6393 |
return lastComparison;
|
|
|
6394 |
}
|
| 2820 |
chandransh |
6395 |
}
|
| 4496 |
mandeep.dh |
6396 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
| 2820 |
chandransh |
6397 |
if (lastComparison != 0) {
|
|
|
6398 |
return lastComparison;
|
|
|
6399 |
}
|
| 4496 |
mandeep.dh |
6400 |
if (isSetQuantity()) {
|
|
|
6401 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
| 3430 |
rajveer |
6402 |
if (lastComparison != 0) {
|
|
|
6403 |
return lastComparison;
|
|
|
6404 |
}
|
| 2820 |
chandransh |
6405 |
}
|
| 4496 |
mandeep.dh |
6406 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
6407 |
if (lastComparison != 0) {
|
|
|
6408 |
return lastComparison;
|
|
|
6409 |
}
|
|
|
6410 |
if (isSetOrderId()) {
|
|
|
6411 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
6412 |
if (lastComparison != 0) {
|
|
|
6413 |
return lastComparison;
|
|
|
6414 |
}
|
|
|
6415 |
}
|
| 5110 |
mandeep.dh |
6416 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
6417 |
if (lastComparison != 0) {
|
|
|
6418 |
return lastComparison;
|
|
|
6419 |
}
|
| 5110 |
mandeep.dh |
6420 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
6421 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
6422 |
if (lastComparison != 0) {
|
|
|
6423 |
return lastComparison;
|
|
|
6424 |
}
|
|
|
6425 |
}
|
| 5361 |
mandeep.dh |
6426 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
|
|
6427 |
if (lastComparison != 0) {
|
|
|
6428 |
return lastComparison;
|
|
|
6429 |
}
|
|
|
6430 |
if (isSetBillingWarehouseId()) {
|
|
|
6431 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
|
|
6432 |
if (lastComparison != 0) {
|
|
|
6433 |
return lastComparison;
|
|
|
6434 |
}
|
|
|
6435 |
}
|
| 2820 |
chandransh |
6436 |
return 0;
|
|
|
6437 |
}
|
|
|
6438 |
|
| 3430 |
rajveer |
6439 |
public _Fields fieldForId(int fieldId) {
|
|
|
6440 |
return _Fields.findByThriftId(fieldId);
|
|
|
6441 |
}
|
|
|
6442 |
|
|
|
6443 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6444 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
6445 |
iprot.readStructBegin();
|
|
|
6446 |
while (true)
|
|
|
6447 |
{
|
|
|
6448 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6449 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
6450 |
break;
|
|
|
6451 |
}
|
| 3430 |
rajveer |
6452 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
6453 |
case 1: // INVENTORY_ITEM
|
|
|
6454 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6455 |
this.inventoryItem = new InventoryItem();
|
|
|
6456 |
this.inventoryItem.read(iprot);
|
| 3430 |
rajveer |
6457 |
} else {
|
|
|
6458 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6459 |
}
|
|
|
6460 |
break;
|
| 4496 |
mandeep.dh |
6461 |
case 2: // TYPE
|
|
|
6462 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
6463 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
6464 |
} else {
|
|
|
6465 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6466 |
}
|
|
|
6467 |
break;
|
| 4496 |
mandeep.dh |
6468 |
case 3: // QUANTITY
|
|
|
6469 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6470 |
this.quantity = iprot.readI64();
|
|
|
6471 |
setQuantityIsSet(true);
|
| 3430 |
rajveer |
6472 |
} else {
|
|
|
6473 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6474 |
}
|
|
|
6475 |
break;
|
| 4496 |
mandeep.dh |
6476 |
case 4: // ORDER_ID
|
|
|
6477 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6478 |
this.orderId = iprot.readI64();
|
|
|
6479 |
setOrderIdIsSet(true);
|
|
|
6480 |
} else {
|
|
|
6481 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6482 |
}
|
|
|
6483 |
break;
|
| 5110 |
mandeep.dh |
6484 |
case 5: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
6485 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5110 |
mandeep.dh |
6486 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
6487 |
setFulfilmentWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
6488 |
} else {
|
|
|
6489 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6490 |
}
|
|
|
6491 |
break;
|
| 5361 |
mandeep.dh |
6492 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
6493 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6494 |
this.billingWarehouseId = iprot.readI64();
|
|
|
6495 |
setBillingWarehouseIdIsSet(true);
|
|
|
6496 |
} else {
|
|
|
6497 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6498 |
}
|
|
|
6499 |
break;
|
| 3430 |
rajveer |
6500 |
default:
|
|
|
6501 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
6502 |
}
|
| 3430 |
rajveer |
6503 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
6504 |
}
|
|
|
6505 |
iprot.readStructEnd();
|
|
|
6506 |
validate();
|
|
|
6507 |
}
|
|
|
6508 |
|
| 3430 |
rajveer |
6509 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6510 |
validate();
|
|
|
6511 |
|
|
|
6512 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5361 |
mandeep.dh |
6513 |
if (this.inventoryItem != null) {
|
|
|
6514 |
oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
|
|
|
6515 |
this.inventoryItem.write(oprot);
|
|
|
6516 |
oprot.writeFieldEnd();
|
|
|
6517 |
}
|
| 2820 |
chandransh |
6518 |
if (this.type != null) {
|
|
|
6519 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
6520 |
oprot.writeI32(this.type.getValue());
|
|
|
6521 |
oprot.writeFieldEnd();
|
|
|
6522 |
}
|
| 4496 |
mandeep.dh |
6523 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
6524 |
oprot.writeI64(this.quantity);
|
|
|
6525 |
oprot.writeFieldEnd();
|
|
|
6526 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
6527 |
oprot.writeI64(this.orderId);
|
|
|
6528 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
6529 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
6530 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
6531 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
6532 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
6533 |
oprot.writeI64(this.billingWarehouseId);
|
|
|
6534 |
oprot.writeFieldEnd();
|
| 2820 |
chandransh |
6535 |
oprot.writeFieldStop();
|
|
|
6536 |
oprot.writeStructEnd();
|
|
|
6537 |
}
|
|
|
6538 |
|
|
|
6539 |
@Override
|
|
|
6540 |
public String toString() {
|
| 4496 |
mandeep.dh |
6541 |
StringBuilder sb = new StringBuilder("scanForOrder_args(");
|
| 2820 |
chandransh |
6542 |
boolean first = true;
|
|
|
6543 |
|
| 5361 |
mandeep.dh |
6544 |
sb.append("inventoryItem:");
|
|
|
6545 |
if (this.inventoryItem == null) {
|
|
|
6546 |
sb.append("null");
|
|
|
6547 |
} else {
|
|
|
6548 |
sb.append(this.inventoryItem);
|
|
|
6549 |
}
|
| 2820 |
chandransh |
6550 |
first = false;
|
|
|
6551 |
if (!first) sb.append(", ");
|
|
|
6552 |
sb.append("type:");
|
|
|
6553 |
if (this.type == null) {
|
|
|
6554 |
sb.append("null");
|
|
|
6555 |
} else {
|
|
|
6556 |
sb.append(this.type);
|
|
|
6557 |
}
|
|
|
6558 |
first = false;
|
| 4496 |
mandeep.dh |
6559 |
if (!first) sb.append(", ");
|
|
|
6560 |
sb.append("quantity:");
|
|
|
6561 |
sb.append(this.quantity);
|
|
|
6562 |
first = false;
|
|
|
6563 |
if (!first) sb.append(", ");
|
|
|
6564 |
sb.append("orderId:");
|
|
|
6565 |
sb.append(this.orderId);
|
|
|
6566 |
first = false;
|
|
|
6567 |
if (!first) sb.append(", ");
|
| 5110 |
mandeep.dh |
6568 |
sb.append("fulfilmentWarehouseId:");
|
|
|
6569 |
sb.append(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
6570 |
first = false;
|
| 5361 |
mandeep.dh |
6571 |
if (!first) sb.append(", ");
|
|
|
6572 |
sb.append("billingWarehouseId:");
|
|
|
6573 |
sb.append(this.billingWarehouseId);
|
|
|
6574 |
first = false;
|
| 2820 |
chandransh |
6575 |
sb.append(")");
|
|
|
6576 |
return sb.toString();
|
|
|
6577 |
}
|
|
|
6578 |
|
| 3430 |
rajveer |
6579 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6580 |
// check for required fields
|
|
|
6581 |
}
|
|
|
6582 |
|
| 3430 |
rajveer |
6583 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6584 |
try {
|
|
|
6585 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6586 |
} catch (org.apache.thrift.TException te) {
|
|
|
6587 |
throw new java.io.IOException(te);
|
|
|
6588 |
}
|
|
|
6589 |
}
|
|
|
6590 |
|
|
|
6591 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6592 |
try {
|
| 4496 |
mandeep.dh |
6593 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
6594 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
6595 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6596 |
} catch (org.apache.thrift.TException te) {
|
|
|
6597 |
throw new java.io.IOException(te);
|
|
|
6598 |
}
|
|
|
6599 |
}
|
|
|
6600 |
|
| 2820 |
chandransh |
6601 |
}
|
|
|
6602 |
|
| 4496 |
mandeep.dh |
6603 |
public static class scanForOrder_result implements org.apache.thrift.TBase<scanForOrder_result, scanForOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6604 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_result");
|
| 2820 |
chandransh |
6605 |
|
| 5361 |
mandeep.dh |
6606 |
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 |
6607 |
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 |
6608 |
|
| 5361 |
mandeep.dh |
6609 |
private InventoryItem success; // required
|
| 3430 |
rajveer |
6610 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
6611 |
|
|
|
6612 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6613 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
6614 |
SUCCESS((short)0, "success"),
|
| 2820 |
chandransh |
6615 |
WEX((short)1, "wex");
|
|
|
6616 |
|
|
|
6617 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6618 |
|
|
|
6619 |
static {
|
|
|
6620 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6621 |
byName.put(field.getFieldName(), field);
|
|
|
6622 |
}
|
|
|
6623 |
}
|
|
|
6624 |
|
|
|
6625 |
/**
|
|
|
6626 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6627 |
*/
|
|
|
6628 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6629 |
switch(fieldId) {
|
| 5361 |
mandeep.dh |
6630 |
case 0: // SUCCESS
|
|
|
6631 |
return SUCCESS;
|
| 3430 |
rajveer |
6632 |
case 1: // WEX
|
|
|
6633 |
return WEX;
|
|
|
6634 |
default:
|
|
|
6635 |
return null;
|
|
|
6636 |
}
|
| 2820 |
chandransh |
6637 |
}
|
|
|
6638 |
|
|
|
6639 |
/**
|
|
|
6640 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6641 |
* if it is not found.
|
|
|
6642 |
*/
|
|
|
6643 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6644 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6645 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6646 |
return fields;
|
|
|
6647 |
}
|
|
|
6648 |
|
|
|
6649 |
/**
|
|
|
6650 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6651 |
*/
|
|
|
6652 |
public static _Fields findByName(String name) {
|
|
|
6653 |
return byName.get(name);
|
|
|
6654 |
}
|
|
|
6655 |
|
|
|
6656 |
private final short _thriftId;
|
|
|
6657 |
private final String _fieldName;
|
|
|
6658 |
|
|
|
6659 |
_Fields(short thriftId, String fieldName) {
|
|
|
6660 |
_thriftId = thriftId;
|
|
|
6661 |
_fieldName = fieldName;
|
|
|
6662 |
}
|
|
|
6663 |
|
|
|
6664 |
public short getThriftFieldId() {
|
|
|
6665 |
return _thriftId;
|
|
|
6666 |
}
|
|
|
6667 |
|
|
|
6668 |
public String getFieldName() {
|
|
|
6669 |
return _fieldName;
|
|
|
6670 |
}
|
|
|
6671 |
}
|
|
|
6672 |
|
|
|
6673 |
// isset id assignments
|
|
|
6674 |
|
| 3430 |
rajveer |
6675 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
6676 |
static {
|
| 3430 |
rajveer |
6677 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5361 |
mandeep.dh |
6678 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6679 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
6680 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6681 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
6682 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
6683 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_result.class, metaDataMap);
|
| 2820 |
chandransh |
6684 |
}
|
|
|
6685 |
|
| 4496 |
mandeep.dh |
6686 |
public scanForOrder_result() {
|
| 2820 |
chandransh |
6687 |
}
|
|
|
6688 |
|
| 4496 |
mandeep.dh |
6689 |
public scanForOrder_result(
|
| 5361 |
mandeep.dh |
6690 |
InventoryItem success,
|
| 2820 |
chandransh |
6691 |
WarehouseServiceException wex)
|
|
|
6692 |
{
|
|
|
6693 |
this();
|
| 5361 |
mandeep.dh |
6694 |
this.success = success;
|
| 2820 |
chandransh |
6695 |
this.wex = wex;
|
|
|
6696 |
}
|
|
|
6697 |
|
|
|
6698 |
/**
|
|
|
6699 |
* Performs a deep copy on <i>other</i>.
|
|
|
6700 |
*/
|
| 4496 |
mandeep.dh |
6701 |
public scanForOrder_result(scanForOrder_result other) {
|
| 5361 |
mandeep.dh |
6702 |
if (other.isSetSuccess()) {
|
|
|
6703 |
this.success = new InventoryItem(other.success);
|
|
|
6704 |
}
|
| 2820 |
chandransh |
6705 |
if (other.isSetWex()) {
|
|
|
6706 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
6707 |
}
|
|
|
6708 |
}
|
|
|
6709 |
|
| 4496 |
mandeep.dh |
6710 |
public scanForOrder_result deepCopy() {
|
|
|
6711 |
return new scanForOrder_result(this);
|
| 2820 |
chandransh |
6712 |
}
|
|
|
6713 |
|
| 3430 |
rajveer |
6714 |
@Override
|
|
|
6715 |
public void clear() {
|
| 5361 |
mandeep.dh |
6716 |
this.success = null;
|
| 3430 |
rajveer |
6717 |
this.wex = null;
|
| 2820 |
chandransh |
6718 |
}
|
|
|
6719 |
|
| 5361 |
mandeep.dh |
6720 |
public InventoryItem getSuccess() {
|
|
|
6721 |
return this.success;
|
|
|
6722 |
}
|
|
|
6723 |
|
|
|
6724 |
public void setSuccess(InventoryItem success) {
|
|
|
6725 |
this.success = success;
|
|
|
6726 |
}
|
|
|
6727 |
|
|
|
6728 |
public void unsetSuccess() {
|
|
|
6729 |
this.success = null;
|
|
|
6730 |
}
|
|
|
6731 |
|
|
|
6732 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
6733 |
public boolean isSetSuccess() {
|
|
|
6734 |
return this.success != null;
|
|
|
6735 |
}
|
|
|
6736 |
|
|
|
6737 |
public void setSuccessIsSet(boolean value) {
|
|
|
6738 |
if (!value) {
|
|
|
6739 |
this.success = null;
|
|
|
6740 |
}
|
|
|
6741 |
}
|
|
|
6742 |
|
| 2820 |
chandransh |
6743 |
public WarehouseServiceException getWex() {
|
|
|
6744 |
return this.wex;
|
|
|
6745 |
}
|
|
|
6746 |
|
| 3430 |
rajveer |
6747 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
6748 |
this.wex = wex;
|
|
|
6749 |
}
|
|
|
6750 |
|
|
|
6751 |
public void unsetWex() {
|
|
|
6752 |
this.wex = null;
|
|
|
6753 |
}
|
|
|
6754 |
|
| 3430 |
rajveer |
6755 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
6756 |
public boolean isSetWex() {
|
|
|
6757 |
return this.wex != null;
|
|
|
6758 |
}
|
|
|
6759 |
|
|
|
6760 |
public void setWexIsSet(boolean value) {
|
|
|
6761 |
if (!value) {
|
|
|
6762 |
this.wex = null;
|
|
|
6763 |
}
|
|
|
6764 |
}
|
|
|
6765 |
|
|
|
6766 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6767 |
switch (field) {
|
| 5361 |
mandeep.dh |
6768 |
case SUCCESS:
|
|
|
6769 |
if (value == null) {
|
|
|
6770 |
unsetSuccess();
|
|
|
6771 |
} else {
|
|
|
6772 |
setSuccess((InventoryItem)value);
|
|
|
6773 |
}
|
|
|
6774 |
break;
|
|
|
6775 |
|
| 2820 |
chandransh |
6776 |
case WEX:
|
|
|
6777 |
if (value == null) {
|
|
|
6778 |
unsetWex();
|
|
|
6779 |
} else {
|
|
|
6780 |
setWex((WarehouseServiceException)value);
|
|
|
6781 |
}
|
|
|
6782 |
break;
|
|
|
6783 |
|
|
|
6784 |
}
|
|
|
6785 |
}
|
|
|
6786 |
|
|
|
6787 |
public Object getFieldValue(_Fields field) {
|
|
|
6788 |
switch (field) {
|
| 5361 |
mandeep.dh |
6789 |
case SUCCESS:
|
|
|
6790 |
return getSuccess();
|
|
|
6791 |
|
| 2820 |
chandransh |
6792 |
case WEX:
|
|
|
6793 |
return getWex();
|
|
|
6794 |
|
|
|
6795 |
}
|
|
|
6796 |
throw new IllegalStateException();
|
|
|
6797 |
}
|
|
|
6798 |
|
| 3430 |
rajveer |
6799 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6800 |
public boolean isSet(_Fields field) {
|
|
|
6801 |
if (field == null) {
|
|
|
6802 |
throw new IllegalArgumentException();
|
|
|
6803 |
}
|
| 2820 |
chandransh |
6804 |
|
|
|
6805 |
switch (field) {
|
| 5361 |
mandeep.dh |
6806 |
case SUCCESS:
|
|
|
6807 |
return isSetSuccess();
|
| 2820 |
chandransh |
6808 |
case WEX:
|
|
|
6809 |
return isSetWex();
|
|
|
6810 |
}
|
|
|
6811 |
throw new IllegalStateException();
|
|
|
6812 |
}
|
|
|
6813 |
|
|
|
6814 |
@Override
|
|
|
6815 |
public boolean equals(Object that) {
|
|
|
6816 |
if (that == null)
|
|
|
6817 |
return false;
|
| 4496 |
mandeep.dh |
6818 |
if (that instanceof scanForOrder_result)
|
|
|
6819 |
return this.equals((scanForOrder_result)that);
|
| 2820 |
chandransh |
6820 |
return false;
|
|
|
6821 |
}
|
|
|
6822 |
|
| 4496 |
mandeep.dh |
6823 |
public boolean equals(scanForOrder_result that) {
|
| 2820 |
chandransh |
6824 |
if (that == null)
|
|
|
6825 |
return false;
|
|
|
6826 |
|
| 5361 |
mandeep.dh |
6827 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
6828 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
6829 |
if (this_present_success || that_present_success) {
|
|
|
6830 |
if (!(this_present_success && that_present_success))
|
|
|
6831 |
return false;
|
|
|
6832 |
if (!this.success.equals(that.success))
|
|
|
6833 |
return false;
|
|
|
6834 |
}
|
|
|
6835 |
|
| 2820 |
chandransh |
6836 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
6837 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
6838 |
if (this_present_wex || that_present_wex) {
|
|
|
6839 |
if (!(this_present_wex && that_present_wex))
|
|
|
6840 |
return false;
|
|
|
6841 |
if (!this.wex.equals(that.wex))
|
|
|
6842 |
return false;
|
|
|
6843 |
}
|
|
|
6844 |
|
|
|
6845 |
return true;
|
|
|
6846 |
}
|
|
|
6847 |
|
|
|
6848 |
@Override
|
|
|
6849 |
public int hashCode() {
|
|
|
6850 |
return 0;
|
|
|
6851 |
}
|
|
|
6852 |
|
| 4496 |
mandeep.dh |
6853 |
public int compareTo(scanForOrder_result other) {
|
| 2820 |
chandransh |
6854 |
if (!getClass().equals(other.getClass())) {
|
|
|
6855 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6856 |
}
|
|
|
6857 |
|
|
|
6858 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
6859 |
scanForOrder_result typedOther = (scanForOrder_result)other;
|
| 2820 |
chandransh |
6860 |
|
| 5361 |
mandeep.dh |
6861 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
6862 |
if (lastComparison != 0) {
|
|
|
6863 |
return lastComparison;
|
|
|
6864 |
}
|
|
|
6865 |
if (isSetSuccess()) {
|
|
|
6866 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
6867 |
if (lastComparison != 0) {
|
|
|
6868 |
return lastComparison;
|
|
|
6869 |
}
|
|
|
6870 |
}
|
| 3430 |
rajveer |
6871 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
6872 |
if (lastComparison != 0) {
|
|
|
6873 |
return lastComparison;
|
|
|
6874 |
}
|
| 3430 |
rajveer |
6875 |
if (isSetWex()) {
|
|
|
6876 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
6877 |
if (lastComparison != 0) {
|
|
|
6878 |
return lastComparison;
|
|
|
6879 |
}
|
| 2820 |
chandransh |
6880 |
}
|
|
|
6881 |
return 0;
|
|
|
6882 |
}
|
|
|
6883 |
|
| 3430 |
rajveer |
6884 |
public _Fields fieldForId(int fieldId) {
|
|
|
6885 |
return _Fields.findByThriftId(fieldId);
|
|
|
6886 |
}
|
|
|
6887 |
|
|
|
6888 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6889 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
6890 |
iprot.readStructBegin();
|
|
|
6891 |
while (true)
|
|
|
6892 |
{
|
|
|
6893 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6894 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
6895 |
break;
|
|
|
6896 |
}
|
| 3430 |
rajveer |
6897 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
6898 |
case 0: // SUCCESS
|
|
|
6899 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6900 |
this.success = new InventoryItem();
|
|
|
6901 |
this.success.read(iprot);
|
|
|
6902 |
} else {
|
|
|
6903 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6904 |
}
|
|
|
6905 |
break;
|
| 3430 |
rajveer |
6906 |
case 1: // WEX
|
|
|
6907 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6908 |
this.wex = new WarehouseServiceException();
|
|
|
6909 |
this.wex.read(iprot);
|
|
|
6910 |
} else {
|
|
|
6911 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6912 |
}
|
|
|
6913 |
break;
|
|
|
6914 |
default:
|
|
|
6915 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
6916 |
}
|
| 3430 |
rajveer |
6917 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
6918 |
}
|
|
|
6919 |
iprot.readStructEnd();
|
|
|
6920 |
validate();
|
|
|
6921 |
}
|
|
|
6922 |
|
| 3430 |
rajveer |
6923 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6924 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6925 |
|
| 5361 |
mandeep.dh |
6926 |
if (this.isSetSuccess()) {
|
|
|
6927 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
6928 |
this.success.write(oprot);
|
|
|
6929 |
oprot.writeFieldEnd();
|
|
|
6930 |
} else if (this.isSetWex()) {
|
| 2820 |
chandransh |
6931 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
6932 |
this.wex.write(oprot);
|
|
|
6933 |
oprot.writeFieldEnd();
|
|
|
6934 |
}
|
|
|
6935 |
oprot.writeFieldStop();
|
|
|
6936 |
oprot.writeStructEnd();
|
|
|
6937 |
}
|
|
|
6938 |
|
|
|
6939 |
@Override
|
|
|
6940 |
public String toString() {
|
| 4496 |
mandeep.dh |
6941 |
StringBuilder sb = new StringBuilder("scanForOrder_result(");
|
| 2820 |
chandransh |
6942 |
boolean first = true;
|
|
|
6943 |
|
| 5361 |
mandeep.dh |
6944 |
sb.append("success:");
|
|
|
6945 |
if (this.success == null) {
|
|
|
6946 |
sb.append("null");
|
|
|
6947 |
} else {
|
|
|
6948 |
sb.append(this.success);
|
|
|
6949 |
}
|
|
|
6950 |
first = false;
|
|
|
6951 |
if (!first) sb.append(", ");
|
| 2820 |
chandransh |
6952 |
sb.append("wex:");
|
|
|
6953 |
if (this.wex == null) {
|
|
|
6954 |
sb.append("null");
|
|
|
6955 |
} else {
|
|
|
6956 |
sb.append(this.wex);
|
|
|
6957 |
}
|
|
|
6958 |
first = false;
|
|
|
6959 |
sb.append(")");
|
|
|
6960 |
return sb.toString();
|
|
|
6961 |
}
|
|
|
6962 |
|
| 3430 |
rajveer |
6963 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6964 |
// check for required fields
|
|
|
6965 |
}
|
|
|
6966 |
|
| 3430 |
rajveer |
6967 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6968 |
try {
|
|
|
6969 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6970 |
} catch (org.apache.thrift.TException te) {
|
|
|
6971 |
throw new java.io.IOException(te);
|
|
|
6972 |
}
|
|
|
6973 |
}
|
|
|
6974 |
|
|
|
6975 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6976 |
try {
|
|
|
6977 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6978 |
} catch (org.apache.thrift.TException te) {
|
|
|
6979 |
throw new java.io.IOException(te);
|
|
|
6980 |
}
|
|
|
6981 |
}
|
|
|
6982 |
|
| 2820 |
chandransh |
6983 |
}
|
|
|
6984 |
|
| 4496 |
mandeep.dh |
6985 |
public static class createItemNumberMapping_args implements org.apache.thrift.TBase<createItemNumberMapping_args, createItemNumberMapping_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6986 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_args");
|
|
|
6987 |
|
|
|
6988 |
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);
|
|
|
6989 |
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);
|
|
|
6990 |
|
|
|
6991 |
private String itemNumber; // required
|
|
|
6992 |
private long itemId; // required
|
|
|
6993 |
|
|
|
6994 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6995 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
6996 |
ITEM_NUMBER((short)1, "itemNumber"),
|
|
|
6997 |
ITEM_ID((short)2, "itemId");
|
|
|
6998 |
|
|
|
6999 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7000 |
|
|
|
7001 |
static {
|
|
|
7002 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7003 |
byName.put(field.getFieldName(), field);
|
|
|
7004 |
}
|
|
|
7005 |
}
|
|
|
7006 |
|
|
|
7007 |
/**
|
|
|
7008 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7009 |
*/
|
|
|
7010 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7011 |
switch(fieldId) {
|
|
|
7012 |
case 1: // ITEM_NUMBER
|
|
|
7013 |
return ITEM_NUMBER;
|
|
|
7014 |
case 2: // ITEM_ID
|
|
|
7015 |
return ITEM_ID;
|
|
|
7016 |
default:
|
|
|
7017 |
return null;
|
|
|
7018 |
}
|
|
|
7019 |
}
|
|
|
7020 |
|
|
|
7021 |
/**
|
|
|
7022 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7023 |
* if it is not found.
|
|
|
7024 |
*/
|
|
|
7025 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7026 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7027 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7028 |
return fields;
|
|
|
7029 |
}
|
|
|
7030 |
|
|
|
7031 |
/**
|
|
|
7032 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7033 |
*/
|
|
|
7034 |
public static _Fields findByName(String name) {
|
|
|
7035 |
return byName.get(name);
|
|
|
7036 |
}
|
|
|
7037 |
|
|
|
7038 |
private final short _thriftId;
|
|
|
7039 |
private final String _fieldName;
|
|
|
7040 |
|
|
|
7041 |
_Fields(short thriftId, String fieldName) {
|
|
|
7042 |
_thriftId = thriftId;
|
|
|
7043 |
_fieldName = fieldName;
|
|
|
7044 |
}
|
|
|
7045 |
|
|
|
7046 |
public short getThriftFieldId() {
|
|
|
7047 |
return _thriftId;
|
|
|
7048 |
}
|
|
|
7049 |
|
|
|
7050 |
public String getFieldName() {
|
|
|
7051 |
return _fieldName;
|
|
|
7052 |
}
|
|
|
7053 |
}
|
|
|
7054 |
|
|
|
7055 |
// isset id assignments
|
|
|
7056 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
7057 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
7058 |
|
|
|
7059 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7060 |
static {
|
|
|
7061 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7062 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7063 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
7064 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7065 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
7066 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7067 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_args.class, metaDataMap);
|
|
|
7068 |
}
|
|
|
7069 |
|
|
|
7070 |
public createItemNumberMapping_args() {
|
|
|
7071 |
}
|
|
|
7072 |
|
|
|
7073 |
public createItemNumberMapping_args(
|
|
|
7074 |
String itemNumber,
|
|
|
7075 |
long itemId)
|
|
|
7076 |
{
|
|
|
7077 |
this();
|
|
|
7078 |
this.itemNumber = itemNumber;
|
|
|
7079 |
this.itemId = itemId;
|
|
|
7080 |
setItemIdIsSet(true);
|
|
|
7081 |
}
|
|
|
7082 |
|
|
|
7083 |
/**
|
|
|
7084 |
* Performs a deep copy on <i>other</i>.
|
|
|
7085 |
*/
|
|
|
7086 |
public createItemNumberMapping_args(createItemNumberMapping_args other) {
|
|
|
7087 |
__isset_bit_vector.clear();
|
|
|
7088 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
7089 |
if (other.isSetItemNumber()) {
|
|
|
7090 |
this.itemNumber = other.itemNumber;
|
|
|
7091 |
}
|
|
|
7092 |
this.itemId = other.itemId;
|
|
|
7093 |
}
|
|
|
7094 |
|
|
|
7095 |
public createItemNumberMapping_args deepCopy() {
|
|
|
7096 |
return new createItemNumberMapping_args(this);
|
|
|
7097 |
}
|
|
|
7098 |
|
|
|
7099 |
@Override
|
|
|
7100 |
public void clear() {
|
|
|
7101 |
this.itemNumber = null;
|
|
|
7102 |
setItemIdIsSet(false);
|
|
|
7103 |
this.itemId = 0;
|
|
|
7104 |
}
|
|
|
7105 |
|
|
|
7106 |
public String getItemNumber() {
|
|
|
7107 |
return this.itemNumber;
|
|
|
7108 |
}
|
|
|
7109 |
|
|
|
7110 |
public void setItemNumber(String itemNumber) {
|
|
|
7111 |
this.itemNumber = itemNumber;
|
|
|
7112 |
}
|
|
|
7113 |
|
|
|
7114 |
public void unsetItemNumber() {
|
|
|
7115 |
this.itemNumber = null;
|
|
|
7116 |
}
|
|
|
7117 |
|
|
|
7118 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
7119 |
public boolean isSetItemNumber() {
|
|
|
7120 |
return this.itemNumber != null;
|
|
|
7121 |
}
|
|
|
7122 |
|
|
|
7123 |
public void setItemNumberIsSet(boolean value) {
|
|
|
7124 |
if (!value) {
|
|
|
7125 |
this.itemNumber = null;
|
|
|
7126 |
}
|
|
|
7127 |
}
|
|
|
7128 |
|
|
|
7129 |
public long getItemId() {
|
|
|
7130 |
return this.itemId;
|
|
|
7131 |
}
|
|
|
7132 |
|
|
|
7133 |
public void setItemId(long itemId) {
|
|
|
7134 |
this.itemId = itemId;
|
|
|
7135 |
setItemIdIsSet(true);
|
|
|
7136 |
}
|
|
|
7137 |
|
|
|
7138 |
public void unsetItemId() {
|
|
|
7139 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
7140 |
}
|
|
|
7141 |
|
|
|
7142 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
7143 |
public boolean isSetItemId() {
|
|
|
7144 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
7145 |
}
|
|
|
7146 |
|
|
|
7147 |
public void setItemIdIsSet(boolean value) {
|
|
|
7148 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
7149 |
}
|
|
|
7150 |
|
|
|
7151 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7152 |
switch (field) {
|
|
|
7153 |
case ITEM_NUMBER:
|
|
|
7154 |
if (value == null) {
|
|
|
7155 |
unsetItemNumber();
|
|
|
7156 |
} else {
|
|
|
7157 |
setItemNumber((String)value);
|
|
|
7158 |
}
|
|
|
7159 |
break;
|
|
|
7160 |
|
|
|
7161 |
case ITEM_ID:
|
|
|
7162 |
if (value == null) {
|
|
|
7163 |
unsetItemId();
|
|
|
7164 |
} else {
|
|
|
7165 |
setItemId((Long)value);
|
|
|
7166 |
}
|
|
|
7167 |
break;
|
|
|
7168 |
|
|
|
7169 |
}
|
|
|
7170 |
}
|
|
|
7171 |
|
|
|
7172 |
public Object getFieldValue(_Fields field) {
|
|
|
7173 |
switch (field) {
|
|
|
7174 |
case ITEM_NUMBER:
|
|
|
7175 |
return getItemNumber();
|
|
|
7176 |
|
|
|
7177 |
case ITEM_ID:
|
|
|
7178 |
return Long.valueOf(getItemId());
|
|
|
7179 |
|
|
|
7180 |
}
|
|
|
7181 |
throw new IllegalStateException();
|
|
|
7182 |
}
|
|
|
7183 |
|
|
|
7184 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7185 |
public boolean isSet(_Fields field) {
|
|
|
7186 |
if (field == null) {
|
|
|
7187 |
throw new IllegalArgumentException();
|
|
|
7188 |
}
|
|
|
7189 |
|
|
|
7190 |
switch (field) {
|
|
|
7191 |
case ITEM_NUMBER:
|
|
|
7192 |
return isSetItemNumber();
|
|
|
7193 |
case ITEM_ID:
|
|
|
7194 |
return isSetItemId();
|
|
|
7195 |
}
|
|
|
7196 |
throw new IllegalStateException();
|
|
|
7197 |
}
|
|
|
7198 |
|
|
|
7199 |
@Override
|
|
|
7200 |
public boolean equals(Object that) {
|
|
|
7201 |
if (that == null)
|
|
|
7202 |
return false;
|
|
|
7203 |
if (that instanceof createItemNumberMapping_args)
|
|
|
7204 |
return this.equals((createItemNumberMapping_args)that);
|
|
|
7205 |
return false;
|
|
|
7206 |
}
|
|
|
7207 |
|
|
|
7208 |
public boolean equals(createItemNumberMapping_args that) {
|
|
|
7209 |
if (that == null)
|
|
|
7210 |
return false;
|
|
|
7211 |
|
|
|
7212 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
7213 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
7214 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
7215 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
7216 |
return false;
|
|
|
7217 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
7218 |
return false;
|
|
|
7219 |
}
|
|
|
7220 |
|
|
|
7221 |
boolean this_present_itemId = true;
|
|
|
7222 |
boolean that_present_itemId = true;
|
|
|
7223 |
if (this_present_itemId || that_present_itemId) {
|
|
|
7224 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
7225 |
return false;
|
|
|
7226 |
if (this.itemId != that.itemId)
|
|
|
7227 |
return false;
|
|
|
7228 |
}
|
|
|
7229 |
|
|
|
7230 |
return true;
|
|
|
7231 |
}
|
|
|
7232 |
|
|
|
7233 |
@Override
|
|
|
7234 |
public int hashCode() {
|
|
|
7235 |
return 0;
|
|
|
7236 |
}
|
|
|
7237 |
|
|
|
7238 |
public int compareTo(createItemNumberMapping_args other) {
|
|
|
7239 |
if (!getClass().equals(other.getClass())) {
|
|
|
7240 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7241 |
}
|
|
|
7242 |
|
|
|
7243 |
int lastComparison = 0;
|
|
|
7244 |
createItemNumberMapping_args typedOther = (createItemNumberMapping_args)other;
|
|
|
7245 |
|
|
|
7246 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
7247 |
if (lastComparison != 0) {
|
|
|
7248 |
return lastComparison;
|
|
|
7249 |
}
|
|
|
7250 |
if (isSetItemNumber()) {
|
|
|
7251 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
7252 |
if (lastComparison != 0) {
|
|
|
7253 |
return lastComparison;
|
|
|
7254 |
}
|
|
|
7255 |
}
|
|
|
7256 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
7257 |
if (lastComparison != 0) {
|
|
|
7258 |
return lastComparison;
|
|
|
7259 |
}
|
|
|
7260 |
if (isSetItemId()) {
|
|
|
7261 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
7262 |
if (lastComparison != 0) {
|
|
|
7263 |
return lastComparison;
|
|
|
7264 |
}
|
|
|
7265 |
}
|
|
|
7266 |
return 0;
|
|
|
7267 |
}
|
|
|
7268 |
|
|
|
7269 |
public _Fields fieldForId(int fieldId) {
|
|
|
7270 |
return _Fields.findByThriftId(fieldId);
|
|
|
7271 |
}
|
|
|
7272 |
|
|
|
7273 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7274 |
org.apache.thrift.protocol.TField field;
|
|
|
7275 |
iprot.readStructBegin();
|
|
|
7276 |
while (true)
|
|
|
7277 |
{
|
|
|
7278 |
field = iprot.readFieldBegin();
|
|
|
7279 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7280 |
break;
|
|
|
7281 |
}
|
|
|
7282 |
switch (field.id) {
|
|
|
7283 |
case 1: // ITEM_NUMBER
|
|
|
7284 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7285 |
this.itemNumber = iprot.readString();
|
|
|
7286 |
} else {
|
|
|
7287 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7288 |
}
|
|
|
7289 |
break;
|
|
|
7290 |
case 2: // ITEM_ID
|
|
|
7291 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
7292 |
this.itemId = iprot.readI64();
|
|
|
7293 |
setItemIdIsSet(true);
|
|
|
7294 |
} else {
|
|
|
7295 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7296 |
}
|
|
|
7297 |
break;
|
|
|
7298 |
default:
|
|
|
7299 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7300 |
}
|
|
|
7301 |
iprot.readFieldEnd();
|
|
|
7302 |
}
|
|
|
7303 |
iprot.readStructEnd();
|
|
|
7304 |
validate();
|
|
|
7305 |
}
|
|
|
7306 |
|
|
|
7307 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7308 |
validate();
|
|
|
7309 |
|
|
|
7310 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7311 |
if (this.itemNumber != null) {
|
|
|
7312 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
7313 |
oprot.writeString(this.itemNumber);
|
|
|
7314 |
oprot.writeFieldEnd();
|
|
|
7315 |
}
|
|
|
7316 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
7317 |
oprot.writeI64(this.itemId);
|
|
|
7318 |
oprot.writeFieldEnd();
|
|
|
7319 |
oprot.writeFieldStop();
|
|
|
7320 |
oprot.writeStructEnd();
|
|
|
7321 |
}
|
|
|
7322 |
|
|
|
7323 |
@Override
|
|
|
7324 |
public String toString() {
|
|
|
7325 |
StringBuilder sb = new StringBuilder("createItemNumberMapping_args(");
|
|
|
7326 |
boolean first = true;
|
|
|
7327 |
|
|
|
7328 |
sb.append("itemNumber:");
|
|
|
7329 |
if (this.itemNumber == null) {
|
|
|
7330 |
sb.append("null");
|
|
|
7331 |
} else {
|
|
|
7332 |
sb.append(this.itemNumber);
|
|
|
7333 |
}
|
|
|
7334 |
first = false;
|
|
|
7335 |
if (!first) sb.append(", ");
|
|
|
7336 |
sb.append("itemId:");
|
|
|
7337 |
sb.append(this.itemId);
|
|
|
7338 |
first = false;
|
|
|
7339 |
sb.append(")");
|
|
|
7340 |
return sb.toString();
|
|
|
7341 |
}
|
|
|
7342 |
|
|
|
7343 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7344 |
// check for required fields
|
|
|
7345 |
}
|
|
|
7346 |
|
|
|
7347 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7348 |
try {
|
|
|
7349 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7350 |
} catch (org.apache.thrift.TException te) {
|
|
|
7351 |
throw new java.io.IOException(te);
|
|
|
7352 |
}
|
|
|
7353 |
}
|
|
|
7354 |
|
|
|
7355 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7356 |
try {
|
|
|
7357 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
7358 |
__isset_bit_vector = new BitSet(1);
|
|
|
7359 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7360 |
} catch (org.apache.thrift.TException te) {
|
|
|
7361 |
throw new java.io.IOException(te);
|
|
|
7362 |
}
|
|
|
7363 |
}
|
|
|
7364 |
|
|
|
7365 |
}
|
|
|
7366 |
|
|
|
7367 |
public static class createItemNumberMapping_result implements org.apache.thrift.TBase<createItemNumberMapping_result, createItemNumberMapping_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7368 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_result");
|
|
|
7369 |
|
|
|
7370 |
|
|
|
7371 |
|
|
|
7372 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7373 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7374 |
;
|
|
|
7375 |
|
|
|
7376 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7377 |
|
|
|
7378 |
static {
|
|
|
7379 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7380 |
byName.put(field.getFieldName(), field);
|
|
|
7381 |
}
|
|
|
7382 |
}
|
|
|
7383 |
|
|
|
7384 |
/**
|
|
|
7385 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7386 |
*/
|
|
|
7387 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7388 |
switch(fieldId) {
|
|
|
7389 |
default:
|
|
|
7390 |
return null;
|
|
|
7391 |
}
|
|
|
7392 |
}
|
|
|
7393 |
|
|
|
7394 |
/**
|
|
|
7395 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7396 |
* if it is not found.
|
|
|
7397 |
*/
|
|
|
7398 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7399 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7400 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7401 |
return fields;
|
|
|
7402 |
}
|
|
|
7403 |
|
|
|
7404 |
/**
|
|
|
7405 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7406 |
*/
|
|
|
7407 |
public static _Fields findByName(String name) {
|
|
|
7408 |
return byName.get(name);
|
|
|
7409 |
}
|
|
|
7410 |
|
|
|
7411 |
private final short _thriftId;
|
|
|
7412 |
private final String _fieldName;
|
|
|
7413 |
|
|
|
7414 |
_Fields(short thriftId, String fieldName) {
|
|
|
7415 |
_thriftId = thriftId;
|
|
|
7416 |
_fieldName = fieldName;
|
|
|
7417 |
}
|
|
|
7418 |
|
|
|
7419 |
public short getThriftFieldId() {
|
|
|
7420 |
return _thriftId;
|
|
|
7421 |
}
|
|
|
7422 |
|
|
|
7423 |
public String getFieldName() {
|
|
|
7424 |
return _fieldName;
|
|
|
7425 |
}
|
|
|
7426 |
}
|
|
|
7427 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7428 |
static {
|
|
|
7429 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7430 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7431 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_result.class, metaDataMap);
|
|
|
7432 |
}
|
|
|
7433 |
|
|
|
7434 |
public createItemNumberMapping_result() {
|
|
|
7435 |
}
|
|
|
7436 |
|
|
|
7437 |
/**
|
|
|
7438 |
* Performs a deep copy on <i>other</i>.
|
|
|
7439 |
*/
|
|
|
7440 |
public createItemNumberMapping_result(createItemNumberMapping_result other) {
|
|
|
7441 |
}
|
|
|
7442 |
|
|
|
7443 |
public createItemNumberMapping_result deepCopy() {
|
|
|
7444 |
return new createItemNumberMapping_result(this);
|
|
|
7445 |
}
|
|
|
7446 |
|
|
|
7447 |
@Override
|
|
|
7448 |
public void clear() {
|
|
|
7449 |
}
|
|
|
7450 |
|
|
|
7451 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7452 |
switch (field) {
|
|
|
7453 |
}
|
|
|
7454 |
}
|
|
|
7455 |
|
|
|
7456 |
public Object getFieldValue(_Fields field) {
|
|
|
7457 |
switch (field) {
|
|
|
7458 |
}
|
|
|
7459 |
throw new IllegalStateException();
|
|
|
7460 |
}
|
|
|
7461 |
|
|
|
7462 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7463 |
public boolean isSet(_Fields field) {
|
|
|
7464 |
if (field == null) {
|
|
|
7465 |
throw new IllegalArgumentException();
|
|
|
7466 |
}
|
|
|
7467 |
|
|
|
7468 |
switch (field) {
|
|
|
7469 |
}
|
|
|
7470 |
throw new IllegalStateException();
|
|
|
7471 |
}
|
|
|
7472 |
|
|
|
7473 |
@Override
|
|
|
7474 |
public boolean equals(Object that) {
|
|
|
7475 |
if (that == null)
|
|
|
7476 |
return false;
|
|
|
7477 |
if (that instanceof createItemNumberMapping_result)
|
|
|
7478 |
return this.equals((createItemNumberMapping_result)that);
|
|
|
7479 |
return false;
|
|
|
7480 |
}
|
|
|
7481 |
|
|
|
7482 |
public boolean equals(createItemNumberMapping_result that) {
|
|
|
7483 |
if (that == null)
|
|
|
7484 |
return false;
|
|
|
7485 |
|
|
|
7486 |
return true;
|
|
|
7487 |
}
|
|
|
7488 |
|
|
|
7489 |
@Override
|
|
|
7490 |
public int hashCode() {
|
|
|
7491 |
return 0;
|
|
|
7492 |
}
|
|
|
7493 |
|
|
|
7494 |
public int compareTo(createItemNumberMapping_result other) {
|
|
|
7495 |
if (!getClass().equals(other.getClass())) {
|
|
|
7496 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7497 |
}
|
|
|
7498 |
|
|
|
7499 |
int lastComparison = 0;
|
|
|
7500 |
createItemNumberMapping_result typedOther = (createItemNumberMapping_result)other;
|
|
|
7501 |
|
|
|
7502 |
return 0;
|
|
|
7503 |
}
|
|
|
7504 |
|
|
|
7505 |
public _Fields fieldForId(int fieldId) {
|
|
|
7506 |
return _Fields.findByThriftId(fieldId);
|
|
|
7507 |
}
|
|
|
7508 |
|
|
|
7509 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7510 |
org.apache.thrift.protocol.TField field;
|
|
|
7511 |
iprot.readStructBegin();
|
|
|
7512 |
while (true)
|
|
|
7513 |
{
|
|
|
7514 |
field = iprot.readFieldBegin();
|
|
|
7515 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7516 |
break;
|
|
|
7517 |
}
|
|
|
7518 |
switch (field.id) {
|
|
|
7519 |
default:
|
|
|
7520 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7521 |
}
|
|
|
7522 |
iprot.readFieldEnd();
|
|
|
7523 |
}
|
|
|
7524 |
iprot.readStructEnd();
|
|
|
7525 |
validate();
|
|
|
7526 |
}
|
|
|
7527 |
|
|
|
7528 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7529 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7530 |
|
|
|
7531 |
oprot.writeFieldStop();
|
|
|
7532 |
oprot.writeStructEnd();
|
|
|
7533 |
}
|
|
|
7534 |
|
|
|
7535 |
@Override
|
|
|
7536 |
public String toString() {
|
|
|
7537 |
StringBuilder sb = new StringBuilder("createItemNumberMapping_result(");
|
|
|
7538 |
boolean first = true;
|
|
|
7539 |
|
|
|
7540 |
sb.append(")");
|
|
|
7541 |
return sb.toString();
|
|
|
7542 |
}
|
|
|
7543 |
|
|
|
7544 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7545 |
// check for required fields
|
|
|
7546 |
}
|
|
|
7547 |
|
|
|
7548 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7549 |
try {
|
|
|
7550 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7551 |
} catch (org.apache.thrift.TException te) {
|
|
|
7552 |
throw new java.io.IOException(te);
|
|
|
7553 |
}
|
|
|
7554 |
}
|
|
|
7555 |
|
|
|
7556 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7557 |
try {
|
|
|
7558 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7559 |
} catch (org.apache.thrift.TException te) {
|
|
|
7560 |
throw new java.io.IOException(te);
|
|
|
7561 |
}
|
|
|
7562 |
}
|
|
|
7563 |
|
|
|
7564 |
}
|
|
|
7565 |
|
| 4622 |
amit.gupta |
7566 |
public static class getItemNumbers_args implements org.apache.thrift.TBase<getItemNumbers_args, getItemNumbers_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
7567 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_args");
|
|
|
7568 |
|
|
|
7569 |
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);
|
|
|
7570 |
|
|
|
7571 |
private long itemId; // required
|
|
|
7572 |
|
|
|
7573 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7574 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7575 |
ITEM_ID((short)1, "itemId");
|
|
|
7576 |
|
|
|
7577 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7578 |
|
|
|
7579 |
static {
|
|
|
7580 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7581 |
byName.put(field.getFieldName(), field);
|
|
|
7582 |
}
|
|
|
7583 |
}
|
|
|
7584 |
|
|
|
7585 |
/**
|
|
|
7586 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7587 |
*/
|
|
|
7588 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7589 |
switch(fieldId) {
|
|
|
7590 |
case 1: // ITEM_ID
|
|
|
7591 |
return ITEM_ID;
|
|
|
7592 |
default:
|
|
|
7593 |
return null;
|
|
|
7594 |
}
|
|
|
7595 |
}
|
|
|
7596 |
|
|
|
7597 |
/**
|
|
|
7598 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7599 |
* if it is not found.
|
|
|
7600 |
*/
|
|
|
7601 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7602 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7603 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7604 |
return fields;
|
|
|
7605 |
}
|
|
|
7606 |
|
|
|
7607 |
/**
|
|
|
7608 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7609 |
*/
|
|
|
7610 |
public static _Fields findByName(String name) {
|
|
|
7611 |
return byName.get(name);
|
|
|
7612 |
}
|
|
|
7613 |
|
|
|
7614 |
private final short _thriftId;
|
|
|
7615 |
private final String _fieldName;
|
|
|
7616 |
|
|
|
7617 |
_Fields(short thriftId, String fieldName) {
|
|
|
7618 |
_thriftId = thriftId;
|
|
|
7619 |
_fieldName = fieldName;
|
|
|
7620 |
}
|
|
|
7621 |
|
|
|
7622 |
public short getThriftFieldId() {
|
|
|
7623 |
return _thriftId;
|
|
|
7624 |
}
|
|
|
7625 |
|
|
|
7626 |
public String getFieldName() {
|
|
|
7627 |
return _fieldName;
|
|
|
7628 |
}
|
|
|
7629 |
}
|
|
|
7630 |
|
|
|
7631 |
// isset id assignments
|
|
|
7632 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
7633 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
7634 |
|
|
|
7635 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7636 |
static {
|
|
|
7637 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7638 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7639 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
7640 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7641 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_args.class, metaDataMap);
|
|
|
7642 |
}
|
|
|
7643 |
|
|
|
7644 |
public getItemNumbers_args() {
|
|
|
7645 |
}
|
|
|
7646 |
|
|
|
7647 |
public getItemNumbers_args(
|
|
|
7648 |
long itemId)
|
|
|
7649 |
{
|
|
|
7650 |
this();
|
|
|
7651 |
this.itemId = itemId;
|
|
|
7652 |
setItemIdIsSet(true);
|
|
|
7653 |
}
|
|
|
7654 |
|
|
|
7655 |
/**
|
|
|
7656 |
* Performs a deep copy on <i>other</i>.
|
|
|
7657 |
*/
|
|
|
7658 |
public getItemNumbers_args(getItemNumbers_args other) {
|
|
|
7659 |
__isset_bit_vector.clear();
|
|
|
7660 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
7661 |
this.itemId = other.itemId;
|
|
|
7662 |
}
|
|
|
7663 |
|
|
|
7664 |
public getItemNumbers_args deepCopy() {
|
|
|
7665 |
return new getItemNumbers_args(this);
|
|
|
7666 |
}
|
|
|
7667 |
|
|
|
7668 |
@Override
|
|
|
7669 |
public void clear() {
|
|
|
7670 |
setItemIdIsSet(false);
|
|
|
7671 |
this.itemId = 0;
|
|
|
7672 |
}
|
|
|
7673 |
|
|
|
7674 |
public long getItemId() {
|
|
|
7675 |
return this.itemId;
|
|
|
7676 |
}
|
|
|
7677 |
|
|
|
7678 |
public void setItemId(long itemId) {
|
|
|
7679 |
this.itemId = itemId;
|
|
|
7680 |
setItemIdIsSet(true);
|
|
|
7681 |
}
|
|
|
7682 |
|
|
|
7683 |
public void unsetItemId() {
|
|
|
7684 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
7685 |
}
|
|
|
7686 |
|
|
|
7687 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
7688 |
public boolean isSetItemId() {
|
|
|
7689 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
7690 |
}
|
|
|
7691 |
|
|
|
7692 |
public void setItemIdIsSet(boolean value) {
|
|
|
7693 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
7694 |
}
|
|
|
7695 |
|
|
|
7696 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7697 |
switch (field) {
|
|
|
7698 |
case ITEM_ID:
|
|
|
7699 |
if (value == null) {
|
|
|
7700 |
unsetItemId();
|
|
|
7701 |
} else {
|
|
|
7702 |
setItemId((Long)value);
|
|
|
7703 |
}
|
|
|
7704 |
break;
|
|
|
7705 |
|
|
|
7706 |
}
|
|
|
7707 |
}
|
|
|
7708 |
|
|
|
7709 |
public Object getFieldValue(_Fields field) {
|
|
|
7710 |
switch (field) {
|
|
|
7711 |
case ITEM_ID:
|
|
|
7712 |
return Long.valueOf(getItemId());
|
|
|
7713 |
|
|
|
7714 |
}
|
|
|
7715 |
throw new IllegalStateException();
|
|
|
7716 |
}
|
|
|
7717 |
|
|
|
7718 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7719 |
public boolean isSet(_Fields field) {
|
|
|
7720 |
if (field == null) {
|
|
|
7721 |
throw new IllegalArgumentException();
|
|
|
7722 |
}
|
|
|
7723 |
|
|
|
7724 |
switch (field) {
|
|
|
7725 |
case ITEM_ID:
|
|
|
7726 |
return isSetItemId();
|
|
|
7727 |
}
|
|
|
7728 |
throw new IllegalStateException();
|
|
|
7729 |
}
|
|
|
7730 |
|
|
|
7731 |
@Override
|
|
|
7732 |
public boolean equals(Object that) {
|
|
|
7733 |
if (that == null)
|
|
|
7734 |
return false;
|
|
|
7735 |
if (that instanceof getItemNumbers_args)
|
|
|
7736 |
return this.equals((getItemNumbers_args)that);
|
|
|
7737 |
return false;
|
|
|
7738 |
}
|
|
|
7739 |
|
|
|
7740 |
public boolean equals(getItemNumbers_args that) {
|
|
|
7741 |
if (that == null)
|
|
|
7742 |
return false;
|
|
|
7743 |
|
|
|
7744 |
boolean this_present_itemId = true;
|
|
|
7745 |
boolean that_present_itemId = true;
|
|
|
7746 |
if (this_present_itemId || that_present_itemId) {
|
|
|
7747 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
7748 |
return false;
|
|
|
7749 |
if (this.itemId != that.itemId)
|
|
|
7750 |
return false;
|
|
|
7751 |
}
|
|
|
7752 |
|
|
|
7753 |
return true;
|
|
|
7754 |
}
|
|
|
7755 |
|
|
|
7756 |
@Override
|
|
|
7757 |
public int hashCode() {
|
|
|
7758 |
return 0;
|
|
|
7759 |
}
|
|
|
7760 |
|
|
|
7761 |
public int compareTo(getItemNumbers_args other) {
|
|
|
7762 |
if (!getClass().equals(other.getClass())) {
|
|
|
7763 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7764 |
}
|
|
|
7765 |
|
|
|
7766 |
int lastComparison = 0;
|
|
|
7767 |
getItemNumbers_args typedOther = (getItemNumbers_args)other;
|
|
|
7768 |
|
|
|
7769 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
7770 |
if (lastComparison != 0) {
|
|
|
7771 |
return lastComparison;
|
|
|
7772 |
}
|
|
|
7773 |
if (isSetItemId()) {
|
|
|
7774 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
7775 |
if (lastComparison != 0) {
|
|
|
7776 |
return lastComparison;
|
|
|
7777 |
}
|
|
|
7778 |
}
|
|
|
7779 |
return 0;
|
|
|
7780 |
}
|
|
|
7781 |
|
|
|
7782 |
public _Fields fieldForId(int fieldId) {
|
|
|
7783 |
return _Fields.findByThriftId(fieldId);
|
|
|
7784 |
}
|
|
|
7785 |
|
|
|
7786 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7787 |
org.apache.thrift.protocol.TField field;
|
|
|
7788 |
iprot.readStructBegin();
|
|
|
7789 |
while (true)
|
|
|
7790 |
{
|
|
|
7791 |
field = iprot.readFieldBegin();
|
|
|
7792 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7793 |
break;
|
|
|
7794 |
}
|
|
|
7795 |
switch (field.id) {
|
|
|
7796 |
case 1: // ITEM_ID
|
|
|
7797 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
7798 |
this.itemId = iprot.readI64();
|
|
|
7799 |
setItemIdIsSet(true);
|
|
|
7800 |
} else {
|
|
|
7801 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7802 |
}
|
|
|
7803 |
break;
|
|
|
7804 |
default:
|
|
|
7805 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7806 |
}
|
|
|
7807 |
iprot.readFieldEnd();
|
|
|
7808 |
}
|
|
|
7809 |
iprot.readStructEnd();
|
|
|
7810 |
validate();
|
|
|
7811 |
}
|
|
|
7812 |
|
|
|
7813 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7814 |
validate();
|
|
|
7815 |
|
|
|
7816 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7817 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
7818 |
oprot.writeI64(this.itemId);
|
|
|
7819 |
oprot.writeFieldEnd();
|
|
|
7820 |
oprot.writeFieldStop();
|
|
|
7821 |
oprot.writeStructEnd();
|
|
|
7822 |
}
|
|
|
7823 |
|
|
|
7824 |
@Override
|
|
|
7825 |
public String toString() {
|
|
|
7826 |
StringBuilder sb = new StringBuilder("getItemNumbers_args(");
|
|
|
7827 |
boolean first = true;
|
|
|
7828 |
|
|
|
7829 |
sb.append("itemId:");
|
|
|
7830 |
sb.append(this.itemId);
|
|
|
7831 |
first = false;
|
|
|
7832 |
sb.append(")");
|
|
|
7833 |
return sb.toString();
|
|
|
7834 |
}
|
|
|
7835 |
|
|
|
7836 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7837 |
// check for required fields
|
|
|
7838 |
}
|
|
|
7839 |
|
|
|
7840 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7841 |
try {
|
|
|
7842 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7843 |
} catch (org.apache.thrift.TException te) {
|
|
|
7844 |
throw new java.io.IOException(te);
|
|
|
7845 |
}
|
|
|
7846 |
}
|
|
|
7847 |
|
|
|
7848 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7849 |
try {
|
|
|
7850 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
7851 |
__isset_bit_vector = new BitSet(1);
|
|
|
7852 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7853 |
} catch (org.apache.thrift.TException te) {
|
|
|
7854 |
throw new java.io.IOException(te);
|
|
|
7855 |
}
|
|
|
7856 |
}
|
|
|
7857 |
|
|
|
7858 |
}
|
|
|
7859 |
|
|
|
7860 |
public static class getItemNumbers_result implements org.apache.thrift.TBase<getItemNumbers_result, getItemNumbers_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7861 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_result");
|
|
|
7862 |
|
|
|
7863 |
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);
|
|
|
7864 |
|
|
|
7865 |
private List<String> success; // required
|
|
|
7866 |
|
|
|
7867 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7868 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7869 |
SUCCESS((short)0, "success");
|
|
|
7870 |
|
|
|
7871 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7872 |
|
|
|
7873 |
static {
|
|
|
7874 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7875 |
byName.put(field.getFieldName(), field);
|
|
|
7876 |
}
|
|
|
7877 |
}
|
|
|
7878 |
|
|
|
7879 |
/**
|
|
|
7880 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7881 |
*/
|
|
|
7882 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7883 |
switch(fieldId) {
|
|
|
7884 |
case 0: // SUCCESS
|
|
|
7885 |
return SUCCESS;
|
|
|
7886 |
default:
|
|
|
7887 |
return null;
|
|
|
7888 |
}
|
|
|
7889 |
}
|
|
|
7890 |
|
|
|
7891 |
/**
|
|
|
7892 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7893 |
* if it is not found.
|
|
|
7894 |
*/
|
|
|
7895 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7896 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7897 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7898 |
return fields;
|
|
|
7899 |
}
|
|
|
7900 |
|
|
|
7901 |
/**
|
|
|
7902 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7903 |
*/
|
|
|
7904 |
public static _Fields findByName(String name) {
|
|
|
7905 |
return byName.get(name);
|
|
|
7906 |
}
|
|
|
7907 |
|
|
|
7908 |
private final short _thriftId;
|
|
|
7909 |
private final String _fieldName;
|
|
|
7910 |
|
|
|
7911 |
_Fields(short thriftId, String fieldName) {
|
|
|
7912 |
_thriftId = thriftId;
|
|
|
7913 |
_fieldName = fieldName;
|
|
|
7914 |
}
|
|
|
7915 |
|
|
|
7916 |
public short getThriftFieldId() {
|
|
|
7917 |
return _thriftId;
|
|
|
7918 |
}
|
|
|
7919 |
|
|
|
7920 |
public String getFieldName() {
|
|
|
7921 |
return _fieldName;
|
|
|
7922 |
}
|
|
|
7923 |
}
|
|
|
7924 |
|
|
|
7925 |
// isset id assignments
|
|
|
7926 |
|
|
|
7927 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7928 |
static {
|
|
|
7929 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7930 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7931 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
7932 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
|
|
|
7933 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7934 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_result.class, metaDataMap);
|
|
|
7935 |
}
|
|
|
7936 |
|
|
|
7937 |
public getItemNumbers_result() {
|
|
|
7938 |
}
|
|
|
7939 |
|
|
|
7940 |
public getItemNumbers_result(
|
|
|
7941 |
List<String> success)
|
|
|
7942 |
{
|
|
|
7943 |
this();
|
|
|
7944 |
this.success = success;
|
|
|
7945 |
}
|
|
|
7946 |
|
|
|
7947 |
/**
|
|
|
7948 |
* Performs a deep copy on <i>other</i>.
|
|
|
7949 |
*/
|
|
|
7950 |
public getItemNumbers_result(getItemNumbers_result other) {
|
|
|
7951 |
if (other.isSetSuccess()) {
|
|
|
7952 |
List<String> __this__success = new ArrayList<String>();
|
|
|
7953 |
for (String other_element : other.success) {
|
|
|
7954 |
__this__success.add(other_element);
|
|
|
7955 |
}
|
|
|
7956 |
this.success = __this__success;
|
|
|
7957 |
}
|
|
|
7958 |
}
|
|
|
7959 |
|
|
|
7960 |
public getItemNumbers_result deepCopy() {
|
|
|
7961 |
return new getItemNumbers_result(this);
|
|
|
7962 |
}
|
|
|
7963 |
|
|
|
7964 |
@Override
|
|
|
7965 |
public void clear() {
|
|
|
7966 |
this.success = null;
|
|
|
7967 |
}
|
|
|
7968 |
|
|
|
7969 |
public int getSuccessSize() {
|
|
|
7970 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
7971 |
}
|
|
|
7972 |
|
|
|
7973 |
public java.util.Iterator<String> getSuccessIterator() {
|
|
|
7974 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
7975 |
}
|
|
|
7976 |
|
|
|
7977 |
public void addToSuccess(String elem) {
|
|
|
7978 |
if (this.success == null) {
|
|
|
7979 |
this.success = new ArrayList<String>();
|
|
|
7980 |
}
|
|
|
7981 |
this.success.add(elem);
|
|
|
7982 |
}
|
|
|
7983 |
|
|
|
7984 |
public List<String> getSuccess() {
|
|
|
7985 |
return this.success;
|
|
|
7986 |
}
|
|
|
7987 |
|
|
|
7988 |
public void setSuccess(List<String> success) {
|
|
|
7989 |
this.success = success;
|
|
|
7990 |
}
|
|
|
7991 |
|
|
|
7992 |
public void unsetSuccess() {
|
|
|
7993 |
this.success = null;
|
|
|
7994 |
}
|
|
|
7995 |
|
|
|
7996 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
7997 |
public boolean isSetSuccess() {
|
|
|
7998 |
return this.success != null;
|
|
|
7999 |
}
|
|
|
8000 |
|
|
|
8001 |
public void setSuccessIsSet(boolean value) {
|
|
|
8002 |
if (!value) {
|
|
|
8003 |
this.success = null;
|
|
|
8004 |
}
|
|
|
8005 |
}
|
|
|
8006 |
|
|
|
8007 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8008 |
switch (field) {
|
|
|
8009 |
case SUCCESS:
|
|
|
8010 |
if (value == null) {
|
|
|
8011 |
unsetSuccess();
|
|
|
8012 |
} else {
|
|
|
8013 |
setSuccess((List<String>)value);
|
|
|
8014 |
}
|
|
|
8015 |
break;
|
|
|
8016 |
|
|
|
8017 |
}
|
|
|
8018 |
}
|
|
|
8019 |
|
|
|
8020 |
public Object getFieldValue(_Fields field) {
|
|
|
8021 |
switch (field) {
|
|
|
8022 |
case SUCCESS:
|
|
|
8023 |
return getSuccess();
|
|
|
8024 |
|
|
|
8025 |
}
|
|
|
8026 |
throw new IllegalStateException();
|
|
|
8027 |
}
|
|
|
8028 |
|
|
|
8029 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8030 |
public boolean isSet(_Fields field) {
|
|
|
8031 |
if (field == null) {
|
|
|
8032 |
throw new IllegalArgumentException();
|
|
|
8033 |
}
|
|
|
8034 |
|
|
|
8035 |
switch (field) {
|
|
|
8036 |
case SUCCESS:
|
|
|
8037 |
return isSetSuccess();
|
|
|
8038 |
}
|
|
|
8039 |
throw new IllegalStateException();
|
|
|
8040 |
}
|
|
|
8041 |
|
|
|
8042 |
@Override
|
|
|
8043 |
public boolean equals(Object that) {
|
|
|
8044 |
if (that == null)
|
|
|
8045 |
return false;
|
|
|
8046 |
if (that instanceof getItemNumbers_result)
|
|
|
8047 |
return this.equals((getItemNumbers_result)that);
|
|
|
8048 |
return false;
|
|
|
8049 |
}
|
|
|
8050 |
|
|
|
8051 |
public boolean equals(getItemNumbers_result that) {
|
|
|
8052 |
if (that == null)
|
|
|
8053 |
return false;
|
|
|
8054 |
|
|
|
8055 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
8056 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
8057 |
if (this_present_success || that_present_success) {
|
|
|
8058 |
if (!(this_present_success && that_present_success))
|
|
|
8059 |
return false;
|
|
|
8060 |
if (!this.success.equals(that.success))
|
|
|
8061 |
return false;
|
|
|
8062 |
}
|
|
|
8063 |
|
|
|
8064 |
return true;
|
|
|
8065 |
}
|
|
|
8066 |
|
|
|
8067 |
@Override
|
|
|
8068 |
public int hashCode() {
|
|
|
8069 |
return 0;
|
|
|
8070 |
}
|
|
|
8071 |
|
|
|
8072 |
public int compareTo(getItemNumbers_result other) {
|
|
|
8073 |
if (!getClass().equals(other.getClass())) {
|
|
|
8074 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8075 |
}
|
|
|
8076 |
|
|
|
8077 |
int lastComparison = 0;
|
|
|
8078 |
getItemNumbers_result typedOther = (getItemNumbers_result)other;
|
|
|
8079 |
|
|
|
8080 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
8081 |
if (lastComparison != 0) {
|
|
|
8082 |
return lastComparison;
|
|
|
8083 |
}
|
|
|
8084 |
if (isSetSuccess()) {
|
|
|
8085 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
8086 |
if (lastComparison != 0) {
|
|
|
8087 |
return lastComparison;
|
|
|
8088 |
}
|
|
|
8089 |
}
|
|
|
8090 |
return 0;
|
|
|
8091 |
}
|
|
|
8092 |
|
|
|
8093 |
public _Fields fieldForId(int fieldId) {
|
|
|
8094 |
return _Fields.findByThriftId(fieldId);
|
|
|
8095 |
}
|
|
|
8096 |
|
|
|
8097 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8098 |
org.apache.thrift.protocol.TField field;
|
|
|
8099 |
iprot.readStructBegin();
|
|
|
8100 |
while (true)
|
|
|
8101 |
{
|
|
|
8102 |
field = iprot.readFieldBegin();
|
|
|
8103 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8104 |
break;
|
|
|
8105 |
}
|
|
|
8106 |
switch (field.id) {
|
|
|
8107 |
case 0: // SUCCESS
|
|
|
8108 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
8109 |
{
|
| 5361 |
mandeep.dh |
8110 |
org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
|
|
|
8111 |
this.success = new ArrayList<String>(_list0.size);
|
|
|
8112 |
for (int _i1 = 0; _i1 < _list0.size; ++_i1)
|
| 4622 |
amit.gupta |
8113 |
{
|
| 5361 |
mandeep.dh |
8114 |
String _elem2; // required
|
|
|
8115 |
_elem2 = iprot.readString();
|
|
|
8116 |
this.success.add(_elem2);
|
| 4622 |
amit.gupta |
8117 |
}
|
|
|
8118 |
iprot.readListEnd();
|
|
|
8119 |
}
|
|
|
8120 |
} else {
|
|
|
8121 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8122 |
}
|
|
|
8123 |
break;
|
|
|
8124 |
default:
|
|
|
8125 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8126 |
}
|
|
|
8127 |
iprot.readFieldEnd();
|
|
|
8128 |
}
|
|
|
8129 |
iprot.readStructEnd();
|
|
|
8130 |
validate();
|
|
|
8131 |
}
|
|
|
8132 |
|
|
|
8133 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8134 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8135 |
|
|
|
8136 |
if (this.isSetSuccess()) {
|
|
|
8137 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
8138 |
{
|
|
|
8139 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
|
| 5361 |
mandeep.dh |
8140 |
for (String _iter3 : this.success)
|
| 4622 |
amit.gupta |
8141 |
{
|
| 5361 |
mandeep.dh |
8142 |
oprot.writeString(_iter3);
|
| 4622 |
amit.gupta |
8143 |
}
|
|
|
8144 |
oprot.writeListEnd();
|
|
|
8145 |
}
|
|
|
8146 |
oprot.writeFieldEnd();
|
|
|
8147 |
}
|
|
|
8148 |
oprot.writeFieldStop();
|
|
|
8149 |
oprot.writeStructEnd();
|
|
|
8150 |
}
|
|
|
8151 |
|
|
|
8152 |
@Override
|
|
|
8153 |
public String toString() {
|
|
|
8154 |
StringBuilder sb = new StringBuilder("getItemNumbers_result(");
|
|
|
8155 |
boolean first = true;
|
|
|
8156 |
|
|
|
8157 |
sb.append("success:");
|
|
|
8158 |
if (this.success == null) {
|
|
|
8159 |
sb.append("null");
|
|
|
8160 |
} else {
|
|
|
8161 |
sb.append(this.success);
|
|
|
8162 |
}
|
|
|
8163 |
first = false;
|
|
|
8164 |
sb.append(")");
|
|
|
8165 |
return sb.toString();
|
|
|
8166 |
}
|
|
|
8167 |
|
|
|
8168 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8169 |
// check for required fields
|
|
|
8170 |
}
|
|
|
8171 |
|
|
|
8172 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8173 |
try {
|
|
|
8174 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8175 |
} catch (org.apache.thrift.TException te) {
|
|
|
8176 |
throw new java.io.IOException(te);
|
|
|
8177 |
}
|
|
|
8178 |
}
|
|
|
8179 |
|
|
|
8180 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8181 |
try {
|
|
|
8182 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8183 |
} catch (org.apache.thrift.TException te) {
|
|
|
8184 |
throw new java.io.IOException(te);
|
|
|
8185 |
}
|
|
|
8186 |
}
|
|
|
8187 |
|
|
|
8188 |
}
|
|
|
8189 |
|
| 5110 |
mandeep.dh |
8190 |
public static class getItemIds_args implements org.apache.thrift.TBase<getItemIds_args, getItemIds_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
8191 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_args");
|
|
|
8192 |
|
|
|
8193 |
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);
|
|
|
8194 |
|
|
|
8195 |
private String itemNumber; // required
|
|
|
8196 |
|
|
|
8197 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8198 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8199 |
ITEM_NUMBER((short)1, "itemNumber");
|
|
|
8200 |
|
|
|
8201 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8202 |
|
|
|
8203 |
static {
|
|
|
8204 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8205 |
byName.put(field.getFieldName(), field);
|
|
|
8206 |
}
|
|
|
8207 |
}
|
|
|
8208 |
|
|
|
8209 |
/**
|
|
|
8210 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8211 |
*/
|
|
|
8212 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8213 |
switch(fieldId) {
|
|
|
8214 |
case 1: // ITEM_NUMBER
|
|
|
8215 |
return ITEM_NUMBER;
|
|
|
8216 |
default:
|
|
|
8217 |
return null;
|
|
|
8218 |
}
|
|
|
8219 |
}
|
|
|
8220 |
|
|
|
8221 |
/**
|
|
|
8222 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8223 |
* if it is not found.
|
|
|
8224 |
*/
|
|
|
8225 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8226 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8227 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8228 |
return fields;
|
|
|
8229 |
}
|
|
|
8230 |
|
|
|
8231 |
/**
|
|
|
8232 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8233 |
*/
|
|
|
8234 |
public static _Fields findByName(String name) {
|
|
|
8235 |
return byName.get(name);
|
|
|
8236 |
}
|
|
|
8237 |
|
|
|
8238 |
private final short _thriftId;
|
|
|
8239 |
private final String _fieldName;
|
|
|
8240 |
|
|
|
8241 |
_Fields(short thriftId, String fieldName) {
|
|
|
8242 |
_thriftId = thriftId;
|
|
|
8243 |
_fieldName = fieldName;
|
|
|
8244 |
}
|
|
|
8245 |
|
|
|
8246 |
public short getThriftFieldId() {
|
|
|
8247 |
return _thriftId;
|
|
|
8248 |
}
|
|
|
8249 |
|
|
|
8250 |
public String getFieldName() {
|
|
|
8251 |
return _fieldName;
|
|
|
8252 |
}
|
|
|
8253 |
}
|
|
|
8254 |
|
|
|
8255 |
// isset id assignments
|
|
|
8256 |
|
|
|
8257 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8258 |
static {
|
|
|
8259 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8260 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8261 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
8262 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8263 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_args.class, metaDataMap);
|
|
|
8264 |
}
|
|
|
8265 |
|
|
|
8266 |
public getItemIds_args() {
|
|
|
8267 |
}
|
|
|
8268 |
|
|
|
8269 |
public getItemIds_args(
|
|
|
8270 |
String itemNumber)
|
|
|
8271 |
{
|
|
|
8272 |
this();
|
|
|
8273 |
this.itemNumber = itemNumber;
|
|
|
8274 |
}
|
|
|
8275 |
|
|
|
8276 |
/**
|
|
|
8277 |
* Performs a deep copy on <i>other</i>.
|
|
|
8278 |
*/
|
|
|
8279 |
public getItemIds_args(getItemIds_args other) {
|
|
|
8280 |
if (other.isSetItemNumber()) {
|
|
|
8281 |
this.itemNumber = other.itemNumber;
|
|
|
8282 |
}
|
|
|
8283 |
}
|
|
|
8284 |
|
|
|
8285 |
public getItemIds_args deepCopy() {
|
|
|
8286 |
return new getItemIds_args(this);
|
|
|
8287 |
}
|
|
|
8288 |
|
|
|
8289 |
@Override
|
|
|
8290 |
public void clear() {
|
|
|
8291 |
this.itemNumber = null;
|
|
|
8292 |
}
|
|
|
8293 |
|
|
|
8294 |
public String getItemNumber() {
|
|
|
8295 |
return this.itemNumber;
|
|
|
8296 |
}
|
|
|
8297 |
|
|
|
8298 |
public void setItemNumber(String itemNumber) {
|
|
|
8299 |
this.itemNumber = itemNumber;
|
|
|
8300 |
}
|
|
|
8301 |
|
|
|
8302 |
public void unsetItemNumber() {
|
|
|
8303 |
this.itemNumber = null;
|
|
|
8304 |
}
|
|
|
8305 |
|
|
|
8306 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
8307 |
public boolean isSetItemNumber() {
|
|
|
8308 |
return this.itemNumber != null;
|
|
|
8309 |
}
|
|
|
8310 |
|
|
|
8311 |
public void setItemNumberIsSet(boolean value) {
|
|
|
8312 |
if (!value) {
|
|
|
8313 |
this.itemNumber = null;
|
|
|
8314 |
}
|
|
|
8315 |
}
|
|
|
8316 |
|
|
|
8317 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8318 |
switch (field) {
|
|
|
8319 |
case ITEM_NUMBER:
|
|
|
8320 |
if (value == null) {
|
|
|
8321 |
unsetItemNumber();
|
|
|
8322 |
} else {
|
|
|
8323 |
setItemNumber((String)value);
|
|
|
8324 |
}
|
|
|
8325 |
break;
|
|
|
8326 |
|
|
|
8327 |
}
|
|
|
8328 |
}
|
|
|
8329 |
|
|
|
8330 |
public Object getFieldValue(_Fields field) {
|
|
|
8331 |
switch (field) {
|
|
|
8332 |
case ITEM_NUMBER:
|
|
|
8333 |
return getItemNumber();
|
|
|
8334 |
|
|
|
8335 |
}
|
|
|
8336 |
throw new IllegalStateException();
|
|
|
8337 |
}
|
|
|
8338 |
|
|
|
8339 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8340 |
public boolean isSet(_Fields field) {
|
|
|
8341 |
if (field == null) {
|
|
|
8342 |
throw new IllegalArgumentException();
|
|
|
8343 |
}
|
|
|
8344 |
|
|
|
8345 |
switch (field) {
|
|
|
8346 |
case ITEM_NUMBER:
|
|
|
8347 |
return isSetItemNumber();
|
|
|
8348 |
}
|
|
|
8349 |
throw new IllegalStateException();
|
|
|
8350 |
}
|
|
|
8351 |
|
|
|
8352 |
@Override
|
|
|
8353 |
public boolean equals(Object that) {
|
|
|
8354 |
if (that == null)
|
|
|
8355 |
return false;
|
|
|
8356 |
if (that instanceof getItemIds_args)
|
|
|
8357 |
return this.equals((getItemIds_args)that);
|
|
|
8358 |
return false;
|
|
|
8359 |
}
|
|
|
8360 |
|
|
|
8361 |
public boolean equals(getItemIds_args that) {
|
|
|
8362 |
if (that == null)
|
|
|
8363 |
return false;
|
|
|
8364 |
|
|
|
8365 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
8366 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
8367 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
8368 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
8369 |
return false;
|
|
|
8370 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
8371 |
return false;
|
|
|
8372 |
}
|
|
|
8373 |
|
|
|
8374 |
return true;
|
|
|
8375 |
}
|
|
|
8376 |
|
|
|
8377 |
@Override
|
|
|
8378 |
public int hashCode() {
|
|
|
8379 |
return 0;
|
|
|
8380 |
}
|
|
|
8381 |
|
|
|
8382 |
public int compareTo(getItemIds_args other) {
|
|
|
8383 |
if (!getClass().equals(other.getClass())) {
|
|
|
8384 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8385 |
}
|
|
|
8386 |
|
|
|
8387 |
int lastComparison = 0;
|
|
|
8388 |
getItemIds_args typedOther = (getItemIds_args)other;
|
|
|
8389 |
|
|
|
8390 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
8391 |
if (lastComparison != 0) {
|
|
|
8392 |
return lastComparison;
|
|
|
8393 |
}
|
|
|
8394 |
if (isSetItemNumber()) {
|
|
|
8395 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
8396 |
if (lastComparison != 0) {
|
|
|
8397 |
return lastComparison;
|
|
|
8398 |
}
|
|
|
8399 |
}
|
|
|
8400 |
return 0;
|
|
|
8401 |
}
|
|
|
8402 |
|
|
|
8403 |
public _Fields fieldForId(int fieldId) {
|
|
|
8404 |
return _Fields.findByThriftId(fieldId);
|
|
|
8405 |
}
|
|
|
8406 |
|
|
|
8407 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8408 |
org.apache.thrift.protocol.TField field;
|
|
|
8409 |
iprot.readStructBegin();
|
|
|
8410 |
while (true)
|
|
|
8411 |
{
|
|
|
8412 |
field = iprot.readFieldBegin();
|
|
|
8413 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8414 |
break;
|
|
|
8415 |
}
|
|
|
8416 |
switch (field.id) {
|
|
|
8417 |
case 1: // ITEM_NUMBER
|
|
|
8418 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
8419 |
this.itemNumber = iprot.readString();
|
|
|
8420 |
} else {
|
|
|
8421 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8422 |
}
|
|
|
8423 |
break;
|
|
|
8424 |
default:
|
|
|
8425 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8426 |
}
|
|
|
8427 |
iprot.readFieldEnd();
|
|
|
8428 |
}
|
|
|
8429 |
iprot.readStructEnd();
|
|
|
8430 |
validate();
|
|
|
8431 |
}
|
|
|
8432 |
|
|
|
8433 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8434 |
validate();
|
|
|
8435 |
|
|
|
8436 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8437 |
if (this.itemNumber != null) {
|
|
|
8438 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
8439 |
oprot.writeString(this.itemNumber);
|
|
|
8440 |
oprot.writeFieldEnd();
|
|
|
8441 |
}
|
|
|
8442 |
oprot.writeFieldStop();
|
|
|
8443 |
oprot.writeStructEnd();
|
|
|
8444 |
}
|
|
|
8445 |
|
|
|
8446 |
@Override
|
|
|
8447 |
public String toString() {
|
|
|
8448 |
StringBuilder sb = new StringBuilder("getItemIds_args(");
|
|
|
8449 |
boolean first = true;
|
|
|
8450 |
|
|
|
8451 |
sb.append("itemNumber:");
|
|
|
8452 |
if (this.itemNumber == null) {
|
|
|
8453 |
sb.append("null");
|
|
|
8454 |
} else {
|
|
|
8455 |
sb.append(this.itemNumber);
|
|
|
8456 |
}
|
|
|
8457 |
first = false;
|
|
|
8458 |
sb.append(")");
|
|
|
8459 |
return sb.toString();
|
|
|
8460 |
}
|
|
|
8461 |
|
|
|
8462 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8463 |
// check for required fields
|
|
|
8464 |
}
|
|
|
8465 |
|
|
|
8466 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8467 |
try {
|
|
|
8468 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8469 |
} catch (org.apache.thrift.TException te) {
|
|
|
8470 |
throw new java.io.IOException(te);
|
|
|
8471 |
}
|
|
|
8472 |
}
|
|
|
8473 |
|
|
|
8474 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8475 |
try {
|
|
|
8476 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8477 |
} catch (org.apache.thrift.TException te) {
|
|
|
8478 |
throw new java.io.IOException(te);
|
|
|
8479 |
}
|
|
|
8480 |
}
|
|
|
8481 |
|
|
|
8482 |
}
|
|
|
8483 |
|
|
|
8484 |
public static class getItemIds_result implements org.apache.thrift.TBase<getItemIds_result, getItemIds_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8485 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_result");
|
|
|
8486 |
|
|
|
8487 |
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);
|
|
|
8488 |
|
|
|
8489 |
private List<Long> success; // required
|
|
|
8490 |
|
|
|
8491 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8492 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8493 |
SUCCESS((short)0, "success");
|
|
|
8494 |
|
|
|
8495 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8496 |
|
|
|
8497 |
static {
|
|
|
8498 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8499 |
byName.put(field.getFieldName(), field);
|
|
|
8500 |
}
|
|
|
8501 |
}
|
|
|
8502 |
|
|
|
8503 |
/**
|
|
|
8504 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8505 |
*/
|
|
|
8506 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8507 |
switch(fieldId) {
|
|
|
8508 |
case 0: // SUCCESS
|
|
|
8509 |
return SUCCESS;
|
|
|
8510 |
default:
|
|
|
8511 |
return null;
|
|
|
8512 |
}
|
|
|
8513 |
}
|
|
|
8514 |
|
|
|
8515 |
/**
|
|
|
8516 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8517 |
* if it is not found.
|
|
|
8518 |
*/
|
|
|
8519 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8520 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8521 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8522 |
return fields;
|
|
|
8523 |
}
|
|
|
8524 |
|
|
|
8525 |
/**
|
|
|
8526 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8527 |
*/
|
|
|
8528 |
public static _Fields findByName(String name) {
|
|
|
8529 |
return byName.get(name);
|
|
|
8530 |
}
|
|
|
8531 |
|
|
|
8532 |
private final short _thriftId;
|
|
|
8533 |
private final String _fieldName;
|
|
|
8534 |
|
|
|
8535 |
_Fields(short thriftId, String fieldName) {
|
|
|
8536 |
_thriftId = thriftId;
|
|
|
8537 |
_fieldName = fieldName;
|
|
|
8538 |
}
|
|
|
8539 |
|
|
|
8540 |
public short getThriftFieldId() {
|
|
|
8541 |
return _thriftId;
|
|
|
8542 |
}
|
|
|
8543 |
|
|
|
8544 |
public String getFieldName() {
|
|
|
8545 |
return _fieldName;
|
|
|
8546 |
}
|
|
|
8547 |
}
|
|
|
8548 |
|
|
|
8549 |
// isset id assignments
|
|
|
8550 |
|
|
|
8551 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8552 |
static {
|
|
|
8553 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8554 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8555 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
8556 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
|
|
|
8557 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8558 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_result.class, metaDataMap);
|
|
|
8559 |
}
|
|
|
8560 |
|
|
|
8561 |
public getItemIds_result() {
|
|
|
8562 |
}
|
|
|
8563 |
|
|
|
8564 |
public getItemIds_result(
|
|
|
8565 |
List<Long> success)
|
|
|
8566 |
{
|
|
|
8567 |
this();
|
|
|
8568 |
this.success = success;
|
|
|
8569 |
}
|
|
|
8570 |
|
|
|
8571 |
/**
|
|
|
8572 |
* Performs a deep copy on <i>other</i>.
|
|
|
8573 |
*/
|
|
|
8574 |
public getItemIds_result(getItemIds_result other) {
|
|
|
8575 |
if (other.isSetSuccess()) {
|
|
|
8576 |
List<Long> __this__success = new ArrayList<Long>();
|
|
|
8577 |
for (Long other_element : other.success) {
|
|
|
8578 |
__this__success.add(other_element);
|
|
|
8579 |
}
|
|
|
8580 |
this.success = __this__success;
|
|
|
8581 |
}
|
|
|
8582 |
}
|
|
|
8583 |
|
|
|
8584 |
public getItemIds_result deepCopy() {
|
|
|
8585 |
return new getItemIds_result(this);
|
|
|
8586 |
}
|
|
|
8587 |
|
|
|
8588 |
@Override
|
|
|
8589 |
public void clear() {
|
|
|
8590 |
this.success = null;
|
|
|
8591 |
}
|
|
|
8592 |
|
|
|
8593 |
public int getSuccessSize() {
|
|
|
8594 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
8595 |
}
|
|
|
8596 |
|
|
|
8597 |
public java.util.Iterator<Long> getSuccessIterator() {
|
|
|
8598 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
8599 |
}
|
|
|
8600 |
|
|
|
8601 |
public void addToSuccess(long elem) {
|
|
|
8602 |
if (this.success == null) {
|
|
|
8603 |
this.success = new ArrayList<Long>();
|
|
|
8604 |
}
|
|
|
8605 |
this.success.add(elem);
|
|
|
8606 |
}
|
|
|
8607 |
|
|
|
8608 |
public List<Long> getSuccess() {
|
|
|
8609 |
return this.success;
|
|
|
8610 |
}
|
|
|
8611 |
|
|
|
8612 |
public void setSuccess(List<Long> success) {
|
|
|
8613 |
this.success = success;
|
|
|
8614 |
}
|
|
|
8615 |
|
|
|
8616 |
public void unsetSuccess() {
|
|
|
8617 |
this.success = null;
|
|
|
8618 |
}
|
|
|
8619 |
|
|
|
8620 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
8621 |
public boolean isSetSuccess() {
|
|
|
8622 |
return this.success != null;
|
|
|
8623 |
}
|
|
|
8624 |
|
|
|
8625 |
public void setSuccessIsSet(boolean value) {
|
|
|
8626 |
if (!value) {
|
|
|
8627 |
this.success = null;
|
|
|
8628 |
}
|
|
|
8629 |
}
|
|
|
8630 |
|
|
|
8631 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8632 |
switch (field) {
|
|
|
8633 |
case SUCCESS:
|
|
|
8634 |
if (value == null) {
|
|
|
8635 |
unsetSuccess();
|
|
|
8636 |
} else {
|
|
|
8637 |
setSuccess((List<Long>)value);
|
|
|
8638 |
}
|
|
|
8639 |
break;
|
|
|
8640 |
|
|
|
8641 |
}
|
|
|
8642 |
}
|
|
|
8643 |
|
|
|
8644 |
public Object getFieldValue(_Fields field) {
|
|
|
8645 |
switch (field) {
|
|
|
8646 |
case SUCCESS:
|
|
|
8647 |
return getSuccess();
|
|
|
8648 |
|
|
|
8649 |
}
|
|
|
8650 |
throw new IllegalStateException();
|
|
|
8651 |
}
|
|
|
8652 |
|
|
|
8653 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8654 |
public boolean isSet(_Fields field) {
|
|
|
8655 |
if (field == null) {
|
|
|
8656 |
throw new IllegalArgumentException();
|
|
|
8657 |
}
|
|
|
8658 |
|
|
|
8659 |
switch (field) {
|
|
|
8660 |
case SUCCESS:
|
|
|
8661 |
return isSetSuccess();
|
|
|
8662 |
}
|
|
|
8663 |
throw new IllegalStateException();
|
|
|
8664 |
}
|
|
|
8665 |
|
|
|
8666 |
@Override
|
|
|
8667 |
public boolean equals(Object that) {
|
|
|
8668 |
if (that == null)
|
|
|
8669 |
return false;
|
|
|
8670 |
if (that instanceof getItemIds_result)
|
|
|
8671 |
return this.equals((getItemIds_result)that);
|
|
|
8672 |
return false;
|
|
|
8673 |
}
|
|
|
8674 |
|
|
|
8675 |
public boolean equals(getItemIds_result that) {
|
|
|
8676 |
if (that == null)
|
|
|
8677 |
return false;
|
|
|
8678 |
|
|
|
8679 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
8680 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
8681 |
if (this_present_success || that_present_success) {
|
|
|
8682 |
if (!(this_present_success && that_present_success))
|
|
|
8683 |
return false;
|
|
|
8684 |
if (!this.success.equals(that.success))
|
|
|
8685 |
return false;
|
|
|
8686 |
}
|
|
|
8687 |
|
|
|
8688 |
return true;
|
|
|
8689 |
}
|
|
|
8690 |
|
|
|
8691 |
@Override
|
|
|
8692 |
public int hashCode() {
|
|
|
8693 |
return 0;
|
|
|
8694 |
}
|
|
|
8695 |
|
|
|
8696 |
public int compareTo(getItemIds_result other) {
|
|
|
8697 |
if (!getClass().equals(other.getClass())) {
|
|
|
8698 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8699 |
}
|
|
|
8700 |
|
|
|
8701 |
int lastComparison = 0;
|
|
|
8702 |
getItemIds_result typedOther = (getItemIds_result)other;
|
|
|
8703 |
|
|
|
8704 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
8705 |
if (lastComparison != 0) {
|
|
|
8706 |
return lastComparison;
|
|
|
8707 |
}
|
|
|
8708 |
if (isSetSuccess()) {
|
|
|
8709 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
8710 |
if (lastComparison != 0) {
|
|
|
8711 |
return lastComparison;
|
|
|
8712 |
}
|
|
|
8713 |
}
|
|
|
8714 |
return 0;
|
|
|
8715 |
}
|
|
|
8716 |
|
|
|
8717 |
public _Fields fieldForId(int fieldId) {
|
|
|
8718 |
return _Fields.findByThriftId(fieldId);
|
|
|
8719 |
}
|
|
|
8720 |
|
|
|
8721 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8722 |
org.apache.thrift.protocol.TField field;
|
|
|
8723 |
iprot.readStructBegin();
|
|
|
8724 |
while (true)
|
|
|
8725 |
{
|
|
|
8726 |
field = iprot.readFieldBegin();
|
|
|
8727 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8728 |
break;
|
|
|
8729 |
}
|
|
|
8730 |
switch (field.id) {
|
|
|
8731 |
case 0: // SUCCESS
|
|
|
8732 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
8733 |
{
|
| 5361 |
mandeep.dh |
8734 |
org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
|
|
|
8735 |
this.success = new ArrayList<Long>(_list4.size);
|
|
|
8736 |
for (int _i5 = 0; _i5 < _list4.size; ++_i5)
|
| 5110 |
mandeep.dh |
8737 |
{
|
| 5361 |
mandeep.dh |
8738 |
long _elem6; // required
|
|
|
8739 |
_elem6 = iprot.readI64();
|
|
|
8740 |
this.success.add(_elem6);
|
| 5110 |
mandeep.dh |
8741 |
}
|
|
|
8742 |
iprot.readListEnd();
|
|
|
8743 |
}
|
|
|
8744 |
} else {
|
|
|
8745 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8746 |
}
|
|
|
8747 |
break;
|
|
|
8748 |
default:
|
|
|
8749 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8750 |
}
|
|
|
8751 |
iprot.readFieldEnd();
|
|
|
8752 |
}
|
|
|
8753 |
iprot.readStructEnd();
|
|
|
8754 |
validate();
|
|
|
8755 |
}
|
|
|
8756 |
|
|
|
8757 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8758 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8759 |
|
|
|
8760 |
if (this.isSetSuccess()) {
|
|
|
8761 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
8762 |
{
|
|
|
8763 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
|
| 5361 |
mandeep.dh |
8764 |
for (long _iter7 : this.success)
|
| 5110 |
mandeep.dh |
8765 |
{
|
| 5361 |
mandeep.dh |
8766 |
oprot.writeI64(_iter7);
|
| 5110 |
mandeep.dh |
8767 |
}
|
|
|
8768 |
oprot.writeListEnd();
|
|
|
8769 |
}
|
|
|
8770 |
oprot.writeFieldEnd();
|
|
|
8771 |
}
|
|
|
8772 |
oprot.writeFieldStop();
|
|
|
8773 |
oprot.writeStructEnd();
|
|
|
8774 |
}
|
|
|
8775 |
|
|
|
8776 |
@Override
|
|
|
8777 |
public String toString() {
|
|
|
8778 |
StringBuilder sb = new StringBuilder("getItemIds_result(");
|
|
|
8779 |
boolean first = true;
|
|
|
8780 |
|
|
|
8781 |
sb.append("success:");
|
|
|
8782 |
if (this.success == null) {
|
|
|
8783 |
sb.append("null");
|
|
|
8784 |
} else {
|
|
|
8785 |
sb.append(this.success);
|
|
|
8786 |
}
|
|
|
8787 |
first = false;
|
|
|
8788 |
sb.append(")");
|
|
|
8789 |
return sb.toString();
|
|
|
8790 |
}
|
|
|
8791 |
|
|
|
8792 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8793 |
// check for required fields
|
|
|
8794 |
}
|
|
|
8795 |
|
|
|
8796 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8797 |
try {
|
|
|
8798 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8799 |
} catch (org.apache.thrift.TException te) {
|
|
|
8800 |
throw new java.io.IOException(te);
|
|
|
8801 |
}
|
|
|
8802 |
}
|
|
|
8803 |
|
|
|
8804 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8805 |
try {
|
|
|
8806 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8807 |
} catch (org.apache.thrift.TException te) {
|
|
|
8808 |
throw new java.io.IOException(te);
|
|
|
8809 |
}
|
|
|
8810 |
}
|
|
|
8811 |
|
|
|
8812 |
}
|
|
|
8813 |
|
| 5185 |
mandeep.dh |
8814 |
public static class getInventoryItemsFromLastScanType_args implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_args, getInventoryItemsFromLastScanType_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
8815 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_args");
|
|
|
8816 |
|
|
|
8817 |
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);
|
|
|
8818 |
|
|
|
8819 |
private ScanType lastScanType; // required
|
|
|
8820 |
|
|
|
8821 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8822 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8823 |
/**
|
|
|
8824 |
*
|
|
|
8825 |
* @see ScanType
|
|
|
8826 |
*/
|
|
|
8827 |
LAST_SCAN_TYPE((short)1, "lastScanType");
|
|
|
8828 |
|
|
|
8829 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8830 |
|
|
|
8831 |
static {
|
|
|
8832 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8833 |
byName.put(field.getFieldName(), field);
|
|
|
8834 |
}
|
|
|
8835 |
}
|
|
|
8836 |
|
|
|
8837 |
/**
|
|
|
8838 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8839 |
*/
|
|
|
8840 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8841 |
switch(fieldId) {
|
|
|
8842 |
case 1: // LAST_SCAN_TYPE
|
|
|
8843 |
return LAST_SCAN_TYPE;
|
|
|
8844 |
default:
|
|
|
8845 |
return null;
|
|
|
8846 |
}
|
|
|
8847 |
}
|
|
|
8848 |
|
|
|
8849 |
/**
|
|
|
8850 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8851 |
* if it is not found.
|
|
|
8852 |
*/
|
|
|
8853 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8854 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8855 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8856 |
return fields;
|
|
|
8857 |
}
|
|
|
8858 |
|
|
|
8859 |
/**
|
|
|
8860 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8861 |
*/
|
|
|
8862 |
public static _Fields findByName(String name) {
|
|
|
8863 |
return byName.get(name);
|
|
|
8864 |
}
|
|
|
8865 |
|
|
|
8866 |
private final short _thriftId;
|
|
|
8867 |
private final String _fieldName;
|
|
|
8868 |
|
|
|
8869 |
_Fields(short thriftId, String fieldName) {
|
|
|
8870 |
_thriftId = thriftId;
|
|
|
8871 |
_fieldName = fieldName;
|
|
|
8872 |
}
|
|
|
8873 |
|
|
|
8874 |
public short getThriftFieldId() {
|
|
|
8875 |
return _thriftId;
|
|
|
8876 |
}
|
|
|
8877 |
|
|
|
8878 |
public String getFieldName() {
|
|
|
8879 |
return _fieldName;
|
|
|
8880 |
}
|
|
|
8881 |
}
|
|
|
8882 |
|
|
|
8883 |
// isset id assignments
|
|
|
8884 |
|
|
|
8885 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8886 |
static {
|
|
|
8887 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8888 |
tmpMap.put(_Fields.LAST_SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("lastScanType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8889 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
8890 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8891 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_args.class, metaDataMap);
|
|
|
8892 |
}
|
|
|
8893 |
|
|
|
8894 |
public getInventoryItemsFromLastScanType_args() {
|
|
|
8895 |
}
|
|
|
8896 |
|
|
|
8897 |
public getInventoryItemsFromLastScanType_args(
|
|
|
8898 |
ScanType lastScanType)
|
|
|
8899 |
{
|
|
|
8900 |
this();
|
|
|
8901 |
this.lastScanType = lastScanType;
|
|
|
8902 |
}
|
|
|
8903 |
|
|
|
8904 |
/**
|
|
|
8905 |
* Performs a deep copy on <i>other</i>.
|
|
|
8906 |
*/
|
|
|
8907 |
public getInventoryItemsFromLastScanType_args(getInventoryItemsFromLastScanType_args other) {
|
|
|
8908 |
if (other.isSetLastScanType()) {
|
|
|
8909 |
this.lastScanType = other.lastScanType;
|
|
|
8910 |
}
|
|
|
8911 |
}
|
|
|
8912 |
|
|
|
8913 |
public getInventoryItemsFromLastScanType_args deepCopy() {
|
|
|
8914 |
return new getInventoryItemsFromLastScanType_args(this);
|
|
|
8915 |
}
|
|
|
8916 |
|
|
|
8917 |
@Override
|
|
|
8918 |
public void clear() {
|
|
|
8919 |
this.lastScanType = null;
|
|
|
8920 |
}
|
|
|
8921 |
|
|
|
8922 |
/**
|
|
|
8923 |
*
|
|
|
8924 |
* @see ScanType
|
|
|
8925 |
*/
|
|
|
8926 |
public ScanType getLastScanType() {
|
|
|
8927 |
return this.lastScanType;
|
|
|
8928 |
}
|
|
|
8929 |
|
|
|
8930 |
/**
|
|
|
8931 |
*
|
|
|
8932 |
* @see ScanType
|
|
|
8933 |
*/
|
|
|
8934 |
public void setLastScanType(ScanType lastScanType) {
|
|
|
8935 |
this.lastScanType = lastScanType;
|
|
|
8936 |
}
|
|
|
8937 |
|
|
|
8938 |
public void unsetLastScanType() {
|
|
|
8939 |
this.lastScanType = null;
|
|
|
8940 |
}
|
|
|
8941 |
|
|
|
8942 |
/** Returns true if field lastScanType is set (has been assigned a value) and false otherwise */
|
|
|
8943 |
public boolean isSetLastScanType() {
|
|
|
8944 |
return this.lastScanType != null;
|
|
|
8945 |
}
|
|
|
8946 |
|
|
|
8947 |
public void setLastScanTypeIsSet(boolean value) {
|
|
|
8948 |
if (!value) {
|
|
|
8949 |
this.lastScanType = null;
|
|
|
8950 |
}
|
|
|
8951 |
}
|
|
|
8952 |
|
|
|
8953 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8954 |
switch (field) {
|
|
|
8955 |
case LAST_SCAN_TYPE:
|
|
|
8956 |
if (value == null) {
|
|
|
8957 |
unsetLastScanType();
|
|
|
8958 |
} else {
|
|
|
8959 |
setLastScanType((ScanType)value);
|
|
|
8960 |
}
|
|
|
8961 |
break;
|
|
|
8962 |
|
|
|
8963 |
}
|
|
|
8964 |
}
|
|
|
8965 |
|
|
|
8966 |
public Object getFieldValue(_Fields field) {
|
|
|
8967 |
switch (field) {
|
|
|
8968 |
case LAST_SCAN_TYPE:
|
|
|
8969 |
return getLastScanType();
|
|
|
8970 |
|
|
|
8971 |
}
|
|
|
8972 |
throw new IllegalStateException();
|
|
|
8973 |
}
|
|
|
8974 |
|
|
|
8975 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8976 |
public boolean isSet(_Fields field) {
|
|
|
8977 |
if (field == null) {
|
|
|
8978 |
throw new IllegalArgumentException();
|
|
|
8979 |
}
|
|
|
8980 |
|
|
|
8981 |
switch (field) {
|
|
|
8982 |
case LAST_SCAN_TYPE:
|
|
|
8983 |
return isSetLastScanType();
|
|
|
8984 |
}
|
|
|
8985 |
throw new IllegalStateException();
|
|
|
8986 |
}
|
|
|
8987 |
|
|
|
8988 |
@Override
|
|
|
8989 |
public boolean equals(Object that) {
|
|
|
8990 |
if (that == null)
|
|
|
8991 |
return false;
|
|
|
8992 |
if (that instanceof getInventoryItemsFromLastScanType_args)
|
|
|
8993 |
return this.equals((getInventoryItemsFromLastScanType_args)that);
|
|
|
8994 |
return false;
|
|
|
8995 |
}
|
|
|
8996 |
|
|
|
8997 |
public boolean equals(getInventoryItemsFromLastScanType_args that) {
|
|
|
8998 |
if (that == null)
|
|
|
8999 |
return false;
|
|
|
9000 |
|
|
|
9001 |
boolean this_present_lastScanType = true && this.isSetLastScanType();
|
|
|
9002 |
boolean that_present_lastScanType = true && that.isSetLastScanType();
|
|
|
9003 |
if (this_present_lastScanType || that_present_lastScanType) {
|
|
|
9004 |
if (!(this_present_lastScanType && that_present_lastScanType))
|
|
|
9005 |
return false;
|
|
|
9006 |
if (!this.lastScanType.equals(that.lastScanType))
|
|
|
9007 |
return false;
|
|
|
9008 |
}
|
|
|
9009 |
|
|
|
9010 |
return true;
|
|
|
9011 |
}
|
|
|
9012 |
|
|
|
9013 |
@Override
|
|
|
9014 |
public int hashCode() {
|
|
|
9015 |
return 0;
|
|
|
9016 |
}
|
|
|
9017 |
|
|
|
9018 |
public int compareTo(getInventoryItemsFromLastScanType_args other) {
|
|
|
9019 |
if (!getClass().equals(other.getClass())) {
|
|
|
9020 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9021 |
}
|
|
|
9022 |
|
|
|
9023 |
int lastComparison = 0;
|
|
|
9024 |
getInventoryItemsFromLastScanType_args typedOther = (getInventoryItemsFromLastScanType_args)other;
|
|
|
9025 |
|
|
|
9026 |
lastComparison = Boolean.valueOf(isSetLastScanType()).compareTo(typedOther.isSetLastScanType());
|
|
|
9027 |
if (lastComparison != 0) {
|
|
|
9028 |
return lastComparison;
|
|
|
9029 |
}
|
|
|
9030 |
if (isSetLastScanType()) {
|
|
|
9031 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastScanType, typedOther.lastScanType);
|
|
|
9032 |
if (lastComparison != 0) {
|
|
|
9033 |
return lastComparison;
|
|
|
9034 |
}
|
|
|
9035 |
}
|
|
|
9036 |
return 0;
|
|
|
9037 |
}
|
|
|
9038 |
|
|
|
9039 |
public _Fields fieldForId(int fieldId) {
|
|
|
9040 |
return _Fields.findByThriftId(fieldId);
|
|
|
9041 |
}
|
|
|
9042 |
|
|
|
9043 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9044 |
org.apache.thrift.protocol.TField field;
|
|
|
9045 |
iprot.readStructBegin();
|
|
|
9046 |
while (true)
|
|
|
9047 |
{
|
|
|
9048 |
field = iprot.readFieldBegin();
|
|
|
9049 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9050 |
break;
|
|
|
9051 |
}
|
|
|
9052 |
switch (field.id) {
|
|
|
9053 |
case 1: // LAST_SCAN_TYPE
|
|
|
9054 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
9055 |
this.lastScanType = ScanType.findByValue(iprot.readI32());
|
|
|
9056 |
} else {
|
|
|
9057 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9058 |
}
|
|
|
9059 |
break;
|
|
|
9060 |
default:
|
|
|
9061 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9062 |
}
|
|
|
9063 |
iprot.readFieldEnd();
|
|
|
9064 |
}
|
|
|
9065 |
iprot.readStructEnd();
|
|
|
9066 |
validate();
|
|
|
9067 |
}
|
|
|
9068 |
|
|
|
9069 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9070 |
validate();
|
|
|
9071 |
|
|
|
9072 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9073 |
if (this.lastScanType != null) {
|
|
|
9074 |
oprot.writeFieldBegin(LAST_SCAN_TYPE_FIELD_DESC);
|
|
|
9075 |
oprot.writeI32(this.lastScanType.getValue());
|
|
|
9076 |
oprot.writeFieldEnd();
|
|
|
9077 |
}
|
|
|
9078 |
oprot.writeFieldStop();
|
|
|
9079 |
oprot.writeStructEnd();
|
|
|
9080 |
}
|
|
|
9081 |
|
|
|
9082 |
@Override
|
|
|
9083 |
public String toString() {
|
|
|
9084 |
StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_args(");
|
|
|
9085 |
boolean first = true;
|
|
|
9086 |
|
|
|
9087 |
sb.append("lastScanType:");
|
|
|
9088 |
if (this.lastScanType == null) {
|
|
|
9089 |
sb.append("null");
|
|
|
9090 |
} else {
|
|
|
9091 |
sb.append(this.lastScanType);
|
|
|
9092 |
}
|
|
|
9093 |
first = false;
|
|
|
9094 |
sb.append(")");
|
|
|
9095 |
return sb.toString();
|
|
|
9096 |
}
|
|
|
9097 |
|
|
|
9098 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9099 |
// check for required fields
|
|
|
9100 |
}
|
|
|
9101 |
|
|
|
9102 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9103 |
try {
|
|
|
9104 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9105 |
} catch (org.apache.thrift.TException te) {
|
|
|
9106 |
throw new java.io.IOException(te);
|
|
|
9107 |
}
|
|
|
9108 |
}
|
|
|
9109 |
|
|
|
9110 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9111 |
try {
|
|
|
9112 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9113 |
} catch (org.apache.thrift.TException te) {
|
|
|
9114 |
throw new java.io.IOException(te);
|
|
|
9115 |
}
|
|
|
9116 |
}
|
|
|
9117 |
|
|
|
9118 |
}
|
|
|
9119 |
|
|
|
9120 |
public static class getInventoryItemsFromLastScanType_result implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_result, getInventoryItemsFromLastScanType_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
9121 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_result");
|
|
|
9122 |
|
|
|
9123 |
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);
|
|
|
9124 |
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);
|
|
|
9125 |
|
|
|
9126 |
private List<InventoryItem> success; // required
|
|
|
9127 |
private WarehouseServiceException wex; // required
|
|
|
9128 |
|
|
|
9129 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9130 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9131 |
SUCCESS((short)0, "success"),
|
|
|
9132 |
WEX((short)1, "wex");
|
|
|
9133 |
|
|
|
9134 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9135 |
|
|
|
9136 |
static {
|
|
|
9137 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9138 |
byName.put(field.getFieldName(), field);
|
|
|
9139 |
}
|
|
|
9140 |
}
|
|
|
9141 |
|
|
|
9142 |
/**
|
|
|
9143 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9144 |
*/
|
|
|
9145 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9146 |
switch(fieldId) {
|
|
|
9147 |
case 0: // SUCCESS
|
|
|
9148 |
return SUCCESS;
|
|
|
9149 |
case 1: // WEX
|
|
|
9150 |
return WEX;
|
|
|
9151 |
default:
|
|
|
9152 |
return null;
|
|
|
9153 |
}
|
|
|
9154 |
}
|
|
|
9155 |
|
|
|
9156 |
/**
|
|
|
9157 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9158 |
* if it is not found.
|
|
|
9159 |
*/
|
|
|
9160 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9161 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9162 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9163 |
return fields;
|
|
|
9164 |
}
|
|
|
9165 |
|
|
|
9166 |
/**
|
|
|
9167 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9168 |
*/
|
|
|
9169 |
public static _Fields findByName(String name) {
|
|
|
9170 |
return byName.get(name);
|
|
|
9171 |
}
|
|
|
9172 |
|
|
|
9173 |
private final short _thriftId;
|
|
|
9174 |
private final String _fieldName;
|
|
|
9175 |
|
|
|
9176 |
_Fields(short thriftId, String fieldName) {
|
|
|
9177 |
_thriftId = thriftId;
|
|
|
9178 |
_fieldName = fieldName;
|
|
|
9179 |
}
|
|
|
9180 |
|
|
|
9181 |
public short getThriftFieldId() {
|
|
|
9182 |
return _thriftId;
|
|
|
9183 |
}
|
|
|
9184 |
|
|
|
9185 |
public String getFieldName() {
|
|
|
9186 |
return _fieldName;
|
|
|
9187 |
}
|
|
|
9188 |
}
|
|
|
9189 |
|
|
|
9190 |
// isset id assignments
|
|
|
9191 |
|
|
|
9192 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9193 |
static {
|
|
|
9194 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9195 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9196 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
9197 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
|
|
|
9198 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9199 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
9200 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9201 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_result.class, metaDataMap);
|
|
|
9202 |
}
|
|
|
9203 |
|
|
|
9204 |
public getInventoryItemsFromLastScanType_result() {
|
|
|
9205 |
}
|
|
|
9206 |
|
|
|
9207 |
public getInventoryItemsFromLastScanType_result(
|
|
|
9208 |
List<InventoryItem> success,
|
|
|
9209 |
WarehouseServiceException wex)
|
|
|
9210 |
{
|
|
|
9211 |
this();
|
|
|
9212 |
this.success = success;
|
|
|
9213 |
this.wex = wex;
|
|
|
9214 |
}
|
|
|
9215 |
|
|
|
9216 |
/**
|
|
|
9217 |
* Performs a deep copy on <i>other</i>.
|
|
|
9218 |
*/
|
|
|
9219 |
public getInventoryItemsFromLastScanType_result(getInventoryItemsFromLastScanType_result other) {
|
|
|
9220 |
if (other.isSetSuccess()) {
|
|
|
9221 |
List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
|
|
|
9222 |
for (InventoryItem other_element : other.success) {
|
|
|
9223 |
__this__success.add(new InventoryItem(other_element));
|
|
|
9224 |
}
|
|
|
9225 |
this.success = __this__success;
|
|
|
9226 |
}
|
|
|
9227 |
if (other.isSetWex()) {
|
|
|
9228 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
9229 |
}
|
|
|
9230 |
}
|
|
|
9231 |
|
|
|
9232 |
public getInventoryItemsFromLastScanType_result deepCopy() {
|
|
|
9233 |
return new getInventoryItemsFromLastScanType_result(this);
|
|
|
9234 |
}
|
|
|
9235 |
|
|
|
9236 |
@Override
|
|
|
9237 |
public void clear() {
|
|
|
9238 |
this.success = null;
|
|
|
9239 |
this.wex = null;
|
|
|
9240 |
}
|
|
|
9241 |
|
|
|
9242 |
public int getSuccessSize() {
|
|
|
9243 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
9244 |
}
|
|
|
9245 |
|
|
|
9246 |
public java.util.Iterator<InventoryItem> getSuccessIterator() {
|
|
|
9247 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
9248 |
}
|
|
|
9249 |
|
|
|
9250 |
public void addToSuccess(InventoryItem elem) {
|
|
|
9251 |
if (this.success == null) {
|
|
|
9252 |
this.success = new ArrayList<InventoryItem>();
|
|
|
9253 |
}
|
|
|
9254 |
this.success.add(elem);
|
|
|
9255 |
}
|
|
|
9256 |
|
|
|
9257 |
public List<InventoryItem> getSuccess() {
|
|
|
9258 |
return this.success;
|
|
|
9259 |
}
|
|
|
9260 |
|
|
|
9261 |
public void setSuccess(List<InventoryItem> success) {
|
|
|
9262 |
this.success = success;
|
|
|
9263 |
}
|
|
|
9264 |
|
|
|
9265 |
public void unsetSuccess() {
|
|
|
9266 |
this.success = null;
|
|
|
9267 |
}
|
|
|
9268 |
|
|
|
9269 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
9270 |
public boolean isSetSuccess() {
|
|
|
9271 |
return this.success != null;
|
|
|
9272 |
}
|
|
|
9273 |
|
|
|
9274 |
public void setSuccessIsSet(boolean value) {
|
|
|
9275 |
if (!value) {
|
|
|
9276 |
this.success = null;
|
|
|
9277 |
}
|
|
|
9278 |
}
|
|
|
9279 |
|
|
|
9280 |
public WarehouseServiceException getWex() {
|
|
|
9281 |
return this.wex;
|
|
|
9282 |
}
|
|
|
9283 |
|
|
|
9284 |
public void setWex(WarehouseServiceException wex) {
|
|
|
9285 |
this.wex = wex;
|
|
|
9286 |
}
|
|
|
9287 |
|
|
|
9288 |
public void unsetWex() {
|
|
|
9289 |
this.wex = null;
|
|
|
9290 |
}
|
|
|
9291 |
|
|
|
9292 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
9293 |
public boolean isSetWex() {
|
|
|
9294 |
return this.wex != null;
|
|
|
9295 |
}
|
|
|
9296 |
|
|
|
9297 |
public void setWexIsSet(boolean value) {
|
|
|
9298 |
if (!value) {
|
|
|
9299 |
this.wex = null;
|
|
|
9300 |
}
|
|
|
9301 |
}
|
|
|
9302 |
|
|
|
9303 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9304 |
switch (field) {
|
|
|
9305 |
case SUCCESS:
|
|
|
9306 |
if (value == null) {
|
|
|
9307 |
unsetSuccess();
|
|
|
9308 |
} else {
|
|
|
9309 |
setSuccess((List<InventoryItem>)value);
|
|
|
9310 |
}
|
|
|
9311 |
break;
|
|
|
9312 |
|
|
|
9313 |
case WEX:
|
|
|
9314 |
if (value == null) {
|
|
|
9315 |
unsetWex();
|
|
|
9316 |
} else {
|
|
|
9317 |
setWex((WarehouseServiceException)value);
|
|
|
9318 |
}
|
|
|
9319 |
break;
|
|
|
9320 |
|
|
|
9321 |
}
|
|
|
9322 |
}
|
|
|
9323 |
|
|
|
9324 |
public Object getFieldValue(_Fields field) {
|
|
|
9325 |
switch (field) {
|
|
|
9326 |
case SUCCESS:
|
|
|
9327 |
return getSuccess();
|
|
|
9328 |
|
|
|
9329 |
case WEX:
|
|
|
9330 |
return getWex();
|
|
|
9331 |
|
|
|
9332 |
}
|
|
|
9333 |
throw new IllegalStateException();
|
|
|
9334 |
}
|
|
|
9335 |
|
|
|
9336 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9337 |
public boolean isSet(_Fields field) {
|
|
|
9338 |
if (field == null) {
|
|
|
9339 |
throw new IllegalArgumentException();
|
|
|
9340 |
}
|
|
|
9341 |
|
|
|
9342 |
switch (field) {
|
|
|
9343 |
case SUCCESS:
|
|
|
9344 |
return isSetSuccess();
|
|
|
9345 |
case WEX:
|
|
|
9346 |
return isSetWex();
|
|
|
9347 |
}
|
|
|
9348 |
throw new IllegalStateException();
|
|
|
9349 |
}
|
|
|
9350 |
|
|
|
9351 |
@Override
|
|
|
9352 |
public boolean equals(Object that) {
|
|
|
9353 |
if (that == null)
|
|
|
9354 |
return false;
|
|
|
9355 |
if (that instanceof getInventoryItemsFromLastScanType_result)
|
|
|
9356 |
return this.equals((getInventoryItemsFromLastScanType_result)that);
|
|
|
9357 |
return false;
|
|
|
9358 |
}
|
|
|
9359 |
|
|
|
9360 |
public boolean equals(getInventoryItemsFromLastScanType_result that) {
|
|
|
9361 |
if (that == null)
|
|
|
9362 |
return false;
|
|
|
9363 |
|
|
|
9364 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
9365 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
9366 |
if (this_present_success || that_present_success) {
|
|
|
9367 |
if (!(this_present_success && that_present_success))
|
|
|
9368 |
return false;
|
|
|
9369 |
if (!this.success.equals(that.success))
|
|
|
9370 |
return false;
|
|
|
9371 |
}
|
|
|
9372 |
|
|
|
9373 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
9374 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
9375 |
if (this_present_wex || that_present_wex) {
|
|
|
9376 |
if (!(this_present_wex && that_present_wex))
|
|
|
9377 |
return false;
|
|
|
9378 |
if (!this.wex.equals(that.wex))
|
|
|
9379 |
return false;
|
|
|
9380 |
}
|
|
|
9381 |
|
|
|
9382 |
return true;
|
|
|
9383 |
}
|
|
|
9384 |
|
|
|
9385 |
@Override
|
|
|
9386 |
public int hashCode() {
|
|
|
9387 |
return 0;
|
|
|
9388 |
}
|
|
|
9389 |
|
|
|
9390 |
public int compareTo(getInventoryItemsFromLastScanType_result other) {
|
|
|
9391 |
if (!getClass().equals(other.getClass())) {
|
|
|
9392 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9393 |
}
|
|
|
9394 |
|
|
|
9395 |
int lastComparison = 0;
|
|
|
9396 |
getInventoryItemsFromLastScanType_result typedOther = (getInventoryItemsFromLastScanType_result)other;
|
|
|
9397 |
|
|
|
9398 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
9399 |
if (lastComparison != 0) {
|
|
|
9400 |
return lastComparison;
|
|
|
9401 |
}
|
|
|
9402 |
if (isSetSuccess()) {
|
|
|
9403 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
9404 |
if (lastComparison != 0) {
|
|
|
9405 |
return lastComparison;
|
|
|
9406 |
}
|
|
|
9407 |
}
|
|
|
9408 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
9409 |
if (lastComparison != 0) {
|
|
|
9410 |
return lastComparison;
|
|
|
9411 |
}
|
|
|
9412 |
if (isSetWex()) {
|
|
|
9413 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
9414 |
if (lastComparison != 0) {
|
|
|
9415 |
return lastComparison;
|
|
|
9416 |
}
|
|
|
9417 |
}
|
|
|
9418 |
return 0;
|
|
|
9419 |
}
|
|
|
9420 |
|
|
|
9421 |
public _Fields fieldForId(int fieldId) {
|
|
|
9422 |
return _Fields.findByThriftId(fieldId);
|
|
|
9423 |
}
|
|
|
9424 |
|
|
|
9425 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9426 |
org.apache.thrift.protocol.TField field;
|
|
|
9427 |
iprot.readStructBegin();
|
|
|
9428 |
while (true)
|
|
|
9429 |
{
|
|
|
9430 |
field = iprot.readFieldBegin();
|
|
|
9431 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9432 |
break;
|
|
|
9433 |
}
|
|
|
9434 |
switch (field.id) {
|
|
|
9435 |
case 0: // SUCCESS
|
|
|
9436 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
9437 |
{
|
| 5361 |
mandeep.dh |
9438 |
org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
|
|
|
9439 |
this.success = new ArrayList<InventoryItem>(_list8.size);
|
|
|
9440 |
for (int _i9 = 0; _i9 < _list8.size; ++_i9)
|
| 5185 |
mandeep.dh |
9441 |
{
|
| 5361 |
mandeep.dh |
9442 |
InventoryItem _elem10; // required
|
|
|
9443 |
_elem10 = new InventoryItem();
|
|
|
9444 |
_elem10.read(iprot);
|
|
|
9445 |
this.success.add(_elem10);
|
| 5185 |
mandeep.dh |
9446 |
}
|
|
|
9447 |
iprot.readListEnd();
|
|
|
9448 |
}
|
|
|
9449 |
} else {
|
|
|
9450 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9451 |
}
|
|
|
9452 |
break;
|
|
|
9453 |
case 1: // WEX
|
|
|
9454 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
9455 |
this.wex = new WarehouseServiceException();
|
|
|
9456 |
this.wex.read(iprot);
|
|
|
9457 |
} else {
|
|
|
9458 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9459 |
}
|
|
|
9460 |
break;
|
|
|
9461 |
default:
|
|
|
9462 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9463 |
}
|
|
|
9464 |
iprot.readFieldEnd();
|
|
|
9465 |
}
|
|
|
9466 |
iprot.readStructEnd();
|
|
|
9467 |
validate();
|
|
|
9468 |
}
|
|
|
9469 |
|
|
|
9470 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9471 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9472 |
|
|
|
9473 |
if (this.isSetSuccess()) {
|
|
|
9474 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
9475 |
{
|
|
|
9476 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 5361 |
mandeep.dh |
9477 |
for (InventoryItem _iter11 : this.success)
|
| 5185 |
mandeep.dh |
9478 |
{
|
| 5361 |
mandeep.dh |
9479 |
_iter11.write(oprot);
|
| 5185 |
mandeep.dh |
9480 |
}
|
|
|
9481 |
oprot.writeListEnd();
|
|
|
9482 |
}
|
|
|
9483 |
oprot.writeFieldEnd();
|
|
|
9484 |
} else if (this.isSetWex()) {
|
|
|
9485 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
9486 |
this.wex.write(oprot);
|
|
|
9487 |
oprot.writeFieldEnd();
|
|
|
9488 |
}
|
|
|
9489 |
oprot.writeFieldStop();
|
|
|
9490 |
oprot.writeStructEnd();
|
|
|
9491 |
}
|
|
|
9492 |
|
|
|
9493 |
@Override
|
|
|
9494 |
public String toString() {
|
|
|
9495 |
StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_result(");
|
|
|
9496 |
boolean first = true;
|
|
|
9497 |
|
|
|
9498 |
sb.append("success:");
|
|
|
9499 |
if (this.success == null) {
|
|
|
9500 |
sb.append("null");
|
|
|
9501 |
} else {
|
|
|
9502 |
sb.append(this.success);
|
|
|
9503 |
}
|
|
|
9504 |
first = false;
|
|
|
9505 |
if (!first) sb.append(", ");
|
|
|
9506 |
sb.append("wex:");
|
|
|
9507 |
if (this.wex == null) {
|
|
|
9508 |
sb.append("null");
|
|
|
9509 |
} else {
|
|
|
9510 |
sb.append(this.wex);
|
|
|
9511 |
}
|
|
|
9512 |
first = false;
|
|
|
9513 |
sb.append(")");
|
|
|
9514 |
return sb.toString();
|
|
|
9515 |
}
|
|
|
9516 |
|
|
|
9517 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9518 |
// check for required fields
|
|
|
9519 |
}
|
|
|
9520 |
|
|
|
9521 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9522 |
try {
|
|
|
9523 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9524 |
} catch (org.apache.thrift.TException te) {
|
|
|
9525 |
throw new java.io.IOException(te);
|
|
|
9526 |
}
|
|
|
9527 |
}
|
|
|
9528 |
|
|
|
9529 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9530 |
try {
|
|
|
9531 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9532 |
} catch (org.apache.thrift.TException te) {
|
|
|
9533 |
throw new java.io.IOException(te);
|
|
|
9534 |
}
|
|
|
9535 |
}
|
|
|
9536 |
|
|
|
9537 |
}
|
|
|
9538 |
|
|
|
9539 |
public static class getInventoryItemFromId_args implements org.apache.thrift.TBase<getInventoryItemFromId_args, getInventoryItemFromId_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
9540 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_args");
|
|
|
9541 |
|
|
|
9542 |
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);
|
|
|
9543 |
|
|
|
9544 |
private long inventoryItemId; // required
|
|
|
9545 |
|
|
|
9546 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9547 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9548 |
INVENTORY_ITEM_ID((short)1, "inventoryItemId");
|
|
|
9549 |
|
|
|
9550 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9551 |
|
|
|
9552 |
static {
|
|
|
9553 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9554 |
byName.put(field.getFieldName(), field);
|
|
|
9555 |
}
|
|
|
9556 |
}
|
|
|
9557 |
|
|
|
9558 |
/**
|
|
|
9559 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9560 |
*/
|
|
|
9561 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9562 |
switch(fieldId) {
|
|
|
9563 |
case 1: // INVENTORY_ITEM_ID
|
|
|
9564 |
return INVENTORY_ITEM_ID;
|
|
|
9565 |
default:
|
|
|
9566 |
return null;
|
|
|
9567 |
}
|
|
|
9568 |
}
|
|
|
9569 |
|
|
|
9570 |
/**
|
|
|
9571 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9572 |
* if it is not found.
|
|
|
9573 |
*/
|
|
|
9574 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9575 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9576 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9577 |
return fields;
|
|
|
9578 |
}
|
|
|
9579 |
|
|
|
9580 |
/**
|
|
|
9581 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9582 |
*/
|
|
|
9583 |
public static _Fields findByName(String name) {
|
|
|
9584 |
return byName.get(name);
|
|
|
9585 |
}
|
|
|
9586 |
|
|
|
9587 |
private final short _thriftId;
|
|
|
9588 |
private final String _fieldName;
|
|
|
9589 |
|
|
|
9590 |
_Fields(short thriftId, String fieldName) {
|
|
|
9591 |
_thriftId = thriftId;
|
|
|
9592 |
_fieldName = fieldName;
|
|
|
9593 |
}
|
|
|
9594 |
|
|
|
9595 |
public short getThriftFieldId() {
|
|
|
9596 |
return _thriftId;
|
|
|
9597 |
}
|
|
|
9598 |
|
|
|
9599 |
public String getFieldName() {
|
|
|
9600 |
return _fieldName;
|
|
|
9601 |
}
|
|
|
9602 |
}
|
|
|
9603 |
|
|
|
9604 |
// isset id assignments
|
|
|
9605 |
private static final int __INVENTORYITEMID_ISSET_ID = 0;
|
|
|
9606 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
9607 |
|
|
|
9608 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9609 |
static {
|
|
|
9610 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9611 |
tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9612 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9613 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9614 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_args.class, metaDataMap);
|
|
|
9615 |
}
|
|
|
9616 |
|
|
|
9617 |
public getInventoryItemFromId_args() {
|
|
|
9618 |
}
|
|
|
9619 |
|
|
|
9620 |
public getInventoryItemFromId_args(
|
|
|
9621 |
long inventoryItemId)
|
|
|
9622 |
{
|
|
|
9623 |
this();
|
|
|
9624 |
this.inventoryItemId = inventoryItemId;
|
|
|
9625 |
setInventoryItemIdIsSet(true);
|
|
|
9626 |
}
|
|
|
9627 |
|
|
|
9628 |
/**
|
|
|
9629 |
* Performs a deep copy on <i>other</i>.
|
|
|
9630 |
*/
|
|
|
9631 |
public getInventoryItemFromId_args(getInventoryItemFromId_args other) {
|
|
|
9632 |
__isset_bit_vector.clear();
|
|
|
9633 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9634 |
this.inventoryItemId = other.inventoryItemId;
|
|
|
9635 |
}
|
|
|
9636 |
|
|
|
9637 |
public getInventoryItemFromId_args deepCopy() {
|
|
|
9638 |
return new getInventoryItemFromId_args(this);
|
|
|
9639 |
}
|
|
|
9640 |
|
|
|
9641 |
@Override
|
|
|
9642 |
public void clear() {
|
|
|
9643 |
setInventoryItemIdIsSet(false);
|
|
|
9644 |
this.inventoryItemId = 0;
|
|
|
9645 |
}
|
|
|
9646 |
|
|
|
9647 |
public long getInventoryItemId() {
|
|
|
9648 |
return this.inventoryItemId;
|
|
|
9649 |
}
|
|
|
9650 |
|
|
|
9651 |
public void setInventoryItemId(long inventoryItemId) {
|
|
|
9652 |
this.inventoryItemId = inventoryItemId;
|
|
|
9653 |
setInventoryItemIdIsSet(true);
|
|
|
9654 |
}
|
|
|
9655 |
|
|
|
9656 |
public void unsetInventoryItemId() {
|
|
|
9657 |
__isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
|
|
|
9658 |
}
|
|
|
9659 |
|
|
|
9660 |
/** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
|
|
|
9661 |
public boolean isSetInventoryItemId() {
|
|
|
9662 |
return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
|
|
|
9663 |
}
|
|
|
9664 |
|
|
|
9665 |
public void setInventoryItemIdIsSet(boolean value) {
|
|
|
9666 |
__isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
|
|
|
9667 |
}
|
|
|
9668 |
|
|
|
9669 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9670 |
switch (field) {
|
|
|
9671 |
case INVENTORY_ITEM_ID:
|
|
|
9672 |
if (value == null) {
|
|
|
9673 |
unsetInventoryItemId();
|
|
|
9674 |
} else {
|
|
|
9675 |
setInventoryItemId((Long)value);
|
|
|
9676 |
}
|
|
|
9677 |
break;
|
|
|
9678 |
|
|
|
9679 |
}
|
|
|
9680 |
}
|
|
|
9681 |
|
|
|
9682 |
public Object getFieldValue(_Fields field) {
|
|
|
9683 |
switch (field) {
|
|
|
9684 |
case INVENTORY_ITEM_ID:
|
|
|
9685 |
return Long.valueOf(getInventoryItemId());
|
|
|
9686 |
|
|
|
9687 |
}
|
|
|
9688 |
throw new IllegalStateException();
|
|
|
9689 |
}
|
|
|
9690 |
|
|
|
9691 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9692 |
public boolean isSet(_Fields field) {
|
|
|
9693 |
if (field == null) {
|
|
|
9694 |
throw new IllegalArgumentException();
|
|
|
9695 |
}
|
|
|
9696 |
|
|
|
9697 |
switch (field) {
|
|
|
9698 |
case INVENTORY_ITEM_ID:
|
|
|
9699 |
return isSetInventoryItemId();
|
|
|
9700 |
}
|
|
|
9701 |
throw new IllegalStateException();
|
|
|
9702 |
}
|
|
|
9703 |
|
|
|
9704 |
@Override
|
|
|
9705 |
public boolean equals(Object that) {
|
|
|
9706 |
if (that == null)
|
|
|
9707 |
return false;
|
|
|
9708 |
if (that instanceof getInventoryItemFromId_args)
|
|
|
9709 |
return this.equals((getInventoryItemFromId_args)that);
|
|
|
9710 |
return false;
|
|
|
9711 |
}
|
|
|
9712 |
|
|
|
9713 |
public boolean equals(getInventoryItemFromId_args that) {
|
|
|
9714 |
if (that == null)
|
|
|
9715 |
return false;
|
|
|
9716 |
|
|
|
9717 |
boolean this_present_inventoryItemId = true;
|
|
|
9718 |
boolean that_present_inventoryItemId = true;
|
|
|
9719 |
if (this_present_inventoryItemId || that_present_inventoryItemId) {
|
|
|
9720 |
if (!(this_present_inventoryItemId && that_present_inventoryItemId))
|
|
|
9721 |
return false;
|
|
|
9722 |
if (this.inventoryItemId != that.inventoryItemId)
|
|
|
9723 |
return false;
|
|
|
9724 |
}
|
|
|
9725 |
|
|
|
9726 |
return true;
|
|
|
9727 |
}
|
|
|
9728 |
|
|
|
9729 |
@Override
|
|
|
9730 |
public int hashCode() {
|
|
|
9731 |
return 0;
|
|
|
9732 |
}
|
|
|
9733 |
|
|
|
9734 |
public int compareTo(getInventoryItemFromId_args other) {
|
|
|
9735 |
if (!getClass().equals(other.getClass())) {
|
|
|
9736 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9737 |
}
|
|
|
9738 |
|
|
|
9739 |
int lastComparison = 0;
|
|
|
9740 |
getInventoryItemFromId_args typedOther = (getInventoryItemFromId_args)other;
|
|
|
9741 |
|
|
|
9742 |
lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
|
|
|
9743 |
if (lastComparison != 0) {
|
|
|
9744 |
return lastComparison;
|
|
|
9745 |
}
|
|
|
9746 |
if (isSetInventoryItemId()) {
|
|
|
9747 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
|
|
|
9748 |
if (lastComparison != 0) {
|
|
|
9749 |
return lastComparison;
|
|
|
9750 |
}
|
|
|
9751 |
}
|
|
|
9752 |
return 0;
|
|
|
9753 |
}
|
|
|
9754 |
|
|
|
9755 |
public _Fields fieldForId(int fieldId) {
|
|
|
9756 |
return _Fields.findByThriftId(fieldId);
|
|
|
9757 |
}
|
|
|
9758 |
|
|
|
9759 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9760 |
org.apache.thrift.protocol.TField field;
|
|
|
9761 |
iprot.readStructBegin();
|
|
|
9762 |
while (true)
|
|
|
9763 |
{
|
|
|
9764 |
field = iprot.readFieldBegin();
|
|
|
9765 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9766 |
break;
|
|
|
9767 |
}
|
|
|
9768 |
switch (field.id) {
|
|
|
9769 |
case 1: // INVENTORY_ITEM_ID
|
|
|
9770 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
9771 |
this.inventoryItemId = iprot.readI64();
|
|
|
9772 |
setInventoryItemIdIsSet(true);
|
|
|
9773 |
} else {
|
|
|
9774 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9775 |
}
|
|
|
9776 |
break;
|
|
|
9777 |
default:
|
|
|
9778 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9779 |
}
|
|
|
9780 |
iprot.readFieldEnd();
|
|
|
9781 |
}
|
|
|
9782 |
iprot.readStructEnd();
|
|
|
9783 |
validate();
|
|
|
9784 |
}
|
|
|
9785 |
|
|
|
9786 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9787 |
validate();
|
|
|
9788 |
|
|
|
9789 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9790 |
oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
|
|
|
9791 |
oprot.writeI64(this.inventoryItemId);
|
|
|
9792 |
oprot.writeFieldEnd();
|
|
|
9793 |
oprot.writeFieldStop();
|
|
|
9794 |
oprot.writeStructEnd();
|
|
|
9795 |
}
|
|
|
9796 |
|
|
|
9797 |
@Override
|
|
|
9798 |
public String toString() {
|
|
|
9799 |
StringBuilder sb = new StringBuilder("getInventoryItemFromId_args(");
|
|
|
9800 |
boolean first = true;
|
|
|
9801 |
|
|
|
9802 |
sb.append("inventoryItemId:");
|
|
|
9803 |
sb.append(this.inventoryItemId);
|
|
|
9804 |
first = false;
|
|
|
9805 |
sb.append(")");
|
|
|
9806 |
return sb.toString();
|
|
|
9807 |
}
|
|
|
9808 |
|
|
|
9809 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9810 |
// check for required fields
|
|
|
9811 |
}
|
|
|
9812 |
|
|
|
9813 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9814 |
try {
|
|
|
9815 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9816 |
} catch (org.apache.thrift.TException te) {
|
|
|
9817 |
throw new java.io.IOException(te);
|
|
|
9818 |
}
|
|
|
9819 |
}
|
|
|
9820 |
|
|
|
9821 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9822 |
try {
|
| 5372 |
mandeep.dh |
9823 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
9824 |
__isset_bit_vector = new BitSet(1);
|
| 5185 |
mandeep.dh |
9825 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9826 |
} catch (org.apache.thrift.TException te) {
|
|
|
9827 |
throw new java.io.IOException(te);
|
|
|
9828 |
}
|
|
|
9829 |
}
|
|
|
9830 |
|
|
|
9831 |
}
|
|
|
9832 |
|
|
|
9833 |
public static class getInventoryItemFromId_result implements org.apache.thrift.TBase<getInventoryItemFromId_result, getInventoryItemFromId_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
9834 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_result");
|
|
|
9835 |
|
|
|
9836 |
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);
|
|
|
9837 |
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);
|
|
|
9838 |
|
|
|
9839 |
private InventoryItem success; // required
|
|
|
9840 |
private WarehouseServiceException wex; // required
|
|
|
9841 |
|
|
|
9842 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9843 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9844 |
SUCCESS((short)0, "success"),
|
|
|
9845 |
WEX((short)1, "wex");
|
|
|
9846 |
|
|
|
9847 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9848 |
|
|
|
9849 |
static {
|
|
|
9850 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9851 |
byName.put(field.getFieldName(), field);
|
|
|
9852 |
}
|
|
|
9853 |
}
|
|
|
9854 |
|
|
|
9855 |
/**
|
|
|
9856 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9857 |
*/
|
|
|
9858 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9859 |
switch(fieldId) {
|
|
|
9860 |
case 0: // SUCCESS
|
|
|
9861 |
return SUCCESS;
|
|
|
9862 |
case 1: // WEX
|
|
|
9863 |
return WEX;
|
|
|
9864 |
default:
|
|
|
9865 |
return null;
|
|
|
9866 |
}
|
|
|
9867 |
}
|
|
|
9868 |
|
|
|
9869 |
/**
|
|
|
9870 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9871 |
* if it is not found.
|
|
|
9872 |
*/
|
|
|
9873 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9874 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9875 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9876 |
return fields;
|
|
|
9877 |
}
|
|
|
9878 |
|
|
|
9879 |
/**
|
|
|
9880 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9881 |
*/
|
|
|
9882 |
public static _Fields findByName(String name) {
|
|
|
9883 |
return byName.get(name);
|
|
|
9884 |
}
|
|
|
9885 |
|
|
|
9886 |
private final short _thriftId;
|
|
|
9887 |
private final String _fieldName;
|
|
|
9888 |
|
|
|
9889 |
_Fields(short thriftId, String fieldName) {
|
|
|
9890 |
_thriftId = thriftId;
|
|
|
9891 |
_fieldName = fieldName;
|
|
|
9892 |
}
|
|
|
9893 |
|
|
|
9894 |
public short getThriftFieldId() {
|
|
|
9895 |
return _thriftId;
|
|
|
9896 |
}
|
|
|
9897 |
|
|
|
9898 |
public String getFieldName() {
|
|
|
9899 |
return _fieldName;
|
|
|
9900 |
}
|
|
|
9901 |
}
|
|
|
9902 |
|
|
|
9903 |
// isset id assignments
|
|
|
9904 |
|
|
|
9905 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9906 |
static {
|
|
|
9907 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9908 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9909 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
9910 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9911 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
9912 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9913 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_result.class, metaDataMap);
|
|
|
9914 |
}
|
|
|
9915 |
|
|
|
9916 |
public getInventoryItemFromId_result() {
|
|
|
9917 |
}
|
|
|
9918 |
|
|
|
9919 |
public getInventoryItemFromId_result(
|
|
|
9920 |
InventoryItem success,
|
|
|
9921 |
WarehouseServiceException wex)
|
|
|
9922 |
{
|
|
|
9923 |
this();
|
|
|
9924 |
this.success = success;
|
|
|
9925 |
this.wex = wex;
|
|
|
9926 |
}
|
|
|
9927 |
|
|
|
9928 |
/**
|
|
|
9929 |
* Performs a deep copy on <i>other</i>.
|
|
|
9930 |
*/
|
|
|
9931 |
public getInventoryItemFromId_result(getInventoryItemFromId_result other) {
|
|
|
9932 |
if (other.isSetSuccess()) {
|
|
|
9933 |
this.success = new InventoryItem(other.success);
|
|
|
9934 |
}
|
|
|
9935 |
if (other.isSetWex()) {
|
|
|
9936 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
9937 |
}
|
|
|
9938 |
}
|
|
|
9939 |
|
|
|
9940 |
public getInventoryItemFromId_result deepCopy() {
|
|
|
9941 |
return new getInventoryItemFromId_result(this);
|
|
|
9942 |
}
|
|
|
9943 |
|
|
|
9944 |
@Override
|
|
|
9945 |
public void clear() {
|
|
|
9946 |
this.success = null;
|
|
|
9947 |
this.wex = null;
|
|
|
9948 |
}
|
|
|
9949 |
|
|
|
9950 |
public InventoryItem getSuccess() {
|
|
|
9951 |
return this.success;
|
|
|
9952 |
}
|
|
|
9953 |
|
|
|
9954 |
public void setSuccess(InventoryItem success) {
|
|
|
9955 |
this.success = success;
|
|
|
9956 |
}
|
|
|
9957 |
|
|
|
9958 |
public void unsetSuccess() {
|
|
|
9959 |
this.success = null;
|
|
|
9960 |
}
|
|
|
9961 |
|
|
|
9962 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
9963 |
public boolean isSetSuccess() {
|
|
|
9964 |
return this.success != null;
|
|
|
9965 |
}
|
|
|
9966 |
|
|
|
9967 |
public void setSuccessIsSet(boolean value) {
|
|
|
9968 |
if (!value) {
|
|
|
9969 |
this.success = null;
|
|
|
9970 |
}
|
|
|
9971 |
}
|
|
|
9972 |
|
|
|
9973 |
public WarehouseServiceException getWex() {
|
|
|
9974 |
return this.wex;
|
|
|
9975 |
}
|
|
|
9976 |
|
|
|
9977 |
public void setWex(WarehouseServiceException wex) {
|
|
|
9978 |
this.wex = wex;
|
|
|
9979 |
}
|
|
|
9980 |
|
|
|
9981 |
public void unsetWex() {
|
|
|
9982 |
this.wex = null;
|
|
|
9983 |
}
|
|
|
9984 |
|
|
|
9985 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
9986 |
public boolean isSetWex() {
|
|
|
9987 |
return this.wex != null;
|
|
|
9988 |
}
|
|
|
9989 |
|
|
|
9990 |
public void setWexIsSet(boolean value) {
|
|
|
9991 |
if (!value) {
|
|
|
9992 |
this.wex = null;
|
|
|
9993 |
}
|
|
|
9994 |
}
|
|
|
9995 |
|
|
|
9996 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9997 |
switch (field) {
|
|
|
9998 |
case SUCCESS:
|
|
|
9999 |
if (value == null) {
|
|
|
10000 |
unsetSuccess();
|
|
|
10001 |
} else {
|
|
|
10002 |
setSuccess((InventoryItem)value);
|
|
|
10003 |
}
|
|
|
10004 |
break;
|
|
|
10005 |
|
|
|
10006 |
case WEX:
|
|
|
10007 |
if (value == null) {
|
|
|
10008 |
unsetWex();
|
|
|
10009 |
} else {
|
|
|
10010 |
setWex((WarehouseServiceException)value);
|
|
|
10011 |
}
|
|
|
10012 |
break;
|
|
|
10013 |
|
|
|
10014 |
}
|
|
|
10015 |
}
|
|
|
10016 |
|
|
|
10017 |
public Object getFieldValue(_Fields field) {
|
|
|
10018 |
switch (field) {
|
|
|
10019 |
case SUCCESS:
|
|
|
10020 |
return getSuccess();
|
|
|
10021 |
|
|
|
10022 |
case WEX:
|
|
|
10023 |
return getWex();
|
|
|
10024 |
|
|
|
10025 |
}
|
|
|
10026 |
throw new IllegalStateException();
|
|
|
10027 |
}
|
|
|
10028 |
|
|
|
10029 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10030 |
public boolean isSet(_Fields field) {
|
|
|
10031 |
if (field == null) {
|
|
|
10032 |
throw new IllegalArgumentException();
|
|
|
10033 |
}
|
|
|
10034 |
|
|
|
10035 |
switch (field) {
|
|
|
10036 |
case SUCCESS:
|
|
|
10037 |
return isSetSuccess();
|
|
|
10038 |
case WEX:
|
|
|
10039 |
return isSetWex();
|
|
|
10040 |
}
|
|
|
10041 |
throw new IllegalStateException();
|
|
|
10042 |
}
|
|
|
10043 |
|
|
|
10044 |
@Override
|
|
|
10045 |
public boolean equals(Object that) {
|
|
|
10046 |
if (that == null)
|
|
|
10047 |
return false;
|
|
|
10048 |
if (that instanceof getInventoryItemFromId_result)
|
|
|
10049 |
return this.equals((getInventoryItemFromId_result)that);
|
|
|
10050 |
return false;
|
|
|
10051 |
}
|
|
|
10052 |
|
|
|
10053 |
public boolean equals(getInventoryItemFromId_result that) {
|
|
|
10054 |
if (that == null)
|
|
|
10055 |
return false;
|
|
|
10056 |
|
|
|
10057 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
10058 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
10059 |
if (this_present_success || that_present_success) {
|
|
|
10060 |
if (!(this_present_success && that_present_success))
|
|
|
10061 |
return false;
|
|
|
10062 |
if (!this.success.equals(that.success))
|
|
|
10063 |
return false;
|
|
|
10064 |
}
|
|
|
10065 |
|
|
|
10066 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
10067 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
10068 |
if (this_present_wex || that_present_wex) {
|
|
|
10069 |
if (!(this_present_wex && that_present_wex))
|
|
|
10070 |
return false;
|
|
|
10071 |
if (!this.wex.equals(that.wex))
|
|
|
10072 |
return false;
|
|
|
10073 |
}
|
|
|
10074 |
|
|
|
10075 |
return true;
|
|
|
10076 |
}
|
|
|
10077 |
|
|
|
10078 |
@Override
|
|
|
10079 |
public int hashCode() {
|
|
|
10080 |
return 0;
|
|
|
10081 |
}
|
|
|
10082 |
|
|
|
10083 |
public int compareTo(getInventoryItemFromId_result other) {
|
|
|
10084 |
if (!getClass().equals(other.getClass())) {
|
|
|
10085 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10086 |
}
|
|
|
10087 |
|
|
|
10088 |
int lastComparison = 0;
|
|
|
10089 |
getInventoryItemFromId_result typedOther = (getInventoryItemFromId_result)other;
|
|
|
10090 |
|
|
|
10091 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
10092 |
if (lastComparison != 0) {
|
|
|
10093 |
return lastComparison;
|
|
|
10094 |
}
|
|
|
10095 |
if (isSetSuccess()) {
|
|
|
10096 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
10097 |
if (lastComparison != 0) {
|
|
|
10098 |
return lastComparison;
|
|
|
10099 |
}
|
|
|
10100 |
}
|
|
|
10101 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
10102 |
if (lastComparison != 0) {
|
|
|
10103 |
return lastComparison;
|
|
|
10104 |
}
|
|
|
10105 |
if (isSetWex()) {
|
|
|
10106 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
10107 |
if (lastComparison != 0) {
|
|
|
10108 |
return lastComparison;
|
|
|
10109 |
}
|
|
|
10110 |
}
|
|
|
10111 |
return 0;
|
|
|
10112 |
}
|
|
|
10113 |
|
|
|
10114 |
public _Fields fieldForId(int fieldId) {
|
|
|
10115 |
return _Fields.findByThriftId(fieldId);
|
|
|
10116 |
}
|
|
|
10117 |
|
|
|
10118 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10119 |
org.apache.thrift.protocol.TField field;
|
|
|
10120 |
iprot.readStructBegin();
|
|
|
10121 |
while (true)
|
|
|
10122 |
{
|
|
|
10123 |
field = iprot.readFieldBegin();
|
|
|
10124 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10125 |
break;
|
|
|
10126 |
}
|
|
|
10127 |
switch (field.id) {
|
|
|
10128 |
case 0: // SUCCESS
|
|
|
10129 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
10130 |
this.success = new InventoryItem();
|
|
|
10131 |
this.success.read(iprot);
|
|
|
10132 |
} else {
|
|
|
10133 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10134 |
}
|
|
|
10135 |
break;
|
|
|
10136 |
case 1: // WEX
|
|
|
10137 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
10138 |
this.wex = new WarehouseServiceException();
|
|
|
10139 |
this.wex.read(iprot);
|
|
|
10140 |
} else {
|
|
|
10141 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10142 |
}
|
|
|
10143 |
break;
|
|
|
10144 |
default:
|
|
|
10145 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10146 |
}
|
|
|
10147 |
iprot.readFieldEnd();
|
|
|
10148 |
}
|
|
|
10149 |
iprot.readStructEnd();
|
|
|
10150 |
validate();
|
|
|
10151 |
}
|
|
|
10152 |
|
|
|
10153 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10154 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10155 |
|
|
|
10156 |
if (this.isSetSuccess()) {
|
|
|
10157 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
10158 |
this.success.write(oprot);
|
|
|
10159 |
oprot.writeFieldEnd();
|
|
|
10160 |
} else if (this.isSetWex()) {
|
|
|
10161 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
10162 |
this.wex.write(oprot);
|
|
|
10163 |
oprot.writeFieldEnd();
|
|
|
10164 |
}
|
|
|
10165 |
oprot.writeFieldStop();
|
|
|
10166 |
oprot.writeStructEnd();
|
|
|
10167 |
}
|
|
|
10168 |
|
|
|
10169 |
@Override
|
|
|
10170 |
public String toString() {
|
|
|
10171 |
StringBuilder sb = new StringBuilder("getInventoryItemFromId_result(");
|
|
|
10172 |
boolean first = true;
|
|
|
10173 |
|
|
|
10174 |
sb.append("success:");
|
|
|
10175 |
if (this.success == null) {
|
|
|
10176 |
sb.append("null");
|
|
|
10177 |
} else {
|
|
|
10178 |
sb.append(this.success);
|
|
|
10179 |
}
|
|
|
10180 |
first = false;
|
|
|
10181 |
if (!first) sb.append(", ");
|
|
|
10182 |
sb.append("wex:");
|
|
|
10183 |
if (this.wex == null) {
|
|
|
10184 |
sb.append("null");
|
|
|
10185 |
} else {
|
|
|
10186 |
sb.append(this.wex);
|
|
|
10187 |
}
|
|
|
10188 |
first = false;
|
|
|
10189 |
sb.append(")");
|
|
|
10190 |
return sb.toString();
|
|
|
10191 |
}
|
|
|
10192 |
|
|
|
10193 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10194 |
// check for required fields
|
|
|
10195 |
}
|
|
|
10196 |
|
|
|
10197 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10198 |
try {
|
|
|
10199 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10200 |
} catch (org.apache.thrift.TException te) {
|
|
|
10201 |
throw new java.io.IOException(te);
|
|
|
10202 |
}
|
|
|
10203 |
}
|
|
|
10204 |
|
|
|
10205 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10206 |
try {
|
|
|
10207 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10208 |
} catch (org.apache.thrift.TException te) {
|
|
|
10209 |
throw new java.io.IOException(te);
|
|
|
10210 |
}
|
|
|
10211 |
}
|
|
|
10212 |
|
|
|
10213 |
}
|
|
|
10214 |
|
| 5372 |
mandeep.dh |
10215 |
public static class getPurchaseScans_args implements org.apache.thrift.TBase<getPurchaseScans_args, getPurchaseScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
10216 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_args");
|
|
|
10217 |
|
|
|
10218 |
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);
|
|
|
10219 |
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);
|
|
|
10220 |
|
|
|
10221 |
private long startDate; // required
|
|
|
10222 |
private long endDate; // required
|
|
|
10223 |
|
|
|
10224 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10225 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10226 |
START_DATE((short)1, "startDate"),
|
|
|
10227 |
END_DATE((short)2, "endDate");
|
|
|
10228 |
|
|
|
10229 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10230 |
|
|
|
10231 |
static {
|
|
|
10232 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10233 |
byName.put(field.getFieldName(), field);
|
|
|
10234 |
}
|
|
|
10235 |
}
|
|
|
10236 |
|
|
|
10237 |
/**
|
|
|
10238 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10239 |
*/
|
|
|
10240 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10241 |
switch(fieldId) {
|
|
|
10242 |
case 1: // START_DATE
|
|
|
10243 |
return START_DATE;
|
|
|
10244 |
case 2: // END_DATE
|
|
|
10245 |
return END_DATE;
|
|
|
10246 |
default:
|
|
|
10247 |
return null;
|
|
|
10248 |
}
|
|
|
10249 |
}
|
|
|
10250 |
|
|
|
10251 |
/**
|
|
|
10252 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10253 |
* if it is not found.
|
|
|
10254 |
*/
|
|
|
10255 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10256 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10257 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10258 |
return fields;
|
|
|
10259 |
}
|
|
|
10260 |
|
|
|
10261 |
/**
|
|
|
10262 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10263 |
*/
|
|
|
10264 |
public static _Fields findByName(String name) {
|
|
|
10265 |
return byName.get(name);
|
|
|
10266 |
}
|
|
|
10267 |
|
|
|
10268 |
private final short _thriftId;
|
|
|
10269 |
private final String _fieldName;
|
|
|
10270 |
|
|
|
10271 |
_Fields(short thriftId, String fieldName) {
|
|
|
10272 |
_thriftId = thriftId;
|
|
|
10273 |
_fieldName = fieldName;
|
|
|
10274 |
}
|
|
|
10275 |
|
|
|
10276 |
public short getThriftFieldId() {
|
|
|
10277 |
return _thriftId;
|
|
|
10278 |
}
|
|
|
10279 |
|
|
|
10280 |
public String getFieldName() {
|
|
|
10281 |
return _fieldName;
|
|
|
10282 |
}
|
|
|
10283 |
}
|
|
|
10284 |
|
|
|
10285 |
// isset id assignments
|
|
|
10286 |
private static final int __STARTDATE_ISSET_ID = 0;
|
|
|
10287 |
private static final int __ENDDATE_ISSET_ID = 1;
|
|
|
10288 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
10289 |
|
|
|
10290 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10291 |
static {
|
|
|
10292 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10293 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10294 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
10295 |
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10296 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
10297 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10298 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_args.class, metaDataMap);
|
|
|
10299 |
}
|
|
|
10300 |
|
|
|
10301 |
public getPurchaseScans_args() {
|
|
|
10302 |
}
|
|
|
10303 |
|
|
|
10304 |
public getPurchaseScans_args(
|
|
|
10305 |
long startDate,
|
|
|
10306 |
long endDate)
|
|
|
10307 |
{
|
|
|
10308 |
this();
|
|
|
10309 |
this.startDate = startDate;
|
|
|
10310 |
setStartDateIsSet(true);
|
|
|
10311 |
this.endDate = endDate;
|
|
|
10312 |
setEndDateIsSet(true);
|
|
|
10313 |
}
|
|
|
10314 |
|
|
|
10315 |
/**
|
|
|
10316 |
* Performs a deep copy on <i>other</i>.
|
|
|
10317 |
*/
|
|
|
10318 |
public getPurchaseScans_args(getPurchaseScans_args other) {
|
|
|
10319 |
__isset_bit_vector.clear();
|
|
|
10320 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
10321 |
this.startDate = other.startDate;
|
|
|
10322 |
this.endDate = other.endDate;
|
|
|
10323 |
}
|
|
|
10324 |
|
|
|
10325 |
public getPurchaseScans_args deepCopy() {
|
|
|
10326 |
return new getPurchaseScans_args(this);
|
|
|
10327 |
}
|
|
|
10328 |
|
|
|
10329 |
@Override
|
|
|
10330 |
public void clear() {
|
|
|
10331 |
setStartDateIsSet(false);
|
|
|
10332 |
this.startDate = 0;
|
|
|
10333 |
setEndDateIsSet(false);
|
|
|
10334 |
this.endDate = 0;
|
|
|
10335 |
}
|
|
|
10336 |
|
|
|
10337 |
public long getStartDate() {
|
|
|
10338 |
return this.startDate;
|
|
|
10339 |
}
|
|
|
10340 |
|
|
|
10341 |
public void setStartDate(long startDate) {
|
|
|
10342 |
this.startDate = startDate;
|
|
|
10343 |
setStartDateIsSet(true);
|
|
|
10344 |
}
|
|
|
10345 |
|
|
|
10346 |
public void unsetStartDate() {
|
|
|
10347 |
__isset_bit_vector.clear(__STARTDATE_ISSET_ID);
|
|
|
10348 |
}
|
|
|
10349 |
|
|
|
10350 |
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
|
|
|
10351 |
public boolean isSetStartDate() {
|
|
|
10352 |
return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
|
|
|
10353 |
}
|
|
|
10354 |
|
|
|
10355 |
public void setStartDateIsSet(boolean value) {
|
|
|
10356 |
__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
|
|
|
10357 |
}
|
|
|
10358 |
|
|
|
10359 |
public long getEndDate() {
|
|
|
10360 |
return this.endDate;
|
|
|
10361 |
}
|
|
|
10362 |
|
|
|
10363 |
public void setEndDate(long endDate) {
|
|
|
10364 |
this.endDate = endDate;
|
|
|
10365 |
setEndDateIsSet(true);
|
|
|
10366 |
}
|
|
|
10367 |
|
|
|
10368 |
public void unsetEndDate() {
|
|
|
10369 |
__isset_bit_vector.clear(__ENDDATE_ISSET_ID);
|
|
|
10370 |
}
|
|
|
10371 |
|
|
|
10372 |
/** Returns true if field endDate is set (has been assigned a value) and false otherwise */
|
|
|
10373 |
public boolean isSetEndDate() {
|
|
|
10374 |
return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
|
|
|
10375 |
}
|
|
|
10376 |
|
|
|
10377 |
public void setEndDateIsSet(boolean value) {
|
|
|
10378 |
__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
|
|
|
10379 |
}
|
|
|
10380 |
|
|
|
10381 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10382 |
switch (field) {
|
|
|
10383 |
case START_DATE:
|
|
|
10384 |
if (value == null) {
|
|
|
10385 |
unsetStartDate();
|
|
|
10386 |
} else {
|
|
|
10387 |
setStartDate((Long)value);
|
|
|
10388 |
}
|
|
|
10389 |
break;
|
|
|
10390 |
|
|
|
10391 |
case END_DATE:
|
|
|
10392 |
if (value == null) {
|
|
|
10393 |
unsetEndDate();
|
|
|
10394 |
} else {
|
|
|
10395 |
setEndDate((Long)value);
|
|
|
10396 |
}
|
|
|
10397 |
break;
|
|
|
10398 |
|
|
|
10399 |
}
|
|
|
10400 |
}
|
|
|
10401 |
|
|
|
10402 |
public Object getFieldValue(_Fields field) {
|
|
|
10403 |
switch (field) {
|
|
|
10404 |
case START_DATE:
|
|
|
10405 |
return Long.valueOf(getStartDate());
|
|
|
10406 |
|
|
|
10407 |
case END_DATE:
|
|
|
10408 |
return Long.valueOf(getEndDate());
|
|
|
10409 |
|
|
|
10410 |
}
|
|
|
10411 |
throw new IllegalStateException();
|
|
|
10412 |
}
|
|
|
10413 |
|
|
|
10414 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10415 |
public boolean isSet(_Fields field) {
|
|
|
10416 |
if (field == null) {
|
|
|
10417 |
throw new IllegalArgumentException();
|
|
|
10418 |
}
|
|
|
10419 |
|
|
|
10420 |
switch (field) {
|
|
|
10421 |
case START_DATE:
|
|
|
10422 |
return isSetStartDate();
|
|
|
10423 |
case END_DATE:
|
|
|
10424 |
return isSetEndDate();
|
|
|
10425 |
}
|
|
|
10426 |
throw new IllegalStateException();
|
|
|
10427 |
}
|
|
|
10428 |
|
|
|
10429 |
@Override
|
|
|
10430 |
public boolean equals(Object that) {
|
|
|
10431 |
if (that == null)
|
|
|
10432 |
return false;
|
|
|
10433 |
if (that instanceof getPurchaseScans_args)
|
|
|
10434 |
return this.equals((getPurchaseScans_args)that);
|
|
|
10435 |
return false;
|
|
|
10436 |
}
|
|
|
10437 |
|
|
|
10438 |
public boolean equals(getPurchaseScans_args that) {
|
|
|
10439 |
if (that == null)
|
|
|
10440 |
return false;
|
|
|
10441 |
|
|
|
10442 |
boolean this_present_startDate = true;
|
|
|
10443 |
boolean that_present_startDate = true;
|
|
|
10444 |
if (this_present_startDate || that_present_startDate) {
|
|
|
10445 |
if (!(this_present_startDate && that_present_startDate))
|
|
|
10446 |
return false;
|
|
|
10447 |
if (this.startDate != that.startDate)
|
|
|
10448 |
return false;
|
|
|
10449 |
}
|
|
|
10450 |
|
|
|
10451 |
boolean this_present_endDate = true;
|
|
|
10452 |
boolean that_present_endDate = true;
|
|
|
10453 |
if (this_present_endDate || that_present_endDate) {
|
|
|
10454 |
if (!(this_present_endDate && that_present_endDate))
|
|
|
10455 |
return false;
|
|
|
10456 |
if (this.endDate != that.endDate)
|
|
|
10457 |
return false;
|
|
|
10458 |
}
|
|
|
10459 |
|
|
|
10460 |
return true;
|
|
|
10461 |
}
|
|
|
10462 |
|
|
|
10463 |
@Override
|
|
|
10464 |
public int hashCode() {
|
|
|
10465 |
return 0;
|
|
|
10466 |
}
|
|
|
10467 |
|
|
|
10468 |
public int compareTo(getPurchaseScans_args other) {
|
|
|
10469 |
if (!getClass().equals(other.getClass())) {
|
|
|
10470 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10471 |
}
|
|
|
10472 |
|
|
|
10473 |
int lastComparison = 0;
|
|
|
10474 |
getPurchaseScans_args typedOther = (getPurchaseScans_args)other;
|
|
|
10475 |
|
|
|
10476 |
lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
|
|
|
10477 |
if (lastComparison != 0) {
|
|
|
10478 |
return lastComparison;
|
|
|
10479 |
}
|
|
|
10480 |
if (isSetStartDate()) {
|
|
|
10481 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
|
|
|
10482 |
if (lastComparison != 0) {
|
|
|
10483 |
return lastComparison;
|
|
|
10484 |
}
|
|
|
10485 |
}
|
|
|
10486 |
lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
|
|
|
10487 |
if (lastComparison != 0) {
|
|
|
10488 |
return lastComparison;
|
|
|
10489 |
}
|
|
|
10490 |
if (isSetEndDate()) {
|
|
|
10491 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
|
|
|
10492 |
if (lastComparison != 0) {
|
|
|
10493 |
return lastComparison;
|
|
|
10494 |
}
|
|
|
10495 |
}
|
|
|
10496 |
return 0;
|
|
|
10497 |
}
|
|
|
10498 |
|
|
|
10499 |
public _Fields fieldForId(int fieldId) {
|
|
|
10500 |
return _Fields.findByThriftId(fieldId);
|
|
|
10501 |
}
|
|
|
10502 |
|
|
|
10503 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10504 |
org.apache.thrift.protocol.TField field;
|
|
|
10505 |
iprot.readStructBegin();
|
|
|
10506 |
while (true)
|
|
|
10507 |
{
|
|
|
10508 |
field = iprot.readFieldBegin();
|
|
|
10509 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10510 |
break;
|
|
|
10511 |
}
|
|
|
10512 |
switch (field.id) {
|
|
|
10513 |
case 1: // START_DATE
|
|
|
10514 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10515 |
this.startDate = iprot.readI64();
|
|
|
10516 |
setStartDateIsSet(true);
|
|
|
10517 |
} else {
|
|
|
10518 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10519 |
}
|
|
|
10520 |
break;
|
|
|
10521 |
case 2: // END_DATE
|
|
|
10522 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10523 |
this.endDate = iprot.readI64();
|
|
|
10524 |
setEndDateIsSet(true);
|
|
|
10525 |
} else {
|
|
|
10526 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10527 |
}
|
|
|
10528 |
break;
|
|
|
10529 |
default:
|
|
|
10530 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10531 |
}
|
|
|
10532 |
iprot.readFieldEnd();
|
|
|
10533 |
}
|
|
|
10534 |
iprot.readStructEnd();
|
|
|
10535 |
validate();
|
|
|
10536 |
}
|
|
|
10537 |
|
|
|
10538 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10539 |
validate();
|
|
|
10540 |
|
|
|
10541 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10542 |
oprot.writeFieldBegin(START_DATE_FIELD_DESC);
|
|
|
10543 |
oprot.writeI64(this.startDate);
|
|
|
10544 |
oprot.writeFieldEnd();
|
|
|
10545 |
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
|
|
|
10546 |
oprot.writeI64(this.endDate);
|
|
|
10547 |
oprot.writeFieldEnd();
|
|
|
10548 |
oprot.writeFieldStop();
|
|
|
10549 |
oprot.writeStructEnd();
|
|
|
10550 |
}
|
|
|
10551 |
|
|
|
10552 |
@Override
|
|
|
10553 |
public String toString() {
|
|
|
10554 |
StringBuilder sb = new StringBuilder("getPurchaseScans_args(");
|
|
|
10555 |
boolean first = true;
|
|
|
10556 |
|
|
|
10557 |
sb.append("startDate:");
|
|
|
10558 |
sb.append(this.startDate);
|
|
|
10559 |
first = false;
|
|
|
10560 |
if (!first) sb.append(", ");
|
|
|
10561 |
sb.append("endDate:");
|
|
|
10562 |
sb.append(this.endDate);
|
|
|
10563 |
first = false;
|
|
|
10564 |
sb.append(")");
|
|
|
10565 |
return sb.toString();
|
|
|
10566 |
}
|
|
|
10567 |
|
|
|
10568 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10569 |
// check for required fields
|
|
|
10570 |
}
|
|
|
10571 |
|
|
|
10572 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10573 |
try {
|
|
|
10574 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10575 |
} catch (org.apache.thrift.TException te) {
|
|
|
10576 |
throw new java.io.IOException(te);
|
|
|
10577 |
}
|
|
|
10578 |
}
|
|
|
10579 |
|
|
|
10580 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10581 |
try {
|
|
|
10582 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
10583 |
__isset_bit_vector = new BitSet(1);
|
|
|
10584 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10585 |
} catch (org.apache.thrift.TException te) {
|
|
|
10586 |
throw new java.io.IOException(te);
|
|
|
10587 |
}
|
|
|
10588 |
}
|
|
|
10589 |
|
|
|
10590 |
}
|
|
|
10591 |
|
|
|
10592 |
public static class getPurchaseScans_result implements org.apache.thrift.TBase<getPurchaseScans_result, getPurchaseScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
10593 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_result");
|
|
|
10594 |
|
|
|
10595 |
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);
|
|
|
10596 |
|
|
|
10597 |
private List<DetailedPurchaseScan> success; // required
|
|
|
10598 |
|
|
|
10599 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10600 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10601 |
SUCCESS((short)0, "success");
|
|
|
10602 |
|
|
|
10603 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10604 |
|
|
|
10605 |
static {
|
|
|
10606 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10607 |
byName.put(field.getFieldName(), field);
|
|
|
10608 |
}
|
|
|
10609 |
}
|
|
|
10610 |
|
|
|
10611 |
/**
|
|
|
10612 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10613 |
*/
|
|
|
10614 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10615 |
switch(fieldId) {
|
|
|
10616 |
case 0: // SUCCESS
|
|
|
10617 |
return SUCCESS;
|
|
|
10618 |
default:
|
|
|
10619 |
return null;
|
|
|
10620 |
}
|
|
|
10621 |
}
|
|
|
10622 |
|
|
|
10623 |
/**
|
|
|
10624 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10625 |
* if it is not found.
|
|
|
10626 |
*/
|
|
|
10627 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10628 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10629 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10630 |
return fields;
|
|
|
10631 |
}
|
|
|
10632 |
|
|
|
10633 |
/**
|
|
|
10634 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10635 |
*/
|
|
|
10636 |
public static _Fields findByName(String name) {
|
|
|
10637 |
return byName.get(name);
|
|
|
10638 |
}
|
|
|
10639 |
|
|
|
10640 |
private final short _thriftId;
|
|
|
10641 |
private final String _fieldName;
|
|
|
10642 |
|
|
|
10643 |
_Fields(short thriftId, String fieldName) {
|
|
|
10644 |
_thriftId = thriftId;
|
|
|
10645 |
_fieldName = fieldName;
|
|
|
10646 |
}
|
|
|
10647 |
|
|
|
10648 |
public short getThriftFieldId() {
|
|
|
10649 |
return _thriftId;
|
|
|
10650 |
}
|
|
|
10651 |
|
|
|
10652 |
public String getFieldName() {
|
|
|
10653 |
return _fieldName;
|
|
|
10654 |
}
|
|
|
10655 |
}
|
|
|
10656 |
|
|
|
10657 |
// isset id assignments
|
|
|
10658 |
|
|
|
10659 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10660 |
static {
|
|
|
10661 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10662 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10663 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
10664 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DetailedPurchaseScan.class))));
|
|
|
10665 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10666 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_result.class, metaDataMap);
|
|
|
10667 |
}
|
|
|
10668 |
|
|
|
10669 |
public getPurchaseScans_result() {
|
|
|
10670 |
}
|
|
|
10671 |
|
|
|
10672 |
public getPurchaseScans_result(
|
|
|
10673 |
List<DetailedPurchaseScan> success)
|
|
|
10674 |
{
|
|
|
10675 |
this();
|
|
|
10676 |
this.success = success;
|
|
|
10677 |
}
|
|
|
10678 |
|
|
|
10679 |
/**
|
|
|
10680 |
* Performs a deep copy on <i>other</i>.
|
|
|
10681 |
*/
|
|
|
10682 |
public getPurchaseScans_result(getPurchaseScans_result other) {
|
|
|
10683 |
if (other.isSetSuccess()) {
|
|
|
10684 |
List<DetailedPurchaseScan> __this__success = new ArrayList<DetailedPurchaseScan>();
|
|
|
10685 |
for (DetailedPurchaseScan other_element : other.success) {
|
|
|
10686 |
__this__success.add(new DetailedPurchaseScan(other_element));
|
|
|
10687 |
}
|
|
|
10688 |
this.success = __this__success;
|
|
|
10689 |
}
|
|
|
10690 |
}
|
|
|
10691 |
|
|
|
10692 |
public getPurchaseScans_result deepCopy() {
|
|
|
10693 |
return new getPurchaseScans_result(this);
|
|
|
10694 |
}
|
|
|
10695 |
|
|
|
10696 |
@Override
|
|
|
10697 |
public void clear() {
|
|
|
10698 |
this.success = null;
|
|
|
10699 |
}
|
|
|
10700 |
|
|
|
10701 |
public int getSuccessSize() {
|
|
|
10702 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
10703 |
}
|
|
|
10704 |
|
|
|
10705 |
public java.util.Iterator<DetailedPurchaseScan> getSuccessIterator() {
|
|
|
10706 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
10707 |
}
|
|
|
10708 |
|
|
|
10709 |
public void addToSuccess(DetailedPurchaseScan elem) {
|
|
|
10710 |
if (this.success == null) {
|
|
|
10711 |
this.success = new ArrayList<DetailedPurchaseScan>();
|
|
|
10712 |
}
|
|
|
10713 |
this.success.add(elem);
|
|
|
10714 |
}
|
|
|
10715 |
|
|
|
10716 |
public List<DetailedPurchaseScan> getSuccess() {
|
|
|
10717 |
return this.success;
|
|
|
10718 |
}
|
|
|
10719 |
|
|
|
10720 |
public void setSuccess(List<DetailedPurchaseScan> success) {
|
|
|
10721 |
this.success = success;
|
|
|
10722 |
}
|
|
|
10723 |
|
|
|
10724 |
public void unsetSuccess() {
|
|
|
10725 |
this.success = null;
|
|
|
10726 |
}
|
|
|
10727 |
|
|
|
10728 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
10729 |
public boolean isSetSuccess() {
|
|
|
10730 |
return this.success != null;
|
|
|
10731 |
}
|
|
|
10732 |
|
|
|
10733 |
public void setSuccessIsSet(boolean value) {
|
|
|
10734 |
if (!value) {
|
|
|
10735 |
this.success = null;
|
|
|
10736 |
}
|
|
|
10737 |
}
|
|
|
10738 |
|
|
|
10739 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10740 |
switch (field) {
|
|
|
10741 |
case SUCCESS:
|
|
|
10742 |
if (value == null) {
|
|
|
10743 |
unsetSuccess();
|
|
|
10744 |
} else {
|
|
|
10745 |
setSuccess((List<DetailedPurchaseScan>)value);
|
|
|
10746 |
}
|
|
|
10747 |
break;
|
|
|
10748 |
|
|
|
10749 |
}
|
|
|
10750 |
}
|
|
|
10751 |
|
|
|
10752 |
public Object getFieldValue(_Fields field) {
|
|
|
10753 |
switch (field) {
|
|
|
10754 |
case SUCCESS:
|
|
|
10755 |
return getSuccess();
|
|
|
10756 |
|
|
|
10757 |
}
|
|
|
10758 |
throw new IllegalStateException();
|
|
|
10759 |
}
|
|
|
10760 |
|
|
|
10761 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10762 |
public boolean isSet(_Fields field) {
|
|
|
10763 |
if (field == null) {
|
|
|
10764 |
throw new IllegalArgumentException();
|
|
|
10765 |
}
|
|
|
10766 |
|
|
|
10767 |
switch (field) {
|
|
|
10768 |
case SUCCESS:
|
|
|
10769 |
return isSetSuccess();
|
|
|
10770 |
}
|
|
|
10771 |
throw new IllegalStateException();
|
|
|
10772 |
}
|
|
|
10773 |
|
|
|
10774 |
@Override
|
|
|
10775 |
public boolean equals(Object that) {
|
|
|
10776 |
if (that == null)
|
|
|
10777 |
return false;
|
|
|
10778 |
if (that instanceof getPurchaseScans_result)
|
|
|
10779 |
return this.equals((getPurchaseScans_result)that);
|
|
|
10780 |
return false;
|
|
|
10781 |
}
|
|
|
10782 |
|
|
|
10783 |
public boolean equals(getPurchaseScans_result that) {
|
|
|
10784 |
if (that == null)
|
|
|
10785 |
return false;
|
|
|
10786 |
|
|
|
10787 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
10788 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
10789 |
if (this_present_success || that_present_success) {
|
|
|
10790 |
if (!(this_present_success && that_present_success))
|
|
|
10791 |
return false;
|
|
|
10792 |
if (!this.success.equals(that.success))
|
|
|
10793 |
return false;
|
|
|
10794 |
}
|
|
|
10795 |
|
|
|
10796 |
return true;
|
|
|
10797 |
}
|
|
|
10798 |
|
|
|
10799 |
@Override
|
|
|
10800 |
public int hashCode() {
|
|
|
10801 |
return 0;
|
|
|
10802 |
}
|
|
|
10803 |
|
|
|
10804 |
public int compareTo(getPurchaseScans_result other) {
|
|
|
10805 |
if (!getClass().equals(other.getClass())) {
|
|
|
10806 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10807 |
}
|
|
|
10808 |
|
|
|
10809 |
int lastComparison = 0;
|
|
|
10810 |
getPurchaseScans_result typedOther = (getPurchaseScans_result)other;
|
|
|
10811 |
|
|
|
10812 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
10813 |
if (lastComparison != 0) {
|
|
|
10814 |
return lastComparison;
|
|
|
10815 |
}
|
|
|
10816 |
if (isSetSuccess()) {
|
|
|
10817 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
10818 |
if (lastComparison != 0) {
|
|
|
10819 |
return lastComparison;
|
|
|
10820 |
}
|
|
|
10821 |
}
|
|
|
10822 |
return 0;
|
|
|
10823 |
}
|
|
|
10824 |
|
|
|
10825 |
public _Fields fieldForId(int fieldId) {
|
|
|
10826 |
return _Fields.findByThriftId(fieldId);
|
|
|
10827 |
}
|
|
|
10828 |
|
|
|
10829 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10830 |
org.apache.thrift.protocol.TField field;
|
|
|
10831 |
iprot.readStructBegin();
|
|
|
10832 |
while (true)
|
|
|
10833 |
{
|
|
|
10834 |
field = iprot.readFieldBegin();
|
|
|
10835 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10836 |
break;
|
|
|
10837 |
}
|
|
|
10838 |
switch (field.id) {
|
|
|
10839 |
case 0: // SUCCESS
|
|
|
10840 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
10841 |
{
|
|
|
10842 |
org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
|
|
|
10843 |
this.success = new ArrayList<DetailedPurchaseScan>(_list12.size);
|
|
|
10844 |
for (int _i13 = 0; _i13 < _list12.size; ++_i13)
|
|
|
10845 |
{
|
|
|
10846 |
DetailedPurchaseScan _elem14; // required
|
|
|
10847 |
_elem14 = new DetailedPurchaseScan();
|
|
|
10848 |
_elem14.read(iprot);
|
|
|
10849 |
this.success.add(_elem14);
|
|
|
10850 |
}
|
|
|
10851 |
iprot.readListEnd();
|
|
|
10852 |
}
|
|
|
10853 |
} else {
|
|
|
10854 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10855 |
}
|
|
|
10856 |
break;
|
|
|
10857 |
default:
|
|
|
10858 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10859 |
}
|
|
|
10860 |
iprot.readFieldEnd();
|
|
|
10861 |
}
|
|
|
10862 |
iprot.readStructEnd();
|
|
|
10863 |
validate();
|
|
|
10864 |
}
|
|
|
10865 |
|
|
|
10866 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10867 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10868 |
|
|
|
10869 |
if (this.isSetSuccess()) {
|
|
|
10870 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
10871 |
{
|
|
|
10872 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
10873 |
for (DetailedPurchaseScan _iter15 : this.success)
|
|
|
10874 |
{
|
|
|
10875 |
_iter15.write(oprot);
|
|
|
10876 |
}
|
|
|
10877 |
oprot.writeListEnd();
|
|
|
10878 |
}
|
|
|
10879 |
oprot.writeFieldEnd();
|
|
|
10880 |
}
|
|
|
10881 |
oprot.writeFieldStop();
|
|
|
10882 |
oprot.writeStructEnd();
|
|
|
10883 |
}
|
|
|
10884 |
|
|
|
10885 |
@Override
|
|
|
10886 |
public String toString() {
|
|
|
10887 |
StringBuilder sb = new StringBuilder("getPurchaseScans_result(");
|
|
|
10888 |
boolean first = true;
|
|
|
10889 |
|
|
|
10890 |
sb.append("success:");
|
|
|
10891 |
if (this.success == null) {
|
|
|
10892 |
sb.append("null");
|
|
|
10893 |
} else {
|
|
|
10894 |
sb.append(this.success);
|
|
|
10895 |
}
|
|
|
10896 |
first = false;
|
|
|
10897 |
sb.append(")");
|
|
|
10898 |
return sb.toString();
|
|
|
10899 |
}
|
|
|
10900 |
|
|
|
10901 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10902 |
// check for required fields
|
|
|
10903 |
}
|
|
|
10904 |
|
|
|
10905 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10906 |
try {
|
|
|
10907 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10908 |
} catch (org.apache.thrift.TException te) {
|
|
|
10909 |
throw new java.io.IOException(te);
|
|
|
10910 |
}
|
|
|
10911 |
}
|
|
|
10912 |
|
|
|
10913 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10914 |
try {
|
|
|
10915 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10916 |
} catch (org.apache.thrift.TException te) {
|
|
|
10917 |
throw new java.io.IOException(te);
|
|
|
10918 |
}
|
|
|
10919 |
}
|
|
|
10920 |
|
|
|
10921 |
}
|
|
|
10922 |
|
| 5496 |
mandeep.dh |
10923 |
public static class fetchScansPerInvoiceNumber_args implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_args, fetchScansPerInvoiceNumber_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
10924 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_args");
|
|
|
10925 |
|
|
|
10926 |
private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
10927 |
|
|
|
10928 |
private long date; // required
|
|
|
10929 |
|
|
|
10930 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10931 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10932 |
DATE((short)1, "date");
|
|
|
10933 |
|
|
|
10934 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10935 |
|
|
|
10936 |
static {
|
|
|
10937 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10938 |
byName.put(field.getFieldName(), field);
|
|
|
10939 |
}
|
|
|
10940 |
}
|
|
|
10941 |
|
|
|
10942 |
/**
|
|
|
10943 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10944 |
*/
|
|
|
10945 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10946 |
switch(fieldId) {
|
|
|
10947 |
case 1: // DATE
|
|
|
10948 |
return DATE;
|
|
|
10949 |
default:
|
|
|
10950 |
return null;
|
|
|
10951 |
}
|
|
|
10952 |
}
|
|
|
10953 |
|
|
|
10954 |
/**
|
|
|
10955 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10956 |
* if it is not found.
|
|
|
10957 |
*/
|
|
|
10958 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10959 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10960 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10961 |
return fields;
|
|
|
10962 |
}
|
|
|
10963 |
|
|
|
10964 |
/**
|
|
|
10965 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10966 |
*/
|
|
|
10967 |
public static _Fields findByName(String name) {
|
|
|
10968 |
return byName.get(name);
|
|
|
10969 |
}
|
|
|
10970 |
|
|
|
10971 |
private final short _thriftId;
|
|
|
10972 |
private final String _fieldName;
|
|
|
10973 |
|
|
|
10974 |
_Fields(short thriftId, String fieldName) {
|
|
|
10975 |
_thriftId = thriftId;
|
|
|
10976 |
_fieldName = fieldName;
|
|
|
10977 |
}
|
|
|
10978 |
|
|
|
10979 |
public short getThriftFieldId() {
|
|
|
10980 |
return _thriftId;
|
|
|
10981 |
}
|
|
|
10982 |
|
|
|
10983 |
public String getFieldName() {
|
|
|
10984 |
return _fieldName;
|
|
|
10985 |
}
|
|
|
10986 |
}
|
|
|
10987 |
|
|
|
10988 |
// isset id assignments
|
|
|
10989 |
private static final int __DATE_ISSET_ID = 0;
|
|
|
10990 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
10991 |
|
|
|
10992 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10993 |
static {
|
|
|
10994 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10995 |
tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10996 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
10997 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10998 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_args.class, metaDataMap);
|
|
|
10999 |
}
|
|
|
11000 |
|
|
|
11001 |
public fetchScansPerInvoiceNumber_args() {
|
|
|
11002 |
}
|
|
|
11003 |
|
|
|
11004 |
public fetchScansPerInvoiceNumber_args(
|
|
|
11005 |
long date)
|
|
|
11006 |
{
|
|
|
11007 |
this();
|
|
|
11008 |
this.date = date;
|
|
|
11009 |
setDateIsSet(true);
|
|
|
11010 |
}
|
|
|
11011 |
|
|
|
11012 |
/**
|
|
|
11013 |
* Performs a deep copy on <i>other</i>.
|
|
|
11014 |
*/
|
|
|
11015 |
public fetchScansPerInvoiceNumber_args(fetchScansPerInvoiceNumber_args other) {
|
|
|
11016 |
__isset_bit_vector.clear();
|
|
|
11017 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
11018 |
this.date = other.date;
|
|
|
11019 |
}
|
|
|
11020 |
|
|
|
11021 |
public fetchScansPerInvoiceNumber_args deepCopy() {
|
|
|
11022 |
return new fetchScansPerInvoiceNumber_args(this);
|
|
|
11023 |
}
|
|
|
11024 |
|
|
|
11025 |
@Override
|
|
|
11026 |
public void clear() {
|
|
|
11027 |
setDateIsSet(false);
|
|
|
11028 |
this.date = 0;
|
|
|
11029 |
}
|
|
|
11030 |
|
|
|
11031 |
public long getDate() {
|
|
|
11032 |
return this.date;
|
|
|
11033 |
}
|
|
|
11034 |
|
|
|
11035 |
public void setDate(long date) {
|
|
|
11036 |
this.date = date;
|
|
|
11037 |
setDateIsSet(true);
|
|
|
11038 |
}
|
|
|
11039 |
|
|
|
11040 |
public void unsetDate() {
|
|
|
11041 |
__isset_bit_vector.clear(__DATE_ISSET_ID);
|
|
|
11042 |
}
|
|
|
11043 |
|
|
|
11044 |
/** Returns true if field date is set (has been assigned a value) and false otherwise */
|
|
|
11045 |
public boolean isSetDate() {
|
|
|
11046 |
return __isset_bit_vector.get(__DATE_ISSET_ID);
|
|
|
11047 |
}
|
|
|
11048 |
|
|
|
11049 |
public void setDateIsSet(boolean value) {
|
|
|
11050 |
__isset_bit_vector.set(__DATE_ISSET_ID, value);
|
|
|
11051 |
}
|
|
|
11052 |
|
|
|
11053 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11054 |
switch (field) {
|
|
|
11055 |
case DATE:
|
|
|
11056 |
if (value == null) {
|
|
|
11057 |
unsetDate();
|
|
|
11058 |
} else {
|
|
|
11059 |
setDate((Long)value);
|
|
|
11060 |
}
|
|
|
11061 |
break;
|
|
|
11062 |
|
|
|
11063 |
}
|
|
|
11064 |
}
|
|
|
11065 |
|
|
|
11066 |
public Object getFieldValue(_Fields field) {
|
|
|
11067 |
switch (field) {
|
|
|
11068 |
case DATE:
|
|
|
11069 |
return Long.valueOf(getDate());
|
|
|
11070 |
|
|
|
11071 |
}
|
|
|
11072 |
throw new IllegalStateException();
|
|
|
11073 |
}
|
|
|
11074 |
|
|
|
11075 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11076 |
public boolean isSet(_Fields field) {
|
|
|
11077 |
if (field == null) {
|
|
|
11078 |
throw new IllegalArgumentException();
|
|
|
11079 |
}
|
|
|
11080 |
|
|
|
11081 |
switch (field) {
|
|
|
11082 |
case DATE:
|
|
|
11083 |
return isSetDate();
|
|
|
11084 |
}
|
|
|
11085 |
throw new IllegalStateException();
|
|
|
11086 |
}
|
|
|
11087 |
|
|
|
11088 |
@Override
|
|
|
11089 |
public boolean equals(Object that) {
|
|
|
11090 |
if (that == null)
|
|
|
11091 |
return false;
|
|
|
11092 |
if (that instanceof fetchScansPerInvoiceNumber_args)
|
|
|
11093 |
return this.equals((fetchScansPerInvoiceNumber_args)that);
|
|
|
11094 |
return false;
|
|
|
11095 |
}
|
|
|
11096 |
|
|
|
11097 |
public boolean equals(fetchScansPerInvoiceNumber_args that) {
|
|
|
11098 |
if (that == null)
|
|
|
11099 |
return false;
|
|
|
11100 |
|
|
|
11101 |
boolean this_present_date = true;
|
|
|
11102 |
boolean that_present_date = true;
|
|
|
11103 |
if (this_present_date || that_present_date) {
|
|
|
11104 |
if (!(this_present_date && that_present_date))
|
|
|
11105 |
return false;
|
|
|
11106 |
if (this.date != that.date)
|
|
|
11107 |
return false;
|
|
|
11108 |
}
|
|
|
11109 |
|
|
|
11110 |
return true;
|
|
|
11111 |
}
|
|
|
11112 |
|
|
|
11113 |
@Override
|
|
|
11114 |
public int hashCode() {
|
|
|
11115 |
return 0;
|
|
|
11116 |
}
|
|
|
11117 |
|
|
|
11118 |
public int compareTo(fetchScansPerInvoiceNumber_args other) {
|
|
|
11119 |
if (!getClass().equals(other.getClass())) {
|
|
|
11120 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11121 |
}
|
|
|
11122 |
|
|
|
11123 |
int lastComparison = 0;
|
|
|
11124 |
fetchScansPerInvoiceNumber_args typedOther = (fetchScansPerInvoiceNumber_args)other;
|
|
|
11125 |
|
|
|
11126 |
lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
|
|
|
11127 |
if (lastComparison != 0) {
|
|
|
11128 |
return lastComparison;
|
|
|
11129 |
}
|
|
|
11130 |
if (isSetDate()) {
|
|
|
11131 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
|
|
|
11132 |
if (lastComparison != 0) {
|
|
|
11133 |
return lastComparison;
|
|
|
11134 |
}
|
|
|
11135 |
}
|
|
|
11136 |
return 0;
|
|
|
11137 |
}
|
|
|
11138 |
|
|
|
11139 |
public _Fields fieldForId(int fieldId) {
|
|
|
11140 |
return _Fields.findByThriftId(fieldId);
|
|
|
11141 |
}
|
|
|
11142 |
|
|
|
11143 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11144 |
org.apache.thrift.protocol.TField field;
|
|
|
11145 |
iprot.readStructBegin();
|
|
|
11146 |
while (true)
|
|
|
11147 |
{
|
|
|
11148 |
field = iprot.readFieldBegin();
|
|
|
11149 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11150 |
break;
|
|
|
11151 |
}
|
|
|
11152 |
switch (field.id) {
|
|
|
11153 |
case 1: // DATE
|
|
|
11154 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
11155 |
this.date = iprot.readI64();
|
|
|
11156 |
setDateIsSet(true);
|
|
|
11157 |
} else {
|
|
|
11158 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11159 |
}
|
|
|
11160 |
break;
|
|
|
11161 |
default:
|
|
|
11162 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11163 |
}
|
|
|
11164 |
iprot.readFieldEnd();
|
|
|
11165 |
}
|
|
|
11166 |
iprot.readStructEnd();
|
|
|
11167 |
validate();
|
|
|
11168 |
}
|
|
|
11169 |
|
|
|
11170 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11171 |
validate();
|
|
|
11172 |
|
|
|
11173 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11174 |
oprot.writeFieldBegin(DATE_FIELD_DESC);
|
|
|
11175 |
oprot.writeI64(this.date);
|
|
|
11176 |
oprot.writeFieldEnd();
|
|
|
11177 |
oprot.writeFieldStop();
|
|
|
11178 |
oprot.writeStructEnd();
|
|
|
11179 |
}
|
|
|
11180 |
|
|
|
11181 |
@Override
|
|
|
11182 |
public String toString() {
|
|
|
11183 |
StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_args(");
|
|
|
11184 |
boolean first = true;
|
|
|
11185 |
|
|
|
11186 |
sb.append("date:");
|
|
|
11187 |
sb.append(this.date);
|
|
|
11188 |
first = false;
|
|
|
11189 |
sb.append(")");
|
|
|
11190 |
return sb.toString();
|
|
|
11191 |
}
|
|
|
11192 |
|
|
|
11193 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11194 |
// check for required fields
|
|
|
11195 |
}
|
|
|
11196 |
|
|
|
11197 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11198 |
try {
|
|
|
11199 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11200 |
} catch (org.apache.thrift.TException te) {
|
|
|
11201 |
throw new java.io.IOException(te);
|
|
|
11202 |
}
|
|
|
11203 |
}
|
|
|
11204 |
|
|
|
11205 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11206 |
try {
|
| 5711 |
mandeep.dh |
11207 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
11208 |
__isset_bit_vector = new BitSet(1);
|
| 5496 |
mandeep.dh |
11209 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11210 |
} catch (org.apache.thrift.TException te) {
|
|
|
11211 |
throw new java.io.IOException(te);
|
|
|
11212 |
}
|
|
|
11213 |
}
|
|
|
11214 |
|
|
|
11215 |
}
|
|
|
11216 |
|
|
|
11217 |
public static class fetchScansPerInvoiceNumber_result implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_result, fetchScansPerInvoiceNumber_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
11218 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_result");
|
|
|
11219 |
|
|
|
11220 |
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);
|
|
|
11221 |
|
|
|
11222 |
private List<InvoiceScan> success; // required
|
|
|
11223 |
|
|
|
11224 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11225 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11226 |
SUCCESS((short)0, "success");
|
|
|
11227 |
|
|
|
11228 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11229 |
|
|
|
11230 |
static {
|
|
|
11231 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11232 |
byName.put(field.getFieldName(), field);
|
|
|
11233 |
}
|
|
|
11234 |
}
|
|
|
11235 |
|
|
|
11236 |
/**
|
|
|
11237 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11238 |
*/
|
|
|
11239 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11240 |
switch(fieldId) {
|
|
|
11241 |
case 0: // SUCCESS
|
|
|
11242 |
return SUCCESS;
|
|
|
11243 |
default:
|
|
|
11244 |
return null;
|
|
|
11245 |
}
|
|
|
11246 |
}
|
|
|
11247 |
|
|
|
11248 |
/**
|
|
|
11249 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11250 |
* if it is not found.
|
|
|
11251 |
*/
|
|
|
11252 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11253 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11254 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11255 |
return fields;
|
|
|
11256 |
}
|
|
|
11257 |
|
|
|
11258 |
/**
|
|
|
11259 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11260 |
*/
|
|
|
11261 |
public static _Fields findByName(String name) {
|
|
|
11262 |
return byName.get(name);
|
|
|
11263 |
}
|
|
|
11264 |
|
|
|
11265 |
private final short _thriftId;
|
|
|
11266 |
private final String _fieldName;
|
|
|
11267 |
|
|
|
11268 |
_Fields(short thriftId, String fieldName) {
|
|
|
11269 |
_thriftId = thriftId;
|
|
|
11270 |
_fieldName = fieldName;
|
|
|
11271 |
}
|
|
|
11272 |
|
|
|
11273 |
public short getThriftFieldId() {
|
|
|
11274 |
return _thriftId;
|
|
|
11275 |
}
|
|
|
11276 |
|
|
|
11277 |
public String getFieldName() {
|
|
|
11278 |
return _fieldName;
|
|
|
11279 |
}
|
|
|
11280 |
}
|
|
|
11281 |
|
|
|
11282 |
// isset id assignments
|
|
|
11283 |
|
|
|
11284 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11285 |
static {
|
|
|
11286 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11287 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11288 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
11289 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InvoiceScan.class))));
|
|
|
11290 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11291 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_result.class, metaDataMap);
|
|
|
11292 |
}
|
|
|
11293 |
|
|
|
11294 |
public fetchScansPerInvoiceNumber_result() {
|
|
|
11295 |
}
|
|
|
11296 |
|
|
|
11297 |
public fetchScansPerInvoiceNumber_result(
|
|
|
11298 |
List<InvoiceScan> success)
|
|
|
11299 |
{
|
|
|
11300 |
this();
|
|
|
11301 |
this.success = success;
|
|
|
11302 |
}
|
|
|
11303 |
|
|
|
11304 |
/**
|
|
|
11305 |
* Performs a deep copy on <i>other</i>.
|
|
|
11306 |
*/
|
|
|
11307 |
public fetchScansPerInvoiceNumber_result(fetchScansPerInvoiceNumber_result other) {
|
|
|
11308 |
if (other.isSetSuccess()) {
|
|
|
11309 |
List<InvoiceScan> __this__success = new ArrayList<InvoiceScan>();
|
|
|
11310 |
for (InvoiceScan other_element : other.success) {
|
|
|
11311 |
__this__success.add(new InvoiceScan(other_element));
|
|
|
11312 |
}
|
|
|
11313 |
this.success = __this__success;
|
|
|
11314 |
}
|
|
|
11315 |
}
|
|
|
11316 |
|
|
|
11317 |
public fetchScansPerInvoiceNumber_result deepCopy() {
|
|
|
11318 |
return new fetchScansPerInvoiceNumber_result(this);
|
|
|
11319 |
}
|
|
|
11320 |
|
|
|
11321 |
@Override
|
|
|
11322 |
public void clear() {
|
|
|
11323 |
this.success = null;
|
|
|
11324 |
}
|
|
|
11325 |
|
|
|
11326 |
public int getSuccessSize() {
|
|
|
11327 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
11328 |
}
|
|
|
11329 |
|
|
|
11330 |
public java.util.Iterator<InvoiceScan> getSuccessIterator() {
|
|
|
11331 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
11332 |
}
|
|
|
11333 |
|
|
|
11334 |
public void addToSuccess(InvoiceScan elem) {
|
|
|
11335 |
if (this.success == null) {
|
|
|
11336 |
this.success = new ArrayList<InvoiceScan>();
|
|
|
11337 |
}
|
|
|
11338 |
this.success.add(elem);
|
|
|
11339 |
}
|
|
|
11340 |
|
|
|
11341 |
public List<InvoiceScan> getSuccess() {
|
|
|
11342 |
return this.success;
|
|
|
11343 |
}
|
|
|
11344 |
|
|
|
11345 |
public void setSuccess(List<InvoiceScan> success) {
|
|
|
11346 |
this.success = success;
|
|
|
11347 |
}
|
|
|
11348 |
|
|
|
11349 |
public void unsetSuccess() {
|
|
|
11350 |
this.success = null;
|
|
|
11351 |
}
|
|
|
11352 |
|
|
|
11353 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
11354 |
public boolean isSetSuccess() {
|
|
|
11355 |
return this.success != null;
|
|
|
11356 |
}
|
|
|
11357 |
|
|
|
11358 |
public void setSuccessIsSet(boolean value) {
|
|
|
11359 |
if (!value) {
|
|
|
11360 |
this.success = null;
|
|
|
11361 |
}
|
|
|
11362 |
}
|
|
|
11363 |
|
|
|
11364 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11365 |
switch (field) {
|
|
|
11366 |
case SUCCESS:
|
|
|
11367 |
if (value == null) {
|
|
|
11368 |
unsetSuccess();
|
|
|
11369 |
} else {
|
|
|
11370 |
setSuccess((List<InvoiceScan>)value);
|
|
|
11371 |
}
|
|
|
11372 |
break;
|
|
|
11373 |
|
|
|
11374 |
}
|
|
|
11375 |
}
|
|
|
11376 |
|
|
|
11377 |
public Object getFieldValue(_Fields field) {
|
|
|
11378 |
switch (field) {
|
|
|
11379 |
case SUCCESS:
|
|
|
11380 |
return getSuccess();
|
|
|
11381 |
|
|
|
11382 |
}
|
|
|
11383 |
throw new IllegalStateException();
|
|
|
11384 |
}
|
|
|
11385 |
|
|
|
11386 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11387 |
public boolean isSet(_Fields field) {
|
|
|
11388 |
if (field == null) {
|
|
|
11389 |
throw new IllegalArgumentException();
|
|
|
11390 |
}
|
|
|
11391 |
|
|
|
11392 |
switch (field) {
|
|
|
11393 |
case SUCCESS:
|
|
|
11394 |
return isSetSuccess();
|
|
|
11395 |
}
|
|
|
11396 |
throw new IllegalStateException();
|
|
|
11397 |
}
|
|
|
11398 |
|
|
|
11399 |
@Override
|
|
|
11400 |
public boolean equals(Object that) {
|
|
|
11401 |
if (that == null)
|
|
|
11402 |
return false;
|
|
|
11403 |
if (that instanceof fetchScansPerInvoiceNumber_result)
|
|
|
11404 |
return this.equals((fetchScansPerInvoiceNumber_result)that);
|
|
|
11405 |
return false;
|
|
|
11406 |
}
|
|
|
11407 |
|
|
|
11408 |
public boolean equals(fetchScansPerInvoiceNumber_result that) {
|
|
|
11409 |
if (that == null)
|
|
|
11410 |
return false;
|
|
|
11411 |
|
|
|
11412 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
11413 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
11414 |
if (this_present_success || that_present_success) {
|
|
|
11415 |
if (!(this_present_success && that_present_success))
|
|
|
11416 |
return false;
|
|
|
11417 |
if (!this.success.equals(that.success))
|
|
|
11418 |
return false;
|
|
|
11419 |
}
|
|
|
11420 |
|
|
|
11421 |
return true;
|
|
|
11422 |
}
|
|
|
11423 |
|
|
|
11424 |
@Override
|
|
|
11425 |
public int hashCode() {
|
|
|
11426 |
return 0;
|
|
|
11427 |
}
|
|
|
11428 |
|
|
|
11429 |
public int compareTo(fetchScansPerInvoiceNumber_result other) {
|
|
|
11430 |
if (!getClass().equals(other.getClass())) {
|
|
|
11431 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11432 |
}
|
|
|
11433 |
|
|
|
11434 |
int lastComparison = 0;
|
|
|
11435 |
fetchScansPerInvoiceNumber_result typedOther = (fetchScansPerInvoiceNumber_result)other;
|
|
|
11436 |
|
|
|
11437 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
11438 |
if (lastComparison != 0) {
|
|
|
11439 |
return lastComparison;
|
|
|
11440 |
}
|
|
|
11441 |
if (isSetSuccess()) {
|
|
|
11442 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
11443 |
if (lastComparison != 0) {
|
|
|
11444 |
return lastComparison;
|
|
|
11445 |
}
|
|
|
11446 |
}
|
|
|
11447 |
return 0;
|
|
|
11448 |
}
|
|
|
11449 |
|
|
|
11450 |
public _Fields fieldForId(int fieldId) {
|
|
|
11451 |
return _Fields.findByThriftId(fieldId);
|
|
|
11452 |
}
|
|
|
11453 |
|
|
|
11454 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11455 |
org.apache.thrift.protocol.TField field;
|
|
|
11456 |
iprot.readStructBegin();
|
|
|
11457 |
while (true)
|
|
|
11458 |
{
|
|
|
11459 |
field = iprot.readFieldBegin();
|
|
|
11460 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11461 |
break;
|
|
|
11462 |
}
|
|
|
11463 |
switch (field.id) {
|
|
|
11464 |
case 0: // SUCCESS
|
|
|
11465 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
11466 |
{
|
|
|
11467 |
org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
|
|
|
11468 |
this.success = new ArrayList<InvoiceScan>(_list16.size);
|
|
|
11469 |
for (int _i17 = 0; _i17 < _list16.size; ++_i17)
|
|
|
11470 |
{
|
|
|
11471 |
InvoiceScan _elem18; // required
|
|
|
11472 |
_elem18 = new InvoiceScan();
|
|
|
11473 |
_elem18.read(iprot);
|
|
|
11474 |
this.success.add(_elem18);
|
|
|
11475 |
}
|
|
|
11476 |
iprot.readListEnd();
|
|
|
11477 |
}
|
|
|
11478 |
} else {
|
|
|
11479 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11480 |
}
|
|
|
11481 |
break;
|
|
|
11482 |
default:
|
|
|
11483 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11484 |
}
|
|
|
11485 |
iprot.readFieldEnd();
|
|
|
11486 |
}
|
|
|
11487 |
iprot.readStructEnd();
|
|
|
11488 |
validate();
|
|
|
11489 |
}
|
|
|
11490 |
|
|
|
11491 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11492 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11493 |
|
|
|
11494 |
if (this.isSetSuccess()) {
|
|
|
11495 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
11496 |
{
|
|
|
11497 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
11498 |
for (InvoiceScan _iter19 : this.success)
|
|
|
11499 |
{
|
|
|
11500 |
_iter19.write(oprot);
|
|
|
11501 |
}
|
|
|
11502 |
oprot.writeListEnd();
|
|
|
11503 |
}
|
|
|
11504 |
oprot.writeFieldEnd();
|
|
|
11505 |
}
|
|
|
11506 |
oprot.writeFieldStop();
|
|
|
11507 |
oprot.writeStructEnd();
|
|
|
11508 |
}
|
|
|
11509 |
|
|
|
11510 |
@Override
|
|
|
11511 |
public String toString() {
|
|
|
11512 |
StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_result(");
|
|
|
11513 |
boolean first = true;
|
|
|
11514 |
|
|
|
11515 |
sb.append("success:");
|
|
|
11516 |
if (this.success == null) {
|
|
|
11517 |
sb.append("null");
|
|
|
11518 |
} else {
|
|
|
11519 |
sb.append(this.success);
|
|
|
11520 |
}
|
|
|
11521 |
first = false;
|
|
|
11522 |
sb.append(")");
|
|
|
11523 |
return sb.toString();
|
|
|
11524 |
}
|
|
|
11525 |
|
|
|
11526 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11527 |
// check for required fields
|
|
|
11528 |
}
|
|
|
11529 |
|
|
|
11530 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11531 |
try {
|
|
|
11532 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11533 |
} catch (org.apache.thrift.TException te) {
|
|
|
11534 |
throw new java.io.IOException(te);
|
|
|
11535 |
}
|
|
|
11536 |
}
|
|
|
11537 |
|
|
|
11538 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11539 |
try {
|
|
|
11540 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11541 |
} catch (org.apache.thrift.TException te) {
|
|
|
11542 |
throw new java.io.IOException(te);
|
|
|
11543 |
}
|
|
|
11544 |
}
|
|
|
11545 |
|
|
|
11546 |
}
|
|
|
11547 |
|
| 5620 |
mandeep.dh |
11548 |
public static class getInventoryItemFromOrder_args implements org.apache.thrift.TBase<getInventoryItemFromOrder_args, getInventoryItemFromOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
11549 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_args");
|
|
|
11550 |
|
|
|
11551 |
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
11552 |
|
|
|
11553 |
private long orderId; // required
|
|
|
11554 |
|
|
|
11555 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11556 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11557 |
ORDER_ID((short)1, "orderId");
|
|
|
11558 |
|
|
|
11559 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11560 |
|
|
|
11561 |
static {
|
|
|
11562 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11563 |
byName.put(field.getFieldName(), field);
|
|
|
11564 |
}
|
|
|
11565 |
}
|
|
|
11566 |
|
|
|
11567 |
/**
|
|
|
11568 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11569 |
*/
|
|
|
11570 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11571 |
switch(fieldId) {
|
|
|
11572 |
case 1: // ORDER_ID
|
|
|
11573 |
return ORDER_ID;
|
|
|
11574 |
default:
|
|
|
11575 |
return null;
|
|
|
11576 |
}
|
|
|
11577 |
}
|
|
|
11578 |
|
|
|
11579 |
/**
|
|
|
11580 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11581 |
* if it is not found.
|
|
|
11582 |
*/
|
|
|
11583 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11584 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11585 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11586 |
return fields;
|
|
|
11587 |
}
|
|
|
11588 |
|
|
|
11589 |
/**
|
|
|
11590 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11591 |
*/
|
|
|
11592 |
public static _Fields findByName(String name) {
|
|
|
11593 |
return byName.get(name);
|
|
|
11594 |
}
|
|
|
11595 |
|
|
|
11596 |
private final short _thriftId;
|
|
|
11597 |
private final String _fieldName;
|
|
|
11598 |
|
|
|
11599 |
_Fields(short thriftId, String fieldName) {
|
|
|
11600 |
_thriftId = thriftId;
|
|
|
11601 |
_fieldName = fieldName;
|
|
|
11602 |
}
|
|
|
11603 |
|
|
|
11604 |
public short getThriftFieldId() {
|
|
|
11605 |
return _thriftId;
|
|
|
11606 |
}
|
|
|
11607 |
|
|
|
11608 |
public String getFieldName() {
|
|
|
11609 |
return _fieldName;
|
|
|
11610 |
}
|
|
|
11611 |
}
|
|
|
11612 |
|
|
|
11613 |
// isset id assignments
|
|
|
11614 |
private static final int __ORDERID_ISSET_ID = 0;
|
|
|
11615 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
11616 |
|
|
|
11617 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11618 |
static {
|
|
|
11619 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11620 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11621 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
11622 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11623 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_args.class, metaDataMap);
|
|
|
11624 |
}
|
|
|
11625 |
|
|
|
11626 |
public getInventoryItemFromOrder_args() {
|
|
|
11627 |
}
|
|
|
11628 |
|
|
|
11629 |
public getInventoryItemFromOrder_args(
|
|
|
11630 |
long orderId)
|
|
|
11631 |
{
|
|
|
11632 |
this();
|
|
|
11633 |
this.orderId = orderId;
|
|
|
11634 |
setOrderIdIsSet(true);
|
|
|
11635 |
}
|
|
|
11636 |
|
|
|
11637 |
/**
|
|
|
11638 |
* Performs a deep copy on <i>other</i>.
|
|
|
11639 |
*/
|
|
|
11640 |
public getInventoryItemFromOrder_args(getInventoryItemFromOrder_args other) {
|
|
|
11641 |
__isset_bit_vector.clear();
|
|
|
11642 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
11643 |
this.orderId = other.orderId;
|
|
|
11644 |
}
|
|
|
11645 |
|
|
|
11646 |
public getInventoryItemFromOrder_args deepCopy() {
|
|
|
11647 |
return new getInventoryItemFromOrder_args(this);
|
|
|
11648 |
}
|
|
|
11649 |
|
|
|
11650 |
@Override
|
|
|
11651 |
public void clear() {
|
|
|
11652 |
setOrderIdIsSet(false);
|
|
|
11653 |
this.orderId = 0;
|
|
|
11654 |
}
|
|
|
11655 |
|
|
|
11656 |
public long getOrderId() {
|
|
|
11657 |
return this.orderId;
|
|
|
11658 |
}
|
|
|
11659 |
|
|
|
11660 |
public void setOrderId(long orderId) {
|
|
|
11661 |
this.orderId = orderId;
|
|
|
11662 |
setOrderIdIsSet(true);
|
|
|
11663 |
}
|
|
|
11664 |
|
|
|
11665 |
public void unsetOrderId() {
|
|
|
11666 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
11667 |
}
|
|
|
11668 |
|
|
|
11669 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
11670 |
public boolean isSetOrderId() {
|
|
|
11671 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
11672 |
}
|
|
|
11673 |
|
|
|
11674 |
public void setOrderIdIsSet(boolean value) {
|
|
|
11675 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
11676 |
}
|
|
|
11677 |
|
|
|
11678 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11679 |
switch (field) {
|
|
|
11680 |
case ORDER_ID:
|
|
|
11681 |
if (value == null) {
|
|
|
11682 |
unsetOrderId();
|
|
|
11683 |
} else {
|
|
|
11684 |
setOrderId((Long)value);
|
|
|
11685 |
}
|
|
|
11686 |
break;
|
|
|
11687 |
|
|
|
11688 |
}
|
|
|
11689 |
}
|
|
|
11690 |
|
|
|
11691 |
public Object getFieldValue(_Fields field) {
|
|
|
11692 |
switch (field) {
|
|
|
11693 |
case ORDER_ID:
|
|
|
11694 |
return Long.valueOf(getOrderId());
|
|
|
11695 |
|
|
|
11696 |
}
|
|
|
11697 |
throw new IllegalStateException();
|
|
|
11698 |
}
|
|
|
11699 |
|
|
|
11700 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11701 |
public boolean isSet(_Fields field) {
|
|
|
11702 |
if (field == null) {
|
|
|
11703 |
throw new IllegalArgumentException();
|
|
|
11704 |
}
|
|
|
11705 |
|
|
|
11706 |
switch (field) {
|
|
|
11707 |
case ORDER_ID:
|
|
|
11708 |
return isSetOrderId();
|
|
|
11709 |
}
|
|
|
11710 |
throw new IllegalStateException();
|
|
|
11711 |
}
|
|
|
11712 |
|
|
|
11713 |
@Override
|
|
|
11714 |
public boolean equals(Object that) {
|
|
|
11715 |
if (that == null)
|
|
|
11716 |
return false;
|
|
|
11717 |
if (that instanceof getInventoryItemFromOrder_args)
|
|
|
11718 |
return this.equals((getInventoryItemFromOrder_args)that);
|
|
|
11719 |
return false;
|
|
|
11720 |
}
|
|
|
11721 |
|
|
|
11722 |
public boolean equals(getInventoryItemFromOrder_args that) {
|
|
|
11723 |
if (that == null)
|
|
|
11724 |
return false;
|
|
|
11725 |
|
|
|
11726 |
boolean this_present_orderId = true;
|
|
|
11727 |
boolean that_present_orderId = true;
|
|
|
11728 |
if (this_present_orderId || that_present_orderId) {
|
|
|
11729 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
11730 |
return false;
|
|
|
11731 |
if (this.orderId != that.orderId)
|
|
|
11732 |
return false;
|
|
|
11733 |
}
|
|
|
11734 |
|
|
|
11735 |
return true;
|
|
|
11736 |
}
|
|
|
11737 |
|
|
|
11738 |
@Override
|
|
|
11739 |
public int hashCode() {
|
|
|
11740 |
return 0;
|
|
|
11741 |
}
|
|
|
11742 |
|
|
|
11743 |
public int compareTo(getInventoryItemFromOrder_args other) {
|
|
|
11744 |
if (!getClass().equals(other.getClass())) {
|
|
|
11745 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11746 |
}
|
|
|
11747 |
|
|
|
11748 |
int lastComparison = 0;
|
|
|
11749 |
getInventoryItemFromOrder_args typedOther = (getInventoryItemFromOrder_args)other;
|
|
|
11750 |
|
|
|
11751 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
11752 |
if (lastComparison != 0) {
|
|
|
11753 |
return lastComparison;
|
|
|
11754 |
}
|
|
|
11755 |
if (isSetOrderId()) {
|
|
|
11756 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
11757 |
if (lastComparison != 0) {
|
|
|
11758 |
return lastComparison;
|
|
|
11759 |
}
|
|
|
11760 |
}
|
|
|
11761 |
return 0;
|
|
|
11762 |
}
|
|
|
11763 |
|
|
|
11764 |
public _Fields fieldForId(int fieldId) {
|
|
|
11765 |
return _Fields.findByThriftId(fieldId);
|
|
|
11766 |
}
|
|
|
11767 |
|
|
|
11768 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11769 |
org.apache.thrift.protocol.TField field;
|
|
|
11770 |
iprot.readStructBegin();
|
|
|
11771 |
while (true)
|
|
|
11772 |
{
|
|
|
11773 |
field = iprot.readFieldBegin();
|
|
|
11774 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11775 |
break;
|
|
|
11776 |
}
|
|
|
11777 |
switch (field.id) {
|
|
|
11778 |
case 1: // ORDER_ID
|
|
|
11779 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
11780 |
this.orderId = iprot.readI64();
|
|
|
11781 |
setOrderIdIsSet(true);
|
|
|
11782 |
} else {
|
|
|
11783 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11784 |
}
|
|
|
11785 |
break;
|
|
|
11786 |
default:
|
|
|
11787 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11788 |
}
|
|
|
11789 |
iprot.readFieldEnd();
|
|
|
11790 |
}
|
|
|
11791 |
iprot.readStructEnd();
|
|
|
11792 |
validate();
|
|
|
11793 |
}
|
|
|
11794 |
|
|
|
11795 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11796 |
validate();
|
|
|
11797 |
|
|
|
11798 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11799 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
11800 |
oprot.writeI64(this.orderId);
|
|
|
11801 |
oprot.writeFieldEnd();
|
|
|
11802 |
oprot.writeFieldStop();
|
|
|
11803 |
oprot.writeStructEnd();
|
|
|
11804 |
}
|
|
|
11805 |
|
|
|
11806 |
@Override
|
|
|
11807 |
public String toString() {
|
|
|
11808 |
StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_args(");
|
|
|
11809 |
boolean first = true;
|
|
|
11810 |
|
|
|
11811 |
sb.append("orderId:");
|
|
|
11812 |
sb.append(this.orderId);
|
|
|
11813 |
first = false;
|
|
|
11814 |
sb.append(")");
|
|
|
11815 |
return sb.toString();
|
|
|
11816 |
}
|
|
|
11817 |
|
|
|
11818 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11819 |
// check for required fields
|
|
|
11820 |
}
|
|
|
11821 |
|
|
|
11822 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11823 |
try {
|
|
|
11824 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11825 |
} catch (org.apache.thrift.TException te) {
|
|
|
11826 |
throw new java.io.IOException(te);
|
|
|
11827 |
}
|
|
|
11828 |
}
|
|
|
11829 |
|
|
|
11830 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11831 |
try {
|
|
|
11832 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
11833 |
__isset_bit_vector = new BitSet(1);
|
|
|
11834 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11835 |
} catch (org.apache.thrift.TException te) {
|
|
|
11836 |
throw new java.io.IOException(te);
|
|
|
11837 |
}
|
|
|
11838 |
}
|
|
|
11839 |
|
|
|
11840 |
}
|
|
|
11841 |
|
|
|
11842 |
public static class getInventoryItemFromOrder_result implements org.apache.thrift.TBase<getInventoryItemFromOrder_result, getInventoryItemFromOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
11843 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_result");
|
|
|
11844 |
|
|
|
11845 |
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);
|
|
|
11846 |
private static final org.apache.thrift.protocol.TField WE_FIELD_DESC = new org.apache.thrift.protocol.TField("we", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
11847 |
|
|
|
11848 |
private InventoryItem success; // required
|
|
|
11849 |
private WarehouseServiceException we; // required
|
|
|
11850 |
|
|
|
11851 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11852 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11853 |
SUCCESS((short)0, "success"),
|
|
|
11854 |
WE((short)1, "we");
|
|
|
11855 |
|
|
|
11856 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11857 |
|
|
|
11858 |
static {
|
|
|
11859 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11860 |
byName.put(field.getFieldName(), field);
|
|
|
11861 |
}
|
|
|
11862 |
}
|
|
|
11863 |
|
|
|
11864 |
/**
|
|
|
11865 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11866 |
*/
|
|
|
11867 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11868 |
switch(fieldId) {
|
|
|
11869 |
case 0: // SUCCESS
|
|
|
11870 |
return SUCCESS;
|
|
|
11871 |
case 1: // WE
|
|
|
11872 |
return WE;
|
|
|
11873 |
default:
|
|
|
11874 |
return null;
|
|
|
11875 |
}
|
|
|
11876 |
}
|
|
|
11877 |
|
|
|
11878 |
/**
|
|
|
11879 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11880 |
* if it is not found.
|
|
|
11881 |
*/
|
|
|
11882 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11883 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11884 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11885 |
return fields;
|
|
|
11886 |
}
|
|
|
11887 |
|
|
|
11888 |
/**
|
|
|
11889 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11890 |
*/
|
|
|
11891 |
public static _Fields findByName(String name) {
|
|
|
11892 |
return byName.get(name);
|
|
|
11893 |
}
|
|
|
11894 |
|
|
|
11895 |
private final short _thriftId;
|
|
|
11896 |
private final String _fieldName;
|
|
|
11897 |
|
|
|
11898 |
_Fields(short thriftId, String fieldName) {
|
|
|
11899 |
_thriftId = thriftId;
|
|
|
11900 |
_fieldName = fieldName;
|
|
|
11901 |
}
|
|
|
11902 |
|
|
|
11903 |
public short getThriftFieldId() {
|
|
|
11904 |
return _thriftId;
|
|
|
11905 |
}
|
|
|
11906 |
|
|
|
11907 |
public String getFieldName() {
|
|
|
11908 |
return _fieldName;
|
|
|
11909 |
}
|
|
|
11910 |
}
|
|
|
11911 |
|
|
|
11912 |
// isset id assignments
|
|
|
11913 |
|
|
|
11914 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11915 |
static {
|
|
|
11916 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11917 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11918 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
11919 |
tmpMap.put(_Fields.WE, new org.apache.thrift.meta_data.FieldMetaData("we", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11920 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
11921 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11922 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_result.class, metaDataMap);
|
|
|
11923 |
}
|
|
|
11924 |
|
|
|
11925 |
public getInventoryItemFromOrder_result() {
|
|
|
11926 |
}
|
|
|
11927 |
|
|
|
11928 |
public getInventoryItemFromOrder_result(
|
|
|
11929 |
InventoryItem success,
|
|
|
11930 |
WarehouseServiceException we)
|
|
|
11931 |
{
|
|
|
11932 |
this();
|
|
|
11933 |
this.success = success;
|
|
|
11934 |
this.we = we;
|
|
|
11935 |
}
|
|
|
11936 |
|
|
|
11937 |
/**
|
|
|
11938 |
* Performs a deep copy on <i>other</i>.
|
|
|
11939 |
*/
|
|
|
11940 |
public getInventoryItemFromOrder_result(getInventoryItemFromOrder_result other) {
|
|
|
11941 |
if (other.isSetSuccess()) {
|
|
|
11942 |
this.success = new InventoryItem(other.success);
|
|
|
11943 |
}
|
|
|
11944 |
if (other.isSetWe()) {
|
|
|
11945 |
this.we = new WarehouseServiceException(other.we);
|
|
|
11946 |
}
|
|
|
11947 |
}
|
|
|
11948 |
|
|
|
11949 |
public getInventoryItemFromOrder_result deepCopy() {
|
|
|
11950 |
return new getInventoryItemFromOrder_result(this);
|
|
|
11951 |
}
|
|
|
11952 |
|
|
|
11953 |
@Override
|
|
|
11954 |
public void clear() {
|
|
|
11955 |
this.success = null;
|
|
|
11956 |
this.we = null;
|
|
|
11957 |
}
|
|
|
11958 |
|
|
|
11959 |
public InventoryItem getSuccess() {
|
|
|
11960 |
return this.success;
|
|
|
11961 |
}
|
|
|
11962 |
|
|
|
11963 |
public void setSuccess(InventoryItem success) {
|
|
|
11964 |
this.success = success;
|
|
|
11965 |
}
|
|
|
11966 |
|
|
|
11967 |
public void unsetSuccess() {
|
|
|
11968 |
this.success = null;
|
|
|
11969 |
}
|
|
|
11970 |
|
|
|
11971 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
11972 |
public boolean isSetSuccess() {
|
|
|
11973 |
return this.success != null;
|
|
|
11974 |
}
|
|
|
11975 |
|
|
|
11976 |
public void setSuccessIsSet(boolean value) {
|
|
|
11977 |
if (!value) {
|
|
|
11978 |
this.success = null;
|
|
|
11979 |
}
|
|
|
11980 |
}
|
|
|
11981 |
|
|
|
11982 |
public WarehouseServiceException getWe() {
|
|
|
11983 |
return this.we;
|
|
|
11984 |
}
|
|
|
11985 |
|
|
|
11986 |
public void setWe(WarehouseServiceException we) {
|
|
|
11987 |
this.we = we;
|
|
|
11988 |
}
|
|
|
11989 |
|
|
|
11990 |
public void unsetWe() {
|
|
|
11991 |
this.we = null;
|
|
|
11992 |
}
|
|
|
11993 |
|
|
|
11994 |
/** Returns true if field we is set (has been assigned a value) and false otherwise */
|
|
|
11995 |
public boolean isSetWe() {
|
|
|
11996 |
return this.we != null;
|
|
|
11997 |
}
|
|
|
11998 |
|
|
|
11999 |
public void setWeIsSet(boolean value) {
|
|
|
12000 |
if (!value) {
|
|
|
12001 |
this.we = null;
|
|
|
12002 |
}
|
|
|
12003 |
}
|
|
|
12004 |
|
|
|
12005 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12006 |
switch (field) {
|
|
|
12007 |
case SUCCESS:
|
|
|
12008 |
if (value == null) {
|
|
|
12009 |
unsetSuccess();
|
|
|
12010 |
} else {
|
|
|
12011 |
setSuccess((InventoryItem)value);
|
|
|
12012 |
}
|
|
|
12013 |
break;
|
|
|
12014 |
|
|
|
12015 |
case WE:
|
|
|
12016 |
if (value == null) {
|
|
|
12017 |
unsetWe();
|
|
|
12018 |
} else {
|
|
|
12019 |
setWe((WarehouseServiceException)value);
|
|
|
12020 |
}
|
|
|
12021 |
break;
|
|
|
12022 |
|
|
|
12023 |
}
|
|
|
12024 |
}
|
|
|
12025 |
|
|
|
12026 |
public Object getFieldValue(_Fields field) {
|
|
|
12027 |
switch (field) {
|
|
|
12028 |
case SUCCESS:
|
|
|
12029 |
return getSuccess();
|
|
|
12030 |
|
|
|
12031 |
case WE:
|
|
|
12032 |
return getWe();
|
|
|
12033 |
|
|
|
12034 |
}
|
|
|
12035 |
throw new IllegalStateException();
|
|
|
12036 |
}
|
|
|
12037 |
|
|
|
12038 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12039 |
public boolean isSet(_Fields field) {
|
|
|
12040 |
if (field == null) {
|
|
|
12041 |
throw new IllegalArgumentException();
|
|
|
12042 |
}
|
|
|
12043 |
|
|
|
12044 |
switch (field) {
|
|
|
12045 |
case SUCCESS:
|
|
|
12046 |
return isSetSuccess();
|
|
|
12047 |
case WE:
|
|
|
12048 |
return isSetWe();
|
|
|
12049 |
}
|
|
|
12050 |
throw new IllegalStateException();
|
|
|
12051 |
}
|
|
|
12052 |
|
|
|
12053 |
@Override
|
|
|
12054 |
public boolean equals(Object that) {
|
|
|
12055 |
if (that == null)
|
|
|
12056 |
return false;
|
|
|
12057 |
if (that instanceof getInventoryItemFromOrder_result)
|
|
|
12058 |
return this.equals((getInventoryItemFromOrder_result)that);
|
|
|
12059 |
return false;
|
|
|
12060 |
}
|
|
|
12061 |
|
|
|
12062 |
public boolean equals(getInventoryItemFromOrder_result that) {
|
|
|
12063 |
if (that == null)
|
|
|
12064 |
return false;
|
|
|
12065 |
|
|
|
12066 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
12067 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
12068 |
if (this_present_success || that_present_success) {
|
|
|
12069 |
if (!(this_present_success && that_present_success))
|
|
|
12070 |
return false;
|
|
|
12071 |
if (!this.success.equals(that.success))
|
|
|
12072 |
return false;
|
|
|
12073 |
}
|
|
|
12074 |
|
|
|
12075 |
boolean this_present_we = true && this.isSetWe();
|
|
|
12076 |
boolean that_present_we = true && that.isSetWe();
|
|
|
12077 |
if (this_present_we || that_present_we) {
|
|
|
12078 |
if (!(this_present_we && that_present_we))
|
|
|
12079 |
return false;
|
|
|
12080 |
if (!this.we.equals(that.we))
|
|
|
12081 |
return false;
|
|
|
12082 |
}
|
|
|
12083 |
|
|
|
12084 |
return true;
|
|
|
12085 |
}
|
|
|
12086 |
|
|
|
12087 |
@Override
|
|
|
12088 |
public int hashCode() {
|
|
|
12089 |
return 0;
|
|
|
12090 |
}
|
|
|
12091 |
|
|
|
12092 |
public int compareTo(getInventoryItemFromOrder_result other) {
|
|
|
12093 |
if (!getClass().equals(other.getClass())) {
|
|
|
12094 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12095 |
}
|
|
|
12096 |
|
|
|
12097 |
int lastComparison = 0;
|
|
|
12098 |
getInventoryItemFromOrder_result typedOther = (getInventoryItemFromOrder_result)other;
|
|
|
12099 |
|
|
|
12100 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
12101 |
if (lastComparison != 0) {
|
|
|
12102 |
return lastComparison;
|
|
|
12103 |
}
|
|
|
12104 |
if (isSetSuccess()) {
|
|
|
12105 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
12106 |
if (lastComparison != 0) {
|
|
|
12107 |
return lastComparison;
|
|
|
12108 |
}
|
|
|
12109 |
}
|
|
|
12110 |
lastComparison = Boolean.valueOf(isSetWe()).compareTo(typedOther.isSetWe());
|
|
|
12111 |
if (lastComparison != 0) {
|
|
|
12112 |
return lastComparison;
|
|
|
12113 |
}
|
|
|
12114 |
if (isSetWe()) {
|
|
|
12115 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.we, typedOther.we);
|
|
|
12116 |
if (lastComparison != 0) {
|
|
|
12117 |
return lastComparison;
|
|
|
12118 |
}
|
|
|
12119 |
}
|
|
|
12120 |
return 0;
|
|
|
12121 |
}
|
|
|
12122 |
|
|
|
12123 |
public _Fields fieldForId(int fieldId) {
|
|
|
12124 |
return _Fields.findByThriftId(fieldId);
|
|
|
12125 |
}
|
|
|
12126 |
|
|
|
12127 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12128 |
org.apache.thrift.protocol.TField field;
|
|
|
12129 |
iprot.readStructBegin();
|
|
|
12130 |
while (true)
|
|
|
12131 |
{
|
|
|
12132 |
field = iprot.readFieldBegin();
|
|
|
12133 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12134 |
break;
|
|
|
12135 |
}
|
|
|
12136 |
switch (field.id) {
|
|
|
12137 |
case 0: // SUCCESS
|
|
|
12138 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
12139 |
this.success = new InventoryItem();
|
|
|
12140 |
this.success.read(iprot);
|
|
|
12141 |
} else {
|
|
|
12142 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12143 |
}
|
|
|
12144 |
break;
|
|
|
12145 |
case 1: // WE
|
|
|
12146 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
12147 |
this.we = new WarehouseServiceException();
|
|
|
12148 |
this.we.read(iprot);
|
|
|
12149 |
} else {
|
|
|
12150 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12151 |
}
|
|
|
12152 |
break;
|
|
|
12153 |
default:
|
|
|
12154 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12155 |
}
|
|
|
12156 |
iprot.readFieldEnd();
|
|
|
12157 |
}
|
|
|
12158 |
iprot.readStructEnd();
|
|
|
12159 |
validate();
|
|
|
12160 |
}
|
|
|
12161 |
|
|
|
12162 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12163 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12164 |
|
|
|
12165 |
if (this.isSetSuccess()) {
|
|
|
12166 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
12167 |
this.success.write(oprot);
|
|
|
12168 |
oprot.writeFieldEnd();
|
|
|
12169 |
} else if (this.isSetWe()) {
|
|
|
12170 |
oprot.writeFieldBegin(WE_FIELD_DESC);
|
|
|
12171 |
this.we.write(oprot);
|
|
|
12172 |
oprot.writeFieldEnd();
|
|
|
12173 |
}
|
|
|
12174 |
oprot.writeFieldStop();
|
|
|
12175 |
oprot.writeStructEnd();
|
|
|
12176 |
}
|
|
|
12177 |
|
|
|
12178 |
@Override
|
|
|
12179 |
public String toString() {
|
|
|
12180 |
StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_result(");
|
|
|
12181 |
boolean first = true;
|
|
|
12182 |
|
|
|
12183 |
sb.append("success:");
|
|
|
12184 |
if (this.success == null) {
|
|
|
12185 |
sb.append("null");
|
|
|
12186 |
} else {
|
|
|
12187 |
sb.append(this.success);
|
|
|
12188 |
}
|
|
|
12189 |
first = false;
|
|
|
12190 |
if (!first) sb.append(", ");
|
|
|
12191 |
sb.append("we:");
|
|
|
12192 |
if (this.we == null) {
|
|
|
12193 |
sb.append("null");
|
|
|
12194 |
} else {
|
|
|
12195 |
sb.append(this.we);
|
|
|
12196 |
}
|
|
|
12197 |
first = false;
|
|
|
12198 |
sb.append(")");
|
|
|
12199 |
return sb.toString();
|
|
|
12200 |
}
|
|
|
12201 |
|
|
|
12202 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12203 |
// check for required fields
|
|
|
12204 |
}
|
|
|
12205 |
|
|
|
12206 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12207 |
try {
|
|
|
12208 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12209 |
} catch (org.apache.thrift.TException te) {
|
|
|
12210 |
throw new java.io.IOException(te);
|
|
|
12211 |
}
|
|
|
12212 |
}
|
|
|
12213 |
|
|
|
12214 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12215 |
try {
|
|
|
12216 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12217 |
} catch (org.apache.thrift.TException te) {
|
|
|
12218 |
throw new java.io.IOException(te);
|
|
|
12219 |
}
|
|
|
12220 |
}
|
|
|
12221 |
|
|
|
12222 |
}
|
|
|
12223 |
|
| 5711 |
mandeep.dh |
12224 |
public static class getInventoryAge_args implements org.apache.thrift.TBase<getInventoryAge_args, getInventoryAge_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
12225 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAge_args");
|
|
|
12226 |
|
|
|
12227 |
|
|
|
12228 |
|
|
|
12229 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12230 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12231 |
;
|
|
|
12232 |
|
|
|
12233 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12234 |
|
|
|
12235 |
static {
|
|
|
12236 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12237 |
byName.put(field.getFieldName(), field);
|
|
|
12238 |
}
|
|
|
12239 |
}
|
|
|
12240 |
|
|
|
12241 |
/**
|
|
|
12242 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12243 |
*/
|
|
|
12244 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12245 |
switch(fieldId) {
|
|
|
12246 |
default:
|
|
|
12247 |
return null;
|
|
|
12248 |
}
|
|
|
12249 |
}
|
|
|
12250 |
|
|
|
12251 |
/**
|
|
|
12252 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12253 |
* if it is not found.
|
|
|
12254 |
*/
|
|
|
12255 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12256 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12257 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12258 |
return fields;
|
|
|
12259 |
}
|
|
|
12260 |
|
|
|
12261 |
/**
|
|
|
12262 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12263 |
*/
|
|
|
12264 |
public static _Fields findByName(String name) {
|
|
|
12265 |
return byName.get(name);
|
|
|
12266 |
}
|
|
|
12267 |
|
|
|
12268 |
private final short _thriftId;
|
|
|
12269 |
private final String _fieldName;
|
|
|
12270 |
|
|
|
12271 |
_Fields(short thriftId, String fieldName) {
|
|
|
12272 |
_thriftId = thriftId;
|
|
|
12273 |
_fieldName = fieldName;
|
|
|
12274 |
}
|
|
|
12275 |
|
|
|
12276 |
public short getThriftFieldId() {
|
|
|
12277 |
return _thriftId;
|
|
|
12278 |
}
|
|
|
12279 |
|
|
|
12280 |
public String getFieldName() {
|
|
|
12281 |
return _fieldName;
|
|
|
12282 |
}
|
|
|
12283 |
}
|
|
|
12284 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12285 |
static {
|
|
|
12286 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12287 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12288 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAge_args.class, metaDataMap);
|
|
|
12289 |
}
|
|
|
12290 |
|
|
|
12291 |
public getInventoryAge_args() {
|
|
|
12292 |
}
|
|
|
12293 |
|
|
|
12294 |
/**
|
|
|
12295 |
* Performs a deep copy on <i>other</i>.
|
|
|
12296 |
*/
|
|
|
12297 |
public getInventoryAge_args(getInventoryAge_args other) {
|
|
|
12298 |
}
|
|
|
12299 |
|
|
|
12300 |
public getInventoryAge_args deepCopy() {
|
|
|
12301 |
return new getInventoryAge_args(this);
|
|
|
12302 |
}
|
|
|
12303 |
|
|
|
12304 |
@Override
|
|
|
12305 |
public void clear() {
|
|
|
12306 |
}
|
|
|
12307 |
|
|
|
12308 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12309 |
switch (field) {
|
|
|
12310 |
}
|
|
|
12311 |
}
|
|
|
12312 |
|
|
|
12313 |
public Object getFieldValue(_Fields field) {
|
|
|
12314 |
switch (field) {
|
|
|
12315 |
}
|
|
|
12316 |
throw new IllegalStateException();
|
|
|
12317 |
}
|
|
|
12318 |
|
|
|
12319 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12320 |
public boolean isSet(_Fields field) {
|
|
|
12321 |
if (field == null) {
|
|
|
12322 |
throw new IllegalArgumentException();
|
|
|
12323 |
}
|
|
|
12324 |
|
|
|
12325 |
switch (field) {
|
|
|
12326 |
}
|
|
|
12327 |
throw new IllegalStateException();
|
|
|
12328 |
}
|
|
|
12329 |
|
|
|
12330 |
@Override
|
|
|
12331 |
public boolean equals(Object that) {
|
|
|
12332 |
if (that == null)
|
|
|
12333 |
return false;
|
|
|
12334 |
if (that instanceof getInventoryAge_args)
|
|
|
12335 |
return this.equals((getInventoryAge_args)that);
|
|
|
12336 |
return false;
|
|
|
12337 |
}
|
|
|
12338 |
|
|
|
12339 |
public boolean equals(getInventoryAge_args that) {
|
|
|
12340 |
if (that == null)
|
|
|
12341 |
return false;
|
|
|
12342 |
|
|
|
12343 |
return true;
|
|
|
12344 |
}
|
|
|
12345 |
|
|
|
12346 |
@Override
|
|
|
12347 |
public int hashCode() {
|
|
|
12348 |
return 0;
|
|
|
12349 |
}
|
|
|
12350 |
|
|
|
12351 |
public int compareTo(getInventoryAge_args other) {
|
|
|
12352 |
if (!getClass().equals(other.getClass())) {
|
|
|
12353 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12354 |
}
|
|
|
12355 |
|
|
|
12356 |
int lastComparison = 0;
|
|
|
12357 |
getInventoryAge_args typedOther = (getInventoryAge_args)other;
|
|
|
12358 |
|
|
|
12359 |
return 0;
|
|
|
12360 |
}
|
|
|
12361 |
|
|
|
12362 |
public _Fields fieldForId(int fieldId) {
|
|
|
12363 |
return _Fields.findByThriftId(fieldId);
|
|
|
12364 |
}
|
|
|
12365 |
|
|
|
12366 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12367 |
org.apache.thrift.protocol.TField field;
|
|
|
12368 |
iprot.readStructBegin();
|
|
|
12369 |
while (true)
|
|
|
12370 |
{
|
|
|
12371 |
field = iprot.readFieldBegin();
|
|
|
12372 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12373 |
break;
|
|
|
12374 |
}
|
|
|
12375 |
switch (field.id) {
|
|
|
12376 |
default:
|
|
|
12377 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12378 |
}
|
|
|
12379 |
iprot.readFieldEnd();
|
|
|
12380 |
}
|
|
|
12381 |
iprot.readStructEnd();
|
|
|
12382 |
validate();
|
|
|
12383 |
}
|
|
|
12384 |
|
|
|
12385 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12386 |
validate();
|
|
|
12387 |
|
|
|
12388 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12389 |
oprot.writeFieldStop();
|
|
|
12390 |
oprot.writeStructEnd();
|
|
|
12391 |
}
|
|
|
12392 |
|
|
|
12393 |
@Override
|
|
|
12394 |
public String toString() {
|
|
|
12395 |
StringBuilder sb = new StringBuilder("getInventoryAge_args(");
|
|
|
12396 |
boolean first = true;
|
|
|
12397 |
|
|
|
12398 |
sb.append(")");
|
|
|
12399 |
return sb.toString();
|
|
|
12400 |
}
|
|
|
12401 |
|
|
|
12402 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12403 |
// check for required fields
|
|
|
12404 |
}
|
|
|
12405 |
|
|
|
12406 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12407 |
try {
|
|
|
12408 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12409 |
} catch (org.apache.thrift.TException te) {
|
|
|
12410 |
throw new java.io.IOException(te);
|
|
|
12411 |
}
|
|
|
12412 |
}
|
|
|
12413 |
|
|
|
12414 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12415 |
try {
|
|
|
12416 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12417 |
} catch (org.apache.thrift.TException te) {
|
|
|
12418 |
throw new java.io.IOException(te);
|
|
|
12419 |
}
|
|
|
12420 |
}
|
|
|
12421 |
|
|
|
12422 |
}
|
|
|
12423 |
|
|
|
12424 |
public static class getInventoryAge_result implements org.apache.thrift.TBase<getInventoryAge_result, getInventoryAge_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
12425 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAge_result");
|
|
|
12426 |
|
|
|
12427 |
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);
|
|
|
12428 |
|
|
|
12429 |
private List<InventoryAge> success; // required
|
|
|
12430 |
|
|
|
12431 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12432 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12433 |
SUCCESS((short)0, "success");
|
|
|
12434 |
|
|
|
12435 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12436 |
|
|
|
12437 |
static {
|
|
|
12438 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12439 |
byName.put(field.getFieldName(), field);
|
|
|
12440 |
}
|
|
|
12441 |
}
|
|
|
12442 |
|
|
|
12443 |
/**
|
|
|
12444 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12445 |
*/
|
|
|
12446 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12447 |
switch(fieldId) {
|
|
|
12448 |
case 0: // SUCCESS
|
|
|
12449 |
return SUCCESS;
|
|
|
12450 |
default:
|
|
|
12451 |
return null;
|
|
|
12452 |
}
|
|
|
12453 |
}
|
|
|
12454 |
|
|
|
12455 |
/**
|
|
|
12456 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12457 |
* if it is not found.
|
|
|
12458 |
*/
|
|
|
12459 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12460 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12461 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12462 |
return fields;
|
|
|
12463 |
}
|
|
|
12464 |
|
|
|
12465 |
/**
|
|
|
12466 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12467 |
*/
|
|
|
12468 |
public static _Fields findByName(String name) {
|
|
|
12469 |
return byName.get(name);
|
|
|
12470 |
}
|
|
|
12471 |
|
|
|
12472 |
private final short _thriftId;
|
|
|
12473 |
private final String _fieldName;
|
|
|
12474 |
|
|
|
12475 |
_Fields(short thriftId, String fieldName) {
|
|
|
12476 |
_thriftId = thriftId;
|
|
|
12477 |
_fieldName = fieldName;
|
|
|
12478 |
}
|
|
|
12479 |
|
|
|
12480 |
public short getThriftFieldId() {
|
|
|
12481 |
return _thriftId;
|
|
|
12482 |
}
|
|
|
12483 |
|
|
|
12484 |
public String getFieldName() {
|
|
|
12485 |
return _fieldName;
|
|
|
12486 |
}
|
|
|
12487 |
}
|
|
|
12488 |
|
|
|
12489 |
// isset id assignments
|
|
|
12490 |
|
|
|
12491 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12492 |
static {
|
|
|
12493 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12494 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12495 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
12496 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAge.class))));
|
|
|
12497 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12498 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAge_result.class, metaDataMap);
|
|
|
12499 |
}
|
|
|
12500 |
|
|
|
12501 |
public getInventoryAge_result() {
|
|
|
12502 |
}
|
|
|
12503 |
|
|
|
12504 |
public getInventoryAge_result(
|
|
|
12505 |
List<InventoryAge> success)
|
|
|
12506 |
{
|
|
|
12507 |
this();
|
|
|
12508 |
this.success = success;
|
|
|
12509 |
}
|
|
|
12510 |
|
|
|
12511 |
/**
|
|
|
12512 |
* Performs a deep copy on <i>other</i>.
|
|
|
12513 |
*/
|
|
|
12514 |
public getInventoryAge_result(getInventoryAge_result other) {
|
|
|
12515 |
if (other.isSetSuccess()) {
|
|
|
12516 |
List<InventoryAge> __this__success = new ArrayList<InventoryAge>();
|
|
|
12517 |
for (InventoryAge other_element : other.success) {
|
|
|
12518 |
__this__success.add(new InventoryAge(other_element));
|
|
|
12519 |
}
|
|
|
12520 |
this.success = __this__success;
|
|
|
12521 |
}
|
|
|
12522 |
}
|
|
|
12523 |
|
|
|
12524 |
public getInventoryAge_result deepCopy() {
|
|
|
12525 |
return new getInventoryAge_result(this);
|
|
|
12526 |
}
|
|
|
12527 |
|
|
|
12528 |
@Override
|
|
|
12529 |
public void clear() {
|
|
|
12530 |
this.success = null;
|
|
|
12531 |
}
|
|
|
12532 |
|
|
|
12533 |
public int getSuccessSize() {
|
|
|
12534 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
12535 |
}
|
|
|
12536 |
|
|
|
12537 |
public java.util.Iterator<InventoryAge> getSuccessIterator() {
|
|
|
12538 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
12539 |
}
|
|
|
12540 |
|
|
|
12541 |
public void addToSuccess(InventoryAge elem) {
|
|
|
12542 |
if (this.success == null) {
|
|
|
12543 |
this.success = new ArrayList<InventoryAge>();
|
|
|
12544 |
}
|
|
|
12545 |
this.success.add(elem);
|
|
|
12546 |
}
|
|
|
12547 |
|
|
|
12548 |
public List<InventoryAge> getSuccess() {
|
|
|
12549 |
return this.success;
|
|
|
12550 |
}
|
|
|
12551 |
|
|
|
12552 |
public void setSuccess(List<InventoryAge> success) {
|
|
|
12553 |
this.success = success;
|
|
|
12554 |
}
|
|
|
12555 |
|
|
|
12556 |
public void unsetSuccess() {
|
|
|
12557 |
this.success = null;
|
|
|
12558 |
}
|
|
|
12559 |
|
|
|
12560 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
12561 |
public boolean isSetSuccess() {
|
|
|
12562 |
return this.success != null;
|
|
|
12563 |
}
|
|
|
12564 |
|
|
|
12565 |
public void setSuccessIsSet(boolean value) {
|
|
|
12566 |
if (!value) {
|
|
|
12567 |
this.success = null;
|
|
|
12568 |
}
|
|
|
12569 |
}
|
|
|
12570 |
|
|
|
12571 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12572 |
switch (field) {
|
|
|
12573 |
case SUCCESS:
|
|
|
12574 |
if (value == null) {
|
|
|
12575 |
unsetSuccess();
|
|
|
12576 |
} else {
|
|
|
12577 |
setSuccess((List<InventoryAge>)value);
|
|
|
12578 |
}
|
|
|
12579 |
break;
|
|
|
12580 |
|
|
|
12581 |
}
|
|
|
12582 |
}
|
|
|
12583 |
|
|
|
12584 |
public Object getFieldValue(_Fields field) {
|
|
|
12585 |
switch (field) {
|
|
|
12586 |
case SUCCESS:
|
|
|
12587 |
return getSuccess();
|
|
|
12588 |
|
|
|
12589 |
}
|
|
|
12590 |
throw new IllegalStateException();
|
|
|
12591 |
}
|
|
|
12592 |
|
|
|
12593 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12594 |
public boolean isSet(_Fields field) {
|
|
|
12595 |
if (field == null) {
|
|
|
12596 |
throw new IllegalArgumentException();
|
|
|
12597 |
}
|
|
|
12598 |
|
|
|
12599 |
switch (field) {
|
|
|
12600 |
case SUCCESS:
|
|
|
12601 |
return isSetSuccess();
|
|
|
12602 |
}
|
|
|
12603 |
throw new IllegalStateException();
|
|
|
12604 |
}
|
|
|
12605 |
|
|
|
12606 |
@Override
|
|
|
12607 |
public boolean equals(Object that) {
|
|
|
12608 |
if (that == null)
|
|
|
12609 |
return false;
|
|
|
12610 |
if (that instanceof getInventoryAge_result)
|
|
|
12611 |
return this.equals((getInventoryAge_result)that);
|
|
|
12612 |
return false;
|
|
|
12613 |
}
|
|
|
12614 |
|
|
|
12615 |
public boolean equals(getInventoryAge_result that) {
|
|
|
12616 |
if (that == null)
|
|
|
12617 |
return false;
|
|
|
12618 |
|
|
|
12619 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
12620 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
12621 |
if (this_present_success || that_present_success) {
|
|
|
12622 |
if (!(this_present_success && that_present_success))
|
|
|
12623 |
return false;
|
|
|
12624 |
if (!this.success.equals(that.success))
|
|
|
12625 |
return false;
|
|
|
12626 |
}
|
|
|
12627 |
|
|
|
12628 |
return true;
|
|
|
12629 |
}
|
|
|
12630 |
|
|
|
12631 |
@Override
|
|
|
12632 |
public int hashCode() {
|
|
|
12633 |
return 0;
|
|
|
12634 |
}
|
|
|
12635 |
|
|
|
12636 |
public int compareTo(getInventoryAge_result other) {
|
|
|
12637 |
if (!getClass().equals(other.getClass())) {
|
|
|
12638 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12639 |
}
|
|
|
12640 |
|
|
|
12641 |
int lastComparison = 0;
|
|
|
12642 |
getInventoryAge_result typedOther = (getInventoryAge_result)other;
|
|
|
12643 |
|
|
|
12644 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
12645 |
if (lastComparison != 0) {
|
|
|
12646 |
return lastComparison;
|
|
|
12647 |
}
|
|
|
12648 |
if (isSetSuccess()) {
|
|
|
12649 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
12650 |
if (lastComparison != 0) {
|
|
|
12651 |
return lastComparison;
|
|
|
12652 |
}
|
|
|
12653 |
}
|
|
|
12654 |
return 0;
|
|
|
12655 |
}
|
|
|
12656 |
|
|
|
12657 |
public _Fields fieldForId(int fieldId) {
|
|
|
12658 |
return _Fields.findByThriftId(fieldId);
|
|
|
12659 |
}
|
|
|
12660 |
|
|
|
12661 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12662 |
org.apache.thrift.protocol.TField field;
|
|
|
12663 |
iprot.readStructBegin();
|
|
|
12664 |
while (true)
|
|
|
12665 |
{
|
|
|
12666 |
field = iprot.readFieldBegin();
|
|
|
12667 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12668 |
break;
|
|
|
12669 |
}
|
|
|
12670 |
switch (field.id) {
|
|
|
12671 |
case 0: // SUCCESS
|
|
|
12672 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
12673 |
{
|
|
|
12674 |
org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
|
|
|
12675 |
this.success = new ArrayList<InventoryAge>(_list20.size);
|
|
|
12676 |
for (int _i21 = 0; _i21 < _list20.size; ++_i21)
|
|
|
12677 |
{
|
|
|
12678 |
InventoryAge _elem22; // required
|
|
|
12679 |
_elem22 = new InventoryAge();
|
|
|
12680 |
_elem22.read(iprot);
|
|
|
12681 |
this.success.add(_elem22);
|
|
|
12682 |
}
|
|
|
12683 |
iprot.readListEnd();
|
|
|
12684 |
}
|
|
|
12685 |
} else {
|
|
|
12686 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12687 |
}
|
|
|
12688 |
break;
|
|
|
12689 |
default:
|
|
|
12690 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12691 |
}
|
|
|
12692 |
iprot.readFieldEnd();
|
|
|
12693 |
}
|
|
|
12694 |
iprot.readStructEnd();
|
|
|
12695 |
validate();
|
|
|
12696 |
}
|
|
|
12697 |
|
|
|
12698 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12699 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12700 |
|
|
|
12701 |
if (this.isSetSuccess()) {
|
|
|
12702 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
12703 |
{
|
|
|
12704 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
12705 |
for (InventoryAge _iter23 : this.success)
|
|
|
12706 |
{
|
|
|
12707 |
_iter23.write(oprot);
|
|
|
12708 |
}
|
|
|
12709 |
oprot.writeListEnd();
|
|
|
12710 |
}
|
|
|
12711 |
oprot.writeFieldEnd();
|
|
|
12712 |
}
|
|
|
12713 |
oprot.writeFieldStop();
|
|
|
12714 |
oprot.writeStructEnd();
|
|
|
12715 |
}
|
|
|
12716 |
|
|
|
12717 |
@Override
|
|
|
12718 |
public String toString() {
|
|
|
12719 |
StringBuilder sb = new StringBuilder("getInventoryAge_result(");
|
|
|
12720 |
boolean first = true;
|
|
|
12721 |
|
|
|
12722 |
sb.append("success:");
|
|
|
12723 |
if (this.success == null) {
|
|
|
12724 |
sb.append("null");
|
|
|
12725 |
} else {
|
|
|
12726 |
sb.append(this.success);
|
|
|
12727 |
}
|
|
|
12728 |
first = false;
|
|
|
12729 |
sb.append(")");
|
|
|
12730 |
return sb.toString();
|
|
|
12731 |
}
|
|
|
12732 |
|
|
|
12733 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12734 |
// check for required fields
|
|
|
12735 |
}
|
|
|
12736 |
|
|
|
12737 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12738 |
try {
|
|
|
12739 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12740 |
} catch (org.apache.thrift.TException te) {
|
|
|
12741 |
throw new java.io.IOException(te);
|
|
|
12742 |
}
|
|
|
12743 |
}
|
|
|
12744 |
|
|
|
12745 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12746 |
try {
|
|
|
12747 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12748 |
} catch (org.apache.thrift.TException te) {
|
|
|
12749 |
throw new java.io.IOException(te);
|
|
|
12750 |
}
|
|
|
12751 |
}
|
|
|
12752 |
|
|
|
12753 |
}
|
|
|
12754 |
|
| 6322 |
amar.kumar |
12755 |
public static class getInventoryScansForItem_args implements org.apache.thrift.TBase<getInventoryScansForItem_args, getInventoryScansForItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
12756 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_args");
|
|
|
12757 |
|
|
|
12758 |
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);
|
|
|
12759 |
private static final org.apache.thrift.protocol.TField FROM_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("fromDate", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
12760 |
private static final org.apache.thrift.protocol.TField TO_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("toDate", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
12761 |
|
|
|
12762 |
private long itemId; // required
|
|
|
12763 |
private long fromDate; // required
|
|
|
12764 |
private long toDate; // required
|
|
|
12765 |
|
|
|
12766 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12767 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12768 |
ITEM_ID((short)1, "itemId"),
|
|
|
12769 |
FROM_DATE((short)2, "fromDate"),
|
|
|
12770 |
TO_DATE((short)3, "toDate");
|
|
|
12771 |
|
|
|
12772 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12773 |
|
|
|
12774 |
static {
|
|
|
12775 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12776 |
byName.put(field.getFieldName(), field);
|
|
|
12777 |
}
|
|
|
12778 |
}
|
|
|
12779 |
|
|
|
12780 |
/**
|
|
|
12781 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12782 |
*/
|
|
|
12783 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12784 |
switch(fieldId) {
|
|
|
12785 |
case 1: // ITEM_ID
|
|
|
12786 |
return ITEM_ID;
|
|
|
12787 |
case 2: // FROM_DATE
|
|
|
12788 |
return FROM_DATE;
|
|
|
12789 |
case 3: // TO_DATE
|
|
|
12790 |
return TO_DATE;
|
|
|
12791 |
default:
|
|
|
12792 |
return null;
|
|
|
12793 |
}
|
|
|
12794 |
}
|
|
|
12795 |
|
|
|
12796 |
/**
|
|
|
12797 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12798 |
* if it is not found.
|
|
|
12799 |
*/
|
|
|
12800 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12801 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12802 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12803 |
return fields;
|
|
|
12804 |
}
|
|
|
12805 |
|
|
|
12806 |
/**
|
|
|
12807 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12808 |
*/
|
|
|
12809 |
public static _Fields findByName(String name) {
|
|
|
12810 |
return byName.get(name);
|
|
|
12811 |
}
|
|
|
12812 |
|
|
|
12813 |
private final short _thriftId;
|
|
|
12814 |
private final String _fieldName;
|
|
|
12815 |
|
|
|
12816 |
_Fields(short thriftId, String fieldName) {
|
|
|
12817 |
_thriftId = thriftId;
|
|
|
12818 |
_fieldName = fieldName;
|
|
|
12819 |
}
|
|
|
12820 |
|
|
|
12821 |
public short getThriftFieldId() {
|
|
|
12822 |
return _thriftId;
|
|
|
12823 |
}
|
|
|
12824 |
|
|
|
12825 |
public String getFieldName() {
|
|
|
12826 |
return _fieldName;
|
|
|
12827 |
}
|
|
|
12828 |
}
|
|
|
12829 |
|
|
|
12830 |
// isset id assignments
|
|
|
12831 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
12832 |
private static final int __FROMDATE_ISSET_ID = 1;
|
|
|
12833 |
private static final int __TODATE_ISSET_ID = 2;
|
|
|
12834 |
private BitSet __isset_bit_vector = new BitSet(3);
|
|
|
12835 |
|
|
|
12836 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12837 |
static {
|
|
|
12838 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12839 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12840 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
12841 |
tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12842 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
12843 |
tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12844 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
12845 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12846 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_args.class, metaDataMap);
|
|
|
12847 |
}
|
|
|
12848 |
|
|
|
12849 |
public getInventoryScansForItem_args() {
|
|
|
12850 |
}
|
|
|
12851 |
|
|
|
12852 |
public getInventoryScansForItem_args(
|
|
|
12853 |
long itemId,
|
|
|
12854 |
long fromDate,
|
|
|
12855 |
long toDate)
|
|
|
12856 |
{
|
|
|
12857 |
this();
|
|
|
12858 |
this.itemId = itemId;
|
|
|
12859 |
setItemIdIsSet(true);
|
|
|
12860 |
this.fromDate = fromDate;
|
|
|
12861 |
setFromDateIsSet(true);
|
|
|
12862 |
this.toDate = toDate;
|
|
|
12863 |
setToDateIsSet(true);
|
|
|
12864 |
}
|
|
|
12865 |
|
|
|
12866 |
/**
|
|
|
12867 |
* Performs a deep copy on <i>other</i>.
|
|
|
12868 |
*/
|
|
|
12869 |
public getInventoryScansForItem_args(getInventoryScansForItem_args other) {
|
|
|
12870 |
__isset_bit_vector.clear();
|
|
|
12871 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
12872 |
this.itemId = other.itemId;
|
|
|
12873 |
this.fromDate = other.fromDate;
|
|
|
12874 |
this.toDate = other.toDate;
|
|
|
12875 |
}
|
|
|
12876 |
|
|
|
12877 |
public getInventoryScansForItem_args deepCopy() {
|
|
|
12878 |
return new getInventoryScansForItem_args(this);
|
|
|
12879 |
}
|
|
|
12880 |
|
|
|
12881 |
@Override
|
|
|
12882 |
public void clear() {
|
|
|
12883 |
setItemIdIsSet(false);
|
|
|
12884 |
this.itemId = 0;
|
|
|
12885 |
setFromDateIsSet(false);
|
|
|
12886 |
this.fromDate = 0;
|
|
|
12887 |
setToDateIsSet(false);
|
|
|
12888 |
this.toDate = 0;
|
|
|
12889 |
}
|
|
|
12890 |
|
|
|
12891 |
public long getItemId() {
|
|
|
12892 |
return this.itemId;
|
|
|
12893 |
}
|
|
|
12894 |
|
|
|
12895 |
public void setItemId(long itemId) {
|
|
|
12896 |
this.itemId = itemId;
|
|
|
12897 |
setItemIdIsSet(true);
|
|
|
12898 |
}
|
|
|
12899 |
|
|
|
12900 |
public void unsetItemId() {
|
|
|
12901 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
12902 |
}
|
|
|
12903 |
|
|
|
12904 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
12905 |
public boolean isSetItemId() {
|
|
|
12906 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
12907 |
}
|
|
|
12908 |
|
|
|
12909 |
public void setItemIdIsSet(boolean value) {
|
|
|
12910 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
12911 |
}
|
|
|
12912 |
|
|
|
12913 |
public long getFromDate() {
|
|
|
12914 |
return this.fromDate;
|
|
|
12915 |
}
|
|
|
12916 |
|
|
|
12917 |
public void setFromDate(long fromDate) {
|
|
|
12918 |
this.fromDate = fromDate;
|
|
|
12919 |
setFromDateIsSet(true);
|
|
|
12920 |
}
|
|
|
12921 |
|
|
|
12922 |
public void unsetFromDate() {
|
|
|
12923 |
__isset_bit_vector.clear(__FROMDATE_ISSET_ID);
|
|
|
12924 |
}
|
|
|
12925 |
|
|
|
12926 |
/** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
|
|
|
12927 |
public boolean isSetFromDate() {
|
|
|
12928 |
return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
|
|
|
12929 |
}
|
|
|
12930 |
|
|
|
12931 |
public void setFromDateIsSet(boolean value) {
|
|
|
12932 |
__isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
|
|
|
12933 |
}
|
|
|
12934 |
|
|
|
12935 |
public long getToDate() {
|
|
|
12936 |
return this.toDate;
|
|
|
12937 |
}
|
|
|
12938 |
|
|
|
12939 |
public void setToDate(long toDate) {
|
|
|
12940 |
this.toDate = toDate;
|
|
|
12941 |
setToDateIsSet(true);
|
|
|
12942 |
}
|
|
|
12943 |
|
|
|
12944 |
public void unsetToDate() {
|
|
|
12945 |
__isset_bit_vector.clear(__TODATE_ISSET_ID);
|
|
|
12946 |
}
|
|
|
12947 |
|
|
|
12948 |
/** Returns true if field toDate is set (has been assigned a value) and false otherwise */
|
|
|
12949 |
public boolean isSetToDate() {
|
|
|
12950 |
return __isset_bit_vector.get(__TODATE_ISSET_ID);
|
|
|
12951 |
}
|
|
|
12952 |
|
|
|
12953 |
public void setToDateIsSet(boolean value) {
|
|
|
12954 |
__isset_bit_vector.set(__TODATE_ISSET_ID, value);
|
|
|
12955 |
}
|
|
|
12956 |
|
|
|
12957 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12958 |
switch (field) {
|
|
|
12959 |
case ITEM_ID:
|
|
|
12960 |
if (value == null) {
|
|
|
12961 |
unsetItemId();
|
|
|
12962 |
} else {
|
|
|
12963 |
setItemId((Long)value);
|
|
|
12964 |
}
|
|
|
12965 |
break;
|
|
|
12966 |
|
|
|
12967 |
case FROM_DATE:
|
|
|
12968 |
if (value == null) {
|
|
|
12969 |
unsetFromDate();
|
|
|
12970 |
} else {
|
|
|
12971 |
setFromDate((Long)value);
|
|
|
12972 |
}
|
|
|
12973 |
break;
|
|
|
12974 |
|
|
|
12975 |
case TO_DATE:
|
|
|
12976 |
if (value == null) {
|
|
|
12977 |
unsetToDate();
|
|
|
12978 |
} else {
|
|
|
12979 |
setToDate((Long)value);
|
|
|
12980 |
}
|
|
|
12981 |
break;
|
|
|
12982 |
|
|
|
12983 |
}
|
|
|
12984 |
}
|
|
|
12985 |
|
|
|
12986 |
public Object getFieldValue(_Fields field) {
|
|
|
12987 |
switch (field) {
|
|
|
12988 |
case ITEM_ID:
|
|
|
12989 |
return Long.valueOf(getItemId());
|
|
|
12990 |
|
|
|
12991 |
case FROM_DATE:
|
|
|
12992 |
return Long.valueOf(getFromDate());
|
|
|
12993 |
|
|
|
12994 |
case TO_DATE:
|
|
|
12995 |
return Long.valueOf(getToDate());
|
|
|
12996 |
|
|
|
12997 |
}
|
|
|
12998 |
throw new IllegalStateException();
|
|
|
12999 |
}
|
|
|
13000 |
|
|
|
13001 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13002 |
public boolean isSet(_Fields field) {
|
|
|
13003 |
if (field == null) {
|
|
|
13004 |
throw new IllegalArgumentException();
|
|
|
13005 |
}
|
|
|
13006 |
|
|
|
13007 |
switch (field) {
|
|
|
13008 |
case ITEM_ID:
|
|
|
13009 |
return isSetItemId();
|
|
|
13010 |
case FROM_DATE:
|
|
|
13011 |
return isSetFromDate();
|
|
|
13012 |
case TO_DATE:
|
|
|
13013 |
return isSetToDate();
|
|
|
13014 |
}
|
|
|
13015 |
throw new IllegalStateException();
|
|
|
13016 |
}
|
|
|
13017 |
|
|
|
13018 |
@Override
|
|
|
13019 |
public boolean equals(Object that) {
|
|
|
13020 |
if (that == null)
|
|
|
13021 |
return false;
|
|
|
13022 |
if (that instanceof getInventoryScansForItem_args)
|
|
|
13023 |
return this.equals((getInventoryScansForItem_args)that);
|
|
|
13024 |
return false;
|
|
|
13025 |
}
|
|
|
13026 |
|
|
|
13027 |
public boolean equals(getInventoryScansForItem_args that) {
|
|
|
13028 |
if (that == null)
|
|
|
13029 |
return false;
|
|
|
13030 |
|
|
|
13031 |
boolean this_present_itemId = true;
|
|
|
13032 |
boolean that_present_itemId = true;
|
|
|
13033 |
if (this_present_itemId || that_present_itemId) {
|
|
|
13034 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
13035 |
return false;
|
|
|
13036 |
if (this.itemId != that.itemId)
|
|
|
13037 |
return false;
|
|
|
13038 |
}
|
|
|
13039 |
|
|
|
13040 |
boolean this_present_fromDate = true;
|
|
|
13041 |
boolean that_present_fromDate = true;
|
|
|
13042 |
if (this_present_fromDate || that_present_fromDate) {
|
|
|
13043 |
if (!(this_present_fromDate && that_present_fromDate))
|
|
|
13044 |
return false;
|
|
|
13045 |
if (this.fromDate != that.fromDate)
|
|
|
13046 |
return false;
|
|
|
13047 |
}
|
|
|
13048 |
|
|
|
13049 |
boolean this_present_toDate = true;
|
|
|
13050 |
boolean that_present_toDate = true;
|
|
|
13051 |
if (this_present_toDate || that_present_toDate) {
|
|
|
13052 |
if (!(this_present_toDate && that_present_toDate))
|
|
|
13053 |
return false;
|
|
|
13054 |
if (this.toDate != that.toDate)
|
|
|
13055 |
return false;
|
|
|
13056 |
}
|
|
|
13057 |
|
|
|
13058 |
return true;
|
|
|
13059 |
}
|
|
|
13060 |
|
|
|
13061 |
@Override
|
|
|
13062 |
public int hashCode() {
|
|
|
13063 |
return 0;
|
|
|
13064 |
}
|
|
|
13065 |
|
|
|
13066 |
public int compareTo(getInventoryScansForItem_args other) {
|
|
|
13067 |
if (!getClass().equals(other.getClass())) {
|
|
|
13068 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13069 |
}
|
|
|
13070 |
|
|
|
13071 |
int lastComparison = 0;
|
|
|
13072 |
getInventoryScansForItem_args typedOther = (getInventoryScansForItem_args)other;
|
|
|
13073 |
|
|
|
13074 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
13075 |
if (lastComparison != 0) {
|
|
|
13076 |
return lastComparison;
|
|
|
13077 |
}
|
|
|
13078 |
if (isSetItemId()) {
|
|
|
13079 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
13080 |
if (lastComparison != 0) {
|
|
|
13081 |
return lastComparison;
|
|
|
13082 |
}
|
|
|
13083 |
}
|
|
|
13084 |
lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
|
|
|
13085 |
if (lastComparison != 0) {
|
|
|
13086 |
return lastComparison;
|
|
|
13087 |
}
|
|
|
13088 |
if (isSetFromDate()) {
|
|
|
13089 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
|
|
|
13090 |
if (lastComparison != 0) {
|
|
|
13091 |
return lastComparison;
|
|
|
13092 |
}
|
|
|
13093 |
}
|
|
|
13094 |
lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
|
|
|
13095 |
if (lastComparison != 0) {
|
|
|
13096 |
return lastComparison;
|
|
|
13097 |
}
|
|
|
13098 |
if (isSetToDate()) {
|
|
|
13099 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
|
|
|
13100 |
if (lastComparison != 0) {
|
|
|
13101 |
return lastComparison;
|
|
|
13102 |
}
|
|
|
13103 |
}
|
|
|
13104 |
return 0;
|
|
|
13105 |
}
|
|
|
13106 |
|
|
|
13107 |
public _Fields fieldForId(int fieldId) {
|
|
|
13108 |
return _Fields.findByThriftId(fieldId);
|
|
|
13109 |
}
|
|
|
13110 |
|
|
|
13111 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13112 |
org.apache.thrift.protocol.TField field;
|
|
|
13113 |
iprot.readStructBegin();
|
|
|
13114 |
while (true)
|
|
|
13115 |
{
|
|
|
13116 |
field = iprot.readFieldBegin();
|
|
|
13117 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13118 |
break;
|
|
|
13119 |
}
|
|
|
13120 |
switch (field.id) {
|
|
|
13121 |
case 1: // ITEM_ID
|
|
|
13122 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
13123 |
this.itemId = iprot.readI64();
|
|
|
13124 |
setItemIdIsSet(true);
|
|
|
13125 |
} else {
|
|
|
13126 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13127 |
}
|
|
|
13128 |
break;
|
|
|
13129 |
case 2: // FROM_DATE
|
|
|
13130 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
13131 |
this.fromDate = iprot.readI64();
|
|
|
13132 |
setFromDateIsSet(true);
|
|
|
13133 |
} else {
|
|
|
13134 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13135 |
}
|
|
|
13136 |
break;
|
|
|
13137 |
case 3: // TO_DATE
|
|
|
13138 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
13139 |
this.toDate = iprot.readI64();
|
|
|
13140 |
setToDateIsSet(true);
|
|
|
13141 |
} else {
|
|
|
13142 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13143 |
}
|
|
|
13144 |
break;
|
|
|
13145 |
default:
|
|
|
13146 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13147 |
}
|
|
|
13148 |
iprot.readFieldEnd();
|
|
|
13149 |
}
|
|
|
13150 |
iprot.readStructEnd();
|
|
|
13151 |
validate();
|
|
|
13152 |
}
|
|
|
13153 |
|
|
|
13154 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13155 |
validate();
|
|
|
13156 |
|
|
|
13157 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13158 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
13159 |
oprot.writeI64(this.itemId);
|
|
|
13160 |
oprot.writeFieldEnd();
|
|
|
13161 |
oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
|
|
|
13162 |
oprot.writeI64(this.fromDate);
|
|
|
13163 |
oprot.writeFieldEnd();
|
|
|
13164 |
oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
|
|
|
13165 |
oprot.writeI64(this.toDate);
|
|
|
13166 |
oprot.writeFieldEnd();
|
|
|
13167 |
oprot.writeFieldStop();
|
|
|
13168 |
oprot.writeStructEnd();
|
|
|
13169 |
}
|
|
|
13170 |
|
|
|
13171 |
@Override
|
|
|
13172 |
public String toString() {
|
|
|
13173 |
StringBuilder sb = new StringBuilder("getInventoryScansForItem_args(");
|
|
|
13174 |
boolean first = true;
|
|
|
13175 |
|
|
|
13176 |
sb.append("itemId:");
|
|
|
13177 |
sb.append(this.itemId);
|
|
|
13178 |
first = false;
|
|
|
13179 |
if (!first) sb.append(", ");
|
|
|
13180 |
sb.append("fromDate:");
|
|
|
13181 |
sb.append(this.fromDate);
|
|
|
13182 |
first = false;
|
|
|
13183 |
if (!first) sb.append(", ");
|
|
|
13184 |
sb.append("toDate:");
|
|
|
13185 |
sb.append(this.toDate);
|
|
|
13186 |
first = false;
|
|
|
13187 |
sb.append(")");
|
|
|
13188 |
return sb.toString();
|
|
|
13189 |
}
|
|
|
13190 |
|
|
|
13191 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13192 |
// check for required fields
|
|
|
13193 |
}
|
|
|
13194 |
|
|
|
13195 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13196 |
try {
|
|
|
13197 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13198 |
} catch (org.apache.thrift.TException te) {
|
|
|
13199 |
throw new java.io.IOException(te);
|
|
|
13200 |
}
|
|
|
13201 |
}
|
|
|
13202 |
|
|
|
13203 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13204 |
try {
|
|
|
13205 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13206 |
} catch (org.apache.thrift.TException te) {
|
|
|
13207 |
throw new java.io.IOException(te);
|
|
|
13208 |
}
|
|
|
13209 |
}
|
|
|
13210 |
|
|
|
13211 |
}
|
|
|
13212 |
|
|
|
13213 |
public static class getInventoryScansForItem_result implements org.apache.thrift.TBase<getInventoryScansForItem_result, getInventoryScansForItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
13214 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_result");
|
|
|
13215 |
|
|
|
13216 |
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);
|
|
|
13217 |
|
|
|
13218 |
private List<Scan> success; // required
|
|
|
13219 |
|
|
|
13220 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13221 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13222 |
SUCCESS((short)0, "success");
|
|
|
13223 |
|
|
|
13224 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13225 |
|
|
|
13226 |
static {
|
|
|
13227 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13228 |
byName.put(field.getFieldName(), field);
|
|
|
13229 |
}
|
|
|
13230 |
}
|
|
|
13231 |
|
|
|
13232 |
/**
|
|
|
13233 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13234 |
*/
|
|
|
13235 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13236 |
switch(fieldId) {
|
|
|
13237 |
case 0: // SUCCESS
|
|
|
13238 |
return SUCCESS;
|
|
|
13239 |
default:
|
|
|
13240 |
return null;
|
|
|
13241 |
}
|
|
|
13242 |
}
|
|
|
13243 |
|
|
|
13244 |
/**
|
|
|
13245 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13246 |
* if it is not found.
|
|
|
13247 |
*/
|
|
|
13248 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13249 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13250 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13251 |
return fields;
|
|
|
13252 |
}
|
|
|
13253 |
|
|
|
13254 |
/**
|
|
|
13255 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13256 |
*/
|
|
|
13257 |
public static _Fields findByName(String name) {
|
|
|
13258 |
return byName.get(name);
|
|
|
13259 |
}
|
|
|
13260 |
|
|
|
13261 |
private final short _thriftId;
|
|
|
13262 |
private final String _fieldName;
|
|
|
13263 |
|
|
|
13264 |
_Fields(short thriftId, String fieldName) {
|
|
|
13265 |
_thriftId = thriftId;
|
|
|
13266 |
_fieldName = fieldName;
|
|
|
13267 |
}
|
|
|
13268 |
|
|
|
13269 |
public short getThriftFieldId() {
|
|
|
13270 |
return _thriftId;
|
|
|
13271 |
}
|
|
|
13272 |
|
|
|
13273 |
public String getFieldName() {
|
|
|
13274 |
return _fieldName;
|
|
|
13275 |
}
|
|
|
13276 |
}
|
|
|
13277 |
|
|
|
13278 |
// isset id assignments
|
|
|
13279 |
|
|
|
13280 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13281 |
static {
|
|
|
13282 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13283 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13284 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
13285 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
|
|
|
13286 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13287 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_result.class, metaDataMap);
|
|
|
13288 |
}
|
|
|
13289 |
|
|
|
13290 |
public getInventoryScansForItem_result() {
|
|
|
13291 |
}
|
|
|
13292 |
|
|
|
13293 |
public getInventoryScansForItem_result(
|
|
|
13294 |
List<Scan> success)
|
|
|
13295 |
{
|
|
|
13296 |
this();
|
|
|
13297 |
this.success = success;
|
|
|
13298 |
}
|
|
|
13299 |
|
|
|
13300 |
/**
|
|
|
13301 |
* Performs a deep copy on <i>other</i>.
|
|
|
13302 |
*/
|
|
|
13303 |
public getInventoryScansForItem_result(getInventoryScansForItem_result other) {
|
|
|
13304 |
if (other.isSetSuccess()) {
|
|
|
13305 |
List<Scan> __this__success = new ArrayList<Scan>();
|
|
|
13306 |
for (Scan other_element : other.success) {
|
|
|
13307 |
__this__success.add(new Scan(other_element));
|
|
|
13308 |
}
|
|
|
13309 |
this.success = __this__success;
|
|
|
13310 |
}
|
|
|
13311 |
}
|
|
|
13312 |
|
|
|
13313 |
public getInventoryScansForItem_result deepCopy() {
|
|
|
13314 |
return new getInventoryScansForItem_result(this);
|
|
|
13315 |
}
|
|
|
13316 |
|
|
|
13317 |
@Override
|
|
|
13318 |
public void clear() {
|
|
|
13319 |
this.success = null;
|
|
|
13320 |
}
|
|
|
13321 |
|
|
|
13322 |
public int getSuccessSize() {
|
|
|
13323 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
13324 |
}
|
|
|
13325 |
|
|
|
13326 |
public java.util.Iterator<Scan> getSuccessIterator() {
|
|
|
13327 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
13328 |
}
|
|
|
13329 |
|
|
|
13330 |
public void addToSuccess(Scan elem) {
|
|
|
13331 |
if (this.success == null) {
|
|
|
13332 |
this.success = new ArrayList<Scan>();
|
|
|
13333 |
}
|
|
|
13334 |
this.success.add(elem);
|
|
|
13335 |
}
|
|
|
13336 |
|
|
|
13337 |
public List<Scan> getSuccess() {
|
|
|
13338 |
return this.success;
|
|
|
13339 |
}
|
|
|
13340 |
|
|
|
13341 |
public void setSuccess(List<Scan> success) {
|
|
|
13342 |
this.success = success;
|
|
|
13343 |
}
|
|
|
13344 |
|
|
|
13345 |
public void unsetSuccess() {
|
|
|
13346 |
this.success = null;
|
|
|
13347 |
}
|
|
|
13348 |
|
|
|
13349 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
13350 |
public boolean isSetSuccess() {
|
|
|
13351 |
return this.success != null;
|
|
|
13352 |
}
|
|
|
13353 |
|
|
|
13354 |
public void setSuccessIsSet(boolean value) {
|
|
|
13355 |
if (!value) {
|
|
|
13356 |
this.success = null;
|
|
|
13357 |
}
|
|
|
13358 |
}
|
|
|
13359 |
|
|
|
13360 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13361 |
switch (field) {
|
|
|
13362 |
case SUCCESS:
|
|
|
13363 |
if (value == null) {
|
|
|
13364 |
unsetSuccess();
|
|
|
13365 |
} else {
|
|
|
13366 |
setSuccess((List<Scan>)value);
|
|
|
13367 |
}
|
|
|
13368 |
break;
|
|
|
13369 |
|
|
|
13370 |
}
|
|
|
13371 |
}
|
|
|
13372 |
|
|
|
13373 |
public Object getFieldValue(_Fields field) {
|
|
|
13374 |
switch (field) {
|
|
|
13375 |
case SUCCESS:
|
|
|
13376 |
return getSuccess();
|
|
|
13377 |
|
|
|
13378 |
}
|
|
|
13379 |
throw new IllegalStateException();
|
|
|
13380 |
}
|
|
|
13381 |
|
|
|
13382 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13383 |
public boolean isSet(_Fields field) {
|
|
|
13384 |
if (field == null) {
|
|
|
13385 |
throw new IllegalArgumentException();
|
|
|
13386 |
}
|
|
|
13387 |
|
|
|
13388 |
switch (field) {
|
|
|
13389 |
case SUCCESS:
|
|
|
13390 |
return isSetSuccess();
|
|
|
13391 |
}
|
|
|
13392 |
throw new IllegalStateException();
|
|
|
13393 |
}
|
|
|
13394 |
|
|
|
13395 |
@Override
|
|
|
13396 |
public boolean equals(Object that) {
|
|
|
13397 |
if (that == null)
|
|
|
13398 |
return false;
|
|
|
13399 |
if (that instanceof getInventoryScansForItem_result)
|
|
|
13400 |
return this.equals((getInventoryScansForItem_result)that);
|
|
|
13401 |
return false;
|
|
|
13402 |
}
|
|
|
13403 |
|
|
|
13404 |
public boolean equals(getInventoryScansForItem_result that) {
|
|
|
13405 |
if (that == null)
|
|
|
13406 |
return false;
|
|
|
13407 |
|
|
|
13408 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
13409 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
13410 |
if (this_present_success || that_present_success) {
|
|
|
13411 |
if (!(this_present_success && that_present_success))
|
|
|
13412 |
return false;
|
|
|
13413 |
if (!this.success.equals(that.success))
|
|
|
13414 |
return false;
|
|
|
13415 |
}
|
|
|
13416 |
|
|
|
13417 |
return true;
|
|
|
13418 |
}
|
|
|
13419 |
|
|
|
13420 |
@Override
|
|
|
13421 |
public int hashCode() {
|
|
|
13422 |
return 0;
|
|
|
13423 |
}
|
|
|
13424 |
|
|
|
13425 |
public int compareTo(getInventoryScansForItem_result other) {
|
|
|
13426 |
if (!getClass().equals(other.getClass())) {
|
|
|
13427 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13428 |
}
|
|
|
13429 |
|
|
|
13430 |
int lastComparison = 0;
|
|
|
13431 |
getInventoryScansForItem_result typedOther = (getInventoryScansForItem_result)other;
|
|
|
13432 |
|
|
|
13433 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
13434 |
if (lastComparison != 0) {
|
|
|
13435 |
return lastComparison;
|
|
|
13436 |
}
|
|
|
13437 |
if (isSetSuccess()) {
|
|
|
13438 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
13439 |
if (lastComparison != 0) {
|
|
|
13440 |
return lastComparison;
|
|
|
13441 |
}
|
|
|
13442 |
}
|
|
|
13443 |
return 0;
|
|
|
13444 |
}
|
|
|
13445 |
|
|
|
13446 |
public _Fields fieldForId(int fieldId) {
|
|
|
13447 |
return _Fields.findByThriftId(fieldId);
|
|
|
13448 |
}
|
|
|
13449 |
|
|
|
13450 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13451 |
org.apache.thrift.protocol.TField field;
|
|
|
13452 |
iprot.readStructBegin();
|
|
|
13453 |
while (true)
|
|
|
13454 |
{
|
|
|
13455 |
field = iprot.readFieldBegin();
|
|
|
13456 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13457 |
break;
|
|
|
13458 |
}
|
|
|
13459 |
switch (field.id) {
|
|
|
13460 |
case 0: // SUCCESS
|
|
|
13461 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
13462 |
{
|
|
|
13463 |
org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
|
|
|
13464 |
this.success = new ArrayList<Scan>(_list24.size);
|
|
|
13465 |
for (int _i25 = 0; _i25 < _list24.size; ++_i25)
|
|
|
13466 |
{
|
|
|
13467 |
Scan _elem26; // required
|
|
|
13468 |
_elem26 = new Scan();
|
|
|
13469 |
_elem26.read(iprot);
|
|
|
13470 |
this.success.add(_elem26);
|
|
|
13471 |
}
|
|
|
13472 |
iprot.readListEnd();
|
|
|
13473 |
}
|
|
|
13474 |
} else {
|
|
|
13475 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13476 |
}
|
|
|
13477 |
break;
|
|
|
13478 |
default:
|
|
|
13479 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13480 |
}
|
|
|
13481 |
iprot.readFieldEnd();
|
|
|
13482 |
}
|
|
|
13483 |
iprot.readStructEnd();
|
|
|
13484 |
validate();
|
|
|
13485 |
}
|
|
|
13486 |
|
|
|
13487 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13488 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13489 |
|
|
|
13490 |
if (this.isSetSuccess()) {
|
|
|
13491 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
13492 |
{
|
|
|
13493 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
13494 |
for (Scan _iter27 : this.success)
|
|
|
13495 |
{
|
|
|
13496 |
_iter27.write(oprot);
|
|
|
13497 |
}
|
|
|
13498 |
oprot.writeListEnd();
|
|
|
13499 |
}
|
|
|
13500 |
oprot.writeFieldEnd();
|
|
|
13501 |
}
|
|
|
13502 |
oprot.writeFieldStop();
|
|
|
13503 |
oprot.writeStructEnd();
|
|
|
13504 |
}
|
|
|
13505 |
|
|
|
13506 |
@Override
|
|
|
13507 |
public String toString() {
|
|
|
13508 |
StringBuilder sb = new StringBuilder("getInventoryScansForItem_result(");
|
|
|
13509 |
boolean first = true;
|
|
|
13510 |
|
|
|
13511 |
sb.append("success:");
|
|
|
13512 |
if (this.success == null) {
|
|
|
13513 |
sb.append("null");
|
|
|
13514 |
} else {
|
|
|
13515 |
sb.append(this.success);
|
|
|
13516 |
}
|
|
|
13517 |
first = false;
|
|
|
13518 |
sb.append(")");
|
|
|
13519 |
return sb.toString();
|
|
|
13520 |
}
|
|
|
13521 |
|
|
|
13522 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13523 |
// check for required fields
|
|
|
13524 |
}
|
|
|
13525 |
|
|
|
13526 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13527 |
try {
|
|
|
13528 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13529 |
} catch (org.apache.thrift.TException te) {
|
|
|
13530 |
throw new java.io.IOException(te);
|
|
|
13531 |
}
|
|
|
13532 |
}
|
|
|
13533 |
|
|
|
13534 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13535 |
try {
|
|
|
13536 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13537 |
} catch (org.apache.thrift.TException te) {
|
|
|
13538 |
throw new java.io.IOException(te);
|
|
|
13539 |
}
|
|
|
13540 |
}
|
|
|
13541 |
|
|
|
13542 |
}
|
|
|
13543 |
|
|
|
13544 |
public static class getScanRecordsForSerialNumber_args implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_args, getScanRecordsForSerialNumber_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
13545 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_args");
|
|
|
13546 |
|
|
|
13547 |
private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
13548 |
|
|
|
13549 |
private long serialNumber; // required
|
|
|
13550 |
|
|
|
13551 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13552 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13553 |
SERIAL_NUMBER((short)1, "serialNumber");
|
|
|
13554 |
|
|
|
13555 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13556 |
|
|
|
13557 |
static {
|
|
|
13558 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13559 |
byName.put(field.getFieldName(), field);
|
|
|
13560 |
}
|
|
|
13561 |
}
|
|
|
13562 |
|
|
|
13563 |
/**
|
|
|
13564 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13565 |
*/
|
|
|
13566 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13567 |
switch(fieldId) {
|
|
|
13568 |
case 1: // SERIAL_NUMBER
|
|
|
13569 |
return SERIAL_NUMBER;
|
|
|
13570 |
default:
|
|
|
13571 |
return null;
|
|
|
13572 |
}
|
|
|
13573 |
}
|
|
|
13574 |
|
|
|
13575 |
/**
|
|
|
13576 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13577 |
* if it is not found.
|
|
|
13578 |
*/
|
|
|
13579 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13580 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13581 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13582 |
return fields;
|
|
|
13583 |
}
|
|
|
13584 |
|
|
|
13585 |
/**
|
|
|
13586 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13587 |
*/
|
|
|
13588 |
public static _Fields findByName(String name) {
|
|
|
13589 |
return byName.get(name);
|
|
|
13590 |
}
|
|
|
13591 |
|
|
|
13592 |
private final short _thriftId;
|
|
|
13593 |
private final String _fieldName;
|
|
|
13594 |
|
|
|
13595 |
_Fields(short thriftId, String fieldName) {
|
|
|
13596 |
_thriftId = thriftId;
|
|
|
13597 |
_fieldName = fieldName;
|
|
|
13598 |
}
|
|
|
13599 |
|
|
|
13600 |
public short getThriftFieldId() {
|
|
|
13601 |
return _thriftId;
|
|
|
13602 |
}
|
|
|
13603 |
|
|
|
13604 |
public String getFieldName() {
|
|
|
13605 |
return _fieldName;
|
|
|
13606 |
}
|
|
|
13607 |
}
|
|
|
13608 |
|
|
|
13609 |
// isset id assignments
|
|
|
13610 |
private static final int __SERIALNUMBER_ISSET_ID = 0;
|
|
|
13611 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
13612 |
|
|
|
13613 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13614 |
static {
|
|
|
13615 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13616 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13617 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
13618 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13619 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_args.class, metaDataMap);
|
|
|
13620 |
}
|
|
|
13621 |
|
|
|
13622 |
public getScanRecordsForSerialNumber_args() {
|
|
|
13623 |
}
|
|
|
13624 |
|
|
|
13625 |
public getScanRecordsForSerialNumber_args(
|
|
|
13626 |
long serialNumber)
|
|
|
13627 |
{
|
|
|
13628 |
this();
|
|
|
13629 |
this.serialNumber = serialNumber;
|
|
|
13630 |
setSerialNumberIsSet(true);
|
|
|
13631 |
}
|
|
|
13632 |
|
|
|
13633 |
/**
|
|
|
13634 |
* Performs a deep copy on <i>other</i>.
|
|
|
13635 |
*/
|
|
|
13636 |
public getScanRecordsForSerialNumber_args(getScanRecordsForSerialNumber_args other) {
|
|
|
13637 |
__isset_bit_vector.clear();
|
|
|
13638 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
13639 |
this.serialNumber = other.serialNumber;
|
|
|
13640 |
}
|
|
|
13641 |
|
|
|
13642 |
public getScanRecordsForSerialNumber_args deepCopy() {
|
|
|
13643 |
return new getScanRecordsForSerialNumber_args(this);
|
|
|
13644 |
}
|
|
|
13645 |
|
|
|
13646 |
@Override
|
|
|
13647 |
public void clear() {
|
|
|
13648 |
setSerialNumberIsSet(false);
|
|
|
13649 |
this.serialNumber = 0;
|
|
|
13650 |
}
|
|
|
13651 |
|
|
|
13652 |
public long getSerialNumber() {
|
|
|
13653 |
return this.serialNumber;
|
|
|
13654 |
}
|
|
|
13655 |
|
|
|
13656 |
public void setSerialNumber(long serialNumber) {
|
|
|
13657 |
this.serialNumber = serialNumber;
|
|
|
13658 |
setSerialNumberIsSet(true);
|
|
|
13659 |
}
|
|
|
13660 |
|
|
|
13661 |
public void unsetSerialNumber() {
|
|
|
13662 |
__isset_bit_vector.clear(__SERIALNUMBER_ISSET_ID);
|
|
|
13663 |
}
|
|
|
13664 |
|
|
|
13665 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
13666 |
public boolean isSetSerialNumber() {
|
|
|
13667 |
return __isset_bit_vector.get(__SERIALNUMBER_ISSET_ID);
|
|
|
13668 |
}
|
|
|
13669 |
|
|
|
13670 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
13671 |
__isset_bit_vector.set(__SERIALNUMBER_ISSET_ID, value);
|
|
|
13672 |
}
|
|
|
13673 |
|
|
|
13674 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13675 |
switch (field) {
|
|
|
13676 |
case SERIAL_NUMBER:
|
|
|
13677 |
if (value == null) {
|
|
|
13678 |
unsetSerialNumber();
|
|
|
13679 |
} else {
|
|
|
13680 |
setSerialNumber((Long)value);
|
|
|
13681 |
}
|
|
|
13682 |
break;
|
|
|
13683 |
|
|
|
13684 |
}
|
|
|
13685 |
}
|
|
|
13686 |
|
|
|
13687 |
public Object getFieldValue(_Fields field) {
|
|
|
13688 |
switch (field) {
|
|
|
13689 |
case SERIAL_NUMBER:
|
|
|
13690 |
return Long.valueOf(getSerialNumber());
|
|
|
13691 |
|
|
|
13692 |
}
|
|
|
13693 |
throw new IllegalStateException();
|
|
|
13694 |
}
|
|
|
13695 |
|
|
|
13696 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13697 |
public boolean isSet(_Fields field) {
|
|
|
13698 |
if (field == null) {
|
|
|
13699 |
throw new IllegalArgumentException();
|
|
|
13700 |
}
|
|
|
13701 |
|
|
|
13702 |
switch (field) {
|
|
|
13703 |
case SERIAL_NUMBER:
|
|
|
13704 |
return isSetSerialNumber();
|
|
|
13705 |
}
|
|
|
13706 |
throw new IllegalStateException();
|
|
|
13707 |
}
|
|
|
13708 |
|
|
|
13709 |
@Override
|
|
|
13710 |
public boolean equals(Object that) {
|
|
|
13711 |
if (that == null)
|
|
|
13712 |
return false;
|
|
|
13713 |
if (that instanceof getScanRecordsForSerialNumber_args)
|
|
|
13714 |
return this.equals((getScanRecordsForSerialNumber_args)that);
|
|
|
13715 |
return false;
|
|
|
13716 |
}
|
|
|
13717 |
|
|
|
13718 |
public boolean equals(getScanRecordsForSerialNumber_args that) {
|
|
|
13719 |
if (that == null)
|
|
|
13720 |
return false;
|
|
|
13721 |
|
|
|
13722 |
boolean this_present_serialNumber = true;
|
|
|
13723 |
boolean that_present_serialNumber = true;
|
|
|
13724 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
13725 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
|
|
13726 |
return false;
|
|
|
13727 |
if (this.serialNumber != that.serialNumber)
|
|
|
13728 |
return false;
|
|
|
13729 |
}
|
|
|
13730 |
|
|
|
13731 |
return true;
|
|
|
13732 |
}
|
|
|
13733 |
|
|
|
13734 |
@Override
|
|
|
13735 |
public int hashCode() {
|
|
|
13736 |
return 0;
|
|
|
13737 |
}
|
|
|
13738 |
|
|
|
13739 |
public int compareTo(getScanRecordsForSerialNumber_args other) {
|
|
|
13740 |
if (!getClass().equals(other.getClass())) {
|
|
|
13741 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13742 |
}
|
|
|
13743 |
|
|
|
13744 |
int lastComparison = 0;
|
|
|
13745 |
getScanRecordsForSerialNumber_args typedOther = (getScanRecordsForSerialNumber_args)other;
|
|
|
13746 |
|
|
|
13747 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
|
|
13748 |
if (lastComparison != 0) {
|
|
|
13749 |
return lastComparison;
|
|
|
13750 |
}
|
|
|
13751 |
if (isSetSerialNumber()) {
|
|
|
13752 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
|
|
13753 |
if (lastComparison != 0) {
|
|
|
13754 |
return lastComparison;
|
|
|
13755 |
}
|
|
|
13756 |
}
|
|
|
13757 |
return 0;
|
|
|
13758 |
}
|
|
|
13759 |
|
|
|
13760 |
public _Fields fieldForId(int fieldId) {
|
|
|
13761 |
return _Fields.findByThriftId(fieldId);
|
|
|
13762 |
}
|
|
|
13763 |
|
|
|
13764 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13765 |
org.apache.thrift.protocol.TField field;
|
|
|
13766 |
iprot.readStructBegin();
|
|
|
13767 |
while (true)
|
|
|
13768 |
{
|
|
|
13769 |
field = iprot.readFieldBegin();
|
|
|
13770 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13771 |
break;
|
|
|
13772 |
}
|
|
|
13773 |
switch (field.id) {
|
|
|
13774 |
case 1: // SERIAL_NUMBER
|
|
|
13775 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
13776 |
this.serialNumber = iprot.readI64();
|
|
|
13777 |
setSerialNumberIsSet(true);
|
|
|
13778 |
} else {
|
|
|
13779 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13780 |
}
|
|
|
13781 |
break;
|
|
|
13782 |
default:
|
|
|
13783 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13784 |
}
|
|
|
13785 |
iprot.readFieldEnd();
|
|
|
13786 |
}
|
|
|
13787 |
iprot.readStructEnd();
|
|
|
13788 |
validate();
|
|
|
13789 |
}
|
|
|
13790 |
|
|
|
13791 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13792 |
validate();
|
|
|
13793 |
|
|
|
13794 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13795 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
13796 |
oprot.writeI64(this.serialNumber);
|
|
|
13797 |
oprot.writeFieldEnd();
|
|
|
13798 |
oprot.writeFieldStop();
|
|
|
13799 |
oprot.writeStructEnd();
|
|
|
13800 |
}
|
|
|
13801 |
|
|
|
13802 |
@Override
|
|
|
13803 |
public String toString() {
|
|
|
13804 |
StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_args(");
|
|
|
13805 |
boolean first = true;
|
|
|
13806 |
|
|
|
13807 |
sb.append("serialNumber:");
|
|
|
13808 |
sb.append(this.serialNumber);
|
|
|
13809 |
first = false;
|
|
|
13810 |
sb.append(")");
|
|
|
13811 |
return sb.toString();
|
|
|
13812 |
}
|
|
|
13813 |
|
|
|
13814 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13815 |
// check for required fields
|
|
|
13816 |
}
|
|
|
13817 |
|
|
|
13818 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13819 |
try {
|
|
|
13820 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13821 |
} catch (org.apache.thrift.TException te) {
|
|
|
13822 |
throw new java.io.IOException(te);
|
|
|
13823 |
}
|
|
|
13824 |
}
|
|
|
13825 |
|
|
|
13826 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13827 |
try {
|
|
|
13828 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
13829 |
__isset_bit_vector = new BitSet(1);
|
|
|
13830 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13831 |
} catch (org.apache.thrift.TException te) {
|
|
|
13832 |
throw new java.io.IOException(te);
|
|
|
13833 |
}
|
|
|
13834 |
}
|
|
|
13835 |
|
|
|
13836 |
}
|
|
|
13837 |
|
|
|
13838 |
public static class getScanRecordsForSerialNumber_result implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_result, getScanRecordsForSerialNumber_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
13839 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_result");
|
|
|
13840 |
|
|
|
13841 |
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);
|
|
|
13842 |
|
|
|
13843 |
private List<Scan> success; // required
|
|
|
13844 |
|
|
|
13845 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13846 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13847 |
SUCCESS((short)0, "success");
|
|
|
13848 |
|
|
|
13849 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13850 |
|
|
|
13851 |
static {
|
|
|
13852 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13853 |
byName.put(field.getFieldName(), field);
|
|
|
13854 |
}
|
|
|
13855 |
}
|
|
|
13856 |
|
|
|
13857 |
/**
|
|
|
13858 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13859 |
*/
|
|
|
13860 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13861 |
switch(fieldId) {
|
|
|
13862 |
case 0: // SUCCESS
|
|
|
13863 |
return SUCCESS;
|
|
|
13864 |
default:
|
|
|
13865 |
return null;
|
|
|
13866 |
}
|
|
|
13867 |
}
|
|
|
13868 |
|
|
|
13869 |
/**
|
|
|
13870 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13871 |
* if it is not found.
|
|
|
13872 |
*/
|
|
|
13873 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13874 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13875 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13876 |
return fields;
|
|
|
13877 |
}
|
|
|
13878 |
|
|
|
13879 |
/**
|
|
|
13880 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13881 |
*/
|
|
|
13882 |
public static _Fields findByName(String name) {
|
|
|
13883 |
return byName.get(name);
|
|
|
13884 |
}
|
|
|
13885 |
|
|
|
13886 |
private final short _thriftId;
|
|
|
13887 |
private final String _fieldName;
|
|
|
13888 |
|
|
|
13889 |
_Fields(short thriftId, String fieldName) {
|
|
|
13890 |
_thriftId = thriftId;
|
|
|
13891 |
_fieldName = fieldName;
|
|
|
13892 |
}
|
|
|
13893 |
|
|
|
13894 |
public short getThriftFieldId() {
|
|
|
13895 |
return _thriftId;
|
|
|
13896 |
}
|
|
|
13897 |
|
|
|
13898 |
public String getFieldName() {
|
|
|
13899 |
return _fieldName;
|
|
|
13900 |
}
|
|
|
13901 |
}
|
|
|
13902 |
|
|
|
13903 |
// isset id assignments
|
|
|
13904 |
|
|
|
13905 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13906 |
static {
|
|
|
13907 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13908 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13909 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
13910 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
|
|
|
13911 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13912 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_result.class, metaDataMap);
|
|
|
13913 |
}
|
|
|
13914 |
|
|
|
13915 |
public getScanRecordsForSerialNumber_result() {
|
|
|
13916 |
}
|
|
|
13917 |
|
|
|
13918 |
public getScanRecordsForSerialNumber_result(
|
|
|
13919 |
List<Scan> success)
|
|
|
13920 |
{
|
|
|
13921 |
this();
|
|
|
13922 |
this.success = success;
|
|
|
13923 |
}
|
|
|
13924 |
|
|
|
13925 |
/**
|
|
|
13926 |
* Performs a deep copy on <i>other</i>.
|
|
|
13927 |
*/
|
|
|
13928 |
public getScanRecordsForSerialNumber_result(getScanRecordsForSerialNumber_result other) {
|
|
|
13929 |
if (other.isSetSuccess()) {
|
|
|
13930 |
List<Scan> __this__success = new ArrayList<Scan>();
|
|
|
13931 |
for (Scan other_element : other.success) {
|
|
|
13932 |
__this__success.add(new Scan(other_element));
|
|
|
13933 |
}
|
|
|
13934 |
this.success = __this__success;
|
|
|
13935 |
}
|
|
|
13936 |
}
|
|
|
13937 |
|
|
|
13938 |
public getScanRecordsForSerialNumber_result deepCopy() {
|
|
|
13939 |
return new getScanRecordsForSerialNumber_result(this);
|
|
|
13940 |
}
|
|
|
13941 |
|
|
|
13942 |
@Override
|
|
|
13943 |
public void clear() {
|
|
|
13944 |
this.success = null;
|
|
|
13945 |
}
|
|
|
13946 |
|
|
|
13947 |
public int getSuccessSize() {
|
|
|
13948 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
13949 |
}
|
|
|
13950 |
|
|
|
13951 |
public java.util.Iterator<Scan> getSuccessIterator() {
|
|
|
13952 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
13953 |
}
|
|
|
13954 |
|
|
|
13955 |
public void addToSuccess(Scan elem) {
|
|
|
13956 |
if (this.success == null) {
|
|
|
13957 |
this.success = new ArrayList<Scan>();
|
|
|
13958 |
}
|
|
|
13959 |
this.success.add(elem);
|
|
|
13960 |
}
|
|
|
13961 |
|
|
|
13962 |
public List<Scan> getSuccess() {
|
|
|
13963 |
return this.success;
|
|
|
13964 |
}
|
|
|
13965 |
|
|
|
13966 |
public void setSuccess(List<Scan> success) {
|
|
|
13967 |
this.success = success;
|
|
|
13968 |
}
|
|
|
13969 |
|
|
|
13970 |
public void unsetSuccess() {
|
|
|
13971 |
this.success = null;
|
|
|
13972 |
}
|
|
|
13973 |
|
|
|
13974 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
13975 |
public boolean isSetSuccess() {
|
|
|
13976 |
return this.success != null;
|
|
|
13977 |
}
|
|
|
13978 |
|
|
|
13979 |
public void setSuccessIsSet(boolean value) {
|
|
|
13980 |
if (!value) {
|
|
|
13981 |
this.success = null;
|
|
|
13982 |
}
|
|
|
13983 |
}
|
|
|
13984 |
|
|
|
13985 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13986 |
switch (field) {
|
|
|
13987 |
case SUCCESS:
|
|
|
13988 |
if (value == null) {
|
|
|
13989 |
unsetSuccess();
|
|
|
13990 |
} else {
|
|
|
13991 |
setSuccess((List<Scan>)value);
|
|
|
13992 |
}
|
|
|
13993 |
break;
|
|
|
13994 |
|
|
|
13995 |
}
|
|
|
13996 |
}
|
|
|
13997 |
|
|
|
13998 |
public Object getFieldValue(_Fields field) {
|
|
|
13999 |
switch (field) {
|
|
|
14000 |
case SUCCESS:
|
|
|
14001 |
return getSuccess();
|
|
|
14002 |
|
|
|
14003 |
}
|
|
|
14004 |
throw new IllegalStateException();
|
|
|
14005 |
}
|
|
|
14006 |
|
|
|
14007 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14008 |
public boolean isSet(_Fields field) {
|
|
|
14009 |
if (field == null) {
|
|
|
14010 |
throw new IllegalArgumentException();
|
|
|
14011 |
}
|
|
|
14012 |
|
|
|
14013 |
switch (field) {
|
|
|
14014 |
case SUCCESS:
|
|
|
14015 |
return isSetSuccess();
|
|
|
14016 |
}
|
|
|
14017 |
throw new IllegalStateException();
|
|
|
14018 |
}
|
|
|
14019 |
|
|
|
14020 |
@Override
|
|
|
14021 |
public boolean equals(Object that) {
|
|
|
14022 |
if (that == null)
|
|
|
14023 |
return false;
|
|
|
14024 |
if (that instanceof getScanRecordsForSerialNumber_result)
|
|
|
14025 |
return this.equals((getScanRecordsForSerialNumber_result)that);
|
|
|
14026 |
return false;
|
|
|
14027 |
}
|
|
|
14028 |
|
|
|
14029 |
public boolean equals(getScanRecordsForSerialNumber_result that) {
|
|
|
14030 |
if (that == null)
|
|
|
14031 |
return false;
|
|
|
14032 |
|
|
|
14033 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
14034 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
14035 |
if (this_present_success || that_present_success) {
|
|
|
14036 |
if (!(this_present_success && that_present_success))
|
|
|
14037 |
return false;
|
|
|
14038 |
if (!this.success.equals(that.success))
|
|
|
14039 |
return false;
|
|
|
14040 |
}
|
|
|
14041 |
|
|
|
14042 |
return true;
|
|
|
14043 |
}
|
|
|
14044 |
|
|
|
14045 |
@Override
|
|
|
14046 |
public int hashCode() {
|
|
|
14047 |
return 0;
|
|
|
14048 |
}
|
|
|
14049 |
|
|
|
14050 |
public int compareTo(getScanRecordsForSerialNumber_result other) {
|
|
|
14051 |
if (!getClass().equals(other.getClass())) {
|
|
|
14052 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14053 |
}
|
|
|
14054 |
|
|
|
14055 |
int lastComparison = 0;
|
|
|
14056 |
getScanRecordsForSerialNumber_result typedOther = (getScanRecordsForSerialNumber_result)other;
|
|
|
14057 |
|
|
|
14058 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
14059 |
if (lastComparison != 0) {
|
|
|
14060 |
return lastComparison;
|
|
|
14061 |
}
|
|
|
14062 |
if (isSetSuccess()) {
|
|
|
14063 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
14064 |
if (lastComparison != 0) {
|
|
|
14065 |
return lastComparison;
|
|
|
14066 |
}
|
|
|
14067 |
}
|
|
|
14068 |
return 0;
|
|
|
14069 |
}
|
|
|
14070 |
|
|
|
14071 |
public _Fields fieldForId(int fieldId) {
|
|
|
14072 |
return _Fields.findByThriftId(fieldId);
|
|
|
14073 |
}
|
|
|
14074 |
|
|
|
14075 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14076 |
org.apache.thrift.protocol.TField field;
|
|
|
14077 |
iprot.readStructBegin();
|
|
|
14078 |
while (true)
|
|
|
14079 |
{
|
|
|
14080 |
field = iprot.readFieldBegin();
|
|
|
14081 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
14082 |
break;
|
|
|
14083 |
}
|
|
|
14084 |
switch (field.id) {
|
|
|
14085 |
case 0: // SUCCESS
|
|
|
14086 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
14087 |
{
|
|
|
14088 |
org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
|
|
|
14089 |
this.success = new ArrayList<Scan>(_list28.size);
|
|
|
14090 |
for (int _i29 = 0; _i29 < _list28.size; ++_i29)
|
|
|
14091 |
{
|
|
|
14092 |
Scan _elem30; // required
|
|
|
14093 |
_elem30 = new Scan();
|
|
|
14094 |
_elem30.read(iprot);
|
|
|
14095 |
this.success.add(_elem30);
|
|
|
14096 |
}
|
|
|
14097 |
iprot.readListEnd();
|
|
|
14098 |
}
|
|
|
14099 |
} else {
|
|
|
14100 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14101 |
}
|
|
|
14102 |
break;
|
|
|
14103 |
default:
|
|
|
14104 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14105 |
}
|
|
|
14106 |
iprot.readFieldEnd();
|
|
|
14107 |
}
|
|
|
14108 |
iprot.readStructEnd();
|
|
|
14109 |
validate();
|
|
|
14110 |
}
|
|
|
14111 |
|
|
|
14112 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
14113 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
14114 |
|
|
|
14115 |
if (this.isSetSuccess()) {
|
|
|
14116 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
14117 |
{
|
|
|
14118 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
14119 |
for (Scan _iter31 : this.success)
|
|
|
14120 |
{
|
|
|
14121 |
_iter31.write(oprot);
|
|
|
14122 |
}
|
|
|
14123 |
oprot.writeListEnd();
|
|
|
14124 |
}
|
|
|
14125 |
oprot.writeFieldEnd();
|
|
|
14126 |
}
|
|
|
14127 |
oprot.writeFieldStop();
|
|
|
14128 |
oprot.writeStructEnd();
|
|
|
14129 |
}
|
|
|
14130 |
|
|
|
14131 |
@Override
|
|
|
14132 |
public String toString() {
|
|
|
14133 |
StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_result(");
|
|
|
14134 |
boolean first = true;
|
|
|
14135 |
|
|
|
14136 |
sb.append("success:");
|
|
|
14137 |
if (this.success == null) {
|
|
|
14138 |
sb.append("null");
|
|
|
14139 |
} else {
|
|
|
14140 |
sb.append(this.success);
|
|
|
14141 |
}
|
|
|
14142 |
first = false;
|
|
|
14143 |
sb.append(")");
|
|
|
14144 |
return sb.toString();
|
|
|
14145 |
}
|
|
|
14146 |
|
|
|
14147 |
public void validate() throws org.apache.thrift.TException {
|
|
|
14148 |
// check for required fields
|
|
|
14149 |
}
|
|
|
14150 |
|
|
|
14151 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14152 |
try {
|
|
|
14153 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14154 |
} catch (org.apache.thrift.TException te) {
|
|
|
14155 |
throw new java.io.IOException(te);
|
|
|
14156 |
}
|
|
|
14157 |
}
|
|
|
14158 |
|
|
|
14159 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14160 |
try {
|
|
|
14161 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14162 |
} catch (org.apache.thrift.TException te) {
|
|
|
14163 |
throw new java.io.IOException(te);
|
|
|
14164 |
}
|
|
|
14165 |
}
|
|
|
14166 |
|
|
|
14167 |
}
|
|
|
14168 |
|
| 6467 |
amar.kumar |
14169 |
public static class scanForPurchaseReturn_args implements org.apache.thrift.TBase<scanForPurchaseReturn_args, scanForPurchaseReturn_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
14170 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_args");
|
|
|
14171 |
|
|
|
14172 |
private static final org.apache.thrift.protocol.TField SALE_RETURN_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("saleReturnItems", org.apache.thrift.protocol.TType.LIST, (short)1);
|
|
|
14173 |
private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
14174 |
|
|
|
14175 |
private List<InventoryItem> saleReturnItems; // required
|
|
|
14176 |
private long vendorId; // required
|
|
|
14177 |
|
|
|
14178 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
14179 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
14180 |
SALE_RETURN_ITEMS((short)1, "saleReturnItems"),
|
|
|
14181 |
VENDOR_ID((short)2, "vendorId");
|
|
|
14182 |
|
|
|
14183 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
14184 |
|
|
|
14185 |
static {
|
|
|
14186 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
14187 |
byName.put(field.getFieldName(), field);
|
|
|
14188 |
}
|
|
|
14189 |
}
|
|
|
14190 |
|
|
|
14191 |
/**
|
|
|
14192 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
14193 |
*/
|
|
|
14194 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
14195 |
switch(fieldId) {
|
|
|
14196 |
case 1: // SALE_RETURN_ITEMS
|
|
|
14197 |
return SALE_RETURN_ITEMS;
|
|
|
14198 |
case 2: // VENDOR_ID
|
|
|
14199 |
return VENDOR_ID;
|
|
|
14200 |
default:
|
|
|
14201 |
return null;
|
|
|
14202 |
}
|
|
|
14203 |
}
|
|
|
14204 |
|
|
|
14205 |
/**
|
|
|
14206 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
14207 |
* if it is not found.
|
|
|
14208 |
*/
|
|
|
14209 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
14210 |
_Fields fields = findByThriftId(fieldId);
|
|
|
14211 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
14212 |
return fields;
|
|
|
14213 |
}
|
|
|
14214 |
|
|
|
14215 |
/**
|
|
|
14216 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
14217 |
*/
|
|
|
14218 |
public static _Fields findByName(String name) {
|
|
|
14219 |
return byName.get(name);
|
|
|
14220 |
}
|
|
|
14221 |
|
|
|
14222 |
private final short _thriftId;
|
|
|
14223 |
private final String _fieldName;
|
|
|
14224 |
|
|
|
14225 |
_Fields(short thriftId, String fieldName) {
|
|
|
14226 |
_thriftId = thriftId;
|
|
|
14227 |
_fieldName = fieldName;
|
|
|
14228 |
}
|
|
|
14229 |
|
|
|
14230 |
public short getThriftFieldId() {
|
|
|
14231 |
return _thriftId;
|
|
|
14232 |
}
|
|
|
14233 |
|
|
|
14234 |
public String getFieldName() {
|
|
|
14235 |
return _fieldName;
|
|
|
14236 |
}
|
|
|
14237 |
}
|
|
|
14238 |
|
|
|
14239 |
// isset id assignments
|
|
|
14240 |
private static final int __VENDORID_ISSET_ID = 0;
|
|
|
14241 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
14242 |
|
|
|
14243 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
14244 |
static {
|
|
|
14245 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
14246 |
tmpMap.put(_Fields.SALE_RETURN_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("saleReturnItems", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14247 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
14248 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
|
|
|
14249 |
tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14250 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
14251 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
14252 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_args.class, metaDataMap);
|
|
|
14253 |
}
|
|
|
14254 |
|
|
|
14255 |
public scanForPurchaseReturn_args() {
|
|
|
14256 |
}
|
|
|
14257 |
|
|
|
14258 |
public scanForPurchaseReturn_args(
|
|
|
14259 |
List<InventoryItem> saleReturnItems,
|
|
|
14260 |
long vendorId)
|
|
|
14261 |
{
|
|
|
14262 |
this();
|
|
|
14263 |
this.saleReturnItems = saleReturnItems;
|
|
|
14264 |
this.vendorId = vendorId;
|
|
|
14265 |
setVendorIdIsSet(true);
|
|
|
14266 |
}
|
|
|
14267 |
|
|
|
14268 |
/**
|
|
|
14269 |
* Performs a deep copy on <i>other</i>.
|
|
|
14270 |
*/
|
|
|
14271 |
public scanForPurchaseReturn_args(scanForPurchaseReturn_args other) {
|
|
|
14272 |
__isset_bit_vector.clear();
|
|
|
14273 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
14274 |
if (other.isSetSaleReturnItems()) {
|
|
|
14275 |
List<InventoryItem> __this__saleReturnItems = new ArrayList<InventoryItem>();
|
|
|
14276 |
for (InventoryItem other_element : other.saleReturnItems) {
|
|
|
14277 |
__this__saleReturnItems.add(new InventoryItem(other_element));
|
|
|
14278 |
}
|
|
|
14279 |
this.saleReturnItems = __this__saleReturnItems;
|
|
|
14280 |
}
|
|
|
14281 |
this.vendorId = other.vendorId;
|
|
|
14282 |
}
|
|
|
14283 |
|
|
|
14284 |
public scanForPurchaseReturn_args deepCopy() {
|
|
|
14285 |
return new scanForPurchaseReturn_args(this);
|
|
|
14286 |
}
|
|
|
14287 |
|
|
|
14288 |
@Override
|
|
|
14289 |
public void clear() {
|
|
|
14290 |
this.saleReturnItems = null;
|
|
|
14291 |
setVendorIdIsSet(false);
|
|
|
14292 |
this.vendorId = 0;
|
|
|
14293 |
}
|
|
|
14294 |
|
|
|
14295 |
public int getSaleReturnItemsSize() {
|
|
|
14296 |
return (this.saleReturnItems == null) ? 0 : this.saleReturnItems.size();
|
|
|
14297 |
}
|
|
|
14298 |
|
|
|
14299 |
public java.util.Iterator<InventoryItem> getSaleReturnItemsIterator() {
|
|
|
14300 |
return (this.saleReturnItems == null) ? null : this.saleReturnItems.iterator();
|
|
|
14301 |
}
|
|
|
14302 |
|
|
|
14303 |
public void addToSaleReturnItems(InventoryItem elem) {
|
|
|
14304 |
if (this.saleReturnItems == null) {
|
|
|
14305 |
this.saleReturnItems = new ArrayList<InventoryItem>();
|
|
|
14306 |
}
|
|
|
14307 |
this.saleReturnItems.add(elem);
|
|
|
14308 |
}
|
|
|
14309 |
|
|
|
14310 |
public List<InventoryItem> getSaleReturnItems() {
|
|
|
14311 |
return this.saleReturnItems;
|
|
|
14312 |
}
|
|
|
14313 |
|
|
|
14314 |
public void setSaleReturnItems(List<InventoryItem> saleReturnItems) {
|
|
|
14315 |
this.saleReturnItems = saleReturnItems;
|
|
|
14316 |
}
|
|
|
14317 |
|
|
|
14318 |
public void unsetSaleReturnItems() {
|
|
|
14319 |
this.saleReturnItems = null;
|
|
|
14320 |
}
|
|
|
14321 |
|
|
|
14322 |
/** Returns true if field saleReturnItems is set (has been assigned a value) and false otherwise */
|
|
|
14323 |
public boolean isSetSaleReturnItems() {
|
|
|
14324 |
return this.saleReturnItems != null;
|
|
|
14325 |
}
|
|
|
14326 |
|
|
|
14327 |
public void setSaleReturnItemsIsSet(boolean value) {
|
|
|
14328 |
if (!value) {
|
|
|
14329 |
this.saleReturnItems = null;
|
|
|
14330 |
}
|
|
|
14331 |
}
|
|
|
14332 |
|
|
|
14333 |
public long getVendorId() {
|
|
|
14334 |
return this.vendorId;
|
|
|
14335 |
}
|
|
|
14336 |
|
|
|
14337 |
public void setVendorId(long vendorId) {
|
|
|
14338 |
this.vendorId = vendorId;
|
|
|
14339 |
setVendorIdIsSet(true);
|
|
|
14340 |
}
|
|
|
14341 |
|
|
|
14342 |
public void unsetVendorId() {
|
|
|
14343 |
__isset_bit_vector.clear(__VENDORID_ISSET_ID);
|
|
|
14344 |
}
|
|
|
14345 |
|
|
|
14346 |
/** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
|
|
|
14347 |
public boolean isSetVendorId() {
|
|
|
14348 |
return __isset_bit_vector.get(__VENDORID_ISSET_ID);
|
|
|
14349 |
}
|
|
|
14350 |
|
|
|
14351 |
public void setVendorIdIsSet(boolean value) {
|
|
|
14352 |
__isset_bit_vector.set(__VENDORID_ISSET_ID, value);
|
|
|
14353 |
}
|
|
|
14354 |
|
|
|
14355 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
14356 |
switch (field) {
|
|
|
14357 |
case SALE_RETURN_ITEMS:
|
|
|
14358 |
if (value == null) {
|
|
|
14359 |
unsetSaleReturnItems();
|
|
|
14360 |
} else {
|
|
|
14361 |
setSaleReturnItems((List<InventoryItem>)value);
|
|
|
14362 |
}
|
|
|
14363 |
break;
|
|
|
14364 |
|
|
|
14365 |
case VENDOR_ID:
|
|
|
14366 |
if (value == null) {
|
|
|
14367 |
unsetVendorId();
|
|
|
14368 |
} else {
|
|
|
14369 |
setVendorId((Long)value);
|
|
|
14370 |
}
|
|
|
14371 |
break;
|
|
|
14372 |
|
|
|
14373 |
}
|
|
|
14374 |
}
|
|
|
14375 |
|
|
|
14376 |
public Object getFieldValue(_Fields field) {
|
|
|
14377 |
switch (field) {
|
|
|
14378 |
case SALE_RETURN_ITEMS:
|
|
|
14379 |
return getSaleReturnItems();
|
|
|
14380 |
|
|
|
14381 |
case VENDOR_ID:
|
|
|
14382 |
return Long.valueOf(getVendorId());
|
|
|
14383 |
|
|
|
14384 |
}
|
|
|
14385 |
throw new IllegalStateException();
|
|
|
14386 |
}
|
|
|
14387 |
|
|
|
14388 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14389 |
public boolean isSet(_Fields field) {
|
|
|
14390 |
if (field == null) {
|
|
|
14391 |
throw new IllegalArgumentException();
|
|
|
14392 |
}
|
|
|
14393 |
|
|
|
14394 |
switch (field) {
|
|
|
14395 |
case SALE_RETURN_ITEMS:
|
|
|
14396 |
return isSetSaleReturnItems();
|
|
|
14397 |
case VENDOR_ID:
|
|
|
14398 |
return isSetVendorId();
|
|
|
14399 |
}
|
|
|
14400 |
throw new IllegalStateException();
|
|
|
14401 |
}
|
|
|
14402 |
|
|
|
14403 |
@Override
|
|
|
14404 |
public boolean equals(Object that) {
|
|
|
14405 |
if (that == null)
|
|
|
14406 |
return false;
|
|
|
14407 |
if (that instanceof scanForPurchaseReturn_args)
|
|
|
14408 |
return this.equals((scanForPurchaseReturn_args)that);
|
|
|
14409 |
return false;
|
|
|
14410 |
}
|
|
|
14411 |
|
|
|
14412 |
public boolean equals(scanForPurchaseReturn_args that) {
|
|
|
14413 |
if (that == null)
|
|
|
14414 |
return false;
|
|
|
14415 |
|
|
|
14416 |
boolean this_present_saleReturnItems = true && this.isSetSaleReturnItems();
|
|
|
14417 |
boolean that_present_saleReturnItems = true && that.isSetSaleReturnItems();
|
|
|
14418 |
if (this_present_saleReturnItems || that_present_saleReturnItems) {
|
|
|
14419 |
if (!(this_present_saleReturnItems && that_present_saleReturnItems))
|
|
|
14420 |
return false;
|
|
|
14421 |
if (!this.saleReturnItems.equals(that.saleReturnItems))
|
|
|
14422 |
return false;
|
|
|
14423 |
}
|
|
|
14424 |
|
|
|
14425 |
boolean this_present_vendorId = true;
|
|
|
14426 |
boolean that_present_vendorId = true;
|
|
|
14427 |
if (this_present_vendorId || that_present_vendorId) {
|
|
|
14428 |
if (!(this_present_vendorId && that_present_vendorId))
|
|
|
14429 |
return false;
|
|
|
14430 |
if (this.vendorId != that.vendorId)
|
|
|
14431 |
return false;
|
|
|
14432 |
}
|
|
|
14433 |
|
|
|
14434 |
return true;
|
|
|
14435 |
}
|
|
|
14436 |
|
|
|
14437 |
@Override
|
|
|
14438 |
public int hashCode() {
|
|
|
14439 |
return 0;
|
|
|
14440 |
}
|
|
|
14441 |
|
|
|
14442 |
public int compareTo(scanForPurchaseReturn_args other) {
|
|
|
14443 |
if (!getClass().equals(other.getClass())) {
|
|
|
14444 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14445 |
}
|
|
|
14446 |
|
|
|
14447 |
int lastComparison = 0;
|
|
|
14448 |
scanForPurchaseReturn_args typedOther = (scanForPurchaseReturn_args)other;
|
|
|
14449 |
|
|
|
14450 |
lastComparison = Boolean.valueOf(isSetSaleReturnItems()).compareTo(typedOther.isSetSaleReturnItems());
|
|
|
14451 |
if (lastComparison != 0) {
|
|
|
14452 |
return lastComparison;
|
|
|
14453 |
}
|
|
|
14454 |
if (isSetSaleReturnItems()) {
|
|
|
14455 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.saleReturnItems, typedOther.saleReturnItems);
|
|
|
14456 |
if (lastComparison != 0) {
|
|
|
14457 |
return lastComparison;
|
|
|
14458 |
}
|
|
|
14459 |
}
|
|
|
14460 |
lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
|
|
|
14461 |
if (lastComparison != 0) {
|
|
|
14462 |
return lastComparison;
|
|
|
14463 |
}
|
|
|
14464 |
if (isSetVendorId()) {
|
|
|
14465 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
|
|
|
14466 |
if (lastComparison != 0) {
|
|
|
14467 |
return lastComparison;
|
|
|
14468 |
}
|
|
|
14469 |
}
|
|
|
14470 |
return 0;
|
|
|
14471 |
}
|
|
|
14472 |
|
|
|
14473 |
public _Fields fieldForId(int fieldId) {
|
|
|
14474 |
return _Fields.findByThriftId(fieldId);
|
|
|
14475 |
}
|
|
|
14476 |
|
|
|
14477 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14478 |
org.apache.thrift.protocol.TField field;
|
|
|
14479 |
iprot.readStructBegin();
|
|
|
14480 |
while (true)
|
|
|
14481 |
{
|
|
|
14482 |
field = iprot.readFieldBegin();
|
|
|
14483 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
14484 |
break;
|
|
|
14485 |
}
|
|
|
14486 |
switch (field.id) {
|
|
|
14487 |
case 1: // SALE_RETURN_ITEMS
|
|
|
14488 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
14489 |
{
|
|
|
14490 |
org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
|
|
|
14491 |
this.saleReturnItems = new ArrayList<InventoryItem>(_list32.size);
|
|
|
14492 |
for (int _i33 = 0; _i33 < _list32.size; ++_i33)
|
|
|
14493 |
{
|
|
|
14494 |
InventoryItem _elem34; // required
|
|
|
14495 |
_elem34 = new InventoryItem();
|
|
|
14496 |
_elem34.read(iprot);
|
|
|
14497 |
this.saleReturnItems.add(_elem34);
|
|
|
14498 |
}
|
|
|
14499 |
iprot.readListEnd();
|
|
|
14500 |
}
|
|
|
14501 |
} else {
|
|
|
14502 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14503 |
}
|
|
|
14504 |
break;
|
|
|
14505 |
case 2: // VENDOR_ID
|
|
|
14506 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
14507 |
this.vendorId = iprot.readI64();
|
|
|
14508 |
setVendorIdIsSet(true);
|
|
|
14509 |
} else {
|
|
|
14510 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14511 |
}
|
|
|
14512 |
break;
|
|
|
14513 |
default:
|
|
|
14514 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14515 |
}
|
|
|
14516 |
iprot.readFieldEnd();
|
|
|
14517 |
}
|
|
|
14518 |
iprot.readStructEnd();
|
|
|
14519 |
validate();
|
|
|
14520 |
}
|
|
|
14521 |
|
|
|
14522 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
14523 |
validate();
|
|
|
14524 |
|
|
|
14525 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
14526 |
if (this.saleReturnItems != null) {
|
|
|
14527 |
oprot.writeFieldBegin(SALE_RETURN_ITEMS_FIELD_DESC);
|
|
|
14528 |
{
|
|
|
14529 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.saleReturnItems.size()));
|
|
|
14530 |
for (InventoryItem _iter35 : this.saleReturnItems)
|
|
|
14531 |
{
|
|
|
14532 |
_iter35.write(oprot);
|
|
|
14533 |
}
|
|
|
14534 |
oprot.writeListEnd();
|
|
|
14535 |
}
|
|
|
14536 |
oprot.writeFieldEnd();
|
|
|
14537 |
}
|
|
|
14538 |
oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
|
|
|
14539 |
oprot.writeI64(this.vendorId);
|
|
|
14540 |
oprot.writeFieldEnd();
|
|
|
14541 |
oprot.writeFieldStop();
|
|
|
14542 |
oprot.writeStructEnd();
|
|
|
14543 |
}
|
|
|
14544 |
|
|
|
14545 |
@Override
|
|
|
14546 |
public String toString() {
|
|
|
14547 |
StringBuilder sb = new StringBuilder("scanForPurchaseReturn_args(");
|
|
|
14548 |
boolean first = true;
|
|
|
14549 |
|
|
|
14550 |
sb.append("saleReturnItems:");
|
|
|
14551 |
if (this.saleReturnItems == null) {
|
|
|
14552 |
sb.append("null");
|
|
|
14553 |
} else {
|
|
|
14554 |
sb.append(this.saleReturnItems);
|
|
|
14555 |
}
|
|
|
14556 |
first = false;
|
|
|
14557 |
if (!first) sb.append(", ");
|
|
|
14558 |
sb.append("vendorId:");
|
|
|
14559 |
sb.append(this.vendorId);
|
|
|
14560 |
first = false;
|
|
|
14561 |
sb.append(")");
|
|
|
14562 |
return sb.toString();
|
|
|
14563 |
}
|
|
|
14564 |
|
|
|
14565 |
public void validate() throws org.apache.thrift.TException {
|
|
|
14566 |
// check for required fields
|
|
|
14567 |
}
|
|
|
14568 |
|
|
|
14569 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14570 |
try {
|
|
|
14571 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14572 |
} catch (org.apache.thrift.TException te) {
|
|
|
14573 |
throw new java.io.IOException(te);
|
|
|
14574 |
}
|
|
|
14575 |
}
|
|
|
14576 |
|
|
|
14577 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14578 |
try {
|
|
|
14579 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14580 |
} catch (org.apache.thrift.TException te) {
|
|
|
14581 |
throw new java.io.IOException(te);
|
|
|
14582 |
}
|
|
|
14583 |
}
|
|
|
14584 |
|
|
|
14585 |
}
|
|
|
14586 |
|
|
|
14587 |
public static class scanForPurchaseReturn_result implements org.apache.thrift.TBase<scanForPurchaseReturn_result, scanForPurchaseReturn_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
14588 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_result");
|
|
|
14589 |
|
|
|
14590 |
private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
14591 |
|
|
|
14592 |
private WarehouseServiceException ex; // required
|
|
|
14593 |
|
|
|
14594 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
14595 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
14596 |
EX((short)1, "ex");
|
|
|
14597 |
|
|
|
14598 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
14599 |
|
|
|
14600 |
static {
|
|
|
14601 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
14602 |
byName.put(field.getFieldName(), field);
|
|
|
14603 |
}
|
|
|
14604 |
}
|
|
|
14605 |
|
|
|
14606 |
/**
|
|
|
14607 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
14608 |
*/
|
|
|
14609 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
14610 |
switch(fieldId) {
|
|
|
14611 |
case 1: // EX
|
|
|
14612 |
return EX;
|
|
|
14613 |
default:
|
|
|
14614 |
return null;
|
|
|
14615 |
}
|
|
|
14616 |
}
|
|
|
14617 |
|
|
|
14618 |
/**
|
|
|
14619 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
14620 |
* if it is not found.
|
|
|
14621 |
*/
|
|
|
14622 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
14623 |
_Fields fields = findByThriftId(fieldId);
|
|
|
14624 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
14625 |
return fields;
|
|
|
14626 |
}
|
|
|
14627 |
|
|
|
14628 |
/**
|
|
|
14629 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
14630 |
*/
|
|
|
14631 |
public static _Fields findByName(String name) {
|
|
|
14632 |
return byName.get(name);
|
|
|
14633 |
}
|
|
|
14634 |
|
|
|
14635 |
private final short _thriftId;
|
|
|
14636 |
private final String _fieldName;
|
|
|
14637 |
|
|
|
14638 |
_Fields(short thriftId, String fieldName) {
|
|
|
14639 |
_thriftId = thriftId;
|
|
|
14640 |
_fieldName = fieldName;
|
|
|
14641 |
}
|
|
|
14642 |
|
|
|
14643 |
public short getThriftFieldId() {
|
|
|
14644 |
return _thriftId;
|
|
|
14645 |
}
|
|
|
14646 |
|
|
|
14647 |
public String getFieldName() {
|
|
|
14648 |
return _fieldName;
|
|
|
14649 |
}
|
|
|
14650 |
}
|
|
|
14651 |
|
|
|
14652 |
// isset id assignments
|
|
|
14653 |
|
|
|
14654 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
14655 |
static {
|
|
|
14656 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
14657 |
tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14658 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
14659 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
14660 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_result.class, metaDataMap);
|
|
|
14661 |
}
|
|
|
14662 |
|
|
|
14663 |
public scanForPurchaseReturn_result() {
|
|
|
14664 |
}
|
|
|
14665 |
|
|
|
14666 |
public scanForPurchaseReturn_result(
|
|
|
14667 |
WarehouseServiceException ex)
|
|
|
14668 |
{
|
|
|
14669 |
this();
|
|
|
14670 |
this.ex = ex;
|
|
|
14671 |
}
|
|
|
14672 |
|
|
|
14673 |
/**
|
|
|
14674 |
* Performs a deep copy on <i>other</i>.
|
|
|
14675 |
*/
|
|
|
14676 |
public scanForPurchaseReturn_result(scanForPurchaseReturn_result other) {
|
|
|
14677 |
if (other.isSetEx()) {
|
|
|
14678 |
this.ex = new WarehouseServiceException(other.ex);
|
|
|
14679 |
}
|
|
|
14680 |
}
|
|
|
14681 |
|
|
|
14682 |
public scanForPurchaseReturn_result deepCopy() {
|
|
|
14683 |
return new scanForPurchaseReturn_result(this);
|
|
|
14684 |
}
|
|
|
14685 |
|
|
|
14686 |
@Override
|
|
|
14687 |
public void clear() {
|
|
|
14688 |
this.ex = null;
|
|
|
14689 |
}
|
|
|
14690 |
|
|
|
14691 |
public WarehouseServiceException getEx() {
|
|
|
14692 |
return this.ex;
|
|
|
14693 |
}
|
|
|
14694 |
|
|
|
14695 |
public void setEx(WarehouseServiceException ex) {
|
|
|
14696 |
this.ex = ex;
|
|
|
14697 |
}
|
|
|
14698 |
|
|
|
14699 |
public void unsetEx() {
|
|
|
14700 |
this.ex = null;
|
|
|
14701 |
}
|
|
|
14702 |
|
|
|
14703 |
/** Returns true if field ex is set (has been assigned a value) and false otherwise */
|
|
|
14704 |
public boolean isSetEx() {
|
|
|
14705 |
return this.ex != null;
|
|
|
14706 |
}
|
|
|
14707 |
|
|
|
14708 |
public void setExIsSet(boolean value) {
|
|
|
14709 |
if (!value) {
|
|
|
14710 |
this.ex = null;
|
|
|
14711 |
}
|
|
|
14712 |
}
|
|
|
14713 |
|
|
|
14714 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
14715 |
switch (field) {
|
|
|
14716 |
case EX:
|
|
|
14717 |
if (value == null) {
|
|
|
14718 |
unsetEx();
|
|
|
14719 |
} else {
|
|
|
14720 |
setEx((WarehouseServiceException)value);
|
|
|
14721 |
}
|
|
|
14722 |
break;
|
|
|
14723 |
|
|
|
14724 |
}
|
|
|
14725 |
}
|
|
|
14726 |
|
|
|
14727 |
public Object getFieldValue(_Fields field) {
|
|
|
14728 |
switch (field) {
|
|
|
14729 |
case EX:
|
|
|
14730 |
return getEx();
|
|
|
14731 |
|
|
|
14732 |
}
|
|
|
14733 |
throw new IllegalStateException();
|
|
|
14734 |
}
|
|
|
14735 |
|
|
|
14736 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14737 |
public boolean isSet(_Fields field) {
|
|
|
14738 |
if (field == null) {
|
|
|
14739 |
throw new IllegalArgumentException();
|
|
|
14740 |
}
|
|
|
14741 |
|
|
|
14742 |
switch (field) {
|
|
|
14743 |
case EX:
|
|
|
14744 |
return isSetEx();
|
|
|
14745 |
}
|
|
|
14746 |
throw new IllegalStateException();
|
|
|
14747 |
}
|
|
|
14748 |
|
|
|
14749 |
@Override
|
|
|
14750 |
public boolean equals(Object that) {
|
|
|
14751 |
if (that == null)
|
|
|
14752 |
return false;
|
|
|
14753 |
if (that instanceof scanForPurchaseReturn_result)
|
|
|
14754 |
return this.equals((scanForPurchaseReturn_result)that);
|
|
|
14755 |
return false;
|
|
|
14756 |
}
|
|
|
14757 |
|
|
|
14758 |
public boolean equals(scanForPurchaseReturn_result that) {
|
|
|
14759 |
if (that == null)
|
|
|
14760 |
return false;
|
|
|
14761 |
|
|
|
14762 |
boolean this_present_ex = true && this.isSetEx();
|
|
|
14763 |
boolean that_present_ex = true && that.isSetEx();
|
|
|
14764 |
if (this_present_ex || that_present_ex) {
|
|
|
14765 |
if (!(this_present_ex && that_present_ex))
|
|
|
14766 |
return false;
|
|
|
14767 |
if (!this.ex.equals(that.ex))
|
|
|
14768 |
return false;
|
|
|
14769 |
}
|
|
|
14770 |
|
|
|
14771 |
return true;
|
|
|
14772 |
}
|
|
|
14773 |
|
|
|
14774 |
@Override
|
|
|
14775 |
public int hashCode() {
|
|
|
14776 |
return 0;
|
|
|
14777 |
}
|
|
|
14778 |
|
|
|
14779 |
public int compareTo(scanForPurchaseReturn_result other) {
|
|
|
14780 |
if (!getClass().equals(other.getClass())) {
|
|
|
14781 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14782 |
}
|
|
|
14783 |
|
|
|
14784 |
int lastComparison = 0;
|
|
|
14785 |
scanForPurchaseReturn_result typedOther = (scanForPurchaseReturn_result)other;
|
|
|
14786 |
|
|
|
14787 |
lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
|
|
|
14788 |
if (lastComparison != 0) {
|
|
|
14789 |
return lastComparison;
|
|
|
14790 |
}
|
|
|
14791 |
if (isSetEx()) {
|
|
|
14792 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
|
|
|
14793 |
if (lastComparison != 0) {
|
|
|
14794 |
return lastComparison;
|
|
|
14795 |
}
|
|
|
14796 |
}
|
|
|
14797 |
return 0;
|
|
|
14798 |
}
|
|
|
14799 |
|
|
|
14800 |
public _Fields fieldForId(int fieldId) {
|
|
|
14801 |
return _Fields.findByThriftId(fieldId);
|
|
|
14802 |
}
|
|
|
14803 |
|
|
|
14804 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14805 |
org.apache.thrift.protocol.TField field;
|
|
|
14806 |
iprot.readStructBegin();
|
|
|
14807 |
while (true)
|
|
|
14808 |
{
|
|
|
14809 |
field = iprot.readFieldBegin();
|
|
|
14810 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
14811 |
break;
|
|
|
14812 |
}
|
|
|
14813 |
switch (field.id) {
|
|
|
14814 |
case 1: // EX
|
|
|
14815 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
14816 |
this.ex = new WarehouseServiceException();
|
|
|
14817 |
this.ex.read(iprot);
|
|
|
14818 |
} else {
|
|
|
14819 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14820 |
}
|
|
|
14821 |
break;
|
|
|
14822 |
default:
|
|
|
14823 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14824 |
}
|
|
|
14825 |
iprot.readFieldEnd();
|
|
|
14826 |
}
|
|
|
14827 |
iprot.readStructEnd();
|
|
|
14828 |
validate();
|
|
|
14829 |
}
|
|
|
14830 |
|
|
|
14831 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
14832 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
14833 |
|
|
|
14834 |
if (this.isSetEx()) {
|
|
|
14835 |
oprot.writeFieldBegin(EX_FIELD_DESC);
|
|
|
14836 |
this.ex.write(oprot);
|
|
|
14837 |
oprot.writeFieldEnd();
|
|
|
14838 |
}
|
|
|
14839 |
oprot.writeFieldStop();
|
|
|
14840 |
oprot.writeStructEnd();
|
|
|
14841 |
}
|
|
|
14842 |
|
|
|
14843 |
@Override
|
|
|
14844 |
public String toString() {
|
|
|
14845 |
StringBuilder sb = new StringBuilder("scanForPurchaseReturn_result(");
|
|
|
14846 |
boolean first = true;
|
|
|
14847 |
|
|
|
14848 |
sb.append("ex:");
|
|
|
14849 |
if (this.ex == null) {
|
|
|
14850 |
sb.append("null");
|
|
|
14851 |
} else {
|
|
|
14852 |
sb.append(this.ex);
|
|
|
14853 |
}
|
|
|
14854 |
first = false;
|
|
|
14855 |
sb.append(")");
|
|
|
14856 |
return sb.toString();
|
|
|
14857 |
}
|
|
|
14858 |
|
|
|
14859 |
public void validate() throws org.apache.thrift.TException {
|
|
|
14860 |
// check for required fields
|
|
|
14861 |
}
|
|
|
14862 |
|
|
|
14863 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14864 |
try {
|
|
|
14865 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14866 |
} catch (org.apache.thrift.TException te) {
|
|
|
14867 |
throw new java.io.IOException(te);
|
|
|
14868 |
}
|
|
|
14869 |
}
|
|
|
14870 |
|
|
|
14871 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14872 |
try {
|
|
|
14873 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14874 |
} catch (org.apache.thrift.TException te) {
|
|
|
14875 |
throw new java.io.IOException(te);
|
|
|
14876 |
}
|
|
|
14877 |
}
|
|
|
14878 |
|
|
|
14879 |
}
|
|
|
14880 |
|
| 6548 |
amar.kumar |
14881 |
public static class scanForLostItem_args implements org.apache.thrift.TBase<scanForLostItem_args, scanForLostItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
14882 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_args");
|
|
|
14883 |
|
|
|
14884 |
private static final org.apache.thrift.protocol.TField LOST_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("lostItems", org.apache.thrift.protocol.TType.LIST, (short)1);
|
|
|
14885 |
private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
14886 |
|
|
|
14887 |
private List<InventoryItem> lostItems; // required
|
|
|
14888 |
private long vendorId; // required
|
|
|
14889 |
|
|
|
14890 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
14891 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
14892 |
LOST_ITEMS((short)1, "lostItems"),
|
|
|
14893 |
VENDOR_ID((short)2, "vendorId");
|
|
|
14894 |
|
|
|
14895 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
14896 |
|
|
|
14897 |
static {
|
|
|
14898 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
14899 |
byName.put(field.getFieldName(), field);
|
|
|
14900 |
}
|
|
|
14901 |
}
|
|
|
14902 |
|
|
|
14903 |
/**
|
|
|
14904 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
14905 |
*/
|
|
|
14906 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
14907 |
switch(fieldId) {
|
|
|
14908 |
case 1: // LOST_ITEMS
|
|
|
14909 |
return LOST_ITEMS;
|
|
|
14910 |
case 2: // VENDOR_ID
|
|
|
14911 |
return VENDOR_ID;
|
|
|
14912 |
default:
|
|
|
14913 |
return null;
|
|
|
14914 |
}
|
|
|
14915 |
}
|
|
|
14916 |
|
|
|
14917 |
/**
|
|
|
14918 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
14919 |
* if it is not found.
|
|
|
14920 |
*/
|
|
|
14921 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
14922 |
_Fields fields = findByThriftId(fieldId);
|
|
|
14923 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
14924 |
return fields;
|
|
|
14925 |
}
|
|
|
14926 |
|
|
|
14927 |
/**
|
|
|
14928 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
14929 |
*/
|
|
|
14930 |
public static _Fields findByName(String name) {
|
|
|
14931 |
return byName.get(name);
|
|
|
14932 |
}
|
|
|
14933 |
|
|
|
14934 |
private final short _thriftId;
|
|
|
14935 |
private final String _fieldName;
|
|
|
14936 |
|
|
|
14937 |
_Fields(short thriftId, String fieldName) {
|
|
|
14938 |
_thriftId = thriftId;
|
|
|
14939 |
_fieldName = fieldName;
|
|
|
14940 |
}
|
|
|
14941 |
|
|
|
14942 |
public short getThriftFieldId() {
|
|
|
14943 |
return _thriftId;
|
|
|
14944 |
}
|
|
|
14945 |
|
|
|
14946 |
public String getFieldName() {
|
|
|
14947 |
return _fieldName;
|
|
|
14948 |
}
|
|
|
14949 |
}
|
|
|
14950 |
|
|
|
14951 |
// isset id assignments
|
|
|
14952 |
private static final int __VENDORID_ISSET_ID = 0;
|
|
|
14953 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
14954 |
|
|
|
14955 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
14956 |
static {
|
|
|
14957 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
14958 |
tmpMap.put(_Fields.LOST_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("lostItems", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14959 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
14960 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
|
|
|
14961 |
tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14962 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
14963 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
14964 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_args.class, metaDataMap);
|
|
|
14965 |
}
|
|
|
14966 |
|
|
|
14967 |
public scanForLostItem_args() {
|
|
|
14968 |
}
|
|
|
14969 |
|
|
|
14970 |
public scanForLostItem_args(
|
|
|
14971 |
List<InventoryItem> lostItems,
|
|
|
14972 |
long vendorId)
|
|
|
14973 |
{
|
|
|
14974 |
this();
|
|
|
14975 |
this.lostItems = lostItems;
|
|
|
14976 |
this.vendorId = vendorId;
|
|
|
14977 |
setVendorIdIsSet(true);
|
|
|
14978 |
}
|
|
|
14979 |
|
|
|
14980 |
/**
|
|
|
14981 |
* Performs a deep copy on <i>other</i>.
|
|
|
14982 |
*/
|
|
|
14983 |
public scanForLostItem_args(scanForLostItem_args other) {
|
|
|
14984 |
__isset_bit_vector.clear();
|
|
|
14985 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
14986 |
if (other.isSetLostItems()) {
|
|
|
14987 |
List<InventoryItem> __this__lostItems = new ArrayList<InventoryItem>();
|
|
|
14988 |
for (InventoryItem other_element : other.lostItems) {
|
|
|
14989 |
__this__lostItems.add(new InventoryItem(other_element));
|
|
|
14990 |
}
|
|
|
14991 |
this.lostItems = __this__lostItems;
|
|
|
14992 |
}
|
|
|
14993 |
this.vendorId = other.vendorId;
|
|
|
14994 |
}
|
|
|
14995 |
|
|
|
14996 |
public scanForLostItem_args deepCopy() {
|
|
|
14997 |
return new scanForLostItem_args(this);
|
|
|
14998 |
}
|
|
|
14999 |
|
|
|
15000 |
@Override
|
|
|
15001 |
public void clear() {
|
|
|
15002 |
this.lostItems = null;
|
|
|
15003 |
setVendorIdIsSet(false);
|
|
|
15004 |
this.vendorId = 0;
|
|
|
15005 |
}
|
|
|
15006 |
|
|
|
15007 |
public int getLostItemsSize() {
|
|
|
15008 |
return (this.lostItems == null) ? 0 : this.lostItems.size();
|
|
|
15009 |
}
|
|
|
15010 |
|
|
|
15011 |
public java.util.Iterator<InventoryItem> getLostItemsIterator() {
|
|
|
15012 |
return (this.lostItems == null) ? null : this.lostItems.iterator();
|
|
|
15013 |
}
|
|
|
15014 |
|
|
|
15015 |
public void addToLostItems(InventoryItem elem) {
|
|
|
15016 |
if (this.lostItems == null) {
|
|
|
15017 |
this.lostItems = new ArrayList<InventoryItem>();
|
|
|
15018 |
}
|
|
|
15019 |
this.lostItems.add(elem);
|
|
|
15020 |
}
|
|
|
15021 |
|
|
|
15022 |
public List<InventoryItem> getLostItems() {
|
|
|
15023 |
return this.lostItems;
|
|
|
15024 |
}
|
|
|
15025 |
|
|
|
15026 |
public void setLostItems(List<InventoryItem> lostItems) {
|
|
|
15027 |
this.lostItems = lostItems;
|
|
|
15028 |
}
|
|
|
15029 |
|
|
|
15030 |
public void unsetLostItems() {
|
|
|
15031 |
this.lostItems = null;
|
|
|
15032 |
}
|
|
|
15033 |
|
|
|
15034 |
/** Returns true if field lostItems is set (has been assigned a value) and false otherwise */
|
|
|
15035 |
public boolean isSetLostItems() {
|
|
|
15036 |
return this.lostItems != null;
|
|
|
15037 |
}
|
|
|
15038 |
|
|
|
15039 |
public void setLostItemsIsSet(boolean value) {
|
|
|
15040 |
if (!value) {
|
|
|
15041 |
this.lostItems = null;
|
|
|
15042 |
}
|
|
|
15043 |
}
|
|
|
15044 |
|
|
|
15045 |
public long getVendorId() {
|
|
|
15046 |
return this.vendorId;
|
|
|
15047 |
}
|
|
|
15048 |
|
|
|
15049 |
public void setVendorId(long vendorId) {
|
|
|
15050 |
this.vendorId = vendorId;
|
|
|
15051 |
setVendorIdIsSet(true);
|
|
|
15052 |
}
|
|
|
15053 |
|
|
|
15054 |
public void unsetVendorId() {
|
|
|
15055 |
__isset_bit_vector.clear(__VENDORID_ISSET_ID);
|
|
|
15056 |
}
|
|
|
15057 |
|
|
|
15058 |
/** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
|
|
|
15059 |
public boolean isSetVendorId() {
|
|
|
15060 |
return __isset_bit_vector.get(__VENDORID_ISSET_ID);
|
|
|
15061 |
}
|
|
|
15062 |
|
|
|
15063 |
public void setVendorIdIsSet(boolean value) {
|
|
|
15064 |
__isset_bit_vector.set(__VENDORID_ISSET_ID, value);
|
|
|
15065 |
}
|
|
|
15066 |
|
|
|
15067 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15068 |
switch (field) {
|
|
|
15069 |
case LOST_ITEMS:
|
|
|
15070 |
if (value == null) {
|
|
|
15071 |
unsetLostItems();
|
|
|
15072 |
} else {
|
|
|
15073 |
setLostItems((List<InventoryItem>)value);
|
|
|
15074 |
}
|
|
|
15075 |
break;
|
|
|
15076 |
|
|
|
15077 |
case VENDOR_ID:
|
|
|
15078 |
if (value == null) {
|
|
|
15079 |
unsetVendorId();
|
|
|
15080 |
} else {
|
|
|
15081 |
setVendorId((Long)value);
|
|
|
15082 |
}
|
|
|
15083 |
break;
|
|
|
15084 |
|
|
|
15085 |
}
|
|
|
15086 |
}
|
|
|
15087 |
|
|
|
15088 |
public Object getFieldValue(_Fields field) {
|
|
|
15089 |
switch (field) {
|
|
|
15090 |
case LOST_ITEMS:
|
|
|
15091 |
return getLostItems();
|
|
|
15092 |
|
|
|
15093 |
case VENDOR_ID:
|
|
|
15094 |
return Long.valueOf(getVendorId());
|
|
|
15095 |
|
|
|
15096 |
}
|
|
|
15097 |
throw new IllegalStateException();
|
|
|
15098 |
}
|
|
|
15099 |
|
|
|
15100 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15101 |
public boolean isSet(_Fields field) {
|
|
|
15102 |
if (field == null) {
|
|
|
15103 |
throw new IllegalArgumentException();
|
|
|
15104 |
}
|
|
|
15105 |
|
|
|
15106 |
switch (field) {
|
|
|
15107 |
case LOST_ITEMS:
|
|
|
15108 |
return isSetLostItems();
|
|
|
15109 |
case VENDOR_ID:
|
|
|
15110 |
return isSetVendorId();
|
|
|
15111 |
}
|
|
|
15112 |
throw new IllegalStateException();
|
|
|
15113 |
}
|
|
|
15114 |
|
|
|
15115 |
@Override
|
|
|
15116 |
public boolean equals(Object that) {
|
|
|
15117 |
if (that == null)
|
|
|
15118 |
return false;
|
|
|
15119 |
if (that instanceof scanForLostItem_args)
|
|
|
15120 |
return this.equals((scanForLostItem_args)that);
|
|
|
15121 |
return false;
|
|
|
15122 |
}
|
|
|
15123 |
|
|
|
15124 |
public boolean equals(scanForLostItem_args that) {
|
|
|
15125 |
if (that == null)
|
|
|
15126 |
return false;
|
|
|
15127 |
|
|
|
15128 |
boolean this_present_lostItems = true && this.isSetLostItems();
|
|
|
15129 |
boolean that_present_lostItems = true && that.isSetLostItems();
|
|
|
15130 |
if (this_present_lostItems || that_present_lostItems) {
|
|
|
15131 |
if (!(this_present_lostItems && that_present_lostItems))
|
|
|
15132 |
return false;
|
|
|
15133 |
if (!this.lostItems.equals(that.lostItems))
|
|
|
15134 |
return false;
|
|
|
15135 |
}
|
|
|
15136 |
|
|
|
15137 |
boolean this_present_vendorId = true;
|
|
|
15138 |
boolean that_present_vendorId = true;
|
|
|
15139 |
if (this_present_vendorId || that_present_vendorId) {
|
|
|
15140 |
if (!(this_present_vendorId && that_present_vendorId))
|
|
|
15141 |
return false;
|
|
|
15142 |
if (this.vendorId != that.vendorId)
|
|
|
15143 |
return false;
|
|
|
15144 |
}
|
|
|
15145 |
|
|
|
15146 |
return true;
|
|
|
15147 |
}
|
|
|
15148 |
|
|
|
15149 |
@Override
|
|
|
15150 |
public int hashCode() {
|
|
|
15151 |
return 0;
|
|
|
15152 |
}
|
|
|
15153 |
|
|
|
15154 |
public int compareTo(scanForLostItem_args other) {
|
|
|
15155 |
if (!getClass().equals(other.getClass())) {
|
|
|
15156 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
15157 |
}
|
|
|
15158 |
|
|
|
15159 |
int lastComparison = 0;
|
|
|
15160 |
scanForLostItem_args typedOther = (scanForLostItem_args)other;
|
|
|
15161 |
|
|
|
15162 |
lastComparison = Boolean.valueOf(isSetLostItems()).compareTo(typedOther.isSetLostItems());
|
|
|
15163 |
if (lastComparison != 0) {
|
|
|
15164 |
return lastComparison;
|
|
|
15165 |
}
|
|
|
15166 |
if (isSetLostItems()) {
|
|
|
15167 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lostItems, typedOther.lostItems);
|
|
|
15168 |
if (lastComparison != 0) {
|
|
|
15169 |
return lastComparison;
|
|
|
15170 |
}
|
|
|
15171 |
}
|
|
|
15172 |
lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
|
|
|
15173 |
if (lastComparison != 0) {
|
|
|
15174 |
return lastComparison;
|
|
|
15175 |
}
|
|
|
15176 |
if (isSetVendorId()) {
|
|
|
15177 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
|
|
|
15178 |
if (lastComparison != 0) {
|
|
|
15179 |
return lastComparison;
|
|
|
15180 |
}
|
|
|
15181 |
}
|
|
|
15182 |
return 0;
|
|
|
15183 |
}
|
|
|
15184 |
|
|
|
15185 |
public _Fields fieldForId(int fieldId) {
|
|
|
15186 |
return _Fields.findByThriftId(fieldId);
|
|
|
15187 |
}
|
|
|
15188 |
|
|
|
15189 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
15190 |
org.apache.thrift.protocol.TField field;
|
|
|
15191 |
iprot.readStructBegin();
|
|
|
15192 |
while (true)
|
|
|
15193 |
{
|
|
|
15194 |
field = iprot.readFieldBegin();
|
|
|
15195 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
15196 |
break;
|
|
|
15197 |
}
|
|
|
15198 |
switch (field.id) {
|
|
|
15199 |
case 1: // LOST_ITEMS
|
|
|
15200 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
15201 |
{
|
|
|
15202 |
org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
|
|
|
15203 |
this.lostItems = new ArrayList<InventoryItem>(_list36.size);
|
|
|
15204 |
for (int _i37 = 0; _i37 < _list36.size; ++_i37)
|
|
|
15205 |
{
|
|
|
15206 |
InventoryItem _elem38; // required
|
|
|
15207 |
_elem38 = new InventoryItem();
|
|
|
15208 |
_elem38.read(iprot);
|
|
|
15209 |
this.lostItems.add(_elem38);
|
|
|
15210 |
}
|
|
|
15211 |
iprot.readListEnd();
|
|
|
15212 |
}
|
|
|
15213 |
} else {
|
|
|
15214 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15215 |
}
|
|
|
15216 |
break;
|
|
|
15217 |
case 2: // VENDOR_ID
|
|
|
15218 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
15219 |
this.vendorId = iprot.readI64();
|
|
|
15220 |
setVendorIdIsSet(true);
|
|
|
15221 |
} else {
|
|
|
15222 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15223 |
}
|
|
|
15224 |
break;
|
|
|
15225 |
default:
|
|
|
15226 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15227 |
}
|
|
|
15228 |
iprot.readFieldEnd();
|
|
|
15229 |
}
|
|
|
15230 |
iprot.readStructEnd();
|
|
|
15231 |
validate();
|
|
|
15232 |
}
|
|
|
15233 |
|
|
|
15234 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
15235 |
validate();
|
|
|
15236 |
|
|
|
15237 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
15238 |
if (this.lostItems != null) {
|
|
|
15239 |
oprot.writeFieldBegin(LOST_ITEMS_FIELD_DESC);
|
|
|
15240 |
{
|
|
|
15241 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lostItems.size()));
|
|
|
15242 |
for (InventoryItem _iter39 : this.lostItems)
|
|
|
15243 |
{
|
|
|
15244 |
_iter39.write(oprot);
|
|
|
15245 |
}
|
|
|
15246 |
oprot.writeListEnd();
|
|
|
15247 |
}
|
|
|
15248 |
oprot.writeFieldEnd();
|
|
|
15249 |
}
|
|
|
15250 |
oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
|
|
|
15251 |
oprot.writeI64(this.vendorId);
|
|
|
15252 |
oprot.writeFieldEnd();
|
|
|
15253 |
oprot.writeFieldStop();
|
|
|
15254 |
oprot.writeStructEnd();
|
|
|
15255 |
}
|
|
|
15256 |
|
|
|
15257 |
@Override
|
|
|
15258 |
public String toString() {
|
|
|
15259 |
StringBuilder sb = new StringBuilder("scanForLostItem_args(");
|
|
|
15260 |
boolean first = true;
|
|
|
15261 |
|
|
|
15262 |
sb.append("lostItems:");
|
|
|
15263 |
if (this.lostItems == null) {
|
|
|
15264 |
sb.append("null");
|
|
|
15265 |
} else {
|
|
|
15266 |
sb.append(this.lostItems);
|
|
|
15267 |
}
|
|
|
15268 |
first = false;
|
|
|
15269 |
if (!first) sb.append(", ");
|
|
|
15270 |
sb.append("vendorId:");
|
|
|
15271 |
sb.append(this.vendorId);
|
|
|
15272 |
first = false;
|
|
|
15273 |
sb.append(")");
|
|
|
15274 |
return sb.toString();
|
|
|
15275 |
}
|
|
|
15276 |
|
|
|
15277 |
public void validate() throws org.apache.thrift.TException {
|
|
|
15278 |
// check for required fields
|
|
|
15279 |
}
|
|
|
15280 |
|
|
|
15281 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
15282 |
try {
|
|
|
15283 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
15284 |
} catch (org.apache.thrift.TException te) {
|
|
|
15285 |
throw new java.io.IOException(te);
|
|
|
15286 |
}
|
|
|
15287 |
}
|
|
|
15288 |
|
|
|
15289 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
15290 |
try {
|
|
|
15291 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
15292 |
} catch (org.apache.thrift.TException te) {
|
|
|
15293 |
throw new java.io.IOException(te);
|
|
|
15294 |
}
|
|
|
15295 |
}
|
|
|
15296 |
|
|
|
15297 |
}
|
|
|
15298 |
|
|
|
15299 |
public static class scanForLostItem_result implements org.apache.thrift.TBase<scanForLostItem_result, scanForLostItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
15300 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_result");
|
|
|
15301 |
|
|
|
15302 |
private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
15303 |
|
|
|
15304 |
private WarehouseServiceException ex; // required
|
|
|
15305 |
|
|
|
15306 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
15307 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
15308 |
EX((short)1, "ex");
|
|
|
15309 |
|
|
|
15310 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
15311 |
|
|
|
15312 |
static {
|
|
|
15313 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
15314 |
byName.put(field.getFieldName(), field);
|
|
|
15315 |
}
|
|
|
15316 |
}
|
|
|
15317 |
|
|
|
15318 |
/**
|
|
|
15319 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
15320 |
*/
|
|
|
15321 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
15322 |
switch(fieldId) {
|
|
|
15323 |
case 1: // EX
|
|
|
15324 |
return EX;
|
|
|
15325 |
default:
|
|
|
15326 |
return null;
|
|
|
15327 |
}
|
|
|
15328 |
}
|
|
|
15329 |
|
|
|
15330 |
/**
|
|
|
15331 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
15332 |
* if it is not found.
|
|
|
15333 |
*/
|
|
|
15334 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
15335 |
_Fields fields = findByThriftId(fieldId);
|
|
|
15336 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
15337 |
return fields;
|
|
|
15338 |
}
|
|
|
15339 |
|
|
|
15340 |
/**
|
|
|
15341 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
15342 |
*/
|
|
|
15343 |
public static _Fields findByName(String name) {
|
|
|
15344 |
return byName.get(name);
|
|
|
15345 |
}
|
|
|
15346 |
|
|
|
15347 |
private final short _thriftId;
|
|
|
15348 |
private final String _fieldName;
|
|
|
15349 |
|
|
|
15350 |
_Fields(short thriftId, String fieldName) {
|
|
|
15351 |
_thriftId = thriftId;
|
|
|
15352 |
_fieldName = fieldName;
|
|
|
15353 |
}
|
|
|
15354 |
|
|
|
15355 |
public short getThriftFieldId() {
|
|
|
15356 |
return _thriftId;
|
|
|
15357 |
}
|
|
|
15358 |
|
|
|
15359 |
public String getFieldName() {
|
|
|
15360 |
return _fieldName;
|
|
|
15361 |
}
|
|
|
15362 |
}
|
|
|
15363 |
|
|
|
15364 |
// isset id assignments
|
|
|
15365 |
|
|
|
15366 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
15367 |
static {
|
|
|
15368 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
15369 |
tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15370 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
15371 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
15372 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_result.class, metaDataMap);
|
|
|
15373 |
}
|
|
|
15374 |
|
|
|
15375 |
public scanForLostItem_result() {
|
|
|
15376 |
}
|
|
|
15377 |
|
|
|
15378 |
public scanForLostItem_result(
|
|
|
15379 |
WarehouseServiceException ex)
|
|
|
15380 |
{
|
|
|
15381 |
this();
|
|
|
15382 |
this.ex = ex;
|
|
|
15383 |
}
|
|
|
15384 |
|
|
|
15385 |
/**
|
|
|
15386 |
* Performs a deep copy on <i>other</i>.
|
|
|
15387 |
*/
|
|
|
15388 |
public scanForLostItem_result(scanForLostItem_result other) {
|
|
|
15389 |
if (other.isSetEx()) {
|
|
|
15390 |
this.ex = new WarehouseServiceException(other.ex);
|
|
|
15391 |
}
|
|
|
15392 |
}
|
|
|
15393 |
|
|
|
15394 |
public scanForLostItem_result deepCopy() {
|
|
|
15395 |
return new scanForLostItem_result(this);
|
|
|
15396 |
}
|
|
|
15397 |
|
|
|
15398 |
@Override
|
|
|
15399 |
public void clear() {
|
|
|
15400 |
this.ex = null;
|
|
|
15401 |
}
|
|
|
15402 |
|
|
|
15403 |
public WarehouseServiceException getEx() {
|
|
|
15404 |
return this.ex;
|
|
|
15405 |
}
|
|
|
15406 |
|
|
|
15407 |
public void setEx(WarehouseServiceException ex) {
|
|
|
15408 |
this.ex = ex;
|
|
|
15409 |
}
|
|
|
15410 |
|
|
|
15411 |
public void unsetEx() {
|
|
|
15412 |
this.ex = null;
|
|
|
15413 |
}
|
|
|
15414 |
|
|
|
15415 |
/** Returns true if field ex is set (has been assigned a value) and false otherwise */
|
|
|
15416 |
public boolean isSetEx() {
|
|
|
15417 |
return this.ex != null;
|
|
|
15418 |
}
|
|
|
15419 |
|
|
|
15420 |
public void setExIsSet(boolean value) {
|
|
|
15421 |
if (!value) {
|
|
|
15422 |
this.ex = null;
|
|
|
15423 |
}
|
|
|
15424 |
}
|
|
|
15425 |
|
|
|
15426 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15427 |
switch (field) {
|
|
|
15428 |
case EX:
|
|
|
15429 |
if (value == null) {
|
|
|
15430 |
unsetEx();
|
|
|
15431 |
} else {
|
|
|
15432 |
setEx((WarehouseServiceException)value);
|
|
|
15433 |
}
|
|
|
15434 |
break;
|
|
|
15435 |
|
|
|
15436 |
}
|
|
|
15437 |
}
|
|
|
15438 |
|
|
|
15439 |
public Object getFieldValue(_Fields field) {
|
|
|
15440 |
switch (field) {
|
|
|
15441 |
case EX:
|
|
|
15442 |
return getEx();
|
|
|
15443 |
|
|
|
15444 |
}
|
|
|
15445 |
throw new IllegalStateException();
|
|
|
15446 |
}
|
|
|
15447 |
|
|
|
15448 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15449 |
public boolean isSet(_Fields field) {
|
|
|
15450 |
if (field == null) {
|
|
|
15451 |
throw new IllegalArgumentException();
|
|
|
15452 |
}
|
|
|
15453 |
|
|
|
15454 |
switch (field) {
|
|
|
15455 |
case EX:
|
|
|
15456 |
return isSetEx();
|
|
|
15457 |
}
|
|
|
15458 |
throw new IllegalStateException();
|
|
|
15459 |
}
|
|
|
15460 |
|
|
|
15461 |
@Override
|
|
|
15462 |
public boolean equals(Object that) {
|
|
|
15463 |
if (that == null)
|
|
|
15464 |
return false;
|
|
|
15465 |
if (that instanceof scanForLostItem_result)
|
|
|
15466 |
return this.equals((scanForLostItem_result)that);
|
|
|
15467 |
return false;
|
|
|
15468 |
}
|
|
|
15469 |
|
|
|
15470 |
public boolean equals(scanForLostItem_result that) {
|
|
|
15471 |
if (that == null)
|
|
|
15472 |
return false;
|
|
|
15473 |
|
|
|
15474 |
boolean this_present_ex = true && this.isSetEx();
|
|
|
15475 |
boolean that_present_ex = true && that.isSetEx();
|
|
|
15476 |
if (this_present_ex || that_present_ex) {
|
|
|
15477 |
if (!(this_present_ex && that_present_ex))
|
|
|
15478 |
return false;
|
|
|
15479 |
if (!this.ex.equals(that.ex))
|
|
|
15480 |
return false;
|
|
|
15481 |
}
|
|
|
15482 |
|
|
|
15483 |
return true;
|
|
|
15484 |
}
|
|
|
15485 |
|
|
|
15486 |
@Override
|
|
|
15487 |
public int hashCode() {
|
|
|
15488 |
return 0;
|
|
|
15489 |
}
|
|
|
15490 |
|
|
|
15491 |
public int compareTo(scanForLostItem_result other) {
|
|
|
15492 |
if (!getClass().equals(other.getClass())) {
|
|
|
15493 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
15494 |
}
|
|
|
15495 |
|
|
|
15496 |
int lastComparison = 0;
|
|
|
15497 |
scanForLostItem_result typedOther = (scanForLostItem_result)other;
|
|
|
15498 |
|
|
|
15499 |
lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
|
|
|
15500 |
if (lastComparison != 0) {
|
|
|
15501 |
return lastComparison;
|
|
|
15502 |
}
|
|
|
15503 |
if (isSetEx()) {
|
|
|
15504 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
|
|
|
15505 |
if (lastComparison != 0) {
|
|
|
15506 |
return lastComparison;
|
|
|
15507 |
}
|
|
|
15508 |
}
|
|
|
15509 |
return 0;
|
|
|
15510 |
}
|
|
|
15511 |
|
|
|
15512 |
public _Fields fieldForId(int fieldId) {
|
|
|
15513 |
return _Fields.findByThriftId(fieldId);
|
|
|
15514 |
}
|
|
|
15515 |
|
|
|
15516 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
15517 |
org.apache.thrift.protocol.TField field;
|
|
|
15518 |
iprot.readStructBegin();
|
|
|
15519 |
while (true)
|
|
|
15520 |
{
|
|
|
15521 |
field = iprot.readFieldBegin();
|
|
|
15522 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
15523 |
break;
|
|
|
15524 |
}
|
|
|
15525 |
switch (field.id) {
|
|
|
15526 |
case 1: // EX
|
|
|
15527 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
15528 |
this.ex = new WarehouseServiceException();
|
|
|
15529 |
this.ex.read(iprot);
|
|
|
15530 |
} else {
|
|
|
15531 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15532 |
}
|
|
|
15533 |
break;
|
|
|
15534 |
default:
|
|
|
15535 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15536 |
}
|
|
|
15537 |
iprot.readFieldEnd();
|
|
|
15538 |
}
|
|
|
15539 |
iprot.readStructEnd();
|
|
|
15540 |
validate();
|
|
|
15541 |
}
|
|
|
15542 |
|
|
|
15543 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
15544 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
15545 |
|
|
|
15546 |
if (this.isSetEx()) {
|
|
|
15547 |
oprot.writeFieldBegin(EX_FIELD_DESC);
|
|
|
15548 |
this.ex.write(oprot);
|
|
|
15549 |
oprot.writeFieldEnd();
|
|
|
15550 |
}
|
|
|
15551 |
oprot.writeFieldStop();
|
|
|
15552 |
oprot.writeStructEnd();
|
|
|
15553 |
}
|
|
|
15554 |
|
|
|
15555 |
@Override
|
|
|
15556 |
public String toString() {
|
|
|
15557 |
StringBuilder sb = new StringBuilder("scanForLostItem_result(");
|
|
|
15558 |
boolean first = true;
|
|
|
15559 |
|
|
|
15560 |
sb.append("ex:");
|
|
|
15561 |
if (this.ex == null) {
|
|
|
15562 |
sb.append("null");
|
|
|
15563 |
} else {
|
|
|
15564 |
sb.append(this.ex);
|
|
|
15565 |
}
|
|
|
15566 |
first = false;
|
|
|
15567 |
sb.append(")");
|
|
|
15568 |
return sb.toString();
|
|
|
15569 |
}
|
|
|
15570 |
|
|
|
15571 |
public void validate() throws org.apache.thrift.TException {
|
|
|
15572 |
// check for required fields
|
|
|
15573 |
}
|
|
|
15574 |
|
|
|
15575 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
15576 |
try {
|
|
|
15577 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
15578 |
} catch (org.apache.thrift.TException te) {
|
|
|
15579 |
throw new java.io.IOException(te);
|
|
|
15580 |
}
|
|
|
15581 |
}
|
|
|
15582 |
|
|
|
15583 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
15584 |
try {
|
|
|
15585 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
15586 |
} catch (org.apache.thrift.TException te) {
|
|
|
15587 |
throw new java.io.IOException(te);
|
|
|
15588 |
}
|
|
|
15589 |
}
|
|
|
15590 |
|
|
|
15591 |
}
|
|
|
15592 |
|
|
|
15593 |
public static class getCurrentSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_args, getCurrentSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
15594 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_args");
|
|
|
15595 |
|
|
|
15596 |
|
|
|
15597 |
|
|
|
15598 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
15599 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
15600 |
;
|
|
|
15601 |
|
|
|
15602 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
15603 |
|
|
|
15604 |
static {
|
|
|
15605 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
15606 |
byName.put(field.getFieldName(), field);
|
|
|
15607 |
}
|
|
|
15608 |
}
|
|
|
15609 |
|
|
|
15610 |
/**
|
|
|
15611 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
15612 |
*/
|
|
|
15613 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
15614 |
switch(fieldId) {
|
|
|
15615 |
default:
|
|
|
15616 |
return null;
|
|
|
15617 |
}
|
|
|
15618 |
}
|
|
|
15619 |
|
|
|
15620 |
/**
|
|
|
15621 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
15622 |
* if it is not found.
|
|
|
15623 |
*/
|
|
|
15624 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
15625 |
_Fields fields = findByThriftId(fieldId);
|
|
|
15626 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
15627 |
return fields;
|
|
|
15628 |
}
|
|
|
15629 |
|
|
|
15630 |
/**
|
|
|
15631 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
15632 |
*/
|
|
|
15633 |
public static _Fields findByName(String name) {
|
|
|
15634 |
return byName.get(name);
|
|
|
15635 |
}
|
|
|
15636 |
|
|
|
15637 |
private final short _thriftId;
|
|
|
15638 |
private final String _fieldName;
|
|
|
15639 |
|
|
|
15640 |
_Fields(short thriftId, String fieldName) {
|
|
|
15641 |
_thriftId = thriftId;
|
|
|
15642 |
_fieldName = fieldName;
|
|
|
15643 |
}
|
|
|
15644 |
|
|
|
15645 |
public short getThriftFieldId() {
|
|
|
15646 |
return _thriftId;
|
|
|
15647 |
}
|
|
|
15648 |
|
|
|
15649 |
public String getFieldName() {
|
|
|
15650 |
return _fieldName;
|
|
|
15651 |
}
|
|
|
15652 |
}
|
|
|
15653 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
15654 |
static {
|
|
|
15655 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
15656 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
15657 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
15658 |
}
|
|
|
15659 |
|
|
|
15660 |
public getCurrentSerializedInventoryByScans_args() {
|
|
|
15661 |
}
|
|
|
15662 |
|
|
|
15663 |
/**
|
|
|
15664 |
* Performs a deep copy on <i>other</i>.
|
|
|
15665 |
*/
|
|
|
15666 |
public getCurrentSerializedInventoryByScans_args(getCurrentSerializedInventoryByScans_args other) {
|
|
|
15667 |
}
|
|
|
15668 |
|
|
|
15669 |
public getCurrentSerializedInventoryByScans_args deepCopy() {
|
|
|
15670 |
return new getCurrentSerializedInventoryByScans_args(this);
|
|
|
15671 |
}
|
|
|
15672 |
|
|
|
15673 |
@Override
|
|
|
15674 |
public void clear() {
|
|
|
15675 |
}
|
|
|
15676 |
|
|
|
15677 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15678 |
switch (field) {
|
|
|
15679 |
}
|
|
|
15680 |
}
|
|
|
15681 |
|
|
|
15682 |
public Object getFieldValue(_Fields field) {
|
|
|
15683 |
switch (field) {
|
|
|
15684 |
}
|
|
|
15685 |
throw new IllegalStateException();
|
|
|
15686 |
}
|
|
|
15687 |
|
|
|
15688 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15689 |
public boolean isSet(_Fields field) {
|
|
|
15690 |
if (field == null) {
|
|
|
15691 |
throw new IllegalArgumentException();
|
|
|
15692 |
}
|
|
|
15693 |
|
|
|
15694 |
switch (field) {
|
|
|
15695 |
}
|
|
|
15696 |
throw new IllegalStateException();
|
|
|
15697 |
}
|
|
|
15698 |
|
|
|
15699 |
@Override
|
|
|
15700 |
public boolean equals(Object that) {
|
|
|
15701 |
if (that == null)
|
|
|
15702 |
return false;
|
|
|
15703 |
if (that instanceof getCurrentSerializedInventoryByScans_args)
|
|
|
15704 |
return this.equals((getCurrentSerializedInventoryByScans_args)that);
|
|
|
15705 |
return false;
|
|
|
15706 |
}
|
|
|
15707 |
|
|
|
15708 |
public boolean equals(getCurrentSerializedInventoryByScans_args that) {
|
|
|
15709 |
if (that == null)
|
|
|
15710 |
return false;
|
|
|
15711 |
|
|
|
15712 |
return true;
|
|
|
15713 |
}
|
|
|
15714 |
|
|
|
15715 |
@Override
|
|
|
15716 |
public int hashCode() {
|
|
|
15717 |
return 0;
|
|
|
15718 |
}
|
|
|
15719 |
|
|
|
15720 |
public int compareTo(getCurrentSerializedInventoryByScans_args other) {
|
|
|
15721 |
if (!getClass().equals(other.getClass())) {
|
|
|
15722 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
15723 |
}
|
|
|
15724 |
|
|
|
15725 |
int lastComparison = 0;
|
|
|
15726 |
getCurrentSerializedInventoryByScans_args typedOther = (getCurrentSerializedInventoryByScans_args)other;
|
|
|
15727 |
|
|
|
15728 |
return 0;
|
|
|
15729 |
}
|
|
|
15730 |
|
|
|
15731 |
public _Fields fieldForId(int fieldId) {
|
|
|
15732 |
return _Fields.findByThriftId(fieldId);
|
|
|
15733 |
}
|
|
|
15734 |
|
|
|
15735 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
15736 |
org.apache.thrift.protocol.TField field;
|
|
|
15737 |
iprot.readStructBegin();
|
|
|
15738 |
while (true)
|
|
|
15739 |
{
|
|
|
15740 |
field = iprot.readFieldBegin();
|
|
|
15741 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
15742 |
break;
|
|
|
15743 |
}
|
|
|
15744 |
switch (field.id) {
|
|
|
15745 |
default:
|
|
|
15746 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15747 |
}
|
|
|
15748 |
iprot.readFieldEnd();
|
|
|
15749 |
}
|
|
|
15750 |
iprot.readStructEnd();
|
|
|
15751 |
validate();
|
|
|
15752 |
}
|
|
|
15753 |
|
|
|
15754 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
15755 |
validate();
|
|
|
15756 |
|
|
|
15757 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
15758 |
oprot.writeFieldStop();
|
|
|
15759 |
oprot.writeStructEnd();
|
|
|
15760 |
}
|
|
|
15761 |
|
|
|
15762 |
@Override
|
|
|
15763 |
public String toString() {
|
|
|
15764 |
StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_args(");
|
|
|
15765 |
boolean first = true;
|
|
|
15766 |
|
|
|
15767 |
sb.append(")");
|
|
|
15768 |
return sb.toString();
|
|
|
15769 |
}
|
|
|
15770 |
|
|
|
15771 |
public void validate() throws org.apache.thrift.TException {
|
|
|
15772 |
// check for required fields
|
|
|
15773 |
}
|
|
|
15774 |
|
|
|
15775 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
15776 |
try {
|
|
|
15777 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
15778 |
} catch (org.apache.thrift.TException te) {
|
|
|
15779 |
throw new java.io.IOException(te);
|
|
|
15780 |
}
|
|
|
15781 |
}
|
|
|
15782 |
|
|
|
15783 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
15784 |
try {
|
|
|
15785 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
15786 |
} catch (org.apache.thrift.TException te) {
|
|
|
15787 |
throw new java.io.IOException(te);
|
|
|
15788 |
}
|
|
|
15789 |
}
|
|
|
15790 |
|
|
|
15791 |
}
|
|
|
15792 |
|
|
|
15793 |
public static class getCurrentSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_result, getCurrentSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
15794 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_result");
|
|
|
15795 |
|
|
|
15796 |
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);
|
|
|
15797 |
|
|
|
15798 |
private List<InventoryAvailability> success; // required
|
|
|
15799 |
|
|
|
15800 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
15801 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
15802 |
SUCCESS((short)0, "success");
|
|
|
15803 |
|
|
|
15804 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
15805 |
|
|
|
15806 |
static {
|
|
|
15807 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
15808 |
byName.put(field.getFieldName(), field);
|
|
|
15809 |
}
|
|
|
15810 |
}
|
|
|
15811 |
|
|
|
15812 |
/**
|
|
|
15813 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
15814 |
*/
|
|
|
15815 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
15816 |
switch(fieldId) {
|
|
|
15817 |
case 0: // SUCCESS
|
|
|
15818 |
return SUCCESS;
|
|
|
15819 |
default:
|
|
|
15820 |
return null;
|
|
|
15821 |
}
|
|
|
15822 |
}
|
|
|
15823 |
|
|
|
15824 |
/**
|
|
|
15825 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
15826 |
* if it is not found.
|
|
|
15827 |
*/
|
|
|
15828 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
15829 |
_Fields fields = findByThriftId(fieldId);
|
|
|
15830 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
15831 |
return fields;
|
|
|
15832 |
}
|
|
|
15833 |
|
|
|
15834 |
/**
|
|
|
15835 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
15836 |
*/
|
|
|
15837 |
public static _Fields findByName(String name) {
|
|
|
15838 |
return byName.get(name);
|
|
|
15839 |
}
|
|
|
15840 |
|
|
|
15841 |
private final short _thriftId;
|
|
|
15842 |
private final String _fieldName;
|
|
|
15843 |
|
|
|
15844 |
_Fields(short thriftId, String fieldName) {
|
|
|
15845 |
_thriftId = thriftId;
|
|
|
15846 |
_fieldName = fieldName;
|
|
|
15847 |
}
|
|
|
15848 |
|
|
|
15849 |
public short getThriftFieldId() {
|
|
|
15850 |
return _thriftId;
|
|
|
15851 |
}
|
|
|
15852 |
|
|
|
15853 |
public String getFieldName() {
|
|
|
15854 |
return _fieldName;
|
|
|
15855 |
}
|
|
|
15856 |
}
|
|
|
15857 |
|
|
|
15858 |
// isset id assignments
|
|
|
15859 |
|
|
|
15860 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
15861 |
static {
|
|
|
15862 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
15863 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15864 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
15865 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
|
|
|
15866 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
15867 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
15868 |
}
|
|
|
15869 |
|
|
|
15870 |
public getCurrentSerializedInventoryByScans_result() {
|
|
|
15871 |
}
|
|
|
15872 |
|
|
|
15873 |
public getCurrentSerializedInventoryByScans_result(
|
|
|
15874 |
List<InventoryAvailability> success)
|
|
|
15875 |
{
|
|
|
15876 |
this();
|
|
|
15877 |
this.success = success;
|
|
|
15878 |
}
|
|
|
15879 |
|
|
|
15880 |
/**
|
|
|
15881 |
* Performs a deep copy on <i>other</i>.
|
|
|
15882 |
*/
|
|
|
15883 |
public getCurrentSerializedInventoryByScans_result(getCurrentSerializedInventoryByScans_result other) {
|
|
|
15884 |
if (other.isSetSuccess()) {
|
|
|
15885 |
List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
|
|
|
15886 |
for (InventoryAvailability other_element : other.success) {
|
|
|
15887 |
__this__success.add(new InventoryAvailability(other_element));
|
|
|
15888 |
}
|
|
|
15889 |
this.success = __this__success;
|
|
|
15890 |
}
|
|
|
15891 |
}
|
|
|
15892 |
|
|
|
15893 |
public getCurrentSerializedInventoryByScans_result deepCopy() {
|
|
|
15894 |
return new getCurrentSerializedInventoryByScans_result(this);
|
|
|
15895 |
}
|
|
|
15896 |
|
|
|
15897 |
@Override
|
|
|
15898 |
public void clear() {
|
|
|
15899 |
this.success = null;
|
|
|
15900 |
}
|
|
|
15901 |
|
|
|
15902 |
public int getSuccessSize() {
|
|
|
15903 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
15904 |
}
|
|
|
15905 |
|
|
|
15906 |
public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
|
|
|
15907 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
15908 |
}
|
|
|
15909 |
|
|
|
15910 |
public void addToSuccess(InventoryAvailability elem) {
|
|
|
15911 |
if (this.success == null) {
|
|
|
15912 |
this.success = new ArrayList<InventoryAvailability>();
|
|
|
15913 |
}
|
|
|
15914 |
this.success.add(elem);
|
|
|
15915 |
}
|
|
|
15916 |
|
|
|
15917 |
public List<InventoryAvailability> getSuccess() {
|
|
|
15918 |
return this.success;
|
|
|
15919 |
}
|
|
|
15920 |
|
|
|
15921 |
public void setSuccess(List<InventoryAvailability> success) {
|
|
|
15922 |
this.success = success;
|
|
|
15923 |
}
|
|
|
15924 |
|
|
|
15925 |
public void unsetSuccess() {
|
|
|
15926 |
this.success = null;
|
|
|
15927 |
}
|
|
|
15928 |
|
|
|
15929 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
15930 |
public boolean isSetSuccess() {
|
|
|
15931 |
return this.success != null;
|
|
|
15932 |
}
|
|
|
15933 |
|
|
|
15934 |
public void setSuccessIsSet(boolean value) {
|
|
|
15935 |
if (!value) {
|
|
|
15936 |
this.success = null;
|
|
|
15937 |
}
|
|
|
15938 |
}
|
|
|
15939 |
|
|
|
15940 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15941 |
switch (field) {
|
|
|
15942 |
case SUCCESS:
|
|
|
15943 |
if (value == null) {
|
|
|
15944 |
unsetSuccess();
|
|
|
15945 |
} else {
|
|
|
15946 |
setSuccess((List<InventoryAvailability>)value);
|
|
|
15947 |
}
|
|
|
15948 |
break;
|
|
|
15949 |
|
|
|
15950 |
}
|
|
|
15951 |
}
|
|
|
15952 |
|
|
|
15953 |
public Object getFieldValue(_Fields field) {
|
|
|
15954 |
switch (field) {
|
|
|
15955 |
case SUCCESS:
|
|
|
15956 |
return getSuccess();
|
|
|
15957 |
|
|
|
15958 |
}
|
|
|
15959 |
throw new IllegalStateException();
|
|
|
15960 |
}
|
|
|
15961 |
|
|
|
15962 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15963 |
public boolean isSet(_Fields field) {
|
|
|
15964 |
if (field == null) {
|
|
|
15965 |
throw new IllegalArgumentException();
|
|
|
15966 |
}
|
|
|
15967 |
|
|
|
15968 |
switch (field) {
|
|
|
15969 |
case SUCCESS:
|
|
|
15970 |
return isSetSuccess();
|
|
|
15971 |
}
|
|
|
15972 |
throw new IllegalStateException();
|
|
|
15973 |
}
|
|
|
15974 |
|
|
|
15975 |
@Override
|
|
|
15976 |
public boolean equals(Object that) {
|
|
|
15977 |
if (that == null)
|
|
|
15978 |
return false;
|
|
|
15979 |
if (that instanceof getCurrentSerializedInventoryByScans_result)
|
|
|
15980 |
return this.equals((getCurrentSerializedInventoryByScans_result)that);
|
|
|
15981 |
return false;
|
|
|
15982 |
}
|
|
|
15983 |
|
|
|
15984 |
public boolean equals(getCurrentSerializedInventoryByScans_result that) {
|
|
|
15985 |
if (that == null)
|
|
|
15986 |
return false;
|
|
|
15987 |
|
|
|
15988 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
15989 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
15990 |
if (this_present_success || that_present_success) {
|
|
|
15991 |
if (!(this_present_success && that_present_success))
|
|
|
15992 |
return false;
|
|
|
15993 |
if (!this.success.equals(that.success))
|
|
|
15994 |
return false;
|
|
|
15995 |
}
|
|
|
15996 |
|
|
|
15997 |
return true;
|
|
|
15998 |
}
|
|
|
15999 |
|
|
|
16000 |
@Override
|
|
|
16001 |
public int hashCode() {
|
|
|
16002 |
return 0;
|
|
|
16003 |
}
|
|
|
16004 |
|
|
|
16005 |
public int compareTo(getCurrentSerializedInventoryByScans_result other) {
|
|
|
16006 |
if (!getClass().equals(other.getClass())) {
|
|
|
16007 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
16008 |
}
|
|
|
16009 |
|
|
|
16010 |
int lastComparison = 0;
|
|
|
16011 |
getCurrentSerializedInventoryByScans_result typedOther = (getCurrentSerializedInventoryByScans_result)other;
|
|
|
16012 |
|
|
|
16013 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
16014 |
if (lastComparison != 0) {
|
|
|
16015 |
return lastComparison;
|
|
|
16016 |
}
|
|
|
16017 |
if (isSetSuccess()) {
|
|
|
16018 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
16019 |
if (lastComparison != 0) {
|
|
|
16020 |
return lastComparison;
|
|
|
16021 |
}
|
|
|
16022 |
}
|
|
|
16023 |
return 0;
|
|
|
16024 |
}
|
|
|
16025 |
|
|
|
16026 |
public _Fields fieldForId(int fieldId) {
|
|
|
16027 |
return _Fields.findByThriftId(fieldId);
|
|
|
16028 |
}
|
|
|
16029 |
|
|
|
16030 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
16031 |
org.apache.thrift.protocol.TField field;
|
|
|
16032 |
iprot.readStructBegin();
|
|
|
16033 |
while (true)
|
|
|
16034 |
{
|
|
|
16035 |
field = iprot.readFieldBegin();
|
|
|
16036 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
16037 |
break;
|
|
|
16038 |
}
|
|
|
16039 |
switch (field.id) {
|
|
|
16040 |
case 0: // SUCCESS
|
|
|
16041 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
16042 |
{
|
|
|
16043 |
org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
|
|
|
16044 |
this.success = new ArrayList<InventoryAvailability>(_list40.size);
|
|
|
16045 |
for (int _i41 = 0; _i41 < _list40.size; ++_i41)
|
|
|
16046 |
{
|
|
|
16047 |
InventoryAvailability _elem42; // required
|
|
|
16048 |
_elem42 = new InventoryAvailability();
|
|
|
16049 |
_elem42.read(iprot);
|
|
|
16050 |
this.success.add(_elem42);
|
|
|
16051 |
}
|
|
|
16052 |
iprot.readListEnd();
|
|
|
16053 |
}
|
|
|
16054 |
} else {
|
|
|
16055 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16056 |
}
|
|
|
16057 |
break;
|
|
|
16058 |
default:
|
|
|
16059 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16060 |
}
|
|
|
16061 |
iprot.readFieldEnd();
|
|
|
16062 |
}
|
|
|
16063 |
iprot.readStructEnd();
|
|
|
16064 |
validate();
|
|
|
16065 |
}
|
|
|
16066 |
|
|
|
16067 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
16068 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
16069 |
|
|
|
16070 |
if (this.isSetSuccess()) {
|
|
|
16071 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
16072 |
{
|
|
|
16073 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
16074 |
for (InventoryAvailability _iter43 : this.success)
|
|
|
16075 |
{
|
|
|
16076 |
_iter43.write(oprot);
|
|
|
16077 |
}
|
|
|
16078 |
oprot.writeListEnd();
|
|
|
16079 |
}
|
|
|
16080 |
oprot.writeFieldEnd();
|
|
|
16081 |
}
|
|
|
16082 |
oprot.writeFieldStop();
|
|
|
16083 |
oprot.writeStructEnd();
|
|
|
16084 |
}
|
|
|
16085 |
|
|
|
16086 |
@Override
|
|
|
16087 |
public String toString() {
|
|
|
16088 |
StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_result(");
|
|
|
16089 |
boolean first = true;
|
|
|
16090 |
|
|
|
16091 |
sb.append("success:");
|
|
|
16092 |
if (this.success == null) {
|
|
|
16093 |
sb.append("null");
|
|
|
16094 |
} else {
|
|
|
16095 |
sb.append(this.success);
|
|
|
16096 |
}
|
|
|
16097 |
first = false;
|
|
|
16098 |
sb.append(")");
|
|
|
16099 |
return sb.toString();
|
|
|
16100 |
}
|
|
|
16101 |
|
|
|
16102 |
public void validate() throws org.apache.thrift.TException {
|
|
|
16103 |
// check for required fields
|
|
|
16104 |
}
|
|
|
16105 |
|
|
|
16106 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
16107 |
try {
|
|
|
16108 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
16109 |
} catch (org.apache.thrift.TException te) {
|
|
|
16110 |
throw new java.io.IOException(te);
|
|
|
16111 |
}
|
|
|
16112 |
}
|
|
|
16113 |
|
|
|
16114 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
16115 |
try {
|
|
|
16116 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
16117 |
} catch (org.apache.thrift.TException te) {
|
|
|
16118 |
throw new java.io.IOException(te);
|
|
|
16119 |
}
|
|
|
16120 |
}
|
|
|
16121 |
|
|
|
16122 |
}
|
|
|
16123 |
|
| 6630 |
amar.kumar |
16124 |
public static class getCurrentNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_args, getCurrentNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
16125 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_args");
|
|
|
16126 |
|
|
|
16127 |
|
|
|
16128 |
|
|
|
16129 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
16130 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
16131 |
;
|
|
|
16132 |
|
|
|
16133 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
16134 |
|
|
|
16135 |
static {
|
|
|
16136 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
16137 |
byName.put(field.getFieldName(), field);
|
|
|
16138 |
}
|
|
|
16139 |
}
|
|
|
16140 |
|
|
|
16141 |
/**
|
|
|
16142 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
16143 |
*/
|
|
|
16144 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
16145 |
switch(fieldId) {
|
|
|
16146 |
default:
|
|
|
16147 |
return null;
|
|
|
16148 |
}
|
|
|
16149 |
}
|
|
|
16150 |
|
|
|
16151 |
/**
|
|
|
16152 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
16153 |
* if it is not found.
|
|
|
16154 |
*/
|
|
|
16155 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
16156 |
_Fields fields = findByThriftId(fieldId);
|
|
|
16157 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
16158 |
return fields;
|
|
|
16159 |
}
|
|
|
16160 |
|
|
|
16161 |
/**
|
|
|
16162 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
16163 |
*/
|
|
|
16164 |
public static _Fields findByName(String name) {
|
|
|
16165 |
return byName.get(name);
|
|
|
16166 |
}
|
|
|
16167 |
|
|
|
16168 |
private final short _thriftId;
|
|
|
16169 |
private final String _fieldName;
|
|
|
16170 |
|
|
|
16171 |
_Fields(short thriftId, String fieldName) {
|
|
|
16172 |
_thriftId = thriftId;
|
|
|
16173 |
_fieldName = fieldName;
|
|
|
16174 |
}
|
|
|
16175 |
|
|
|
16176 |
public short getThriftFieldId() {
|
|
|
16177 |
return _thriftId;
|
|
|
16178 |
}
|
|
|
16179 |
|
|
|
16180 |
public String getFieldName() {
|
|
|
16181 |
return _fieldName;
|
|
|
16182 |
}
|
|
|
16183 |
}
|
|
|
16184 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
16185 |
static {
|
|
|
16186 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
16187 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
16188 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
16189 |
}
|
|
|
16190 |
|
|
|
16191 |
public getCurrentNonSerializedInventoryByScans_args() {
|
|
|
16192 |
}
|
|
|
16193 |
|
|
|
16194 |
/**
|
|
|
16195 |
* Performs a deep copy on <i>other</i>.
|
|
|
16196 |
*/
|
|
|
16197 |
public getCurrentNonSerializedInventoryByScans_args(getCurrentNonSerializedInventoryByScans_args other) {
|
|
|
16198 |
}
|
|
|
16199 |
|
|
|
16200 |
public getCurrentNonSerializedInventoryByScans_args deepCopy() {
|
|
|
16201 |
return new getCurrentNonSerializedInventoryByScans_args(this);
|
|
|
16202 |
}
|
|
|
16203 |
|
|
|
16204 |
@Override
|
|
|
16205 |
public void clear() {
|
|
|
16206 |
}
|
|
|
16207 |
|
|
|
16208 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
16209 |
switch (field) {
|
|
|
16210 |
}
|
|
|
16211 |
}
|
|
|
16212 |
|
|
|
16213 |
public Object getFieldValue(_Fields field) {
|
|
|
16214 |
switch (field) {
|
|
|
16215 |
}
|
|
|
16216 |
throw new IllegalStateException();
|
|
|
16217 |
}
|
|
|
16218 |
|
|
|
16219 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
16220 |
public boolean isSet(_Fields field) {
|
|
|
16221 |
if (field == null) {
|
|
|
16222 |
throw new IllegalArgumentException();
|
|
|
16223 |
}
|
|
|
16224 |
|
|
|
16225 |
switch (field) {
|
|
|
16226 |
}
|
|
|
16227 |
throw new IllegalStateException();
|
|
|
16228 |
}
|
|
|
16229 |
|
|
|
16230 |
@Override
|
|
|
16231 |
public boolean equals(Object that) {
|
|
|
16232 |
if (that == null)
|
|
|
16233 |
return false;
|
|
|
16234 |
if (that instanceof getCurrentNonSerializedInventoryByScans_args)
|
|
|
16235 |
return this.equals((getCurrentNonSerializedInventoryByScans_args)that);
|
|
|
16236 |
return false;
|
|
|
16237 |
}
|
|
|
16238 |
|
|
|
16239 |
public boolean equals(getCurrentNonSerializedInventoryByScans_args that) {
|
|
|
16240 |
if (that == null)
|
|
|
16241 |
return false;
|
|
|
16242 |
|
|
|
16243 |
return true;
|
|
|
16244 |
}
|
|
|
16245 |
|
|
|
16246 |
@Override
|
|
|
16247 |
public int hashCode() {
|
|
|
16248 |
return 0;
|
|
|
16249 |
}
|
|
|
16250 |
|
|
|
16251 |
public int compareTo(getCurrentNonSerializedInventoryByScans_args other) {
|
|
|
16252 |
if (!getClass().equals(other.getClass())) {
|
|
|
16253 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
16254 |
}
|
|
|
16255 |
|
|
|
16256 |
int lastComparison = 0;
|
|
|
16257 |
getCurrentNonSerializedInventoryByScans_args typedOther = (getCurrentNonSerializedInventoryByScans_args)other;
|
|
|
16258 |
|
|
|
16259 |
return 0;
|
|
|
16260 |
}
|
|
|
16261 |
|
|
|
16262 |
public _Fields fieldForId(int fieldId) {
|
|
|
16263 |
return _Fields.findByThriftId(fieldId);
|
|
|
16264 |
}
|
|
|
16265 |
|
|
|
16266 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
16267 |
org.apache.thrift.protocol.TField field;
|
|
|
16268 |
iprot.readStructBegin();
|
|
|
16269 |
while (true)
|
|
|
16270 |
{
|
|
|
16271 |
field = iprot.readFieldBegin();
|
|
|
16272 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
16273 |
break;
|
|
|
16274 |
}
|
|
|
16275 |
switch (field.id) {
|
|
|
16276 |
default:
|
|
|
16277 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16278 |
}
|
|
|
16279 |
iprot.readFieldEnd();
|
|
|
16280 |
}
|
|
|
16281 |
iprot.readStructEnd();
|
|
|
16282 |
validate();
|
|
|
16283 |
}
|
|
|
16284 |
|
|
|
16285 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
16286 |
validate();
|
|
|
16287 |
|
|
|
16288 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
16289 |
oprot.writeFieldStop();
|
|
|
16290 |
oprot.writeStructEnd();
|
|
|
16291 |
}
|
|
|
16292 |
|
|
|
16293 |
@Override
|
|
|
16294 |
public String toString() {
|
|
|
16295 |
StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_args(");
|
|
|
16296 |
boolean first = true;
|
|
|
16297 |
|
|
|
16298 |
sb.append(")");
|
|
|
16299 |
return sb.toString();
|
|
|
16300 |
}
|
|
|
16301 |
|
|
|
16302 |
public void validate() throws org.apache.thrift.TException {
|
|
|
16303 |
// check for required fields
|
|
|
16304 |
}
|
|
|
16305 |
|
|
|
16306 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
16307 |
try {
|
|
|
16308 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
16309 |
} catch (org.apache.thrift.TException te) {
|
|
|
16310 |
throw new java.io.IOException(te);
|
|
|
16311 |
}
|
|
|
16312 |
}
|
|
|
16313 |
|
|
|
16314 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
16315 |
try {
|
|
|
16316 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
16317 |
} catch (org.apache.thrift.TException te) {
|
|
|
16318 |
throw new java.io.IOException(te);
|
|
|
16319 |
}
|
|
|
16320 |
}
|
|
|
16321 |
|
|
|
16322 |
}
|
|
|
16323 |
|
|
|
16324 |
public static class getCurrentNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_result, getCurrentNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
16325 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_result");
|
|
|
16326 |
|
|
|
16327 |
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);
|
|
|
16328 |
|
|
|
16329 |
private List<InventoryAvailability> success; // required
|
|
|
16330 |
|
|
|
16331 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
16332 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
16333 |
SUCCESS((short)0, "success");
|
|
|
16334 |
|
|
|
16335 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
16336 |
|
|
|
16337 |
static {
|
|
|
16338 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
16339 |
byName.put(field.getFieldName(), field);
|
|
|
16340 |
}
|
|
|
16341 |
}
|
|
|
16342 |
|
|
|
16343 |
/**
|
|
|
16344 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
16345 |
*/
|
|
|
16346 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
16347 |
switch(fieldId) {
|
|
|
16348 |
case 0: // SUCCESS
|
|
|
16349 |
return SUCCESS;
|
|
|
16350 |
default:
|
|
|
16351 |
return null;
|
|
|
16352 |
}
|
|
|
16353 |
}
|
|
|
16354 |
|
|
|
16355 |
/**
|
|
|
16356 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
16357 |
* if it is not found.
|
|
|
16358 |
*/
|
|
|
16359 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
16360 |
_Fields fields = findByThriftId(fieldId);
|
|
|
16361 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
16362 |
return fields;
|
|
|
16363 |
}
|
|
|
16364 |
|
|
|
16365 |
/**
|
|
|
16366 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
16367 |
*/
|
|
|
16368 |
public static _Fields findByName(String name) {
|
|
|
16369 |
return byName.get(name);
|
|
|
16370 |
}
|
|
|
16371 |
|
|
|
16372 |
private final short _thriftId;
|
|
|
16373 |
private final String _fieldName;
|
|
|
16374 |
|
|
|
16375 |
_Fields(short thriftId, String fieldName) {
|
|
|
16376 |
_thriftId = thriftId;
|
|
|
16377 |
_fieldName = fieldName;
|
|
|
16378 |
}
|
|
|
16379 |
|
|
|
16380 |
public short getThriftFieldId() {
|
|
|
16381 |
return _thriftId;
|
|
|
16382 |
}
|
|
|
16383 |
|
|
|
16384 |
public String getFieldName() {
|
|
|
16385 |
return _fieldName;
|
|
|
16386 |
}
|
|
|
16387 |
}
|
|
|
16388 |
|
|
|
16389 |
// isset id assignments
|
|
|
16390 |
|
|
|
16391 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
16392 |
static {
|
|
|
16393 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
16394 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
16395 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
16396 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
|
|
|
16397 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
16398 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
16399 |
}
|
|
|
16400 |
|
|
|
16401 |
public getCurrentNonSerializedInventoryByScans_result() {
|
|
|
16402 |
}
|
|
|
16403 |
|
|
|
16404 |
public getCurrentNonSerializedInventoryByScans_result(
|
|
|
16405 |
List<InventoryAvailability> success)
|
|
|
16406 |
{
|
|
|
16407 |
this();
|
|
|
16408 |
this.success = success;
|
|
|
16409 |
}
|
|
|
16410 |
|
|
|
16411 |
/**
|
|
|
16412 |
* Performs a deep copy on <i>other</i>.
|
|
|
16413 |
*/
|
|
|
16414 |
public getCurrentNonSerializedInventoryByScans_result(getCurrentNonSerializedInventoryByScans_result other) {
|
|
|
16415 |
if (other.isSetSuccess()) {
|
|
|
16416 |
List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
|
|
|
16417 |
for (InventoryAvailability other_element : other.success) {
|
|
|
16418 |
__this__success.add(new InventoryAvailability(other_element));
|
|
|
16419 |
}
|
|
|
16420 |
this.success = __this__success;
|
|
|
16421 |
}
|
|
|
16422 |
}
|
|
|
16423 |
|
|
|
16424 |
public getCurrentNonSerializedInventoryByScans_result deepCopy() {
|
|
|
16425 |
return new getCurrentNonSerializedInventoryByScans_result(this);
|
|
|
16426 |
}
|
|
|
16427 |
|
|
|
16428 |
@Override
|
|
|
16429 |
public void clear() {
|
|
|
16430 |
this.success = null;
|
|
|
16431 |
}
|
|
|
16432 |
|
|
|
16433 |
public int getSuccessSize() {
|
|
|
16434 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
16435 |
}
|
|
|
16436 |
|
|
|
16437 |
public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
|
|
|
16438 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
16439 |
}
|
|
|
16440 |
|
|
|
16441 |
public void addToSuccess(InventoryAvailability elem) {
|
|
|
16442 |
if (this.success == null) {
|
|
|
16443 |
this.success = new ArrayList<InventoryAvailability>();
|
|
|
16444 |
}
|
|
|
16445 |
this.success.add(elem);
|
|
|
16446 |
}
|
|
|
16447 |
|
|
|
16448 |
public List<InventoryAvailability> getSuccess() {
|
|
|
16449 |
return this.success;
|
|
|
16450 |
}
|
|
|
16451 |
|
|
|
16452 |
public void setSuccess(List<InventoryAvailability> success) {
|
|
|
16453 |
this.success = success;
|
|
|
16454 |
}
|
|
|
16455 |
|
|
|
16456 |
public void unsetSuccess() {
|
|
|
16457 |
this.success = null;
|
|
|
16458 |
}
|
|
|
16459 |
|
|
|
16460 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
16461 |
public boolean isSetSuccess() {
|
|
|
16462 |
return this.success != null;
|
|
|
16463 |
}
|
|
|
16464 |
|
|
|
16465 |
public void setSuccessIsSet(boolean value) {
|
|
|
16466 |
if (!value) {
|
|
|
16467 |
this.success = null;
|
|
|
16468 |
}
|
|
|
16469 |
}
|
|
|
16470 |
|
|
|
16471 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
16472 |
switch (field) {
|
|
|
16473 |
case SUCCESS:
|
|
|
16474 |
if (value == null) {
|
|
|
16475 |
unsetSuccess();
|
|
|
16476 |
} else {
|
|
|
16477 |
setSuccess((List<InventoryAvailability>)value);
|
|
|
16478 |
}
|
|
|
16479 |
break;
|
|
|
16480 |
|
|
|
16481 |
}
|
|
|
16482 |
}
|
|
|
16483 |
|
|
|
16484 |
public Object getFieldValue(_Fields field) {
|
|
|
16485 |
switch (field) {
|
|
|
16486 |
case SUCCESS:
|
|
|
16487 |
return getSuccess();
|
|
|
16488 |
|
|
|
16489 |
}
|
|
|
16490 |
throw new IllegalStateException();
|
|
|
16491 |
}
|
|
|
16492 |
|
|
|
16493 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
16494 |
public boolean isSet(_Fields field) {
|
|
|
16495 |
if (field == null) {
|
|
|
16496 |
throw new IllegalArgumentException();
|
|
|
16497 |
}
|
|
|
16498 |
|
|
|
16499 |
switch (field) {
|
|
|
16500 |
case SUCCESS:
|
|
|
16501 |
return isSetSuccess();
|
|
|
16502 |
}
|
|
|
16503 |
throw new IllegalStateException();
|
|
|
16504 |
}
|
|
|
16505 |
|
|
|
16506 |
@Override
|
|
|
16507 |
public boolean equals(Object that) {
|
|
|
16508 |
if (that == null)
|
|
|
16509 |
return false;
|
|
|
16510 |
if (that instanceof getCurrentNonSerializedInventoryByScans_result)
|
|
|
16511 |
return this.equals((getCurrentNonSerializedInventoryByScans_result)that);
|
|
|
16512 |
return false;
|
|
|
16513 |
}
|
|
|
16514 |
|
|
|
16515 |
public boolean equals(getCurrentNonSerializedInventoryByScans_result that) {
|
|
|
16516 |
if (that == null)
|
|
|
16517 |
return false;
|
|
|
16518 |
|
|
|
16519 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
16520 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
16521 |
if (this_present_success || that_present_success) {
|
|
|
16522 |
if (!(this_present_success && that_present_success))
|
|
|
16523 |
return false;
|
|
|
16524 |
if (!this.success.equals(that.success))
|
|
|
16525 |
return false;
|
|
|
16526 |
}
|
|
|
16527 |
|
|
|
16528 |
return true;
|
|
|
16529 |
}
|
|
|
16530 |
|
|
|
16531 |
@Override
|
|
|
16532 |
public int hashCode() {
|
|
|
16533 |
return 0;
|
|
|
16534 |
}
|
|
|
16535 |
|
|
|
16536 |
public int compareTo(getCurrentNonSerializedInventoryByScans_result other) {
|
|
|
16537 |
if (!getClass().equals(other.getClass())) {
|
|
|
16538 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
16539 |
}
|
|
|
16540 |
|
|
|
16541 |
int lastComparison = 0;
|
|
|
16542 |
getCurrentNonSerializedInventoryByScans_result typedOther = (getCurrentNonSerializedInventoryByScans_result)other;
|
|
|
16543 |
|
|
|
16544 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
16545 |
if (lastComparison != 0) {
|
|
|
16546 |
return lastComparison;
|
|
|
16547 |
}
|
|
|
16548 |
if (isSetSuccess()) {
|
|
|
16549 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
16550 |
if (lastComparison != 0) {
|
|
|
16551 |
return lastComparison;
|
|
|
16552 |
}
|
|
|
16553 |
}
|
|
|
16554 |
return 0;
|
|
|
16555 |
}
|
|
|
16556 |
|
|
|
16557 |
public _Fields fieldForId(int fieldId) {
|
|
|
16558 |
return _Fields.findByThriftId(fieldId);
|
|
|
16559 |
}
|
|
|
16560 |
|
|
|
16561 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
16562 |
org.apache.thrift.protocol.TField field;
|
|
|
16563 |
iprot.readStructBegin();
|
|
|
16564 |
while (true)
|
|
|
16565 |
{
|
|
|
16566 |
field = iprot.readFieldBegin();
|
|
|
16567 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
16568 |
break;
|
|
|
16569 |
}
|
|
|
16570 |
switch (field.id) {
|
|
|
16571 |
case 0: // SUCCESS
|
|
|
16572 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
16573 |
{
|
|
|
16574 |
org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
|
|
|
16575 |
this.success = new ArrayList<InventoryAvailability>(_list44.size);
|
|
|
16576 |
for (int _i45 = 0; _i45 < _list44.size; ++_i45)
|
|
|
16577 |
{
|
|
|
16578 |
InventoryAvailability _elem46; // required
|
|
|
16579 |
_elem46 = new InventoryAvailability();
|
|
|
16580 |
_elem46.read(iprot);
|
|
|
16581 |
this.success.add(_elem46);
|
|
|
16582 |
}
|
|
|
16583 |
iprot.readListEnd();
|
|
|
16584 |
}
|
|
|
16585 |
} else {
|
|
|
16586 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16587 |
}
|
|
|
16588 |
break;
|
|
|
16589 |
default:
|
|
|
16590 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16591 |
}
|
|
|
16592 |
iprot.readFieldEnd();
|
|
|
16593 |
}
|
|
|
16594 |
iprot.readStructEnd();
|
|
|
16595 |
validate();
|
|
|
16596 |
}
|
|
|
16597 |
|
|
|
16598 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
16599 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
16600 |
|
|
|
16601 |
if (this.isSetSuccess()) {
|
|
|
16602 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
16603 |
{
|
|
|
16604 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
16605 |
for (InventoryAvailability _iter47 : this.success)
|
|
|
16606 |
{
|
|
|
16607 |
_iter47.write(oprot);
|
|
|
16608 |
}
|
|
|
16609 |
oprot.writeListEnd();
|
|
|
16610 |
}
|
|
|
16611 |
oprot.writeFieldEnd();
|
|
|
16612 |
}
|
|
|
16613 |
oprot.writeFieldStop();
|
|
|
16614 |
oprot.writeStructEnd();
|
|
|
16615 |
}
|
|
|
16616 |
|
|
|
16617 |
@Override
|
|
|
16618 |
public String toString() {
|
|
|
16619 |
StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_result(");
|
|
|
16620 |
boolean first = true;
|
|
|
16621 |
|
|
|
16622 |
sb.append("success:");
|
|
|
16623 |
if (this.success == null) {
|
|
|
16624 |
sb.append("null");
|
|
|
16625 |
} else {
|
|
|
16626 |
sb.append(this.success);
|
|
|
16627 |
}
|
|
|
16628 |
first = false;
|
|
|
16629 |
sb.append(")");
|
|
|
16630 |
return sb.toString();
|
|
|
16631 |
}
|
|
|
16632 |
|
|
|
16633 |
public void validate() throws org.apache.thrift.TException {
|
|
|
16634 |
// check for required fields
|
|
|
16635 |
}
|
|
|
16636 |
|
|
|
16637 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
16638 |
try {
|
|
|
16639 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
16640 |
} catch (org.apache.thrift.TException te) {
|
|
|
16641 |
throw new java.io.IOException(te);
|
|
|
16642 |
}
|
|
|
16643 |
}
|
|
|
16644 |
|
|
|
16645 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
16646 |
try {
|
|
|
16647 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
16648 |
} catch (org.apache.thrift.TException te) {
|
|
|
16649 |
throw new java.io.IOException(te);
|
|
|
16650 |
}
|
|
|
16651 |
}
|
|
|
16652 |
|
|
|
16653 |
}
|
|
|
16654 |
|
| 6762 |
amar.kumar |
16655 |
public static class getHistoricSerializedInventoryByScans_args implements org.apache.thrift.TBase<getHistoricSerializedInventoryByScans_args, getHistoricSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
16656 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricSerializedInventoryByScans_args");
|
|
|
16657 |
|
|
|
16658 |
private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
16659 |
|
|
|
16660 |
private long date; // required
|
|
|
16661 |
|
|
|
16662 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
16663 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
16664 |
DATE((short)1, "date");
|
|
|
16665 |
|
|
|
16666 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
16667 |
|
|
|
16668 |
static {
|
|
|
16669 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
16670 |
byName.put(field.getFieldName(), field);
|
|
|
16671 |
}
|
|
|
16672 |
}
|
|
|
16673 |
|
|
|
16674 |
/**
|
|
|
16675 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
16676 |
*/
|
|
|
16677 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
16678 |
switch(fieldId) {
|
|
|
16679 |
case 1: // DATE
|
|
|
16680 |
return DATE;
|
|
|
16681 |
default:
|
|
|
16682 |
return null;
|
|
|
16683 |
}
|
|
|
16684 |
}
|
|
|
16685 |
|
|
|
16686 |
/**
|
|
|
16687 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
16688 |
* if it is not found.
|
|
|
16689 |
*/
|
|
|
16690 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
16691 |
_Fields fields = findByThriftId(fieldId);
|
|
|
16692 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
16693 |
return fields;
|
|
|
16694 |
}
|
|
|
16695 |
|
|
|
16696 |
/**
|
|
|
16697 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
16698 |
*/
|
|
|
16699 |
public static _Fields findByName(String name) {
|
|
|
16700 |
return byName.get(name);
|
|
|
16701 |
}
|
|
|
16702 |
|
|
|
16703 |
private final short _thriftId;
|
|
|
16704 |
private final String _fieldName;
|
|
|
16705 |
|
|
|
16706 |
_Fields(short thriftId, String fieldName) {
|
|
|
16707 |
_thriftId = thriftId;
|
|
|
16708 |
_fieldName = fieldName;
|
|
|
16709 |
}
|
|
|
16710 |
|
|
|
16711 |
public short getThriftFieldId() {
|
|
|
16712 |
return _thriftId;
|
|
|
16713 |
}
|
|
|
16714 |
|
|
|
16715 |
public String getFieldName() {
|
|
|
16716 |
return _fieldName;
|
|
|
16717 |
}
|
|
|
16718 |
}
|
|
|
16719 |
|
|
|
16720 |
// isset id assignments
|
|
|
16721 |
private static final int __DATE_ISSET_ID = 0;
|
|
|
16722 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
16723 |
|
|
|
16724 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
16725 |
static {
|
|
|
16726 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
16727 |
tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
16728 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
16729 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
16730 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
16731 |
}
|
|
|
16732 |
|
|
|
16733 |
public getHistoricSerializedInventoryByScans_args() {
|
|
|
16734 |
}
|
|
|
16735 |
|
|
|
16736 |
public getHistoricSerializedInventoryByScans_args(
|
|
|
16737 |
long date)
|
|
|
16738 |
{
|
|
|
16739 |
this();
|
|
|
16740 |
this.date = date;
|
|
|
16741 |
setDateIsSet(true);
|
|
|
16742 |
}
|
|
|
16743 |
|
|
|
16744 |
/**
|
|
|
16745 |
* Performs a deep copy on <i>other</i>.
|
|
|
16746 |
*/
|
|
|
16747 |
public getHistoricSerializedInventoryByScans_args(getHistoricSerializedInventoryByScans_args other) {
|
|
|
16748 |
__isset_bit_vector.clear();
|
|
|
16749 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
16750 |
this.date = other.date;
|
|
|
16751 |
}
|
|
|
16752 |
|
|
|
16753 |
public getHistoricSerializedInventoryByScans_args deepCopy() {
|
|
|
16754 |
return new getHistoricSerializedInventoryByScans_args(this);
|
|
|
16755 |
}
|
|
|
16756 |
|
|
|
16757 |
@Override
|
|
|
16758 |
public void clear() {
|
|
|
16759 |
setDateIsSet(false);
|
|
|
16760 |
this.date = 0;
|
|
|
16761 |
}
|
|
|
16762 |
|
|
|
16763 |
public long getDate() {
|
|
|
16764 |
return this.date;
|
|
|
16765 |
}
|
|
|
16766 |
|
|
|
16767 |
public void setDate(long date) {
|
|
|
16768 |
this.date = date;
|
|
|
16769 |
setDateIsSet(true);
|
|
|
16770 |
}
|
|
|
16771 |
|
|
|
16772 |
public void unsetDate() {
|
|
|
16773 |
__isset_bit_vector.clear(__DATE_ISSET_ID);
|
|
|
16774 |
}
|
|
|
16775 |
|
|
|
16776 |
/** Returns true if field date is set (has been assigned a value) and false otherwise */
|
|
|
16777 |
public boolean isSetDate() {
|
|
|
16778 |
return __isset_bit_vector.get(__DATE_ISSET_ID);
|
|
|
16779 |
}
|
|
|
16780 |
|
|
|
16781 |
public void setDateIsSet(boolean value) {
|
|
|
16782 |
__isset_bit_vector.set(__DATE_ISSET_ID, value);
|
|
|
16783 |
}
|
|
|
16784 |
|
|
|
16785 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
16786 |
switch (field) {
|
|
|
16787 |
case DATE:
|
|
|
16788 |
if (value == null) {
|
|
|
16789 |
unsetDate();
|
|
|
16790 |
} else {
|
|
|
16791 |
setDate((Long)value);
|
|
|
16792 |
}
|
|
|
16793 |
break;
|
|
|
16794 |
|
|
|
16795 |
}
|
|
|
16796 |
}
|
|
|
16797 |
|
|
|
16798 |
public Object getFieldValue(_Fields field) {
|
|
|
16799 |
switch (field) {
|
|
|
16800 |
case DATE:
|
|
|
16801 |
return Long.valueOf(getDate());
|
|
|
16802 |
|
|
|
16803 |
}
|
|
|
16804 |
throw new IllegalStateException();
|
|
|
16805 |
}
|
|
|
16806 |
|
|
|
16807 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
16808 |
public boolean isSet(_Fields field) {
|
|
|
16809 |
if (field == null) {
|
|
|
16810 |
throw new IllegalArgumentException();
|
|
|
16811 |
}
|
|
|
16812 |
|
|
|
16813 |
switch (field) {
|
|
|
16814 |
case DATE:
|
|
|
16815 |
return isSetDate();
|
|
|
16816 |
}
|
|
|
16817 |
throw new IllegalStateException();
|
|
|
16818 |
}
|
|
|
16819 |
|
|
|
16820 |
@Override
|
|
|
16821 |
public boolean equals(Object that) {
|
|
|
16822 |
if (that == null)
|
|
|
16823 |
return false;
|
|
|
16824 |
if (that instanceof getHistoricSerializedInventoryByScans_args)
|
|
|
16825 |
return this.equals((getHistoricSerializedInventoryByScans_args)that);
|
|
|
16826 |
return false;
|
|
|
16827 |
}
|
|
|
16828 |
|
|
|
16829 |
public boolean equals(getHistoricSerializedInventoryByScans_args that) {
|
|
|
16830 |
if (that == null)
|
|
|
16831 |
return false;
|
|
|
16832 |
|
|
|
16833 |
boolean this_present_date = true;
|
|
|
16834 |
boolean that_present_date = true;
|
|
|
16835 |
if (this_present_date || that_present_date) {
|
|
|
16836 |
if (!(this_present_date && that_present_date))
|
|
|
16837 |
return false;
|
|
|
16838 |
if (this.date != that.date)
|
|
|
16839 |
return false;
|
|
|
16840 |
}
|
|
|
16841 |
|
|
|
16842 |
return true;
|
|
|
16843 |
}
|
|
|
16844 |
|
|
|
16845 |
@Override
|
|
|
16846 |
public int hashCode() {
|
|
|
16847 |
return 0;
|
|
|
16848 |
}
|
|
|
16849 |
|
|
|
16850 |
public int compareTo(getHistoricSerializedInventoryByScans_args other) {
|
|
|
16851 |
if (!getClass().equals(other.getClass())) {
|
|
|
16852 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
16853 |
}
|
|
|
16854 |
|
|
|
16855 |
int lastComparison = 0;
|
|
|
16856 |
getHistoricSerializedInventoryByScans_args typedOther = (getHistoricSerializedInventoryByScans_args)other;
|
|
|
16857 |
|
|
|
16858 |
lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
|
|
|
16859 |
if (lastComparison != 0) {
|
|
|
16860 |
return lastComparison;
|
|
|
16861 |
}
|
|
|
16862 |
if (isSetDate()) {
|
|
|
16863 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
|
|
|
16864 |
if (lastComparison != 0) {
|
|
|
16865 |
return lastComparison;
|
|
|
16866 |
}
|
|
|
16867 |
}
|
|
|
16868 |
return 0;
|
|
|
16869 |
}
|
|
|
16870 |
|
|
|
16871 |
public _Fields fieldForId(int fieldId) {
|
|
|
16872 |
return _Fields.findByThriftId(fieldId);
|
|
|
16873 |
}
|
|
|
16874 |
|
|
|
16875 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
16876 |
org.apache.thrift.protocol.TField field;
|
|
|
16877 |
iprot.readStructBegin();
|
|
|
16878 |
while (true)
|
|
|
16879 |
{
|
|
|
16880 |
field = iprot.readFieldBegin();
|
|
|
16881 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
16882 |
break;
|
|
|
16883 |
}
|
|
|
16884 |
switch (field.id) {
|
|
|
16885 |
case 1: // DATE
|
|
|
16886 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
16887 |
this.date = iprot.readI64();
|
|
|
16888 |
setDateIsSet(true);
|
|
|
16889 |
} else {
|
|
|
16890 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16891 |
}
|
|
|
16892 |
break;
|
|
|
16893 |
default:
|
|
|
16894 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16895 |
}
|
|
|
16896 |
iprot.readFieldEnd();
|
|
|
16897 |
}
|
|
|
16898 |
iprot.readStructEnd();
|
|
|
16899 |
validate();
|
|
|
16900 |
}
|
|
|
16901 |
|
|
|
16902 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
16903 |
validate();
|
|
|
16904 |
|
|
|
16905 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
16906 |
oprot.writeFieldBegin(DATE_FIELD_DESC);
|
|
|
16907 |
oprot.writeI64(this.date);
|
|
|
16908 |
oprot.writeFieldEnd();
|
|
|
16909 |
oprot.writeFieldStop();
|
|
|
16910 |
oprot.writeStructEnd();
|
|
|
16911 |
}
|
|
|
16912 |
|
|
|
16913 |
@Override
|
|
|
16914 |
public String toString() {
|
|
|
16915 |
StringBuilder sb = new StringBuilder("getHistoricSerializedInventoryByScans_args(");
|
|
|
16916 |
boolean first = true;
|
|
|
16917 |
|
|
|
16918 |
sb.append("date:");
|
|
|
16919 |
sb.append(this.date);
|
|
|
16920 |
first = false;
|
|
|
16921 |
sb.append(")");
|
|
|
16922 |
return sb.toString();
|
|
|
16923 |
}
|
|
|
16924 |
|
|
|
16925 |
public void validate() throws org.apache.thrift.TException {
|
|
|
16926 |
// check for required fields
|
|
|
16927 |
}
|
|
|
16928 |
|
|
|
16929 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
16930 |
try {
|
|
|
16931 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
16932 |
} catch (org.apache.thrift.TException te) {
|
|
|
16933 |
throw new java.io.IOException(te);
|
|
|
16934 |
}
|
|
|
16935 |
}
|
|
|
16936 |
|
|
|
16937 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
16938 |
try {
|
|
|
16939 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
16940 |
} catch (org.apache.thrift.TException te) {
|
|
|
16941 |
throw new java.io.IOException(te);
|
|
|
16942 |
}
|
|
|
16943 |
}
|
|
|
16944 |
|
|
|
16945 |
}
|
|
|
16946 |
|
|
|
16947 |
public static class getHistoricSerializedInventoryByScans_result implements org.apache.thrift.TBase<getHistoricSerializedInventoryByScans_result, getHistoricSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
16948 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricSerializedInventoryByScans_result");
|
|
|
16949 |
|
|
|
16950 |
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);
|
|
|
16951 |
|
|
|
16952 |
private List<InventoryAvailability> success; // required
|
|
|
16953 |
|
|
|
16954 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
16955 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
16956 |
SUCCESS((short)0, "success");
|
|
|
16957 |
|
|
|
16958 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
16959 |
|
|
|
16960 |
static {
|
|
|
16961 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
16962 |
byName.put(field.getFieldName(), field);
|
|
|
16963 |
}
|
|
|
16964 |
}
|
|
|
16965 |
|
|
|
16966 |
/**
|
|
|
16967 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
16968 |
*/
|
|
|
16969 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
16970 |
switch(fieldId) {
|
|
|
16971 |
case 0: // SUCCESS
|
|
|
16972 |
return SUCCESS;
|
|
|
16973 |
default:
|
|
|
16974 |
return null;
|
|
|
16975 |
}
|
|
|
16976 |
}
|
|
|
16977 |
|
|
|
16978 |
/**
|
|
|
16979 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
16980 |
* if it is not found.
|
|
|
16981 |
*/
|
|
|
16982 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
16983 |
_Fields fields = findByThriftId(fieldId);
|
|
|
16984 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
16985 |
return fields;
|
|
|
16986 |
}
|
|
|
16987 |
|
|
|
16988 |
/**
|
|
|
16989 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
16990 |
*/
|
|
|
16991 |
public static _Fields findByName(String name) {
|
|
|
16992 |
return byName.get(name);
|
|
|
16993 |
}
|
|
|
16994 |
|
|
|
16995 |
private final short _thriftId;
|
|
|
16996 |
private final String _fieldName;
|
|
|
16997 |
|
|
|
16998 |
_Fields(short thriftId, String fieldName) {
|
|
|
16999 |
_thriftId = thriftId;
|
|
|
17000 |
_fieldName = fieldName;
|
|
|
17001 |
}
|
|
|
17002 |
|
|
|
17003 |
public short getThriftFieldId() {
|
|
|
17004 |
return _thriftId;
|
|
|
17005 |
}
|
|
|
17006 |
|
|
|
17007 |
public String getFieldName() {
|
|
|
17008 |
return _fieldName;
|
|
|
17009 |
}
|
|
|
17010 |
}
|
|
|
17011 |
|
|
|
17012 |
// isset id assignments
|
|
|
17013 |
|
|
|
17014 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
17015 |
static {
|
|
|
17016 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
17017 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
17018 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
17019 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
|
|
|
17020 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
17021 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
17022 |
}
|
|
|
17023 |
|
|
|
17024 |
public getHistoricSerializedInventoryByScans_result() {
|
|
|
17025 |
}
|
|
|
17026 |
|
|
|
17027 |
public getHistoricSerializedInventoryByScans_result(
|
|
|
17028 |
List<InventoryAvailability> success)
|
|
|
17029 |
{
|
|
|
17030 |
this();
|
|
|
17031 |
this.success = success;
|
|
|
17032 |
}
|
|
|
17033 |
|
|
|
17034 |
/**
|
|
|
17035 |
* Performs a deep copy on <i>other</i>.
|
|
|
17036 |
*/
|
|
|
17037 |
public getHistoricSerializedInventoryByScans_result(getHistoricSerializedInventoryByScans_result other) {
|
|
|
17038 |
if (other.isSetSuccess()) {
|
|
|
17039 |
List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
|
|
|
17040 |
for (InventoryAvailability other_element : other.success) {
|
|
|
17041 |
__this__success.add(new InventoryAvailability(other_element));
|
|
|
17042 |
}
|
|
|
17043 |
this.success = __this__success;
|
|
|
17044 |
}
|
|
|
17045 |
}
|
|
|
17046 |
|
|
|
17047 |
public getHistoricSerializedInventoryByScans_result deepCopy() {
|
|
|
17048 |
return new getHistoricSerializedInventoryByScans_result(this);
|
|
|
17049 |
}
|
|
|
17050 |
|
|
|
17051 |
@Override
|
|
|
17052 |
public void clear() {
|
|
|
17053 |
this.success = null;
|
|
|
17054 |
}
|
|
|
17055 |
|
|
|
17056 |
public int getSuccessSize() {
|
|
|
17057 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
17058 |
}
|
|
|
17059 |
|
|
|
17060 |
public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
|
|
|
17061 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
17062 |
}
|
|
|
17063 |
|
|
|
17064 |
public void addToSuccess(InventoryAvailability elem) {
|
|
|
17065 |
if (this.success == null) {
|
|
|
17066 |
this.success = new ArrayList<InventoryAvailability>();
|
|
|
17067 |
}
|
|
|
17068 |
this.success.add(elem);
|
|
|
17069 |
}
|
|
|
17070 |
|
|
|
17071 |
public List<InventoryAvailability> getSuccess() {
|
|
|
17072 |
return this.success;
|
|
|
17073 |
}
|
|
|
17074 |
|
|
|
17075 |
public void setSuccess(List<InventoryAvailability> success) {
|
|
|
17076 |
this.success = success;
|
|
|
17077 |
}
|
|
|
17078 |
|
|
|
17079 |
public void unsetSuccess() {
|
|
|
17080 |
this.success = null;
|
|
|
17081 |
}
|
|
|
17082 |
|
|
|
17083 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
17084 |
public boolean isSetSuccess() {
|
|
|
17085 |
return this.success != null;
|
|
|
17086 |
}
|
|
|
17087 |
|
|
|
17088 |
public void setSuccessIsSet(boolean value) {
|
|
|
17089 |
if (!value) {
|
|
|
17090 |
this.success = null;
|
|
|
17091 |
}
|
|
|
17092 |
}
|
|
|
17093 |
|
|
|
17094 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
17095 |
switch (field) {
|
|
|
17096 |
case SUCCESS:
|
|
|
17097 |
if (value == null) {
|
|
|
17098 |
unsetSuccess();
|
|
|
17099 |
} else {
|
|
|
17100 |
setSuccess((List<InventoryAvailability>)value);
|
|
|
17101 |
}
|
|
|
17102 |
break;
|
|
|
17103 |
|
|
|
17104 |
}
|
|
|
17105 |
}
|
|
|
17106 |
|
|
|
17107 |
public Object getFieldValue(_Fields field) {
|
|
|
17108 |
switch (field) {
|
|
|
17109 |
case SUCCESS:
|
|
|
17110 |
return getSuccess();
|
|
|
17111 |
|
|
|
17112 |
}
|
|
|
17113 |
throw new IllegalStateException();
|
|
|
17114 |
}
|
|
|
17115 |
|
|
|
17116 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
17117 |
public boolean isSet(_Fields field) {
|
|
|
17118 |
if (field == null) {
|
|
|
17119 |
throw new IllegalArgumentException();
|
|
|
17120 |
}
|
|
|
17121 |
|
|
|
17122 |
switch (field) {
|
|
|
17123 |
case SUCCESS:
|
|
|
17124 |
return isSetSuccess();
|
|
|
17125 |
}
|
|
|
17126 |
throw new IllegalStateException();
|
|
|
17127 |
}
|
|
|
17128 |
|
|
|
17129 |
@Override
|
|
|
17130 |
public boolean equals(Object that) {
|
|
|
17131 |
if (that == null)
|
|
|
17132 |
return false;
|
|
|
17133 |
if (that instanceof getHistoricSerializedInventoryByScans_result)
|
|
|
17134 |
return this.equals((getHistoricSerializedInventoryByScans_result)that);
|
|
|
17135 |
return false;
|
|
|
17136 |
}
|
|
|
17137 |
|
|
|
17138 |
public boolean equals(getHistoricSerializedInventoryByScans_result that) {
|
|
|
17139 |
if (that == null)
|
|
|
17140 |
return false;
|
|
|
17141 |
|
|
|
17142 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
17143 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
17144 |
if (this_present_success || that_present_success) {
|
|
|
17145 |
if (!(this_present_success && that_present_success))
|
|
|
17146 |
return false;
|
|
|
17147 |
if (!this.success.equals(that.success))
|
|
|
17148 |
return false;
|
|
|
17149 |
}
|
|
|
17150 |
|
|
|
17151 |
return true;
|
|
|
17152 |
}
|
|
|
17153 |
|
|
|
17154 |
@Override
|
|
|
17155 |
public int hashCode() {
|
|
|
17156 |
return 0;
|
|
|
17157 |
}
|
|
|
17158 |
|
|
|
17159 |
public int compareTo(getHistoricSerializedInventoryByScans_result other) {
|
|
|
17160 |
if (!getClass().equals(other.getClass())) {
|
|
|
17161 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
17162 |
}
|
|
|
17163 |
|
|
|
17164 |
int lastComparison = 0;
|
|
|
17165 |
getHistoricSerializedInventoryByScans_result typedOther = (getHistoricSerializedInventoryByScans_result)other;
|
|
|
17166 |
|
|
|
17167 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
17168 |
if (lastComparison != 0) {
|
|
|
17169 |
return lastComparison;
|
|
|
17170 |
}
|
|
|
17171 |
if (isSetSuccess()) {
|
|
|
17172 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
17173 |
if (lastComparison != 0) {
|
|
|
17174 |
return lastComparison;
|
|
|
17175 |
}
|
|
|
17176 |
}
|
|
|
17177 |
return 0;
|
|
|
17178 |
}
|
|
|
17179 |
|
|
|
17180 |
public _Fields fieldForId(int fieldId) {
|
|
|
17181 |
return _Fields.findByThriftId(fieldId);
|
|
|
17182 |
}
|
|
|
17183 |
|
|
|
17184 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
17185 |
org.apache.thrift.protocol.TField field;
|
|
|
17186 |
iprot.readStructBegin();
|
|
|
17187 |
while (true)
|
|
|
17188 |
{
|
|
|
17189 |
field = iprot.readFieldBegin();
|
|
|
17190 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
17191 |
break;
|
|
|
17192 |
}
|
|
|
17193 |
switch (field.id) {
|
|
|
17194 |
case 0: // SUCCESS
|
|
|
17195 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
17196 |
{
|
|
|
17197 |
org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
|
|
|
17198 |
this.success = new ArrayList<InventoryAvailability>(_list48.size);
|
|
|
17199 |
for (int _i49 = 0; _i49 < _list48.size; ++_i49)
|
|
|
17200 |
{
|
|
|
17201 |
InventoryAvailability _elem50; // required
|
|
|
17202 |
_elem50 = new InventoryAvailability();
|
|
|
17203 |
_elem50.read(iprot);
|
|
|
17204 |
this.success.add(_elem50);
|
|
|
17205 |
}
|
|
|
17206 |
iprot.readListEnd();
|
|
|
17207 |
}
|
|
|
17208 |
} else {
|
|
|
17209 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17210 |
}
|
|
|
17211 |
break;
|
|
|
17212 |
default:
|
|
|
17213 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17214 |
}
|
|
|
17215 |
iprot.readFieldEnd();
|
|
|
17216 |
}
|
|
|
17217 |
iprot.readStructEnd();
|
|
|
17218 |
validate();
|
|
|
17219 |
}
|
|
|
17220 |
|
|
|
17221 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
17222 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
17223 |
|
|
|
17224 |
if (this.isSetSuccess()) {
|
|
|
17225 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
17226 |
{
|
|
|
17227 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
17228 |
for (InventoryAvailability _iter51 : this.success)
|
|
|
17229 |
{
|
|
|
17230 |
_iter51.write(oprot);
|
|
|
17231 |
}
|
|
|
17232 |
oprot.writeListEnd();
|
|
|
17233 |
}
|
|
|
17234 |
oprot.writeFieldEnd();
|
|
|
17235 |
}
|
|
|
17236 |
oprot.writeFieldStop();
|
|
|
17237 |
oprot.writeStructEnd();
|
|
|
17238 |
}
|
|
|
17239 |
|
|
|
17240 |
@Override
|
|
|
17241 |
public String toString() {
|
|
|
17242 |
StringBuilder sb = new StringBuilder("getHistoricSerializedInventoryByScans_result(");
|
|
|
17243 |
boolean first = true;
|
|
|
17244 |
|
|
|
17245 |
sb.append("success:");
|
|
|
17246 |
if (this.success == null) {
|
|
|
17247 |
sb.append("null");
|
|
|
17248 |
} else {
|
|
|
17249 |
sb.append(this.success);
|
|
|
17250 |
}
|
|
|
17251 |
first = false;
|
|
|
17252 |
sb.append(")");
|
|
|
17253 |
return sb.toString();
|
|
|
17254 |
}
|
|
|
17255 |
|
|
|
17256 |
public void validate() throws org.apache.thrift.TException {
|
|
|
17257 |
// check for required fields
|
|
|
17258 |
}
|
|
|
17259 |
|
|
|
17260 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
17261 |
try {
|
|
|
17262 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
17263 |
} catch (org.apache.thrift.TException te) {
|
|
|
17264 |
throw new java.io.IOException(te);
|
|
|
17265 |
}
|
|
|
17266 |
}
|
|
|
17267 |
|
|
|
17268 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
17269 |
try {
|
|
|
17270 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
17271 |
} catch (org.apache.thrift.TException te) {
|
|
|
17272 |
throw new java.io.IOException(te);
|
|
|
17273 |
}
|
|
|
17274 |
}
|
|
|
17275 |
|
|
|
17276 |
}
|
|
|
17277 |
|
|
|
17278 |
public static class getHistoricNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getHistoricNonSerializedInventoryByScans_args, getHistoricNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
17279 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricNonSerializedInventoryByScans_args");
|
|
|
17280 |
|
|
|
17281 |
private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
17282 |
|
|
|
17283 |
private long date; // required
|
|
|
17284 |
|
|
|
17285 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
17286 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
17287 |
DATE((short)1, "date");
|
|
|
17288 |
|
|
|
17289 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
17290 |
|
|
|
17291 |
static {
|
|
|
17292 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
17293 |
byName.put(field.getFieldName(), field);
|
|
|
17294 |
}
|
|
|
17295 |
}
|
|
|
17296 |
|
|
|
17297 |
/**
|
|
|
17298 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
17299 |
*/
|
|
|
17300 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
17301 |
switch(fieldId) {
|
|
|
17302 |
case 1: // DATE
|
|
|
17303 |
return DATE;
|
|
|
17304 |
default:
|
|
|
17305 |
return null;
|
|
|
17306 |
}
|
|
|
17307 |
}
|
|
|
17308 |
|
|
|
17309 |
/**
|
|
|
17310 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
17311 |
* if it is not found.
|
|
|
17312 |
*/
|
|
|
17313 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
17314 |
_Fields fields = findByThriftId(fieldId);
|
|
|
17315 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
17316 |
return fields;
|
|
|
17317 |
}
|
|
|
17318 |
|
|
|
17319 |
/**
|
|
|
17320 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
17321 |
*/
|
|
|
17322 |
public static _Fields findByName(String name) {
|
|
|
17323 |
return byName.get(name);
|
|
|
17324 |
}
|
|
|
17325 |
|
|
|
17326 |
private final short _thriftId;
|
|
|
17327 |
private final String _fieldName;
|
|
|
17328 |
|
|
|
17329 |
_Fields(short thriftId, String fieldName) {
|
|
|
17330 |
_thriftId = thriftId;
|
|
|
17331 |
_fieldName = fieldName;
|
|
|
17332 |
}
|
|
|
17333 |
|
|
|
17334 |
public short getThriftFieldId() {
|
|
|
17335 |
return _thriftId;
|
|
|
17336 |
}
|
|
|
17337 |
|
|
|
17338 |
public String getFieldName() {
|
|
|
17339 |
return _fieldName;
|
|
|
17340 |
}
|
|
|
17341 |
}
|
|
|
17342 |
|
|
|
17343 |
// isset id assignments
|
|
|
17344 |
private static final int __DATE_ISSET_ID = 0;
|
|
|
17345 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
17346 |
|
|
|
17347 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
17348 |
static {
|
|
|
17349 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
17350 |
tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
17351 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
17352 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
17353 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricNonSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
17354 |
}
|
|
|
17355 |
|
|
|
17356 |
public getHistoricNonSerializedInventoryByScans_args() {
|
|
|
17357 |
}
|
|
|
17358 |
|
|
|
17359 |
public getHistoricNonSerializedInventoryByScans_args(
|
|
|
17360 |
long date)
|
|
|
17361 |
{
|
|
|
17362 |
this();
|
|
|
17363 |
this.date = date;
|
|
|
17364 |
setDateIsSet(true);
|
|
|
17365 |
}
|
|
|
17366 |
|
|
|
17367 |
/**
|
|
|
17368 |
* Performs a deep copy on <i>other</i>.
|
|
|
17369 |
*/
|
|
|
17370 |
public getHistoricNonSerializedInventoryByScans_args(getHistoricNonSerializedInventoryByScans_args other) {
|
|
|
17371 |
__isset_bit_vector.clear();
|
|
|
17372 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
17373 |
this.date = other.date;
|
|
|
17374 |
}
|
|
|
17375 |
|
|
|
17376 |
public getHistoricNonSerializedInventoryByScans_args deepCopy() {
|
|
|
17377 |
return new getHistoricNonSerializedInventoryByScans_args(this);
|
|
|
17378 |
}
|
|
|
17379 |
|
|
|
17380 |
@Override
|
|
|
17381 |
public void clear() {
|
|
|
17382 |
setDateIsSet(false);
|
|
|
17383 |
this.date = 0;
|
|
|
17384 |
}
|
|
|
17385 |
|
|
|
17386 |
public long getDate() {
|
|
|
17387 |
return this.date;
|
|
|
17388 |
}
|
|
|
17389 |
|
|
|
17390 |
public void setDate(long date) {
|
|
|
17391 |
this.date = date;
|
|
|
17392 |
setDateIsSet(true);
|
|
|
17393 |
}
|
|
|
17394 |
|
|
|
17395 |
public void unsetDate() {
|
|
|
17396 |
__isset_bit_vector.clear(__DATE_ISSET_ID);
|
|
|
17397 |
}
|
|
|
17398 |
|
|
|
17399 |
/** Returns true if field date is set (has been assigned a value) and false otherwise */
|
|
|
17400 |
public boolean isSetDate() {
|
|
|
17401 |
return __isset_bit_vector.get(__DATE_ISSET_ID);
|
|
|
17402 |
}
|
|
|
17403 |
|
|
|
17404 |
public void setDateIsSet(boolean value) {
|
|
|
17405 |
__isset_bit_vector.set(__DATE_ISSET_ID, value);
|
|
|
17406 |
}
|
|
|
17407 |
|
|
|
17408 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
17409 |
switch (field) {
|
|
|
17410 |
case DATE:
|
|
|
17411 |
if (value == null) {
|
|
|
17412 |
unsetDate();
|
|
|
17413 |
} else {
|
|
|
17414 |
setDate((Long)value);
|
|
|
17415 |
}
|
|
|
17416 |
break;
|
|
|
17417 |
|
|
|
17418 |
}
|
|
|
17419 |
}
|
|
|
17420 |
|
|
|
17421 |
public Object getFieldValue(_Fields field) {
|
|
|
17422 |
switch (field) {
|
|
|
17423 |
case DATE:
|
|
|
17424 |
return Long.valueOf(getDate());
|
|
|
17425 |
|
|
|
17426 |
}
|
|
|
17427 |
throw new IllegalStateException();
|
|
|
17428 |
}
|
|
|
17429 |
|
|
|
17430 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
17431 |
public boolean isSet(_Fields field) {
|
|
|
17432 |
if (field == null) {
|
|
|
17433 |
throw new IllegalArgumentException();
|
|
|
17434 |
}
|
|
|
17435 |
|
|
|
17436 |
switch (field) {
|
|
|
17437 |
case DATE:
|
|
|
17438 |
return isSetDate();
|
|
|
17439 |
}
|
|
|
17440 |
throw new IllegalStateException();
|
|
|
17441 |
}
|
|
|
17442 |
|
|
|
17443 |
@Override
|
|
|
17444 |
public boolean equals(Object that) {
|
|
|
17445 |
if (that == null)
|
|
|
17446 |
return false;
|
|
|
17447 |
if (that instanceof getHistoricNonSerializedInventoryByScans_args)
|
|
|
17448 |
return this.equals((getHistoricNonSerializedInventoryByScans_args)that);
|
|
|
17449 |
return false;
|
|
|
17450 |
}
|
|
|
17451 |
|
|
|
17452 |
public boolean equals(getHistoricNonSerializedInventoryByScans_args that) {
|
|
|
17453 |
if (that == null)
|
|
|
17454 |
return false;
|
|
|
17455 |
|
|
|
17456 |
boolean this_present_date = true;
|
|
|
17457 |
boolean that_present_date = true;
|
|
|
17458 |
if (this_present_date || that_present_date) {
|
|
|
17459 |
if (!(this_present_date && that_present_date))
|
|
|
17460 |
return false;
|
|
|
17461 |
if (this.date != that.date)
|
|
|
17462 |
return false;
|
|
|
17463 |
}
|
|
|
17464 |
|
|
|
17465 |
return true;
|
|
|
17466 |
}
|
|
|
17467 |
|
|
|
17468 |
@Override
|
|
|
17469 |
public int hashCode() {
|
|
|
17470 |
return 0;
|
|
|
17471 |
}
|
|
|
17472 |
|
|
|
17473 |
public int compareTo(getHistoricNonSerializedInventoryByScans_args other) {
|
|
|
17474 |
if (!getClass().equals(other.getClass())) {
|
|
|
17475 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
17476 |
}
|
|
|
17477 |
|
|
|
17478 |
int lastComparison = 0;
|
|
|
17479 |
getHistoricNonSerializedInventoryByScans_args typedOther = (getHistoricNonSerializedInventoryByScans_args)other;
|
|
|
17480 |
|
|
|
17481 |
lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
|
|
|
17482 |
if (lastComparison != 0) {
|
|
|
17483 |
return lastComparison;
|
|
|
17484 |
}
|
|
|
17485 |
if (isSetDate()) {
|
|
|
17486 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
|
|
|
17487 |
if (lastComparison != 0) {
|
|
|
17488 |
return lastComparison;
|
|
|
17489 |
}
|
|
|
17490 |
}
|
|
|
17491 |
return 0;
|
|
|
17492 |
}
|
|
|
17493 |
|
|
|
17494 |
public _Fields fieldForId(int fieldId) {
|
|
|
17495 |
return _Fields.findByThriftId(fieldId);
|
|
|
17496 |
}
|
|
|
17497 |
|
|
|
17498 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
17499 |
org.apache.thrift.protocol.TField field;
|
|
|
17500 |
iprot.readStructBegin();
|
|
|
17501 |
while (true)
|
|
|
17502 |
{
|
|
|
17503 |
field = iprot.readFieldBegin();
|
|
|
17504 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
17505 |
break;
|
|
|
17506 |
}
|
|
|
17507 |
switch (field.id) {
|
|
|
17508 |
case 1: // DATE
|
|
|
17509 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
17510 |
this.date = iprot.readI64();
|
|
|
17511 |
setDateIsSet(true);
|
|
|
17512 |
} else {
|
|
|
17513 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17514 |
}
|
|
|
17515 |
break;
|
|
|
17516 |
default:
|
|
|
17517 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17518 |
}
|
|
|
17519 |
iprot.readFieldEnd();
|
|
|
17520 |
}
|
|
|
17521 |
iprot.readStructEnd();
|
|
|
17522 |
validate();
|
|
|
17523 |
}
|
|
|
17524 |
|
|
|
17525 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
17526 |
validate();
|
|
|
17527 |
|
|
|
17528 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
17529 |
oprot.writeFieldBegin(DATE_FIELD_DESC);
|
|
|
17530 |
oprot.writeI64(this.date);
|
|
|
17531 |
oprot.writeFieldEnd();
|
|
|
17532 |
oprot.writeFieldStop();
|
|
|
17533 |
oprot.writeStructEnd();
|
|
|
17534 |
}
|
|
|
17535 |
|
|
|
17536 |
@Override
|
|
|
17537 |
public String toString() {
|
|
|
17538 |
StringBuilder sb = new StringBuilder("getHistoricNonSerializedInventoryByScans_args(");
|
|
|
17539 |
boolean first = true;
|
|
|
17540 |
|
|
|
17541 |
sb.append("date:");
|
|
|
17542 |
sb.append(this.date);
|
|
|
17543 |
first = false;
|
|
|
17544 |
sb.append(")");
|
|
|
17545 |
return sb.toString();
|
|
|
17546 |
}
|
|
|
17547 |
|
|
|
17548 |
public void validate() throws org.apache.thrift.TException {
|
|
|
17549 |
// check for required fields
|
|
|
17550 |
}
|
|
|
17551 |
|
|
|
17552 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
17553 |
try {
|
|
|
17554 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
17555 |
} catch (org.apache.thrift.TException te) {
|
|
|
17556 |
throw new java.io.IOException(te);
|
|
|
17557 |
}
|
|
|
17558 |
}
|
|
|
17559 |
|
|
|
17560 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
17561 |
try {
|
|
|
17562 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
17563 |
__isset_bit_vector = new BitSet(1);
|
|
|
17564 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
17565 |
} catch (org.apache.thrift.TException te) {
|
|
|
17566 |
throw new java.io.IOException(te);
|
|
|
17567 |
}
|
|
|
17568 |
}
|
|
|
17569 |
|
|
|
17570 |
}
|
|
|
17571 |
|
|
|
17572 |
public static class getHistoricNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getHistoricNonSerializedInventoryByScans_result, getHistoricNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
17573 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricNonSerializedInventoryByScans_result");
|
|
|
17574 |
|
|
|
17575 |
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);
|
|
|
17576 |
|
|
|
17577 |
private List<InventoryAvailability> success; // required
|
|
|
17578 |
|
|
|
17579 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
17580 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
17581 |
SUCCESS((short)0, "success");
|
|
|
17582 |
|
|
|
17583 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
17584 |
|
|
|
17585 |
static {
|
|
|
17586 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
17587 |
byName.put(field.getFieldName(), field);
|
|
|
17588 |
}
|
|
|
17589 |
}
|
|
|
17590 |
|
|
|
17591 |
/**
|
|
|
17592 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
17593 |
*/
|
|
|
17594 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
17595 |
switch(fieldId) {
|
|
|
17596 |
case 0: // SUCCESS
|
|
|
17597 |
return SUCCESS;
|
|
|
17598 |
default:
|
|
|
17599 |
return null;
|
|
|
17600 |
}
|
|
|
17601 |
}
|
|
|
17602 |
|
|
|
17603 |
/**
|
|
|
17604 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
17605 |
* if it is not found.
|
|
|
17606 |
*/
|
|
|
17607 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
17608 |
_Fields fields = findByThriftId(fieldId);
|
|
|
17609 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
17610 |
return fields;
|
|
|
17611 |
}
|
|
|
17612 |
|
|
|
17613 |
/**
|
|
|
17614 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
17615 |
*/
|
|
|
17616 |
public static _Fields findByName(String name) {
|
|
|
17617 |
return byName.get(name);
|
|
|
17618 |
}
|
|
|
17619 |
|
|
|
17620 |
private final short _thriftId;
|
|
|
17621 |
private final String _fieldName;
|
|
|
17622 |
|
|
|
17623 |
_Fields(short thriftId, String fieldName) {
|
|
|
17624 |
_thriftId = thriftId;
|
|
|
17625 |
_fieldName = fieldName;
|
|
|
17626 |
}
|
|
|
17627 |
|
|
|
17628 |
public short getThriftFieldId() {
|
|
|
17629 |
return _thriftId;
|
|
|
17630 |
}
|
|
|
17631 |
|
|
|
17632 |
public String getFieldName() {
|
|
|
17633 |
return _fieldName;
|
|
|
17634 |
}
|
|
|
17635 |
}
|
|
|
17636 |
|
|
|
17637 |
// isset id assignments
|
|
|
17638 |
|
|
|
17639 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
17640 |
static {
|
|
|
17641 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
17642 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
17643 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
17644 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
|
|
|
17645 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
17646 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricNonSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
17647 |
}
|
|
|
17648 |
|
|
|
17649 |
public getHistoricNonSerializedInventoryByScans_result() {
|
|
|
17650 |
}
|
|
|
17651 |
|
|
|
17652 |
public getHistoricNonSerializedInventoryByScans_result(
|
|
|
17653 |
List<InventoryAvailability> success)
|
|
|
17654 |
{
|
|
|
17655 |
this();
|
|
|
17656 |
this.success = success;
|
|
|
17657 |
}
|
|
|
17658 |
|
|
|
17659 |
/**
|
|
|
17660 |
* Performs a deep copy on <i>other</i>.
|
|
|
17661 |
*/
|
|
|
17662 |
public getHistoricNonSerializedInventoryByScans_result(getHistoricNonSerializedInventoryByScans_result other) {
|
|
|
17663 |
if (other.isSetSuccess()) {
|
|
|
17664 |
List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
|
|
|
17665 |
for (InventoryAvailability other_element : other.success) {
|
|
|
17666 |
__this__success.add(new InventoryAvailability(other_element));
|
|
|
17667 |
}
|
|
|
17668 |
this.success = __this__success;
|
|
|
17669 |
}
|
|
|
17670 |
}
|
|
|
17671 |
|
|
|
17672 |
public getHistoricNonSerializedInventoryByScans_result deepCopy() {
|
|
|
17673 |
return new getHistoricNonSerializedInventoryByScans_result(this);
|
|
|
17674 |
}
|
|
|
17675 |
|
|
|
17676 |
@Override
|
|
|
17677 |
public void clear() {
|
|
|
17678 |
this.success = null;
|
|
|
17679 |
}
|
|
|
17680 |
|
|
|
17681 |
public int getSuccessSize() {
|
|
|
17682 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
17683 |
}
|
|
|
17684 |
|
|
|
17685 |
public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
|
|
|
17686 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
17687 |
}
|
|
|
17688 |
|
|
|
17689 |
public void addToSuccess(InventoryAvailability elem) {
|
|
|
17690 |
if (this.success == null) {
|
|
|
17691 |
this.success = new ArrayList<InventoryAvailability>();
|
|
|
17692 |
}
|
|
|
17693 |
this.success.add(elem);
|
|
|
17694 |
}
|
|
|
17695 |
|
|
|
17696 |
public List<InventoryAvailability> getSuccess() {
|
|
|
17697 |
return this.success;
|
|
|
17698 |
}
|
|
|
17699 |
|
|
|
17700 |
public void setSuccess(List<InventoryAvailability> success) {
|
|
|
17701 |
this.success = success;
|
|
|
17702 |
}
|
|
|
17703 |
|
|
|
17704 |
public void unsetSuccess() {
|
|
|
17705 |
this.success = null;
|
|
|
17706 |
}
|
|
|
17707 |
|
|
|
17708 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
17709 |
public boolean isSetSuccess() {
|
|
|
17710 |
return this.success != null;
|
|
|
17711 |
}
|
|
|
17712 |
|
|
|
17713 |
public void setSuccessIsSet(boolean value) {
|
|
|
17714 |
if (!value) {
|
|
|
17715 |
this.success = null;
|
|
|
17716 |
}
|
|
|
17717 |
}
|
|
|
17718 |
|
|
|
17719 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
17720 |
switch (field) {
|
|
|
17721 |
case SUCCESS:
|
|
|
17722 |
if (value == null) {
|
|
|
17723 |
unsetSuccess();
|
|
|
17724 |
} else {
|
|
|
17725 |
setSuccess((List<InventoryAvailability>)value);
|
|
|
17726 |
}
|
|
|
17727 |
break;
|
|
|
17728 |
|
|
|
17729 |
}
|
|
|
17730 |
}
|
|
|
17731 |
|
|
|
17732 |
public Object getFieldValue(_Fields field) {
|
|
|
17733 |
switch (field) {
|
|
|
17734 |
case SUCCESS:
|
|
|
17735 |
return getSuccess();
|
|
|
17736 |
|
|
|
17737 |
}
|
|
|
17738 |
throw new IllegalStateException();
|
|
|
17739 |
}
|
|
|
17740 |
|
|
|
17741 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
17742 |
public boolean isSet(_Fields field) {
|
|
|
17743 |
if (field == null) {
|
|
|
17744 |
throw new IllegalArgumentException();
|
|
|
17745 |
}
|
|
|
17746 |
|
|
|
17747 |
switch (field) {
|
|
|
17748 |
case SUCCESS:
|
|
|
17749 |
return isSetSuccess();
|
|
|
17750 |
}
|
|
|
17751 |
throw new IllegalStateException();
|
|
|
17752 |
}
|
|
|
17753 |
|
|
|
17754 |
@Override
|
|
|
17755 |
public boolean equals(Object that) {
|
|
|
17756 |
if (that == null)
|
|
|
17757 |
return false;
|
|
|
17758 |
if (that instanceof getHistoricNonSerializedInventoryByScans_result)
|
|
|
17759 |
return this.equals((getHistoricNonSerializedInventoryByScans_result)that);
|
|
|
17760 |
return false;
|
|
|
17761 |
}
|
|
|
17762 |
|
|
|
17763 |
public boolean equals(getHistoricNonSerializedInventoryByScans_result that) {
|
|
|
17764 |
if (that == null)
|
|
|
17765 |
return false;
|
|
|
17766 |
|
|
|
17767 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
17768 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
17769 |
if (this_present_success || that_present_success) {
|
|
|
17770 |
if (!(this_present_success && that_present_success))
|
|
|
17771 |
return false;
|
|
|
17772 |
if (!this.success.equals(that.success))
|
|
|
17773 |
return false;
|
|
|
17774 |
}
|
|
|
17775 |
|
|
|
17776 |
return true;
|
|
|
17777 |
}
|
|
|
17778 |
|
|
|
17779 |
@Override
|
|
|
17780 |
public int hashCode() {
|
|
|
17781 |
return 0;
|
|
|
17782 |
}
|
|
|
17783 |
|
|
|
17784 |
public int compareTo(getHistoricNonSerializedInventoryByScans_result other) {
|
|
|
17785 |
if (!getClass().equals(other.getClass())) {
|
|
|
17786 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
17787 |
}
|
|
|
17788 |
|
|
|
17789 |
int lastComparison = 0;
|
|
|
17790 |
getHistoricNonSerializedInventoryByScans_result typedOther = (getHistoricNonSerializedInventoryByScans_result)other;
|
|
|
17791 |
|
|
|
17792 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
17793 |
if (lastComparison != 0) {
|
|
|
17794 |
return lastComparison;
|
|
|
17795 |
}
|
|
|
17796 |
if (isSetSuccess()) {
|
|
|
17797 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
17798 |
if (lastComparison != 0) {
|
|
|
17799 |
return lastComparison;
|
|
|
17800 |
}
|
|
|
17801 |
}
|
|
|
17802 |
return 0;
|
|
|
17803 |
}
|
|
|
17804 |
|
|
|
17805 |
public _Fields fieldForId(int fieldId) {
|
|
|
17806 |
return _Fields.findByThriftId(fieldId);
|
|
|
17807 |
}
|
|
|
17808 |
|
|
|
17809 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
17810 |
org.apache.thrift.protocol.TField field;
|
|
|
17811 |
iprot.readStructBegin();
|
|
|
17812 |
while (true)
|
|
|
17813 |
{
|
|
|
17814 |
field = iprot.readFieldBegin();
|
|
|
17815 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
17816 |
break;
|
|
|
17817 |
}
|
|
|
17818 |
switch (field.id) {
|
|
|
17819 |
case 0: // SUCCESS
|
|
|
17820 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
17821 |
{
|
|
|
17822 |
org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
|
|
|
17823 |
this.success = new ArrayList<InventoryAvailability>(_list52.size);
|
|
|
17824 |
for (int _i53 = 0; _i53 < _list52.size; ++_i53)
|
|
|
17825 |
{
|
|
|
17826 |
InventoryAvailability _elem54; // required
|
|
|
17827 |
_elem54 = new InventoryAvailability();
|
|
|
17828 |
_elem54.read(iprot);
|
|
|
17829 |
this.success.add(_elem54);
|
|
|
17830 |
}
|
|
|
17831 |
iprot.readListEnd();
|
|
|
17832 |
}
|
|
|
17833 |
} else {
|
|
|
17834 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17835 |
}
|
|
|
17836 |
break;
|
|
|
17837 |
default:
|
|
|
17838 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17839 |
}
|
|
|
17840 |
iprot.readFieldEnd();
|
|
|
17841 |
}
|
|
|
17842 |
iprot.readStructEnd();
|
|
|
17843 |
validate();
|
|
|
17844 |
}
|
|
|
17845 |
|
|
|
17846 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
17847 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
17848 |
|
|
|
17849 |
if (this.isSetSuccess()) {
|
|
|
17850 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
17851 |
{
|
|
|
17852 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
17853 |
for (InventoryAvailability _iter55 : this.success)
|
|
|
17854 |
{
|
|
|
17855 |
_iter55.write(oprot);
|
|
|
17856 |
}
|
|
|
17857 |
oprot.writeListEnd();
|
|
|
17858 |
}
|
|
|
17859 |
oprot.writeFieldEnd();
|
|
|
17860 |
}
|
|
|
17861 |
oprot.writeFieldStop();
|
|
|
17862 |
oprot.writeStructEnd();
|
|
|
17863 |
}
|
|
|
17864 |
|
|
|
17865 |
@Override
|
|
|
17866 |
public String toString() {
|
|
|
17867 |
StringBuilder sb = new StringBuilder("getHistoricNonSerializedInventoryByScans_result(");
|
|
|
17868 |
boolean first = true;
|
|
|
17869 |
|
|
|
17870 |
sb.append("success:");
|
|
|
17871 |
if (this.success == null) {
|
|
|
17872 |
sb.append("null");
|
|
|
17873 |
} else {
|
|
|
17874 |
sb.append(this.success);
|
|
|
17875 |
}
|
|
|
17876 |
first = false;
|
|
|
17877 |
sb.append(")");
|
|
|
17878 |
return sb.toString();
|
|
|
17879 |
}
|
|
|
17880 |
|
|
|
17881 |
public void validate() throws org.apache.thrift.TException {
|
|
|
17882 |
// check for required fields
|
|
|
17883 |
}
|
|
|
17884 |
|
|
|
17885 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
17886 |
try {
|
|
|
17887 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
17888 |
} catch (org.apache.thrift.TException te) {
|
|
|
17889 |
throw new java.io.IOException(te);
|
|
|
17890 |
}
|
|
|
17891 |
}
|
|
|
17892 |
|
|
|
17893 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
17894 |
try {
|
|
|
17895 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
17896 |
} catch (org.apache.thrift.TException te) {
|
|
|
17897 |
throw new java.io.IOException(te);
|
|
|
17898 |
}
|
|
|
17899 |
}
|
|
|
17900 |
|
|
|
17901 |
}
|
|
|
17902 |
|
|
|
17903 |
public static class scanForOursExternalSale_args implements org.apache.thrift.TBase<scanForOursExternalSale_args, scanForOursExternalSale_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
17904 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSale_args");
|
|
|
17905 |
|
|
|
17906 |
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);
|
|
|
17907 |
private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
17908 |
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)3);
|
|
|
17909 |
private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
|
17910 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)5);
|
|
|
17911 |
private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
|
|
|
17912 |
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)7);
|
|
|
17913 |
|
|
|
17914 |
private long itemId; // required
|
|
|
17915 |
private String serialNumber; // required
|
|
|
17916 |
private String itemNumber; // required
|
|
|
17917 |
private String invoiceNumber; // required
|
|
|
17918 |
private long warehouseId; // required
|
|
|
17919 |
private double unitPrice; // required
|
|
|
17920 |
private long orderId; // required
|
|
|
17921 |
|
|
|
17922 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
17923 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
17924 |
ITEM_ID((short)1, "itemId"),
|
|
|
17925 |
SERIAL_NUMBER((short)2, "serialNumber"),
|
|
|
17926 |
ITEM_NUMBER((short)3, "itemNumber"),
|
|
|
17927 |
INVOICE_NUMBER((short)4, "invoiceNumber"),
|
|
|
17928 |
WAREHOUSE_ID((short)5, "warehouseId"),
|
|
|
17929 |
UNIT_PRICE((short)6, "unitPrice"),
|
|
|
17930 |
ORDER_ID((short)7, "orderId");
|
|
|
17931 |
|
|
|
17932 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
17933 |
|
|
|
17934 |
static {
|
|
|
17935 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
17936 |
byName.put(field.getFieldName(), field);
|
|
|
17937 |
}
|
|
|
17938 |
}
|
|
|
17939 |
|
|
|
17940 |
/**
|
|
|
17941 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
17942 |
*/
|
|
|
17943 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
17944 |
switch(fieldId) {
|
|
|
17945 |
case 1: // ITEM_ID
|
|
|
17946 |
return ITEM_ID;
|
|
|
17947 |
case 2: // SERIAL_NUMBER
|
|
|
17948 |
return SERIAL_NUMBER;
|
|
|
17949 |
case 3: // ITEM_NUMBER
|
|
|
17950 |
return ITEM_NUMBER;
|
|
|
17951 |
case 4: // INVOICE_NUMBER
|
|
|
17952 |
return INVOICE_NUMBER;
|
|
|
17953 |
case 5: // WAREHOUSE_ID
|
|
|
17954 |
return WAREHOUSE_ID;
|
|
|
17955 |
case 6: // UNIT_PRICE
|
|
|
17956 |
return UNIT_PRICE;
|
|
|
17957 |
case 7: // ORDER_ID
|
|
|
17958 |
return ORDER_ID;
|
|
|
17959 |
default:
|
|
|
17960 |
return null;
|
|
|
17961 |
}
|
|
|
17962 |
}
|
|
|
17963 |
|
|
|
17964 |
/**
|
|
|
17965 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
17966 |
* if it is not found.
|
|
|
17967 |
*/
|
|
|
17968 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
17969 |
_Fields fields = findByThriftId(fieldId);
|
|
|
17970 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
17971 |
return fields;
|
|
|
17972 |
}
|
|
|
17973 |
|
|
|
17974 |
/**
|
|
|
17975 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
17976 |
*/
|
|
|
17977 |
public static _Fields findByName(String name) {
|
|
|
17978 |
return byName.get(name);
|
|
|
17979 |
}
|
|
|
17980 |
|
|
|
17981 |
private final short _thriftId;
|
|
|
17982 |
private final String _fieldName;
|
|
|
17983 |
|
|
|
17984 |
_Fields(short thriftId, String fieldName) {
|
|
|
17985 |
_thriftId = thriftId;
|
|
|
17986 |
_fieldName = fieldName;
|
|
|
17987 |
}
|
|
|
17988 |
|
|
|
17989 |
public short getThriftFieldId() {
|
|
|
17990 |
return _thriftId;
|
|
|
17991 |
}
|
|
|
17992 |
|
|
|
17993 |
public String getFieldName() {
|
|
|
17994 |
return _fieldName;
|
|
|
17995 |
}
|
|
|
17996 |
}
|
|
|
17997 |
|
|
|
17998 |
// isset id assignments
|
|
|
17999 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
18000 |
private static final int __WAREHOUSEID_ISSET_ID = 1;
|
|
|
18001 |
private static final int __UNITPRICE_ISSET_ID = 2;
|
|
|
18002 |
private static final int __ORDERID_ISSET_ID = 3;
|
|
|
18003 |
private BitSet __isset_bit_vector = new BitSet(4);
|
|
|
18004 |
|
|
|
18005 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
18006 |
static {
|
|
|
18007 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
18008 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
18009 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
18010 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
18011 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
18012 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
18013 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
18014 |
tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
18015 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
18016 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
18017 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
18018 |
tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
18019 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
18020 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
18021 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
18022 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
18023 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSale_args.class, metaDataMap);
|
|
|
18024 |
}
|
|
|
18025 |
|
|
|
18026 |
public scanForOursExternalSale_args() {
|
|
|
18027 |
}
|
|
|
18028 |
|
|
|
18029 |
public scanForOursExternalSale_args(
|
|
|
18030 |
long itemId,
|
|
|
18031 |
String serialNumber,
|
|
|
18032 |
String itemNumber,
|
|
|
18033 |
String invoiceNumber,
|
|
|
18034 |
long warehouseId,
|
|
|
18035 |
double unitPrice,
|
|
|
18036 |
long orderId)
|
|
|
18037 |
{
|
|
|
18038 |
this();
|
|
|
18039 |
this.itemId = itemId;
|
|
|
18040 |
setItemIdIsSet(true);
|
|
|
18041 |
this.serialNumber = serialNumber;
|
|
|
18042 |
this.itemNumber = itemNumber;
|
|
|
18043 |
this.invoiceNumber = invoiceNumber;
|
|
|
18044 |
this.warehouseId = warehouseId;
|
|
|
18045 |
setWarehouseIdIsSet(true);
|
|
|
18046 |
this.unitPrice = unitPrice;
|
|
|
18047 |
setUnitPriceIsSet(true);
|
|
|
18048 |
this.orderId = orderId;
|
|
|
18049 |
setOrderIdIsSet(true);
|
|
|
18050 |
}
|
|
|
18051 |
|
|
|
18052 |
/**
|
|
|
18053 |
* Performs a deep copy on <i>other</i>.
|
|
|
18054 |
*/
|
|
|
18055 |
public scanForOursExternalSale_args(scanForOursExternalSale_args other) {
|
|
|
18056 |
__isset_bit_vector.clear();
|
|
|
18057 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
18058 |
this.itemId = other.itemId;
|
|
|
18059 |
if (other.isSetSerialNumber()) {
|
|
|
18060 |
this.serialNumber = other.serialNumber;
|
|
|
18061 |
}
|
|
|
18062 |
if (other.isSetItemNumber()) {
|
|
|
18063 |
this.itemNumber = other.itemNumber;
|
|
|
18064 |
}
|
|
|
18065 |
if (other.isSetInvoiceNumber()) {
|
|
|
18066 |
this.invoiceNumber = other.invoiceNumber;
|
|
|
18067 |
}
|
|
|
18068 |
this.warehouseId = other.warehouseId;
|
|
|
18069 |
this.unitPrice = other.unitPrice;
|
|
|
18070 |
this.orderId = other.orderId;
|
|
|
18071 |
}
|
|
|
18072 |
|
|
|
18073 |
public scanForOursExternalSale_args deepCopy() {
|
|
|
18074 |
return new scanForOursExternalSale_args(this);
|
|
|
18075 |
}
|
|
|
18076 |
|
|
|
18077 |
@Override
|
|
|
18078 |
public void clear() {
|
|
|
18079 |
setItemIdIsSet(false);
|
|
|
18080 |
this.itemId = 0;
|
|
|
18081 |
this.serialNumber = null;
|
|
|
18082 |
this.itemNumber = null;
|
|
|
18083 |
this.invoiceNumber = null;
|
|
|
18084 |
setWarehouseIdIsSet(false);
|
|
|
18085 |
this.warehouseId = 0;
|
|
|
18086 |
setUnitPriceIsSet(false);
|
|
|
18087 |
this.unitPrice = 0.0;
|
|
|
18088 |
setOrderIdIsSet(false);
|
|
|
18089 |
this.orderId = 0;
|
|
|
18090 |
}
|
|
|
18091 |
|
|
|
18092 |
public long getItemId() {
|
|
|
18093 |
return this.itemId;
|
|
|
18094 |
}
|
|
|
18095 |
|
|
|
18096 |
public void setItemId(long itemId) {
|
|
|
18097 |
this.itemId = itemId;
|
|
|
18098 |
setItemIdIsSet(true);
|
|
|
18099 |
}
|
|
|
18100 |
|
|
|
18101 |
public void unsetItemId() {
|
|
|
18102 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
18103 |
}
|
|
|
18104 |
|
|
|
18105 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
18106 |
public boolean isSetItemId() {
|
|
|
18107 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
18108 |
}
|
|
|
18109 |
|
|
|
18110 |
public void setItemIdIsSet(boolean value) {
|
|
|
18111 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
18112 |
}
|
|
|
18113 |
|
|
|
18114 |
public String getSerialNumber() {
|
|
|
18115 |
return this.serialNumber;
|
|
|
18116 |
}
|
|
|
18117 |
|
|
|
18118 |
public void setSerialNumber(String serialNumber) {
|
|
|
18119 |
this.serialNumber = serialNumber;
|
|
|
18120 |
}
|
|
|
18121 |
|
|
|
18122 |
public void unsetSerialNumber() {
|
|
|
18123 |
this.serialNumber = null;
|
|
|
18124 |
}
|
|
|
18125 |
|
|
|
18126 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
18127 |
public boolean isSetSerialNumber() {
|
|
|
18128 |
return this.serialNumber != null;
|
|
|
18129 |
}
|
|
|
18130 |
|
|
|
18131 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
18132 |
if (!value) {
|
|
|
18133 |
this.serialNumber = null;
|
|
|
18134 |
}
|
|
|
18135 |
}
|
|
|
18136 |
|
|
|
18137 |
public String getItemNumber() {
|
|
|
18138 |
return this.itemNumber;
|
|
|
18139 |
}
|
|
|
18140 |
|
|
|
18141 |
public void setItemNumber(String itemNumber) {
|
|
|
18142 |
this.itemNumber = itemNumber;
|
|
|
18143 |
}
|
|
|
18144 |
|
|
|
18145 |
public void unsetItemNumber() {
|
|
|
18146 |
this.itemNumber = null;
|
|
|
18147 |
}
|
|
|
18148 |
|
|
|
18149 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
18150 |
public boolean isSetItemNumber() {
|
|
|
18151 |
return this.itemNumber != null;
|
|
|
18152 |
}
|
|
|
18153 |
|
|
|
18154 |
public void setItemNumberIsSet(boolean value) {
|
|
|
18155 |
if (!value) {
|
|
|
18156 |
this.itemNumber = null;
|
|
|
18157 |
}
|
|
|
18158 |
}
|
|
|
18159 |
|
|
|
18160 |
public String getInvoiceNumber() {
|
|
|
18161 |
return this.invoiceNumber;
|
|
|
18162 |
}
|
|
|
18163 |
|
|
|
18164 |
public void setInvoiceNumber(String invoiceNumber) {
|
|
|
18165 |
this.invoiceNumber = invoiceNumber;
|
|
|
18166 |
}
|
|
|
18167 |
|
|
|
18168 |
public void unsetInvoiceNumber() {
|
|
|
18169 |
this.invoiceNumber = null;
|
|
|
18170 |
}
|
|
|
18171 |
|
|
|
18172 |
/** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
|
|
|
18173 |
public boolean isSetInvoiceNumber() {
|
|
|
18174 |
return this.invoiceNumber != null;
|
|
|
18175 |
}
|
|
|
18176 |
|
|
|
18177 |
public void setInvoiceNumberIsSet(boolean value) {
|
|
|
18178 |
if (!value) {
|
|
|
18179 |
this.invoiceNumber = null;
|
|
|
18180 |
}
|
|
|
18181 |
}
|
|
|
18182 |
|
|
|
18183 |
public long getWarehouseId() {
|
|
|
18184 |
return this.warehouseId;
|
|
|
18185 |
}
|
|
|
18186 |
|
|
|
18187 |
public void setWarehouseId(long warehouseId) {
|
|
|
18188 |
this.warehouseId = warehouseId;
|
|
|
18189 |
setWarehouseIdIsSet(true);
|
|
|
18190 |
}
|
|
|
18191 |
|
|
|
18192 |
public void unsetWarehouseId() {
|
|
|
18193 |
__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
|
|
|
18194 |
}
|
|
|
18195 |
|
|
|
18196 |
/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
|
|
|
18197 |
public boolean isSetWarehouseId() {
|
|
|
18198 |
return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
|
|
|
18199 |
}
|
|
|
18200 |
|
|
|
18201 |
public void setWarehouseIdIsSet(boolean value) {
|
|
|
18202 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
|
|
18203 |
}
|
|
|
18204 |
|
|
|
18205 |
public double getUnitPrice() {
|
|
|
18206 |
return this.unitPrice;
|
|
|
18207 |
}
|
|
|
18208 |
|
|
|
18209 |
public void setUnitPrice(double unitPrice) {
|
|
|
18210 |
this.unitPrice = unitPrice;
|
|
|
18211 |
setUnitPriceIsSet(true);
|
|
|
18212 |
}
|
|
|
18213 |
|
|
|
18214 |
public void unsetUnitPrice() {
|
|
|
18215 |
__isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
|
|
|
18216 |
}
|
|
|
18217 |
|
|
|
18218 |
/** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
|
|
|
18219 |
public boolean isSetUnitPrice() {
|
|
|
18220 |
return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
|
|
|
18221 |
}
|
|
|
18222 |
|
|
|
18223 |
public void setUnitPriceIsSet(boolean value) {
|
|
|
18224 |
__isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
|
|
|
18225 |
}
|
|
|
18226 |
|
|
|
18227 |
public long getOrderId() {
|
|
|
18228 |
return this.orderId;
|
|
|
18229 |
}
|
|
|
18230 |
|
|
|
18231 |
public void setOrderId(long orderId) {
|
|
|
18232 |
this.orderId = orderId;
|
|
|
18233 |
setOrderIdIsSet(true);
|
|
|
18234 |
}
|
|
|
18235 |
|
|
|
18236 |
public void unsetOrderId() {
|
|
|
18237 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
18238 |
}
|
|
|
18239 |
|
|
|
18240 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
18241 |
public boolean isSetOrderId() {
|
|
|
18242 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
18243 |
}
|
|
|
18244 |
|
|
|
18245 |
public void setOrderIdIsSet(boolean value) {
|
|
|
18246 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
18247 |
}
|
|
|
18248 |
|
|
|
18249 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
18250 |
switch (field) {
|
|
|
18251 |
case ITEM_ID:
|
|
|
18252 |
if (value == null) {
|
|
|
18253 |
unsetItemId();
|
|
|
18254 |
} else {
|
|
|
18255 |
setItemId((Long)value);
|
|
|
18256 |
}
|
|
|
18257 |
break;
|
|
|
18258 |
|
|
|
18259 |
case SERIAL_NUMBER:
|
|
|
18260 |
if (value == null) {
|
|
|
18261 |
unsetSerialNumber();
|
|
|
18262 |
} else {
|
|
|
18263 |
setSerialNumber((String)value);
|
|
|
18264 |
}
|
|
|
18265 |
break;
|
|
|
18266 |
|
|
|
18267 |
case ITEM_NUMBER:
|
|
|
18268 |
if (value == null) {
|
|
|
18269 |
unsetItemNumber();
|
|
|
18270 |
} else {
|
|
|
18271 |
setItemNumber((String)value);
|
|
|
18272 |
}
|
|
|
18273 |
break;
|
|
|
18274 |
|
|
|
18275 |
case INVOICE_NUMBER:
|
|
|
18276 |
if (value == null) {
|
|
|
18277 |
unsetInvoiceNumber();
|
|
|
18278 |
} else {
|
|
|
18279 |
setInvoiceNumber((String)value);
|
|
|
18280 |
}
|
|
|
18281 |
break;
|
|
|
18282 |
|
|
|
18283 |
case WAREHOUSE_ID:
|
|
|
18284 |
if (value == null) {
|
|
|
18285 |
unsetWarehouseId();
|
|
|
18286 |
} else {
|
|
|
18287 |
setWarehouseId((Long)value);
|
|
|
18288 |
}
|
|
|
18289 |
break;
|
|
|
18290 |
|
|
|
18291 |
case UNIT_PRICE:
|
|
|
18292 |
if (value == null) {
|
|
|
18293 |
unsetUnitPrice();
|
|
|
18294 |
} else {
|
|
|
18295 |
setUnitPrice((Double)value);
|
|
|
18296 |
}
|
|
|
18297 |
break;
|
|
|
18298 |
|
|
|
18299 |
case ORDER_ID:
|
|
|
18300 |
if (value == null) {
|
|
|
18301 |
unsetOrderId();
|
|
|
18302 |
} else {
|
|
|
18303 |
setOrderId((Long)value);
|
|
|
18304 |
}
|
|
|
18305 |
break;
|
|
|
18306 |
|
|
|
18307 |
}
|
|
|
18308 |
}
|
|
|
18309 |
|
|
|
18310 |
public Object getFieldValue(_Fields field) {
|
|
|
18311 |
switch (field) {
|
|
|
18312 |
case ITEM_ID:
|
|
|
18313 |
return Long.valueOf(getItemId());
|
|
|
18314 |
|
|
|
18315 |
case SERIAL_NUMBER:
|
|
|
18316 |
return getSerialNumber();
|
|
|
18317 |
|
|
|
18318 |
case ITEM_NUMBER:
|
|
|
18319 |
return getItemNumber();
|
|
|
18320 |
|
|
|
18321 |
case INVOICE_NUMBER:
|
|
|
18322 |
return getInvoiceNumber();
|
|
|
18323 |
|
|
|
18324 |
case WAREHOUSE_ID:
|
|
|
18325 |
return Long.valueOf(getWarehouseId());
|
|
|
18326 |
|
|
|
18327 |
case UNIT_PRICE:
|
|
|
18328 |
return Double.valueOf(getUnitPrice());
|
|
|
18329 |
|
|
|
18330 |
case ORDER_ID:
|
|
|
18331 |
return Long.valueOf(getOrderId());
|
|
|
18332 |
|
|
|
18333 |
}
|
|
|
18334 |
throw new IllegalStateException();
|
|
|
18335 |
}
|
|
|
18336 |
|
|
|
18337 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
18338 |
public boolean isSet(_Fields field) {
|
|
|
18339 |
if (field == null) {
|
|
|
18340 |
throw new IllegalArgumentException();
|
|
|
18341 |
}
|
|
|
18342 |
|
|
|
18343 |
switch (field) {
|
|
|
18344 |
case ITEM_ID:
|
|
|
18345 |
return isSetItemId();
|
|
|
18346 |
case SERIAL_NUMBER:
|
|
|
18347 |
return isSetSerialNumber();
|
|
|
18348 |
case ITEM_NUMBER:
|
|
|
18349 |
return isSetItemNumber();
|
|
|
18350 |
case INVOICE_NUMBER:
|
|
|
18351 |
return isSetInvoiceNumber();
|
|
|
18352 |
case WAREHOUSE_ID:
|
|
|
18353 |
return isSetWarehouseId();
|
|
|
18354 |
case UNIT_PRICE:
|
|
|
18355 |
return isSetUnitPrice();
|
|
|
18356 |
case ORDER_ID:
|
|
|
18357 |
return isSetOrderId();
|
|
|
18358 |
}
|
|
|
18359 |
throw new IllegalStateException();
|
|
|
18360 |
}
|
|
|
18361 |
|
|
|
18362 |
@Override
|
|
|
18363 |
public boolean equals(Object that) {
|
|
|
18364 |
if (that == null)
|
|
|
18365 |
return false;
|
|
|
18366 |
if (that instanceof scanForOursExternalSale_args)
|
|
|
18367 |
return this.equals((scanForOursExternalSale_args)that);
|
|
|
18368 |
return false;
|
|
|
18369 |
}
|
|
|
18370 |
|
|
|
18371 |
public boolean equals(scanForOursExternalSale_args that) {
|
|
|
18372 |
if (that == null)
|
|
|
18373 |
return false;
|
|
|
18374 |
|
|
|
18375 |
boolean this_present_itemId = true;
|
|
|
18376 |
boolean that_present_itemId = true;
|
|
|
18377 |
if (this_present_itemId || that_present_itemId) {
|
|
|
18378 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
18379 |
return false;
|
|
|
18380 |
if (this.itemId != that.itemId)
|
|
|
18381 |
return false;
|
|
|
18382 |
}
|
|
|
18383 |
|
|
|
18384 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
18385 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
18386 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
18387 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
|
|
18388 |
return false;
|
|
|
18389 |
if (!this.serialNumber.equals(that.serialNumber))
|
|
|
18390 |
return false;
|
|
|
18391 |
}
|
|
|
18392 |
|
|
|
18393 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
18394 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
18395 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
18396 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
18397 |
return false;
|
|
|
18398 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
18399 |
return false;
|
|
|
18400 |
}
|
|
|
18401 |
|
|
|
18402 |
boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
|
|
|
18403 |
boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
|
|
|
18404 |
if (this_present_invoiceNumber || that_present_invoiceNumber) {
|
|
|
18405 |
if (!(this_present_invoiceNumber && that_present_invoiceNumber))
|
|
|
18406 |
return false;
|
|
|
18407 |
if (!this.invoiceNumber.equals(that.invoiceNumber))
|
|
|
18408 |
return false;
|
|
|
18409 |
}
|
|
|
18410 |
|
|
|
18411 |
boolean this_present_warehouseId = true;
|
|
|
18412 |
boolean that_present_warehouseId = true;
|
|
|
18413 |
if (this_present_warehouseId || that_present_warehouseId) {
|
|
|
18414 |
if (!(this_present_warehouseId && that_present_warehouseId))
|
|
|
18415 |
return false;
|
|
|
18416 |
if (this.warehouseId != that.warehouseId)
|
|
|
18417 |
return false;
|
|
|
18418 |
}
|
|
|
18419 |
|
|
|
18420 |
boolean this_present_unitPrice = true;
|
|
|
18421 |
boolean that_present_unitPrice = true;
|
|
|
18422 |
if (this_present_unitPrice || that_present_unitPrice) {
|
|
|
18423 |
if (!(this_present_unitPrice && that_present_unitPrice))
|
|
|
18424 |
return false;
|
|
|
18425 |
if (this.unitPrice != that.unitPrice)
|
|
|
18426 |
return false;
|
|
|
18427 |
}
|
|
|
18428 |
|
|
|
18429 |
boolean this_present_orderId = true;
|
|
|
18430 |
boolean that_present_orderId = true;
|
|
|
18431 |
if (this_present_orderId || that_present_orderId) {
|
|
|
18432 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
18433 |
return false;
|
|
|
18434 |
if (this.orderId != that.orderId)
|
|
|
18435 |
return false;
|
|
|
18436 |
}
|
|
|
18437 |
|
|
|
18438 |
return true;
|
|
|
18439 |
}
|
|
|
18440 |
|
|
|
18441 |
@Override
|
|
|
18442 |
public int hashCode() {
|
|
|
18443 |
return 0;
|
|
|
18444 |
}
|
|
|
18445 |
|
|
|
18446 |
public int compareTo(scanForOursExternalSale_args other) {
|
|
|
18447 |
if (!getClass().equals(other.getClass())) {
|
|
|
18448 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
18449 |
}
|
|
|
18450 |
|
|
|
18451 |
int lastComparison = 0;
|
|
|
18452 |
scanForOursExternalSale_args typedOther = (scanForOursExternalSale_args)other;
|
|
|
18453 |
|
|
|
18454 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
18455 |
if (lastComparison != 0) {
|
|
|
18456 |
return lastComparison;
|
|
|
18457 |
}
|
|
|
18458 |
if (isSetItemId()) {
|
|
|
18459 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
18460 |
if (lastComparison != 0) {
|
|
|
18461 |
return lastComparison;
|
|
|
18462 |
}
|
|
|
18463 |
}
|
|
|
18464 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
|
|
18465 |
if (lastComparison != 0) {
|
|
|
18466 |
return lastComparison;
|
|
|
18467 |
}
|
|
|
18468 |
if (isSetSerialNumber()) {
|
|
|
18469 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
|
|
18470 |
if (lastComparison != 0) {
|
|
|
18471 |
return lastComparison;
|
|
|
18472 |
}
|
|
|
18473 |
}
|
|
|
18474 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
18475 |
if (lastComparison != 0) {
|
|
|
18476 |
return lastComparison;
|
|
|
18477 |
}
|
|
|
18478 |
if (isSetItemNumber()) {
|
|
|
18479 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
18480 |
if (lastComparison != 0) {
|
|
|
18481 |
return lastComparison;
|
|
|
18482 |
}
|
|
|
18483 |
}
|
|
|
18484 |
lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
|
|
|
18485 |
if (lastComparison != 0) {
|
|
|
18486 |
return lastComparison;
|
|
|
18487 |
}
|
|
|
18488 |
if (isSetInvoiceNumber()) {
|
|
|
18489 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
|
|
|
18490 |
if (lastComparison != 0) {
|
|
|
18491 |
return lastComparison;
|
|
|
18492 |
}
|
|
|
18493 |
}
|
|
|
18494 |
lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
|
|
|
18495 |
if (lastComparison != 0) {
|
|
|
18496 |
return lastComparison;
|
|
|
18497 |
}
|
|
|
18498 |
if (isSetWarehouseId()) {
|
|
|
18499 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
|
|
18500 |
if (lastComparison != 0) {
|
|
|
18501 |
return lastComparison;
|
|
|
18502 |
}
|
|
|
18503 |
}
|
|
|
18504 |
lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
|
|
|
18505 |
if (lastComparison != 0) {
|
|
|
18506 |
return lastComparison;
|
|
|
18507 |
}
|
|
|
18508 |
if (isSetUnitPrice()) {
|
|
|
18509 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
|
|
|
18510 |
if (lastComparison != 0) {
|
|
|
18511 |
return lastComparison;
|
|
|
18512 |
}
|
|
|
18513 |
}
|
|
|
18514 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
18515 |
if (lastComparison != 0) {
|
|
|
18516 |
return lastComparison;
|
|
|
18517 |
}
|
|
|
18518 |
if (isSetOrderId()) {
|
|
|
18519 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
18520 |
if (lastComparison != 0) {
|
|
|
18521 |
return lastComparison;
|
|
|
18522 |
}
|
|
|
18523 |
}
|
|
|
18524 |
return 0;
|
|
|
18525 |
}
|
|
|
18526 |
|
|
|
18527 |
public _Fields fieldForId(int fieldId) {
|
|
|
18528 |
return _Fields.findByThriftId(fieldId);
|
|
|
18529 |
}
|
|
|
18530 |
|
|
|
18531 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
18532 |
org.apache.thrift.protocol.TField field;
|
|
|
18533 |
iprot.readStructBegin();
|
|
|
18534 |
while (true)
|
|
|
18535 |
{
|
|
|
18536 |
field = iprot.readFieldBegin();
|
|
|
18537 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
18538 |
break;
|
|
|
18539 |
}
|
|
|
18540 |
switch (field.id) {
|
|
|
18541 |
case 1: // ITEM_ID
|
|
|
18542 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
18543 |
this.itemId = iprot.readI64();
|
|
|
18544 |
setItemIdIsSet(true);
|
|
|
18545 |
} else {
|
|
|
18546 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18547 |
}
|
|
|
18548 |
break;
|
|
|
18549 |
case 2: // SERIAL_NUMBER
|
|
|
18550 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
18551 |
this.serialNumber = iprot.readString();
|
|
|
18552 |
} else {
|
|
|
18553 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18554 |
}
|
|
|
18555 |
break;
|
|
|
18556 |
case 3: // ITEM_NUMBER
|
|
|
18557 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
18558 |
this.itemNumber = iprot.readString();
|
|
|
18559 |
} else {
|
|
|
18560 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18561 |
}
|
|
|
18562 |
break;
|
|
|
18563 |
case 4: // INVOICE_NUMBER
|
|
|
18564 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
18565 |
this.invoiceNumber = iprot.readString();
|
|
|
18566 |
} else {
|
|
|
18567 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18568 |
}
|
|
|
18569 |
break;
|
|
|
18570 |
case 5: // WAREHOUSE_ID
|
|
|
18571 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
18572 |
this.warehouseId = iprot.readI64();
|
|
|
18573 |
setWarehouseIdIsSet(true);
|
|
|
18574 |
} else {
|
|
|
18575 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18576 |
}
|
|
|
18577 |
break;
|
|
|
18578 |
case 6: // UNIT_PRICE
|
|
|
18579 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
18580 |
this.unitPrice = iprot.readDouble();
|
|
|
18581 |
setUnitPriceIsSet(true);
|
|
|
18582 |
} else {
|
|
|
18583 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18584 |
}
|
|
|
18585 |
break;
|
|
|
18586 |
case 7: // ORDER_ID
|
|
|
18587 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
18588 |
this.orderId = iprot.readI64();
|
|
|
18589 |
setOrderIdIsSet(true);
|
|
|
18590 |
} else {
|
|
|
18591 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18592 |
}
|
|
|
18593 |
break;
|
|
|
18594 |
default:
|
|
|
18595 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18596 |
}
|
|
|
18597 |
iprot.readFieldEnd();
|
|
|
18598 |
}
|
|
|
18599 |
iprot.readStructEnd();
|
|
|
18600 |
validate();
|
|
|
18601 |
}
|
|
|
18602 |
|
|
|
18603 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
18604 |
validate();
|
|
|
18605 |
|
|
|
18606 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
18607 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
18608 |
oprot.writeI64(this.itemId);
|
|
|
18609 |
oprot.writeFieldEnd();
|
|
|
18610 |
if (this.serialNumber != null) {
|
|
|
18611 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
18612 |
oprot.writeString(this.serialNumber);
|
|
|
18613 |
oprot.writeFieldEnd();
|
|
|
18614 |
}
|
|
|
18615 |
if (this.itemNumber != null) {
|
|
|
18616 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
18617 |
oprot.writeString(this.itemNumber);
|
|
|
18618 |
oprot.writeFieldEnd();
|
|
|
18619 |
}
|
|
|
18620 |
if (this.invoiceNumber != null) {
|
|
|
18621 |
oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
|
|
|
18622 |
oprot.writeString(this.invoiceNumber);
|
|
|
18623 |
oprot.writeFieldEnd();
|
|
|
18624 |
}
|
|
|
18625 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
|
|
18626 |
oprot.writeI64(this.warehouseId);
|
|
|
18627 |
oprot.writeFieldEnd();
|
|
|
18628 |
oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
|
|
|
18629 |
oprot.writeDouble(this.unitPrice);
|
|
|
18630 |
oprot.writeFieldEnd();
|
|
|
18631 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
18632 |
oprot.writeI64(this.orderId);
|
|
|
18633 |
oprot.writeFieldEnd();
|
|
|
18634 |
oprot.writeFieldStop();
|
|
|
18635 |
oprot.writeStructEnd();
|
|
|
18636 |
}
|
|
|
18637 |
|
|
|
18638 |
@Override
|
|
|
18639 |
public String toString() {
|
|
|
18640 |
StringBuilder sb = new StringBuilder("scanForOursExternalSale_args(");
|
|
|
18641 |
boolean first = true;
|
|
|
18642 |
|
|
|
18643 |
sb.append("itemId:");
|
|
|
18644 |
sb.append(this.itemId);
|
|
|
18645 |
first = false;
|
|
|
18646 |
if (!first) sb.append(", ");
|
|
|
18647 |
sb.append("serialNumber:");
|
|
|
18648 |
if (this.serialNumber == null) {
|
|
|
18649 |
sb.append("null");
|
|
|
18650 |
} else {
|
|
|
18651 |
sb.append(this.serialNumber);
|
|
|
18652 |
}
|
|
|
18653 |
first = false;
|
|
|
18654 |
if (!first) sb.append(", ");
|
|
|
18655 |
sb.append("itemNumber:");
|
|
|
18656 |
if (this.itemNumber == null) {
|
|
|
18657 |
sb.append("null");
|
|
|
18658 |
} else {
|
|
|
18659 |
sb.append(this.itemNumber);
|
|
|
18660 |
}
|
|
|
18661 |
first = false;
|
|
|
18662 |
if (!first) sb.append(", ");
|
|
|
18663 |
sb.append("invoiceNumber:");
|
|
|
18664 |
if (this.invoiceNumber == null) {
|
|
|
18665 |
sb.append("null");
|
|
|
18666 |
} else {
|
|
|
18667 |
sb.append(this.invoiceNumber);
|
|
|
18668 |
}
|
|
|
18669 |
first = false;
|
|
|
18670 |
if (!first) sb.append(", ");
|
|
|
18671 |
sb.append("warehouseId:");
|
|
|
18672 |
sb.append(this.warehouseId);
|
|
|
18673 |
first = false;
|
|
|
18674 |
if (!first) sb.append(", ");
|
|
|
18675 |
sb.append("unitPrice:");
|
|
|
18676 |
sb.append(this.unitPrice);
|
|
|
18677 |
first = false;
|
|
|
18678 |
if (!first) sb.append(", ");
|
|
|
18679 |
sb.append("orderId:");
|
|
|
18680 |
sb.append(this.orderId);
|
|
|
18681 |
first = false;
|
|
|
18682 |
sb.append(")");
|
|
|
18683 |
return sb.toString();
|
|
|
18684 |
}
|
|
|
18685 |
|
|
|
18686 |
public void validate() throws org.apache.thrift.TException {
|
|
|
18687 |
// check for required fields
|
|
|
18688 |
}
|
|
|
18689 |
|
|
|
18690 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
18691 |
try {
|
|
|
18692 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
18693 |
} catch (org.apache.thrift.TException te) {
|
|
|
18694 |
throw new java.io.IOException(te);
|
|
|
18695 |
}
|
|
|
18696 |
}
|
|
|
18697 |
|
|
|
18698 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
18699 |
try {
|
|
|
18700 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
18701 |
__isset_bit_vector = new BitSet(1);
|
|
|
18702 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
18703 |
} catch (org.apache.thrift.TException te) {
|
|
|
18704 |
throw new java.io.IOException(te);
|
|
|
18705 |
}
|
|
|
18706 |
}
|
|
|
18707 |
|
|
|
18708 |
}
|
|
|
18709 |
|
|
|
18710 |
public static class scanForOursExternalSale_result implements org.apache.thrift.TBase<scanForOursExternalSale_result, scanForOursExternalSale_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
18711 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSale_result");
|
|
|
18712 |
|
|
|
18713 |
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);
|
|
|
18714 |
private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
18715 |
|
|
|
18716 |
private InventoryItem success; // required
|
|
|
18717 |
private WarehouseServiceException ex; // required
|
|
|
18718 |
|
|
|
18719 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
18720 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
18721 |
SUCCESS((short)0, "success"),
|
|
|
18722 |
EX((short)1, "ex");
|
|
|
18723 |
|
|
|
18724 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
18725 |
|
|
|
18726 |
static {
|
|
|
18727 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
18728 |
byName.put(field.getFieldName(), field);
|
|
|
18729 |
}
|
|
|
18730 |
}
|
|
|
18731 |
|
|
|
18732 |
/**
|
|
|
18733 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
18734 |
*/
|
|
|
18735 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
18736 |
switch(fieldId) {
|
|
|
18737 |
case 0: // SUCCESS
|
|
|
18738 |
return SUCCESS;
|
|
|
18739 |
case 1: // EX
|
|
|
18740 |
return EX;
|
|
|
18741 |
default:
|
|
|
18742 |
return null;
|
|
|
18743 |
}
|
|
|
18744 |
}
|
|
|
18745 |
|
|
|
18746 |
/**
|
|
|
18747 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
18748 |
* if it is not found.
|
|
|
18749 |
*/
|
|
|
18750 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
18751 |
_Fields fields = findByThriftId(fieldId);
|
|
|
18752 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
18753 |
return fields;
|
|
|
18754 |
}
|
|
|
18755 |
|
|
|
18756 |
/**
|
|
|
18757 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
18758 |
*/
|
|
|
18759 |
public static _Fields findByName(String name) {
|
|
|
18760 |
return byName.get(name);
|
|
|
18761 |
}
|
|
|
18762 |
|
|
|
18763 |
private final short _thriftId;
|
|
|
18764 |
private final String _fieldName;
|
|
|
18765 |
|
|
|
18766 |
_Fields(short thriftId, String fieldName) {
|
|
|
18767 |
_thriftId = thriftId;
|
|
|
18768 |
_fieldName = fieldName;
|
|
|
18769 |
}
|
|
|
18770 |
|
|
|
18771 |
public short getThriftFieldId() {
|
|
|
18772 |
return _thriftId;
|
|
|
18773 |
}
|
|
|
18774 |
|
|
|
18775 |
public String getFieldName() {
|
|
|
18776 |
return _fieldName;
|
|
|
18777 |
}
|
|
|
18778 |
}
|
|
|
18779 |
|
|
|
18780 |
// isset id assignments
|
|
|
18781 |
|
|
|
18782 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
18783 |
static {
|
|
|
18784 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
18785 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
18786 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
18787 |
tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
18788 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
18789 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
18790 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSale_result.class, metaDataMap);
|
|
|
18791 |
}
|
|
|
18792 |
|
|
|
18793 |
public scanForOursExternalSale_result() {
|
|
|
18794 |
}
|
|
|
18795 |
|
|
|
18796 |
public scanForOursExternalSale_result(
|
|
|
18797 |
InventoryItem success,
|
|
|
18798 |
WarehouseServiceException ex)
|
|
|
18799 |
{
|
|
|
18800 |
this();
|
|
|
18801 |
this.success = success;
|
|
|
18802 |
this.ex = ex;
|
|
|
18803 |
}
|
|
|
18804 |
|
|
|
18805 |
/**
|
|
|
18806 |
* Performs a deep copy on <i>other</i>.
|
|
|
18807 |
*/
|
|
|
18808 |
public scanForOursExternalSale_result(scanForOursExternalSale_result other) {
|
|
|
18809 |
if (other.isSetSuccess()) {
|
|
|
18810 |
this.success = new InventoryItem(other.success);
|
|
|
18811 |
}
|
|
|
18812 |
if (other.isSetEx()) {
|
|
|
18813 |
this.ex = new WarehouseServiceException(other.ex);
|
|
|
18814 |
}
|
|
|
18815 |
}
|
|
|
18816 |
|
|
|
18817 |
public scanForOursExternalSale_result deepCopy() {
|
|
|
18818 |
return new scanForOursExternalSale_result(this);
|
|
|
18819 |
}
|
|
|
18820 |
|
|
|
18821 |
@Override
|
|
|
18822 |
public void clear() {
|
|
|
18823 |
this.success = null;
|
|
|
18824 |
this.ex = null;
|
|
|
18825 |
}
|
|
|
18826 |
|
|
|
18827 |
public InventoryItem getSuccess() {
|
|
|
18828 |
return this.success;
|
|
|
18829 |
}
|
|
|
18830 |
|
|
|
18831 |
public void setSuccess(InventoryItem success) {
|
|
|
18832 |
this.success = success;
|
|
|
18833 |
}
|
|
|
18834 |
|
|
|
18835 |
public void unsetSuccess() {
|
|
|
18836 |
this.success = null;
|
|
|
18837 |
}
|
|
|
18838 |
|
|
|
18839 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
18840 |
public boolean isSetSuccess() {
|
|
|
18841 |
return this.success != null;
|
|
|
18842 |
}
|
|
|
18843 |
|
|
|
18844 |
public void setSuccessIsSet(boolean value) {
|
|
|
18845 |
if (!value) {
|
|
|
18846 |
this.success = null;
|
|
|
18847 |
}
|
|
|
18848 |
}
|
|
|
18849 |
|
|
|
18850 |
public WarehouseServiceException getEx() {
|
|
|
18851 |
return this.ex;
|
|
|
18852 |
}
|
|
|
18853 |
|
|
|
18854 |
public void setEx(WarehouseServiceException ex) {
|
|
|
18855 |
this.ex = ex;
|
|
|
18856 |
}
|
|
|
18857 |
|
|
|
18858 |
public void unsetEx() {
|
|
|
18859 |
this.ex = null;
|
|
|
18860 |
}
|
|
|
18861 |
|
|
|
18862 |
/** Returns true if field ex is set (has been assigned a value) and false otherwise */
|
|
|
18863 |
public boolean isSetEx() {
|
|
|
18864 |
return this.ex != null;
|
|
|
18865 |
}
|
|
|
18866 |
|
|
|
18867 |
public void setExIsSet(boolean value) {
|
|
|
18868 |
if (!value) {
|
|
|
18869 |
this.ex = null;
|
|
|
18870 |
}
|
|
|
18871 |
}
|
|
|
18872 |
|
|
|
18873 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
18874 |
switch (field) {
|
|
|
18875 |
case SUCCESS:
|
|
|
18876 |
if (value == null) {
|
|
|
18877 |
unsetSuccess();
|
|
|
18878 |
} else {
|
|
|
18879 |
setSuccess((InventoryItem)value);
|
|
|
18880 |
}
|
|
|
18881 |
break;
|
|
|
18882 |
|
|
|
18883 |
case EX:
|
|
|
18884 |
if (value == null) {
|
|
|
18885 |
unsetEx();
|
|
|
18886 |
} else {
|
|
|
18887 |
setEx((WarehouseServiceException)value);
|
|
|
18888 |
}
|
|
|
18889 |
break;
|
|
|
18890 |
|
|
|
18891 |
}
|
|
|
18892 |
}
|
|
|
18893 |
|
|
|
18894 |
public Object getFieldValue(_Fields field) {
|
|
|
18895 |
switch (field) {
|
|
|
18896 |
case SUCCESS:
|
|
|
18897 |
return getSuccess();
|
|
|
18898 |
|
|
|
18899 |
case EX:
|
|
|
18900 |
return getEx();
|
|
|
18901 |
|
|
|
18902 |
}
|
|
|
18903 |
throw new IllegalStateException();
|
|
|
18904 |
}
|
|
|
18905 |
|
|
|
18906 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
18907 |
public boolean isSet(_Fields field) {
|
|
|
18908 |
if (field == null) {
|
|
|
18909 |
throw new IllegalArgumentException();
|
|
|
18910 |
}
|
|
|
18911 |
|
|
|
18912 |
switch (field) {
|
|
|
18913 |
case SUCCESS:
|
|
|
18914 |
return isSetSuccess();
|
|
|
18915 |
case EX:
|
|
|
18916 |
return isSetEx();
|
|
|
18917 |
}
|
|
|
18918 |
throw new IllegalStateException();
|
|
|
18919 |
}
|
|
|
18920 |
|
|
|
18921 |
@Override
|
|
|
18922 |
public boolean equals(Object that) {
|
|
|
18923 |
if (that == null)
|
|
|
18924 |
return false;
|
|
|
18925 |
if (that instanceof scanForOursExternalSale_result)
|
|
|
18926 |
return this.equals((scanForOursExternalSale_result)that);
|
|
|
18927 |
return false;
|
|
|
18928 |
}
|
|
|
18929 |
|
|
|
18930 |
public boolean equals(scanForOursExternalSale_result that) {
|
|
|
18931 |
if (that == null)
|
|
|
18932 |
return false;
|
|
|
18933 |
|
|
|
18934 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
18935 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
18936 |
if (this_present_success || that_present_success) {
|
|
|
18937 |
if (!(this_present_success && that_present_success))
|
|
|
18938 |
return false;
|
|
|
18939 |
if (!this.success.equals(that.success))
|
|
|
18940 |
return false;
|
|
|
18941 |
}
|
|
|
18942 |
|
|
|
18943 |
boolean this_present_ex = true && this.isSetEx();
|
|
|
18944 |
boolean that_present_ex = true && that.isSetEx();
|
|
|
18945 |
if (this_present_ex || that_present_ex) {
|
|
|
18946 |
if (!(this_present_ex && that_present_ex))
|
|
|
18947 |
return false;
|
|
|
18948 |
if (!this.ex.equals(that.ex))
|
|
|
18949 |
return false;
|
|
|
18950 |
}
|
|
|
18951 |
|
|
|
18952 |
return true;
|
|
|
18953 |
}
|
|
|
18954 |
|
|
|
18955 |
@Override
|
|
|
18956 |
public int hashCode() {
|
|
|
18957 |
return 0;
|
|
|
18958 |
}
|
|
|
18959 |
|
|
|
18960 |
public int compareTo(scanForOursExternalSale_result other) {
|
|
|
18961 |
if (!getClass().equals(other.getClass())) {
|
|
|
18962 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
18963 |
}
|
|
|
18964 |
|
|
|
18965 |
int lastComparison = 0;
|
|
|
18966 |
scanForOursExternalSale_result typedOther = (scanForOursExternalSale_result)other;
|
|
|
18967 |
|
|
|
18968 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
18969 |
if (lastComparison != 0) {
|
|
|
18970 |
return lastComparison;
|
|
|
18971 |
}
|
|
|
18972 |
if (isSetSuccess()) {
|
|
|
18973 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
18974 |
if (lastComparison != 0) {
|
|
|
18975 |
return lastComparison;
|
|
|
18976 |
}
|
|
|
18977 |
}
|
|
|
18978 |
lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
|
|
|
18979 |
if (lastComparison != 0) {
|
|
|
18980 |
return lastComparison;
|
|
|
18981 |
}
|
|
|
18982 |
if (isSetEx()) {
|
|
|
18983 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
|
|
|
18984 |
if (lastComparison != 0) {
|
|
|
18985 |
return lastComparison;
|
|
|
18986 |
}
|
|
|
18987 |
}
|
|
|
18988 |
return 0;
|
|
|
18989 |
}
|
|
|
18990 |
|
|
|
18991 |
public _Fields fieldForId(int fieldId) {
|
|
|
18992 |
return _Fields.findByThriftId(fieldId);
|
|
|
18993 |
}
|
|
|
18994 |
|
|
|
18995 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
18996 |
org.apache.thrift.protocol.TField field;
|
|
|
18997 |
iprot.readStructBegin();
|
|
|
18998 |
while (true)
|
|
|
18999 |
{
|
|
|
19000 |
field = iprot.readFieldBegin();
|
|
|
19001 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
19002 |
break;
|
|
|
19003 |
}
|
|
|
19004 |
switch (field.id) {
|
|
|
19005 |
case 0: // SUCCESS
|
|
|
19006 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
19007 |
this.success = new InventoryItem();
|
|
|
19008 |
this.success.read(iprot);
|
|
|
19009 |
} else {
|
|
|
19010 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19011 |
}
|
|
|
19012 |
break;
|
|
|
19013 |
case 1: // EX
|
|
|
19014 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
19015 |
this.ex = new WarehouseServiceException();
|
|
|
19016 |
this.ex.read(iprot);
|
|
|
19017 |
} else {
|
|
|
19018 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19019 |
}
|
|
|
19020 |
break;
|
|
|
19021 |
default:
|
|
|
19022 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19023 |
}
|
|
|
19024 |
iprot.readFieldEnd();
|
|
|
19025 |
}
|
|
|
19026 |
iprot.readStructEnd();
|
|
|
19027 |
validate();
|
|
|
19028 |
}
|
|
|
19029 |
|
|
|
19030 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
19031 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
19032 |
|
|
|
19033 |
if (this.isSetSuccess()) {
|
|
|
19034 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
19035 |
this.success.write(oprot);
|
|
|
19036 |
oprot.writeFieldEnd();
|
|
|
19037 |
} else if (this.isSetEx()) {
|
|
|
19038 |
oprot.writeFieldBegin(EX_FIELD_DESC);
|
|
|
19039 |
this.ex.write(oprot);
|
|
|
19040 |
oprot.writeFieldEnd();
|
|
|
19041 |
}
|
|
|
19042 |
oprot.writeFieldStop();
|
|
|
19043 |
oprot.writeStructEnd();
|
|
|
19044 |
}
|
|
|
19045 |
|
|
|
19046 |
@Override
|
|
|
19047 |
public String toString() {
|
|
|
19048 |
StringBuilder sb = new StringBuilder("scanForOursExternalSale_result(");
|
|
|
19049 |
boolean first = true;
|
|
|
19050 |
|
|
|
19051 |
sb.append("success:");
|
|
|
19052 |
if (this.success == null) {
|
|
|
19053 |
sb.append("null");
|
|
|
19054 |
} else {
|
|
|
19055 |
sb.append(this.success);
|
|
|
19056 |
}
|
|
|
19057 |
first = false;
|
|
|
19058 |
if (!first) sb.append(", ");
|
|
|
19059 |
sb.append("ex:");
|
|
|
19060 |
if (this.ex == null) {
|
|
|
19061 |
sb.append("null");
|
|
|
19062 |
} else {
|
|
|
19063 |
sb.append(this.ex);
|
|
|
19064 |
}
|
|
|
19065 |
first = false;
|
|
|
19066 |
sb.append(")");
|
|
|
19067 |
return sb.toString();
|
|
|
19068 |
}
|
|
|
19069 |
|
|
|
19070 |
public void validate() throws org.apache.thrift.TException {
|
|
|
19071 |
// check for required fields
|
|
|
19072 |
}
|
|
|
19073 |
|
|
|
19074 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
19075 |
try {
|
|
|
19076 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
19077 |
} catch (org.apache.thrift.TException te) {
|
|
|
19078 |
throw new java.io.IOException(te);
|
|
|
19079 |
}
|
|
|
19080 |
}
|
|
|
19081 |
|
|
|
19082 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
19083 |
try {
|
|
|
19084 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
19085 |
} catch (org.apache.thrift.TException te) {
|
|
|
19086 |
throw new java.io.IOException(te);
|
|
|
19087 |
}
|
|
|
19088 |
}
|
|
|
19089 |
|
|
|
19090 |
}
|
|
|
19091 |
|
|
|
19092 |
public static class scanForOursExternalSaleReturn_args implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_args, scanForOursExternalSaleReturn_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
19093 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_args");
|
|
|
19094 |
|
|
|
19095 |
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
19096 |
private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
|
|
|
19097 |
|
|
|
19098 |
private long orderId; // required
|
|
|
19099 |
private double unitPrice; // required
|
|
|
19100 |
|
|
|
19101 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
19102 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
19103 |
ORDER_ID((short)1, "orderId"),
|
|
|
19104 |
UNIT_PRICE((short)2, "unitPrice");
|
|
|
19105 |
|
|
|
19106 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
19107 |
|
|
|
19108 |
static {
|
|
|
19109 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
19110 |
byName.put(field.getFieldName(), field);
|
|
|
19111 |
}
|
|
|
19112 |
}
|
|
|
19113 |
|
|
|
19114 |
/**
|
|
|
19115 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
19116 |
*/
|
|
|
19117 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
19118 |
switch(fieldId) {
|
|
|
19119 |
case 1: // ORDER_ID
|
|
|
19120 |
return ORDER_ID;
|
|
|
19121 |
case 2: // UNIT_PRICE
|
|
|
19122 |
return UNIT_PRICE;
|
|
|
19123 |
default:
|
|
|
19124 |
return null;
|
|
|
19125 |
}
|
|
|
19126 |
}
|
|
|
19127 |
|
|
|
19128 |
/**
|
|
|
19129 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
19130 |
* if it is not found.
|
|
|
19131 |
*/
|
|
|
19132 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
19133 |
_Fields fields = findByThriftId(fieldId);
|
|
|
19134 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
19135 |
return fields;
|
|
|
19136 |
}
|
|
|
19137 |
|
|
|
19138 |
/**
|
|
|
19139 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
19140 |
*/
|
|
|
19141 |
public static _Fields findByName(String name) {
|
|
|
19142 |
return byName.get(name);
|
|
|
19143 |
}
|
|
|
19144 |
|
|
|
19145 |
private final short _thriftId;
|
|
|
19146 |
private final String _fieldName;
|
|
|
19147 |
|
|
|
19148 |
_Fields(short thriftId, String fieldName) {
|
|
|
19149 |
_thriftId = thriftId;
|
|
|
19150 |
_fieldName = fieldName;
|
|
|
19151 |
}
|
|
|
19152 |
|
|
|
19153 |
public short getThriftFieldId() {
|
|
|
19154 |
return _thriftId;
|
|
|
19155 |
}
|
|
|
19156 |
|
|
|
19157 |
public String getFieldName() {
|
|
|
19158 |
return _fieldName;
|
|
|
19159 |
}
|
|
|
19160 |
}
|
|
|
19161 |
|
|
|
19162 |
// isset id assignments
|
|
|
19163 |
private static final int __ORDERID_ISSET_ID = 0;
|
|
|
19164 |
private static final int __UNITPRICE_ISSET_ID = 1;
|
|
|
19165 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
19166 |
|
|
|
19167 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
19168 |
static {
|
|
|
19169 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
19170 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
19171 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
19172 |
tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
19173 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
19174 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
19175 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_args.class, metaDataMap);
|
|
|
19176 |
}
|
|
|
19177 |
|
|
|
19178 |
public scanForOursExternalSaleReturn_args() {
|
|
|
19179 |
}
|
|
|
19180 |
|
|
|
19181 |
public scanForOursExternalSaleReturn_args(
|
|
|
19182 |
long orderId,
|
|
|
19183 |
double unitPrice)
|
|
|
19184 |
{
|
|
|
19185 |
this();
|
|
|
19186 |
this.orderId = orderId;
|
|
|
19187 |
setOrderIdIsSet(true);
|
|
|
19188 |
this.unitPrice = unitPrice;
|
|
|
19189 |
setUnitPriceIsSet(true);
|
|
|
19190 |
}
|
|
|
19191 |
|
|
|
19192 |
/**
|
|
|
19193 |
* Performs a deep copy on <i>other</i>.
|
|
|
19194 |
*/
|
|
|
19195 |
public scanForOursExternalSaleReturn_args(scanForOursExternalSaleReturn_args other) {
|
|
|
19196 |
__isset_bit_vector.clear();
|
|
|
19197 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
19198 |
this.orderId = other.orderId;
|
|
|
19199 |
this.unitPrice = other.unitPrice;
|
|
|
19200 |
}
|
|
|
19201 |
|
|
|
19202 |
public scanForOursExternalSaleReturn_args deepCopy() {
|
|
|
19203 |
return new scanForOursExternalSaleReturn_args(this);
|
|
|
19204 |
}
|
|
|
19205 |
|
|
|
19206 |
@Override
|
|
|
19207 |
public void clear() {
|
|
|
19208 |
setOrderIdIsSet(false);
|
|
|
19209 |
this.orderId = 0;
|
|
|
19210 |
setUnitPriceIsSet(false);
|
|
|
19211 |
this.unitPrice = 0.0;
|
|
|
19212 |
}
|
|
|
19213 |
|
|
|
19214 |
public long getOrderId() {
|
|
|
19215 |
return this.orderId;
|
|
|
19216 |
}
|
|
|
19217 |
|
|
|
19218 |
public void setOrderId(long orderId) {
|
|
|
19219 |
this.orderId = orderId;
|
|
|
19220 |
setOrderIdIsSet(true);
|
|
|
19221 |
}
|
|
|
19222 |
|
|
|
19223 |
public void unsetOrderId() {
|
|
|
19224 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
19225 |
}
|
|
|
19226 |
|
|
|
19227 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
19228 |
public boolean isSetOrderId() {
|
|
|
19229 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
19230 |
}
|
|
|
19231 |
|
|
|
19232 |
public void setOrderIdIsSet(boolean value) {
|
|
|
19233 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
19234 |
}
|
|
|
19235 |
|
|
|
19236 |
public double getUnitPrice() {
|
|
|
19237 |
return this.unitPrice;
|
|
|
19238 |
}
|
|
|
19239 |
|
|
|
19240 |
public void setUnitPrice(double unitPrice) {
|
|
|
19241 |
this.unitPrice = unitPrice;
|
|
|
19242 |
setUnitPriceIsSet(true);
|
|
|
19243 |
}
|
|
|
19244 |
|
|
|
19245 |
public void unsetUnitPrice() {
|
|
|
19246 |
__isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
|
|
|
19247 |
}
|
|
|
19248 |
|
|
|
19249 |
/** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
|
|
|
19250 |
public boolean isSetUnitPrice() {
|
|
|
19251 |
return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
|
|
|
19252 |
}
|
|
|
19253 |
|
|
|
19254 |
public void setUnitPriceIsSet(boolean value) {
|
|
|
19255 |
__isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
|
|
|
19256 |
}
|
|
|
19257 |
|
|
|
19258 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
19259 |
switch (field) {
|
|
|
19260 |
case ORDER_ID:
|
|
|
19261 |
if (value == null) {
|
|
|
19262 |
unsetOrderId();
|
|
|
19263 |
} else {
|
|
|
19264 |
setOrderId((Long)value);
|
|
|
19265 |
}
|
|
|
19266 |
break;
|
|
|
19267 |
|
|
|
19268 |
case UNIT_PRICE:
|
|
|
19269 |
if (value == null) {
|
|
|
19270 |
unsetUnitPrice();
|
|
|
19271 |
} else {
|
|
|
19272 |
setUnitPrice((Double)value);
|
|
|
19273 |
}
|
|
|
19274 |
break;
|
|
|
19275 |
|
|
|
19276 |
}
|
|
|
19277 |
}
|
|
|
19278 |
|
|
|
19279 |
public Object getFieldValue(_Fields field) {
|
|
|
19280 |
switch (field) {
|
|
|
19281 |
case ORDER_ID:
|
|
|
19282 |
return Long.valueOf(getOrderId());
|
|
|
19283 |
|
|
|
19284 |
case UNIT_PRICE:
|
|
|
19285 |
return Double.valueOf(getUnitPrice());
|
|
|
19286 |
|
|
|
19287 |
}
|
|
|
19288 |
throw new IllegalStateException();
|
|
|
19289 |
}
|
|
|
19290 |
|
|
|
19291 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
19292 |
public boolean isSet(_Fields field) {
|
|
|
19293 |
if (field == null) {
|
|
|
19294 |
throw new IllegalArgumentException();
|
|
|
19295 |
}
|
|
|
19296 |
|
|
|
19297 |
switch (field) {
|
|
|
19298 |
case ORDER_ID:
|
|
|
19299 |
return isSetOrderId();
|
|
|
19300 |
case UNIT_PRICE:
|
|
|
19301 |
return isSetUnitPrice();
|
|
|
19302 |
}
|
|
|
19303 |
throw new IllegalStateException();
|
|
|
19304 |
}
|
|
|
19305 |
|
|
|
19306 |
@Override
|
|
|
19307 |
public boolean equals(Object that) {
|
|
|
19308 |
if (that == null)
|
|
|
19309 |
return false;
|
|
|
19310 |
if (that instanceof scanForOursExternalSaleReturn_args)
|
|
|
19311 |
return this.equals((scanForOursExternalSaleReturn_args)that);
|
|
|
19312 |
return false;
|
|
|
19313 |
}
|
|
|
19314 |
|
|
|
19315 |
public boolean equals(scanForOursExternalSaleReturn_args that) {
|
|
|
19316 |
if (that == null)
|
|
|
19317 |
return false;
|
|
|
19318 |
|
|
|
19319 |
boolean this_present_orderId = true;
|
|
|
19320 |
boolean that_present_orderId = true;
|
|
|
19321 |
if (this_present_orderId || that_present_orderId) {
|
|
|
19322 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
19323 |
return false;
|
|
|
19324 |
if (this.orderId != that.orderId)
|
|
|
19325 |
return false;
|
|
|
19326 |
}
|
|
|
19327 |
|
|
|
19328 |
boolean this_present_unitPrice = true;
|
|
|
19329 |
boolean that_present_unitPrice = true;
|
|
|
19330 |
if (this_present_unitPrice || that_present_unitPrice) {
|
|
|
19331 |
if (!(this_present_unitPrice && that_present_unitPrice))
|
|
|
19332 |
return false;
|
|
|
19333 |
if (this.unitPrice != that.unitPrice)
|
|
|
19334 |
return false;
|
|
|
19335 |
}
|
|
|
19336 |
|
|
|
19337 |
return true;
|
|
|
19338 |
}
|
|
|
19339 |
|
|
|
19340 |
@Override
|
|
|
19341 |
public int hashCode() {
|
|
|
19342 |
return 0;
|
|
|
19343 |
}
|
|
|
19344 |
|
|
|
19345 |
public int compareTo(scanForOursExternalSaleReturn_args other) {
|
|
|
19346 |
if (!getClass().equals(other.getClass())) {
|
|
|
19347 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
19348 |
}
|
|
|
19349 |
|
|
|
19350 |
int lastComparison = 0;
|
|
|
19351 |
scanForOursExternalSaleReturn_args typedOther = (scanForOursExternalSaleReturn_args)other;
|
|
|
19352 |
|
|
|
19353 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
19354 |
if (lastComparison != 0) {
|
|
|
19355 |
return lastComparison;
|
|
|
19356 |
}
|
|
|
19357 |
if (isSetOrderId()) {
|
|
|
19358 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
19359 |
if (lastComparison != 0) {
|
|
|
19360 |
return lastComparison;
|
|
|
19361 |
}
|
|
|
19362 |
}
|
|
|
19363 |
lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
|
|
|
19364 |
if (lastComparison != 0) {
|
|
|
19365 |
return lastComparison;
|
|
|
19366 |
}
|
|
|
19367 |
if (isSetUnitPrice()) {
|
|
|
19368 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
|
|
|
19369 |
if (lastComparison != 0) {
|
|
|
19370 |
return lastComparison;
|
|
|
19371 |
}
|
|
|
19372 |
}
|
|
|
19373 |
return 0;
|
|
|
19374 |
}
|
|
|
19375 |
|
|
|
19376 |
public _Fields fieldForId(int fieldId) {
|
|
|
19377 |
return _Fields.findByThriftId(fieldId);
|
|
|
19378 |
}
|
|
|
19379 |
|
|
|
19380 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
19381 |
org.apache.thrift.protocol.TField field;
|
|
|
19382 |
iprot.readStructBegin();
|
|
|
19383 |
while (true)
|
|
|
19384 |
{
|
|
|
19385 |
field = iprot.readFieldBegin();
|
|
|
19386 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
19387 |
break;
|
|
|
19388 |
}
|
|
|
19389 |
switch (field.id) {
|
|
|
19390 |
case 1: // ORDER_ID
|
|
|
19391 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
19392 |
this.orderId = iprot.readI64();
|
|
|
19393 |
setOrderIdIsSet(true);
|
|
|
19394 |
} else {
|
|
|
19395 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19396 |
}
|
|
|
19397 |
break;
|
|
|
19398 |
case 2: // UNIT_PRICE
|
|
|
19399 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
19400 |
this.unitPrice = iprot.readDouble();
|
|
|
19401 |
setUnitPriceIsSet(true);
|
|
|
19402 |
} else {
|
|
|
19403 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19404 |
}
|
|
|
19405 |
break;
|
|
|
19406 |
default:
|
|
|
19407 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19408 |
}
|
|
|
19409 |
iprot.readFieldEnd();
|
|
|
19410 |
}
|
|
|
19411 |
iprot.readStructEnd();
|
|
|
19412 |
validate();
|
|
|
19413 |
}
|
|
|
19414 |
|
|
|
19415 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
19416 |
validate();
|
|
|
19417 |
|
|
|
19418 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
19419 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
19420 |
oprot.writeI64(this.orderId);
|
|
|
19421 |
oprot.writeFieldEnd();
|
|
|
19422 |
oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
|
|
|
19423 |
oprot.writeDouble(this.unitPrice);
|
|
|
19424 |
oprot.writeFieldEnd();
|
|
|
19425 |
oprot.writeFieldStop();
|
|
|
19426 |
oprot.writeStructEnd();
|
|
|
19427 |
}
|
|
|
19428 |
|
|
|
19429 |
@Override
|
|
|
19430 |
public String toString() {
|
|
|
19431 |
StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_args(");
|
|
|
19432 |
boolean first = true;
|
|
|
19433 |
|
|
|
19434 |
sb.append("orderId:");
|
|
|
19435 |
sb.append(this.orderId);
|
|
|
19436 |
first = false;
|
|
|
19437 |
if (!first) sb.append(", ");
|
|
|
19438 |
sb.append("unitPrice:");
|
|
|
19439 |
sb.append(this.unitPrice);
|
|
|
19440 |
first = false;
|
|
|
19441 |
sb.append(")");
|
|
|
19442 |
return sb.toString();
|
|
|
19443 |
}
|
|
|
19444 |
|
|
|
19445 |
public void validate() throws org.apache.thrift.TException {
|
|
|
19446 |
// check for required fields
|
|
|
19447 |
}
|
|
|
19448 |
|
|
|
19449 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
19450 |
try {
|
|
|
19451 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
19452 |
} catch (org.apache.thrift.TException te) {
|
|
|
19453 |
throw new java.io.IOException(te);
|
|
|
19454 |
}
|
|
|
19455 |
}
|
|
|
19456 |
|
|
|
19457 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
19458 |
try {
|
|
|
19459 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
19460 |
} catch (org.apache.thrift.TException te) {
|
|
|
19461 |
throw new java.io.IOException(te);
|
|
|
19462 |
}
|
|
|
19463 |
}
|
|
|
19464 |
|
|
|
19465 |
}
|
|
|
19466 |
|
|
|
19467 |
public static class scanForOursExternalSaleReturn_result implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_result, scanForOursExternalSaleReturn_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
19468 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_result");
|
|
|
19469 |
|
|
|
19470 |
|
|
|
19471 |
|
|
|
19472 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
19473 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
19474 |
;
|
|
|
19475 |
|
|
|
19476 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
19477 |
|
|
|
19478 |
static {
|
|
|
19479 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
19480 |
byName.put(field.getFieldName(), field);
|
|
|
19481 |
}
|
|
|
19482 |
}
|
|
|
19483 |
|
|
|
19484 |
/**
|
|
|
19485 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
19486 |
*/
|
|
|
19487 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
19488 |
switch(fieldId) {
|
|
|
19489 |
default:
|
|
|
19490 |
return null;
|
|
|
19491 |
}
|
|
|
19492 |
}
|
|
|
19493 |
|
|
|
19494 |
/**
|
|
|
19495 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
19496 |
* if it is not found.
|
|
|
19497 |
*/
|
|
|
19498 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
19499 |
_Fields fields = findByThriftId(fieldId);
|
|
|
19500 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
19501 |
return fields;
|
|
|
19502 |
}
|
|
|
19503 |
|
|
|
19504 |
/**
|
|
|
19505 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
19506 |
*/
|
|
|
19507 |
public static _Fields findByName(String name) {
|
|
|
19508 |
return byName.get(name);
|
|
|
19509 |
}
|
|
|
19510 |
|
|
|
19511 |
private final short _thriftId;
|
|
|
19512 |
private final String _fieldName;
|
|
|
19513 |
|
|
|
19514 |
_Fields(short thriftId, String fieldName) {
|
|
|
19515 |
_thriftId = thriftId;
|
|
|
19516 |
_fieldName = fieldName;
|
|
|
19517 |
}
|
|
|
19518 |
|
|
|
19519 |
public short getThriftFieldId() {
|
|
|
19520 |
return _thriftId;
|
|
|
19521 |
}
|
|
|
19522 |
|
|
|
19523 |
public String getFieldName() {
|
|
|
19524 |
return _fieldName;
|
|
|
19525 |
}
|
|
|
19526 |
}
|
|
|
19527 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
19528 |
static {
|
|
|
19529 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
19530 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
19531 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_result.class, metaDataMap);
|
|
|
19532 |
}
|
|
|
19533 |
|
|
|
19534 |
public scanForOursExternalSaleReturn_result() {
|
|
|
19535 |
}
|
|
|
19536 |
|
|
|
19537 |
/**
|
|
|
19538 |
* Performs a deep copy on <i>other</i>.
|
|
|
19539 |
*/
|
|
|
19540 |
public scanForOursExternalSaleReturn_result(scanForOursExternalSaleReturn_result other) {
|
|
|
19541 |
}
|
|
|
19542 |
|
|
|
19543 |
public scanForOursExternalSaleReturn_result deepCopy() {
|
|
|
19544 |
return new scanForOursExternalSaleReturn_result(this);
|
|
|
19545 |
}
|
|
|
19546 |
|
|
|
19547 |
@Override
|
|
|
19548 |
public void clear() {
|
|
|
19549 |
}
|
|
|
19550 |
|
|
|
19551 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
19552 |
switch (field) {
|
|
|
19553 |
}
|
|
|
19554 |
}
|
|
|
19555 |
|
|
|
19556 |
public Object getFieldValue(_Fields field) {
|
|
|
19557 |
switch (field) {
|
|
|
19558 |
}
|
|
|
19559 |
throw new IllegalStateException();
|
|
|
19560 |
}
|
|
|
19561 |
|
|
|
19562 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
19563 |
public boolean isSet(_Fields field) {
|
|
|
19564 |
if (field == null) {
|
|
|
19565 |
throw new IllegalArgumentException();
|
|
|
19566 |
}
|
|
|
19567 |
|
|
|
19568 |
switch (field) {
|
|
|
19569 |
}
|
|
|
19570 |
throw new IllegalStateException();
|
|
|
19571 |
}
|
|
|
19572 |
|
|
|
19573 |
@Override
|
|
|
19574 |
public boolean equals(Object that) {
|
|
|
19575 |
if (that == null)
|
|
|
19576 |
return false;
|
|
|
19577 |
if (that instanceof scanForOursExternalSaleReturn_result)
|
|
|
19578 |
return this.equals((scanForOursExternalSaleReturn_result)that);
|
|
|
19579 |
return false;
|
|
|
19580 |
}
|
|
|
19581 |
|
|
|
19582 |
public boolean equals(scanForOursExternalSaleReturn_result that) {
|
|
|
19583 |
if (that == null)
|
|
|
19584 |
return false;
|
|
|
19585 |
|
|
|
19586 |
return true;
|
|
|
19587 |
}
|
|
|
19588 |
|
|
|
19589 |
@Override
|
|
|
19590 |
public int hashCode() {
|
|
|
19591 |
return 0;
|
|
|
19592 |
}
|
|
|
19593 |
|
|
|
19594 |
public int compareTo(scanForOursExternalSaleReturn_result other) {
|
|
|
19595 |
if (!getClass().equals(other.getClass())) {
|
|
|
19596 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
19597 |
}
|
|
|
19598 |
|
|
|
19599 |
int lastComparison = 0;
|
|
|
19600 |
scanForOursExternalSaleReturn_result typedOther = (scanForOursExternalSaleReturn_result)other;
|
|
|
19601 |
|
|
|
19602 |
return 0;
|
|
|
19603 |
}
|
|
|
19604 |
|
|
|
19605 |
public _Fields fieldForId(int fieldId) {
|
|
|
19606 |
return _Fields.findByThriftId(fieldId);
|
|
|
19607 |
}
|
|
|
19608 |
|
|
|
19609 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
19610 |
org.apache.thrift.protocol.TField field;
|
|
|
19611 |
iprot.readStructBegin();
|
|
|
19612 |
while (true)
|
|
|
19613 |
{
|
|
|
19614 |
field = iprot.readFieldBegin();
|
|
|
19615 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
19616 |
break;
|
|
|
19617 |
}
|
|
|
19618 |
switch (field.id) {
|
|
|
19619 |
default:
|
|
|
19620 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19621 |
}
|
|
|
19622 |
iprot.readFieldEnd();
|
|
|
19623 |
}
|
|
|
19624 |
iprot.readStructEnd();
|
|
|
19625 |
validate();
|
|
|
19626 |
}
|
|
|
19627 |
|
|
|
19628 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
19629 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
19630 |
|
|
|
19631 |
oprot.writeFieldStop();
|
|
|
19632 |
oprot.writeStructEnd();
|
|
|
19633 |
}
|
|
|
19634 |
|
|
|
19635 |
@Override
|
|
|
19636 |
public String toString() {
|
|
|
19637 |
StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_result(");
|
|
|
19638 |
boolean first = true;
|
|
|
19639 |
|
|
|
19640 |
sb.append(")");
|
|
|
19641 |
return sb.toString();
|
|
|
19642 |
}
|
|
|
19643 |
|
|
|
19644 |
public void validate() throws org.apache.thrift.TException {
|
|
|
19645 |
// check for required fields
|
|
|
19646 |
}
|
|
|
19647 |
|
|
|
19648 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
19649 |
try {
|
|
|
19650 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
19651 |
} catch (org.apache.thrift.TException te) {
|
|
|
19652 |
throw new java.io.IOException(te);
|
|
|
19653 |
}
|
|
|
19654 |
}
|
|
|
19655 |
|
|
|
19656 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
19657 |
try {
|
|
|
19658 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
19659 |
} catch (org.apache.thrift.TException te) {
|
|
|
19660 |
throw new java.io.IOException(te);
|
|
|
19661 |
}
|
|
|
19662 |
}
|
|
|
19663 |
|
|
|
19664 |
}
|
|
|
19665 |
|
| 6880 |
amar.kumar |
19666 |
public static class getMovementNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_args, getMovementNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
19667 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_args");
|
|
|
19668 |
|
|
|
19669 |
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);
|
|
|
19670 |
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);
|
|
|
19671 |
|
|
|
19672 |
private long startDate; // required
|
|
|
19673 |
private long endDate; // required
|
|
|
19674 |
|
|
|
19675 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
19676 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
19677 |
START_DATE((short)1, "startDate"),
|
|
|
19678 |
END_DATE((short)2, "endDate");
|
|
|
19679 |
|
|
|
19680 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
19681 |
|
|
|
19682 |
static {
|
|
|
19683 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
19684 |
byName.put(field.getFieldName(), field);
|
|
|
19685 |
}
|
|
|
19686 |
}
|
|
|
19687 |
|
|
|
19688 |
/**
|
|
|
19689 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
19690 |
*/
|
|
|
19691 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
19692 |
switch(fieldId) {
|
|
|
19693 |
case 1: // START_DATE
|
|
|
19694 |
return START_DATE;
|
|
|
19695 |
case 2: // END_DATE
|
|
|
19696 |
return END_DATE;
|
|
|
19697 |
default:
|
|
|
19698 |
return null;
|
|
|
19699 |
}
|
|
|
19700 |
}
|
|
|
19701 |
|
|
|
19702 |
/**
|
|
|
19703 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
19704 |
* if it is not found.
|
|
|
19705 |
*/
|
|
|
19706 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
19707 |
_Fields fields = findByThriftId(fieldId);
|
|
|
19708 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
19709 |
return fields;
|
|
|
19710 |
}
|
|
|
19711 |
|
|
|
19712 |
/**
|
|
|
19713 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
19714 |
*/
|
|
|
19715 |
public static _Fields findByName(String name) {
|
|
|
19716 |
return byName.get(name);
|
|
|
19717 |
}
|
|
|
19718 |
|
|
|
19719 |
private final short _thriftId;
|
|
|
19720 |
private final String _fieldName;
|
|
|
19721 |
|
|
|
19722 |
_Fields(short thriftId, String fieldName) {
|
|
|
19723 |
_thriftId = thriftId;
|
|
|
19724 |
_fieldName = fieldName;
|
|
|
19725 |
}
|
|
|
19726 |
|
|
|
19727 |
public short getThriftFieldId() {
|
|
|
19728 |
return _thriftId;
|
|
|
19729 |
}
|
|
|
19730 |
|
|
|
19731 |
public String getFieldName() {
|
|
|
19732 |
return _fieldName;
|
|
|
19733 |
}
|
|
|
19734 |
}
|
|
|
19735 |
|
|
|
19736 |
// isset id assignments
|
|
|
19737 |
private static final int __STARTDATE_ISSET_ID = 0;
|
|
|
19738 |
private static final int __ENDDATE_ISSET_ID = 1;
|
|
|
19739 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
19740 |
|
|
|
19741 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
19742 |
static {
|
|
|
19743 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
19744 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
19745 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
19746 |
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
19747 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
19748 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
19749 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
19750 |
}
|
|
|
19751 |
|
|
|
19752 |
public getMovementNonSerializedInventoryByScans_args() {
|
|
|
19753 |
}
|
|
|
19754 |
|
|
|
19755 |
public getMovementNonSerializedInventoryByScans_args(
|
|
|
19756 |
long startDate,
|
|
|
19757 |
long endDate)
|
|
|
19758 |
{
|
|
|
19759 |
this();
|
|
|
19760 |
this.startDate = startDate;
|
|
|
19761 |
setStartDateIsSet(true);
|
|
|
19762 |
this.endDate = endDate;
|
|
|
19763 |
setEndDateIsSet(true);
|
|
|
19764 |
}
|
|
|
19765 |
|
|
|
19766 |
/**
|
|
|
19767 |
* Performs a deep copy on <i>other</i>.
|
|
|
19768 |
*/
|
|
|
19769 |
public getMovementNonSerializedInventoryByScans_args(getMovementNonSerializedInventoryByScans_args other) {
|
|
|
19770 |
__isset_bit_vector.clear();
|
|
|
19771 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
19772 |
this.startDate = other.startDate;
|
|
|
19773 |
this.endDate = other.endDate;
|
|
|
19774 |
}
|
|
|
19775 |
|
|
|
19776 |
public getMovementNonSerializedInventoryByScans_args deepCopy() {
|
|
|
19777 |
return new getMovementNonSerializedInventoryByScans_args(this);
|
|
|
19778 |
}
|
|
|
19779 |
|
|
|
19780 |
@Override
|
|
|
19781 |
public void clear() {
|
|
|
19782 |
setStartDateIsSet(false);
|
|
|
19783 |
this.startDate = 0;
|
|
|
19784 |
setEndDateIsSet(false);
|
|
|
19785 |
this.endDate = 0;
|
|
|
19786 |
}
|
|
|
19787 |
|
|
|
19788 |
public long getStartDate() {
|
|
|
19789 |
return this.startDate;
|
|
|
19790 |
}
|
|
|
19791 |
|
|
|
19792 |
public void setStartDate(long startDate) {
|
|
|
19793 |
this.startDate = startDate;
|
|
|
19794 |
setStartDateIsSet(true);
|
|
|
19795 |
}
|
|
|
19796 |
|
|
|
19797 |
public void unsetStartDate() {
|
|
|
19798 |
__isset_bit_vector.clear(__STARTDATE_ISSET_ID);
|
|
|
19799 |
}
|
|
|
19800 |
|
|
|
19801 |
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
|
|
|
19802 |
public boolean isSetStartDate() {
|
|
|
19803 |
return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
|
|
|
19804 |
}
|
|
|
19805 |
|
|
|
19806 |
public void setStartDateIsSet(boolean value) {
|
|
|
19807 |
__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
|
|
|
19808 |
}
|
|
|
19809 |
|
|
|
19810 |
public long getEndDate() {
|
|
|
19811 |
return this.endDate;
|
|
|
19812 |
}
|
|
|
19813 |
|
|
|
19814 |
public void setEndDate(long endDate) {
|
|
|
19815 |
this.endDate = endDate;
|
|
|
19816 |
setEndDateIsSet(true);
|
|
|
19817 |
}
|
|
|
19818 |
|
|
|
19819 |
public void unsetEndDate() {
|
|
|
19820 |
__isset_bit_vector.clear(__ENDDATE_ISSET_ID);
|
|
|
19821 |
}
|
|
|
19822 |
|
|
|
19823 |
/** Returns true if field endDate is set (has been assigned a value) and false otherwise */
|
|
|
19824 |
public boolean isSetEndDate() {
|
|
|
19825 |
return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
|
|
|
19826 |
}
|
|
|
19827 |
|
|
|
19828 |
public void setEndDateIsSet(boolean value) {
|
|
|
19829 |
__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
|
|
|
19830 |
}
|
|
|
19831 |
|
|
|
19832 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
19833 |
switch (field) {
|
|
|
19834 |
case START_DATE:
|
|
|
19835 |
if (value == null) {
|
|
|
19836 |
unsetStartDate();
|
|
|
19837 |
} else {
|
|
|
19838 |
setStartDate((Long)value);
|
|
|
19839 |
}
|
|
|
19840 |
break;
|
|
|
19841 |
|
|
|
19842 |
case END_DATE:
|
|
|
19843 |
if (value == null) {
|
|
|
19844 |
unsetEndDate();
|
|
|
19845 |
} else {
|
|
|
19846 |
setEndDate((Long)value);
|
|
|
19847 |
}
|
|
|
19848 |
break;
|
|
|
19849 |
|
|
|
19850 |
}
|
|
|
19851 |
}
|
|
|
19852 |
|
|
|
19853 |
public Object getFieldValue(_Fields field) {
|
|
|
19854 |
switch (field) {
|
|
|
19855 |
case START_DATE:
|
|
|
19856 |
return Long.valueOf(getStartDate());
|
|
|
19857 |
|
|
|
19858 |
case END_DATE:
|
|
|
19859 |
return Long.valueOf(getEndDate());
|
|
|
19860 |
|
|
|
19861 |
}
|
|
|
19862 |
throw new IllegalStateException();
|
|
|
19863 |
}
|
|
|
19864 |
|
|
|
19865 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
19866 |
public boolean isSet(_Fields field) {
|
|
|
19867 |
if (field == null) {
|
|
|
19868 |
throw new IllegalArgumentException();
|
|
|
19869 |
}
|
|
|
19870 |
|
|
|
19871 |
switch (field) {
|
|
|
19872 |
case START_DATE:
|
|
|
19873 |
return isSetStartDate();
|
|
|
19874 |
case END_DATE:
|
|
|
19875 |
return isSetEndDate();
|
|
|
19876 |
}
|
|
|
19877 |
throw new IllegalStateException();
|
|
|
19878 |
}
|
|
|
19879 |
|
|
|
19880 |
@Override
|
|
|
19881 |
public boolean equals(Object that) {
|
|
|
19882 |
if (that == null)
|
|
|
19883 |
return false;
|
|
|
19884 |
if (that instanceof getMovementNonSerializedInventoryByScans_args)
|
|
|
19885 |
return this.equals((getMovementNonSerializedInventoryByScans_args)that);
|
|
|
19886 |
return false;
|
|
|
19887 |
}
|
|
|
19888 |
|
|
|
19889 |
public boolean equals(getMovementNonSerializedInventoryByScans_args that) {
|
|
|
19890 |
if (that == null)
|
|
|
19891 |
return false;
|
|
|
19892 |
|
|
|
19893 |
boolean this_present_startDate = true;
|
|
|
19894 |
boolean that_present_startDate = true;
|
|
|
19895 |
if (this_present_startDate || that_present_startDate) {
|
|
|
19896 |
if (!(this_present_startDate && that_present_startDate))
|
|
|
19897 |
return false;
|
|
|
19898 |
if (this.startDate != that.startDate)
|
|
|
19899 |
return false;
|
|
|
19900 |
}
|
|
|
19901 |
|
|
|
19902 |
boolean this_present_endDate = true;
|
|
|
19903 |
boolean that_present_endDate = true;
|
|
|
19904 |
if (this_present_endDate || that_present_endDate) {
|
|
|
19905 |
if (!(this_present_endDate && that_present_endDate))
|
|
|
19906 |
return false;
|
|
|
19907 |
if (this.endDate != that.endDate)
|
|
|
19908 |
return false;
|
|
|
19909 |
}
|
|
|
19910 |
|
|
|
19911 |
return true;
|
|
|
19912 |
}
|
|
|
19913 |
|
|
|
19914 |
@Override
|
|
|
19915 |
public int hashCode() {
|
|
|
19916 |
return 0;
|
|
|
19917 |
}
|
|
|
19918 |
|
|
|
19919 |
public int compareTo(getMovementNonSerializedInventoryByScans_args other) {
|
|
|
19920 |
if (!getClass().equals(other.getClass())) {
|
|
|
19921 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
19922 |
}
|
|
|
19923 |
|
|
|
19924 |
int lastComparison = 0;
|
|
|
19925 |
getMovementNonSerializedInventoryByScans_args typedOther = (getMovementNonSerializedInventoryByScans_args)other;
|
|
|
19926 |
|
|
|
19927 |
lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
|
|
|
19928 |
if (lastComparison != 0) {
|
|
|
19929 |
return lastComparison;
|
|
|
19930 |
}
|
|
|
19931 |
if (isSetStartDate()) {
|
|
|
19932 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
|
|
|
19933 |
if (lastComparison != 0) {
|
|
|
19934 |
return lastComparison;
|
|
|
19935 |
}
|
|
|
19936 |
}
|
|
|
19937 |
lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
|
|
|
19938 |
if (lastComparison != 0) {
|
|
|
19939 |
return lastComparison;
|
|
|
19940 |
}
|
|
|
19941 |
if (isSetEndDate()) {
|
|
|
19942 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
|
|
|
19943 |
if (lastComparison != 0) {
|
|
|
19944 |
return lastComparison;
|
|
|
19945 |
}
|
|
|
19946 |
}
|
|
|
19947 |
return 0;
|
|
|
19948 |
}
|
|
|
19949 |
|
|
|
19950 |
public _Fields fieldForId(int fieldId) {
|
|
|
19951 |
return _Fields.findByThriftId(fieldId);
|
|
|
19952 |
}
|
|
|
19953 |
|
|
|
19954 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
19955 |
org.apache.thrift.protocol.TField field;
|
|
|
19956 |
iprot.readStructBegin();
|
|
|
19957 |
while (true)
|
|
|
19958 |
{
|
|
|
19959 |
field = iprot.readFieldBegin();
|
|
|
19960 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
19961 |
break;
|
|
|
19962 |
}
|
|
|
19963 |
switch (field.id) {
|
|
|
19964 |
case 1: // START_DATE
|
|
|
19965 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
19966 |
this.startDate = iprot.readI64();
|
|
|
19967 |
setStartDateIsSet(true);
|
|
|
19968 |
} else {
|
|
|
19969 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19970 |
}
|
|
|
19971 |
break;
|
|
|
19972 |
case 2: // END_DATE
|
|
|
19973 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
19974 |
this.endDate = iprot.readI64();
|
|
|
19975 |
setEndDateIsSet(true);
|
|
|
19976 |
} else {
|
|
|
19977 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19978 |
}
|
|
|
19979 |
break;
|
|
|
19980 |
default:
|
|
|
19981 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19982 |
}
|
|
|
19983 |
iprot.readFieldEnd();
|
|
|
19984 |
}
|
|
|
19985 |
iprot.readStructEnd();
|
|
|
19986 |
validate();
|
|
|
19987 |
}
|
|
|
19988 |
|
|
|
19989 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
19990 |
validate();
|
|
|
19991 |
|
|
|
19992 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
19993 |
oprot.writeFieldBegin(START_DATE_FIELD_DESC);
|
|
|
19994 |
oprot.writeI64(this.startDate);
|
|
|
19995 |
oprot.writeFieldEnd();
|
|
|
19996 |
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
|
|
|
19997 |
oprot.writeI64(this.endDate);
|
|
|
19998 |
oprot.writeFieldEnd();
|
|
|
19999 |
oprot.writeFieldStop();
|
|
|
20000 |
oprot.writeStructEnd();
|
|
|
20001 |
}
|
|
|
20002 |
|
|
|
20003 |
@Override
|
|
|
20004 |
public String toString() {
|
|
|
20005 |
StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_args(");
|
|
|
20006 |
boolean first = true;
|
|
|
20007 |
|
|
|
20008 |
sb.append("startDate:");
|
|
|
20009 |
sb.append(this.startDate);
|
|
|
20010 |
first = false;
|
|
|
20011 |
if (!first) sb.append(", ");
|
|
|
20012 |
sb.append("endDate:");
|
|
|
20013 |
sb.append(this.endDate);
|
|
|
20014 |
first = false;
|
|
|
20015 |
sb.append(")");
|
|
|
20016 |
return sb.toString();
|
|
|
20017 |
}
|
|
|
20018 |
|
|
|
20019 |
public void validate() throws org.apache.thrift.TException {
|
|
|
20020 |
// check for required fields
|
|
|
20021 |
}
|
|
|
20022 |
|
|
|
20023 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
20024 |
try {
|
|
|
20025 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
20026 |
} catch (org.apache.thrift.TException te) {
|
|
|
20027 |
throw new java.io.IOException(te);
|
|
|
20028 |
}
|
|
|
20029 |
}
|
|
|
20030 |
|
|
|
20031 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
20032 |
try {
|
|
|
20033 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
20034 |
__isset_bit_vector = new BitSet(1);
|
|
|
20035 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
20036 |
} catch (org.apache.thrift.TException te) {
|
|
|
20037 |
throw new java.io.IOException(te);
|
|
|
20038 |
}
|
|
|
20039 |
}
|
|
|
20040 |
|
|
|
20041 |
}
|
|
|
20042 |
|
|
|
20043 |
public static class getMovementNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_result, getMovementNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
20044 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_result");
|
|
|
20045 |
|
|
|
20046 |
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);
|
|
|
20047 |
|
|
|
20048 |
private List<InventoryMovement> success; // required
|
|
|
20049 |
|
|
|
20050 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
20051 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
20052 |
SUCCESS((short)0, "success");
|
|
|
20053 |
|
|
|
20054 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
20055 |
|
|
|
20056 |
static {
|
|
|
20057 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
20058 |
byName.put(field.getFieldName(), field);
|
|
|
20059 |
}
|
|
|
20060 |
}
|
|
|
20061 |
|
|
|
20062 |
/**
|
|
|
20063 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
20064 |
*/
|
|
|
20065 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
20066 |
switch(fieldId) {
|
|
|
20067 |
case 0: // SUCCESS
|
|
|
20068 |
return SUCCESS;
|
|
|
20069 |
default:
|
|
|
20070 |
return null;
|
|
|
20071 |
}
|
|
|
20072 |
}
|
|
|
20073 |
|
|
|
20074 |
/**
|
|
|
20075 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
20076 |
* if it is not found.
|
|
|
20077 |
*/
|
|
|
20078 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
20079 |
_Fields fields = findByThriftId(fieldId);
|
|
|
20080 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
20081 |
return fields;
|
|
|
20082 |
}
|
|
|
20083 |
|
|
|
20084 |
/**
|
|
|
20085 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
20086 |
*/
|
|
|
20087 |
public static _Fields findByName(String name) {
|
|
|
20088 |
return byName.get(name);
|
|
|
20089 |
}
|
|
|
20090 |
|
|
|
20091 |
private final short _thriftId;
|
|
|
20092 |
private final String _fieldName;
|
|
|
20093 |
|
|
|
20094 |
_Fields(short thriftId, String fieldName) {
|
|
|
20095 |
_thriftId = thriftId;
|
|
|
20096 |
_fieldName = fieldName;
|
|
|
20097 |
}
|
|
|
20098 |
|
|
|
20099 |
public short getThriftFieldId() {
|
|
|
20100 |
return _thriftId;
|
|
|
20101 |
}
|
|
|
20102 |
|
|
|
20103 |
public String getFieldName() {
|
|
|
20104 |
return _fieldName;
|
|
|
20105 |
}
|
|
|
20106 |
}
|
|
|
20107 |
|
|
|
20108 |
// isset id assignments
|
|
|
20109 |
|
|
|
20110 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
20111 |
static {
|
|
|
20112 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
20113 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
20114 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
20115 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
|
|
|
20116 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
20117 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
20118 |
}
|
|
|
20119 |
|
|
|
20120 |
public getMovementNonSerializedInventoryByScans_result() {
|
|
|
20121 |
}
|
|
|
20122 |
|
|
|
20123 |
public getMovementNonSerializedInventoryByScans_result(
|
|
|
20124 |
List<InventoryMovement> success)
|
|
|
20125 |
{
|
|
|
20126 |
this();
|
|
|
20127 |
this.success = success;
|
|
|
20128 |
}
|
|
|
20129 |
|
|
|
20130 |
/**
|
|
|
20131 |
* Performs a deep copy on <i>other</i>.
|
|
|
20132 |
*/
|
|
|
20133 |
public getMovementNonSerializedInventoryByScans_result(getMovementNonSerializedInventoryByScans_result other) {
|
|
|
20134 |
if (other.isSetSuccess()) {
|
|
|
20135 |
List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
|
|
|
20136 |
for (InventoryMovement other_element : other.success) {
|
|
|
20137 |
__this__success.add(new InventoryMovement(other_element));
|
|
|
20138 |
}
|
|
|
20139 |
this.success = __this__success;
|
|
|
20140 |
}
|
|
|
20141 |
}
|
|
|
20142 |
|
|
|
20143 |
public getMovementNonSerializedInventoryByScans_result deepCopy() {
|
|
|
20144 |
return new getMovementNonSerializedInventoryByScans_result(this);
|
|
|
20145 |
}
|
|
|
20146 |
|
|
|
20147 |
@Override
|
|
|
20148 |
public void clear() {
|
|
|
20149 |
this.success = null;
|
|
|
20150 |
}
|
|
|
20151 |
|
|
|
20152 |
public int getSuccessSize() {
|
|
|
20153 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
20154 |
}
|
|
|
20155 |
|
|
|
20156 |
public java.util.Iterator<InventoryMovement> getSuccessIterator() {
|
|
|
20157 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
20158 |
}
|
|
|
20159 |
|
|
|
20160 |
public void addToSuccess(InventoryMovement elem) {
|
|
|
20161 |
if (this.success == null) {
|
|
|
20162 |
this.success = new ArrayList<InventoryMovement>();
|
|
|
20163 |
}
|
|
|
20164 |
this.success.add(elem);
|
|
|
20165 |
}
|
|
|
20166 |
|
|
|
20167 |
public List<InventoryMovement> getSuccess() {
|
|
|
20168 |
return this.success;
|
|
|
20169 |
}
|
|
|
20170 |
|
|
|
20171 |
public void setSuccess(List<InventoryMovement> success) {
|
|
|
20172 |
this.success = success;
|
|
|
20173 |
}
|
|
|
20174 |
|
|
|
20175 |
public void unsetSuccess() {
|
|
|
20176 |
this.success = null;
|
|
|
20177 |
}
|
|
|
20178 |
|
|
|
20179 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
20180 |
public boolean isSetSuccess() {
|
|
|
20181 |
return this.success != null;
|
|
|
20182 |
}
|
|
|
20183 |
|
|
|
20184 |
public void setSuccessIsSet(boolean value) {
|
|
|
20185 |
if (!value) {
|
|
|
20186 |
this.success = null;
|
|
|
20187 |
}
|
|
|
20188 |
}
|
|
|
20189 |
|
|
|
20190 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
20191 |
switch (field) {
|
|
|
20192 |
case SUCCESS:
|
|
|
20193 |
if (value == null) {
|
|
|
20194 |
unsetSuccess();
|
|
|
20195 |
} else {
|
|
|
20196 |
setSuccess((List<InventoryMovement>)value);
|
|
|
20197 |
}
|
|
|
20198 |
break;
|
|
|
20199 |
|
|
|
20200 |
}
|
|
|
20201 |
}
|
|
|
20202 |
|
|
|
20203 |
public Object getFieldValue(_Fields field) {
|
|
|
20204 |
switch (field) {
|
|
|
20205 |
case SUCCESS:
|
|
|
20206 |
return getSuccess();
|
|
|
20207 |
|
|
|
20208 |
}
|
|
|
20209 |
throw new IllegalStateException();
|
|
|
20210 |
}
|
|
|
20211 |
|
|
|
20212 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
20213 |
public boolean isSet(_Fields field) {
|
|
|
20214 |
if (field == null) {
|
|
|
20215 |
throw new IllegalArgumentException();
|
|
|
20216 |
}
|
|
|
20217 |
|
|
|
20218 |
switch (field) {
|
|
|
20219 |
case SUCCESS:
|
|
|
20220 |
return isSetSuccess();
|
|
|
20221 |
}
|
|
|
20222 |
throw new IllegalStateException();
|
|
|
20223 |
}
|
|
|
20224 |
|
|
|
20225 |
@Override
|
|
|
20226 |
public boolean equals(Object that) {
|
|
|
20227 |
if (that == null)
|
|
|
20228 |
return false;
|
|
|
20229 |
if (that instanceof getMovementNonSerializedInventoryByScans_result)
|
|
|
20230 |
return this.equals((getMovementNonSerializedInventoryByScans_result)that);
|
|
|
20231 |
return false;
|
|
|
20232 |
}
|
|
|
20233 |
|
|
|
20234 |
public boolean equals(getMovementNonSerializedInventoryByScans_result that) {
|
|
|
20235 |
if (that == null)
|
|
|
20236 |
return false;
|
|
|
20237 |
|
|
|
20238 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
20239 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
20240 |
if (this_present_success || that_present_success) {
|
|
|
20241 |
if (!(this_present_success && that_present_success))
|
|
|
20242 |
return false;
|
|
|
20243 |
if (!this.success.equals(that.success))
|
|
|
20244 |
return false;
|
|
|
20245 |
}
|
|
|
20246 |
|
|
|
20247 |
return true;
|
|
|
20248 |
}
|
|
|
20249 |
|
|
|
20250 |
@Override
|
|
|
20251 |
public int hashCode() {
|
|
|
20252 |
return 0;
|
|
|
20253 |
}
|
|
|
20254 |
|
|
|
20255 |
public int compareTo(getMovementNonSerializedInventoryByScans_result other) {
|
|
|
20256 |
if (!getClass().equals(other.getClass())) {
|
|
|
20257 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
20258 |
}
|
|
|
20259 |
|
|
|
20260 |
int lastComparison = 0;
|
|
|
20261 |
getMovementNonSerializedInventoryByScans_result typedOther = (getMovementNonSerializedInventoryByScans_result)other;
|
|
|
20262 |
|
|
|
20263 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
20264 |
if (lastComparison != 0) {
|
|
|
20265 |
return lastComparison;
|
|
|
20266 |
}
|
|
|
20267 |
if (isSetSuccess()) {
|
|
|
20268 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
20269 |
if (lastComparison != 0) {
|
|
|
20270 |
return lastComparison;
|
|
|
20271 |
}
|
|
|
20272 |
}
|
|
|
20273 |
return 0;
|
|
|
20274 |
}
|
|
|
20275 |
|
|
|
20276 |
public _Fields fieldForId(int fieldId) {
|
|
|
20277 |
return _Fields.findByThriftId(fieldId);
|
|
|
20278 |
}
|
|
|
20279 |
|
|
|
20280 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
20281 |
org.apache.thrift.protocol.TField field;
|
|
|
20282 |
iprot.readStructBegin();
|
|
|
20283 |
while (true)
|
|
|
20284 |
{
|
|
|
20285 |
field = iprot.readFieldBegin();
|
|
|
20286 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
20287 |
break;
|
|
|
20288 |
}
|
|
|
20289 |
switch (field.id) {
|
|
|
20290 |
case 0: // SUCCESS
|
|
|
20291 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
20292 |
{
|
|
|
20293 |
org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
|
|
|
20294 |
this.success = new ArrayList<InventoryMovement>(_list56.size);
|
|
|
20295 |
for (int _i57 = 0; _i57 < _list56.size; ++_i57)
|
|
|
20296 |
{
|
|
|
20297 |
InventoryMovement _elem58; // required
|
|
|
20298 |
_elem58 = new InventoryMovement();
|
|
|
20299 |
_elem58.read(iprot);
|
|
|
20300 |
this.success.add(_elem58);
|
|
|
20301 |
}
|
|
|
20302 |
iprot.readListEnd();
|
|
|
20303 |
}
|
|
|
20304 |
} else {
|
|
|
20305 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
20306 |
}
|
|
|
20307 |
break;
|
|
|
20308 |
default:
|
|
|
20309 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
20310 |
}
|
|
|
20311 |
iprot.readFieldEnd();
|
|
|
20312 |
}
|
|
|
20313 |
iprot.readStructEnd();
|
|
|
20314 |
validate();
|
|
|
20315 |
}
|
|
|
20316 |
|
|
|
20317 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
20318 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
20319 |
|
|
|
20320 |
if (this.isSetSuccess()) {
|
|
|
20321 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
20322 |
{
|
|
|
20323 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
20324 |
for (InventoryMovement _iter59 : this.success)
|
|
|
20325 |
{
|
|
|
20326 |
_iter59.write(oprot);
|
|
|
20327 |
}
|
|
|
20328 |
oprot.writeListEnd();
|
|
|
20329 |
}
|
|
|
20330 |
oprot.writeFieldEnd();
|
|
|
20331 |
}
|
|
|
20332 |
oprot.writeFieldStop();
|
|
|
20333 |
oprot.writeStructEnd();
|
|
|
20334 |
}
|
|
|
20335 |
|
|
|
20336 |
@Override
|
|
|
20337 |
public String toString() {
|
|
|
20338 |
StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_result(");
|
|
|
20339 |
boolean first = true;
|
|
|
20340 |
|
|
|
20341 |
sb.append("success:");
|
|
|
20342 |
if (this.success == null) {
|
|
|
20343 |
sb.append("null");
|
|
|
20344 |
} else {
|
|
|
20345 |
sb.append(this.success);
|
|
|
20346 |
}
|
|
|
20347 |
first = false;
|
|
|
20348 |
sb.append(")");
|
|
|
20349 |
return sb.toString();
|
|
|
20350 |
}
|
|
|
20351 |
|
|
|
20352 |
public void validate() throws org.apache.thrift.TException {
|
|
|
20353 |
// check for required fields
|
|
|
20354 |
}
|
|
|
20355 |
|
|
|
20356 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
20357 |
try {
|
|
|
20358 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
20359 |
} catch (org.apache.thrift.TException te) {
|
|
|
20360 |
throw new java.io.IOException(te);
|
|
|
20361 |
}
|
|
|
20362 |
}
|
|
|
20363 |
|
|
|
20364 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
20365 |
try {
|
|
|
20366 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
20367 |
} catch (org.apache.thrift.TException te) {
|
|
|
20368 |
throw new java.io.IOException(te);
|
|
|
20369 |
}
|
|
|
20370 |
}
|
|
|
20371 |
|
|
|
20372 |
}
|
|
|
20373 |
|
|
|
20374 |
public static class getMovementSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_args, getMovementSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
20375 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_args");
|
|
|
20376 |
|
|
|
20377 |
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);
|
|
|
20378 |
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);
|
|
|
20379 |
|
|
|
20380 |
private long startDate; // required
|
|
|
20381 |
private long endDate; // required
|
|
|
20382 |
|
|
|
20383 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
20384 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
20385 |
START_DATE((short)1, "startDate"),
|
|
|
20386 |
END_DATE((short)2, "endDate");
|
|
|
20387 |
|
|
|
20388 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
20389 |
|
|
|
20390 |
static {
|
|
|
20391 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
20392 |
byName.put(field.getFieldName(), field);
|
|
|
20393 |
}
|
|
|
20394 |
}
|
|
|
20395 |
|
|
|
20396 |
/**
|
|
|
20397 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
20398 |
*/
|
|
|
20399 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
20400 |
switch(fieldId) {
|
|
|
20401 |
case 1: // START_DATE
|
|
|
20402 |
return START_DATE;
|
|
|
20403 |
case 2: // END_DATE
|
|
|
20404 |
return END_DATE;
|
|
|
20405 |
default:
|
|
|
20406 |
return null;
|
|
|
20407 |
}
|
|
|
20408 |
}
|
|
|
20409 |
|
|
|
20410 |
/**
|
|
|
20411 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
20412 |
* if it is not found.
|
|
|
20413 |
*/
|
|
|
20414 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
20415 |
_Fields fields = findByThriftId(fieldId);
|
|
|
20416 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
20417 |
return fields;
|
|
|
20418 |
}
|
|
|
20419 |
|
|
|
20420 |
/**
|
|
|
20421 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
20422 |
*/
|
|
|
20423 |
public static _Fields findByName(String name) {
|
|
|
20424 |
return byName.get(name);
|
|
|
20425 |
}
|
|
|
20426 |
|
|
|
20427 |
private final short _thriftId;
|
|
|
20428 |
private final String _fieldName;
|
|
|
20429 |
|
|
|
20430 |
_Fields(short thriftId, String fieldName) {
|
|
|
20431 |
_thriftId = thriftId;
|
|
|
20432 |
_fieldName = fieldName;
|
|
|
20433 |
}
|
|
|
20434 |
|
|
|
20435 |
public short getThriftFieldId() {
|
|
|
20436 |
return _thriftId;
|
|
|
20437 |
}
|
|
|
20438 |
|
|
|
20439 |
public String getFieldName() {
|
|
|
20440 |
return _fieldName;
|
|
|
20441 |
}
|
|
|
20442 |
}
|
|
|
20443 |
|
|
|
20444 |
// isset id assignments
|
|
|
20445 |
private static final int __STARTDATE_ISSET_ID = 0;
|
|
|
20446 |
private static final int __ENDDATE_ISSET_ID = 1;
|
|
|
20447 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
20448 |
|
|
|
20449 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
20450 |
static {
|
|
|
20451 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
20452 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
20453 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
20454 |
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
20455 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
20456 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
20457 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
20458 |
}
|
|
|
20459 |
|
|
|
20460 |
public getMovementSerializedInventoryByScans_args() {
|
|
|
20461 |
}
|
|
|
20462 |
|
|
|
20463 |
public getMovementSerializedInventoryByScans_args(
|
|
|
20464 |
long startDate,
|
|
|
20465 |
long endDate)
|
|
|
20466 |
{
|
|
|
20467 |
this();
|
|
|
20468 |
this.startDate = startDate;
|
|
|
20469 |
setStartDateIsSet(true);
|
|
|
20470 |
this.endDate = endDate;
|
|
|
20471 |
setEndDateIsSet(true);
|
|
|
20472 |
}
|
|
|
20473 |
|
|
|
20474 |
/**
|
|
|
20475 |
* Performs a deep copy on <i>other</i>.
|
|
|
20476 |
*/
|
|
|
20477 |
public getMovementSerializedInventoryByScans_args(getMovementSerializedInventoryByScans_args other) {
|
|
|
20478 |
__isset_bit_vector.clear();
|
|
|
20479 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
20480 |
this.startDate = other.startDate;
|
|
|
20481 |
this.endDate = other.endDate;
|
|
|
20482 |
}
|
|
|
20483 |
|
|
|
20484 |
public getMovementSerializedInventoryByScans_args deepCopy() {
|
|
|
20485 |
return new getMovementSerializedInventoryByScans_args(this);
|
|
|
20486 |
}
|
|
|
20487 |
|
|
|
20488 |
@Override
|
|
|
20489 |
public void clear() {
|
|
|
20490 |
setStartDateIsSet(false);
|
|
|
20491 |
this.startDate = 0;
|
|
|
20492 |
setEndDateIsSet(false);
|
|
|
20493 |
this.endDate = 0;
|
|
|
20494 |
}
|
|
|
20495 |
|
|
|
20496 |
public long getStartDate() {
|
|
|
20497 |
return this.startDate;
|
|
|
20498 |
}
|
|
|
20499 |
|
|
|
20500 |
public void setStartDate(long startDate) {
|
|
|
20501 |
this.startDate = startDate;
|
|
|
20502 |
setStartDateIsSet(true);
|
|
|
20503 |
}
|
|
|
20504 |
|
|
|
20505 |
public void unsetStartDate() {
|
|
|
20506 |
__isset_bit_vector.clear(__STARTDATE_ISSET_ID);
|
|
|
20507 |
}
|
|
|
20508 |
|
|
|
20509 |
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
|
|
|
20510 |
public boolean isSetStartDate() {
|
|
|
20511 |
return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
|
|
|
20512 |
}
|
|
|
20513 |
|
|
|
20514 |
public void setStartDateIsSet(boolean value) {
|
|
|
20515 |
__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
|
|
|
20516 |
}
|
|
|
20517 |
|
|
|
20518 |
public long getEndDate() {
|
|
|
20519 |
return this.endDate;
|
|
|
20520 |
}
|
|
|
20521 |
|
|
|
20522 |
public void setEndDate(long endDate) {
|
|
|
20523 |
this.endDate = endDate;
|
|
|
20524 |
setEndDateIsSet(true);
|
|
|
20525 |
}
|
|
|
20526 |
|
|
|
20527 |
public void unsetEndDate() {
|
|
|
20528 |
__isset_bit_vector.clear(__ENDDATE_ISSET_ID);
|
|
|
20529 |
}
|
|
|
20530 |
|
|
|
20531 |
/** Returns true if field endDate is set (has been assigned a value) and false otherwise */
|
|
|
20532 |
public boolean isSetEndDate() {
|
|
|
20533 |
return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
|
|
|
20534 |
}
|
|
|
20535 |
|
|
|
20536 |
public void setEndDateIsSet(boolean value) {
|
|
|
20537 |
__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
|
|
|
20538 |
}
|
|
|
20539 |
|
|
|
20540 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
20541 |
switch (field) {
|
|
|
20542 |
case START_DATE:
|
|
|
20543 |
if (value == null) {
|
|
|
20544 |
unsetStartDate();
|
|
|
20545 |
} else {
|
|
|
20546 |
setStartDate((Long)value);
|
|
|
20547 |
}
|
|
|
20548 |
break;
|
|
|
20549 |
|
|
|
20550 |
case END_DATE:
|
|
|
20551 |
if (value == null) {
|
|
|
20552 |
unsetEndDate();
|
|
|
20553 |
} else {
|
|
|
20554 |
setEndDate((Long)value);
|
|
|
20555 |
}
|
|
|
20556 |
break;
|
|
|
20557 |
|
|
|
20558 |
}
|
|
|
20559 |
}
|
|
|
20560 |
|
|
|
20561 |
public Object getFieldValue(_Fields field) {
|
|
|
20562 |
switch (field) {
|
|
|
20563 |
case START_DATE:
|
|
|
20564 |
return Long.valueOf(getStartDate());
|
|
|
20565 |
|
|
|
20566 |
case END_DATE:
|
|
|
20567 |
return Long.valueOf(getEndDate());
|
|
|
20568 |
|
|
|
20569 |
}
|
|
|
20570 |
throw new IllegalStateException();
|
|
|
20571 |
}
|
|
|
20572 |
|
|
|
20573 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
20574 |
public boolean isSet(_Fields field) {
|
|
|
20575 |
if (field == null) {
|
|
|
20576 |
throw new IllegalArgumentException();
|
|
|
20577 |
}
|
|
|
20578 |
|
|
|
20579 |
switch (field) {
|
|
|
20580 |
case START_DATE:
|
|
|
20581 |
return isSetStartDate();
|
|
|
20582 |
case END_DATE:
|
|
|
20583 |
return isSetEndDate();
|
|
|
20584 |
}
|
|
|
20585 |
throw new IllegalStateException();
|
|
|
20586 |
}
|
|
|
20587 |
|
|
|
20588 |
@Override
|
|
|
20589 |
public boolean equals(Object that) {
|
|
|
20590 |
if (that == null)
|
|
|
20591 |
return false;
|
|
|
20592 |
if (that instanceof getMovementSerializedInventoryByScans_args)
|
|
|
20593 |
return this.equals((getMovementSerializedInventoryByScans_args)that);
|
|
|
20594 |
return false;
|
|
|
20595 |
}
|
|
|
20596 |
|
|
|
20597 |
public boolean equals(getMovementSerializedInventoryByScans_args that) {
|
|
|
20598 |
if (that == null)
|
|
|
20599 |
return false;
|
|
|
20600 |
|
|
|
20601 |
boolean this_present_startDate = true;
|
|
|
20602 |
boolean that_present_startDate = true;
|
|
|
20603 |
if (this_present_startDate || that_present_startDate) {
|
|
|
20604 |
if (!(this_present_startDate && that_present_startDate))
|
|
|
20605 |
return false;
|
|
|
20606 |
if (this.startDate != that.startDate)
|
|
|
20607 |
return false;
|
|
|
20608 |
}
|
|
|
20609 |
|
|
|
20610 |
boolean this_present_endDate = true;
|
|
|
20611 |
boolean that_present_endDate = true;
|
|
|
20612 |
if (this_present_endDate || that_present_endDate) {
|
|
|
20613 |
if (!(this_present_endDate && that_present_endDate))
|
|
|
20614 |
return false;
|
|
|
20615 |
if (this.endDate != that.endDate)
|
|
|
20616 |
return false;
|
|
|
20617 |
}
|
|
|
20618 |
|
|
|
20619 |
return true;
|
|
|
20620 |
}
|
|
|
20621 |
|
|
|
20622 |
@Override
|
|
|
20623 |
public int hashCode() {
|
|
|
20624 |
return 0;
|
|
|
20625 |
}
|
|
|
20626 |
|
|
|
20627 |
public int compareTo(getMovementSerializedInventoryByScans_args other) {
|
|
|
20628 |
if (!getClass().equals(other.getClass())) {
|
|
|
20629 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
20630 |
}
|
|
|
20631 |
|
|
|
20632 |
int lastComparison = 0;
|
|
|
20633 |
getMovementSerializedInventoryByScans_args typedOther = (getMovementSerializedInventoryByScans_args)other;
|
|
|
20634 |
|
|
|
20635 |
lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
|
|
|
20636 |
if (lastComparison != 0) {
|
|
|
20637 |
return lastComparison;
|
|
|
20638 |
}
|
|
|
20639 |
if (isSetStartDate()) {
|
|
|
20640 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
|
|
|
20641 |
if (lastComparison != 0) {
|
|
|
20642 |
return lastComparison;
|
|
|
20643 |
}
|
|
|
20644 |
}
|
|
|
20645 |
lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
|
|
|
20646 |
if (lastComparison != 0) {
|
|
|
20647 |
return lastComparison;
|
|
|
20648 |
}
|
|
|
20649 |
if (isSetEndDate()) {
|
|
|
20650 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
|
|
|
20651 |
if (lastComparison != 0) {
|
|
|
20652 |
return lastComparison;
|
|
|
20653 |
}
|
|
|
20654 |
}
|
|
|
20655 |
return 0;
|
|
|
20656 |
}
|
|
|
20657 |
|
|
|
20658 |
public _Fields fieldForId(int fieldId) {
|
|
|
20659 |
return _Fields.findByThriftId(fieldId);
|
|
|
20660 |
}
|
|
|
20661 |
|
|
|
20662 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
20663 |
org.apache.thrift.protocol.TField field;
|
|
|
20664 |
iprot.readStructBegin();
|
|
|
20665 |
while (true)
|
|
|
20666 |
{
|
|
|
20667 |
field = iprot.readFieldBegin();
|
|
|
20668 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
20669 |
break;
|
|
|
20670 |
}
|
|
|
20671 |
switch (field.id) {
|
|
|
20672 |
case 1: // START_DATE
|
|
|
20673 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
20674 |
this.startDate = iprot.readI64();
|
|
|
20675 |
setStartDateIsSet(true);
|
|
|
20676 |
} else {
|
|
|
20677 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
20678 |
}
|
|
|
20679 |
break;
|
|
|
20680 |
case 2: // END_DATE
|
|
|
20681 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
20682 |
this.endDate = iprot.readI64();
|
|
|
20683 |
setEndDateIsSet(true);
|
|
|
20684 |
} else {
|
|
|
20685 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
20686 |
}
|
|
|
20687 |
break;
|
|
|
20688 |
default:
|
|
|
20689 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
20690 |
}
|
|
|
20691 |
iprot.readFieldEnd();
|
|
|
20692 |
}
|
|
|
20693 |
iprot.readStructEnd();
|
|
|
20694 |
validate();
|
|
|
20695 |
}
|
|
|
20696 |
|
|
|
20697 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
20698 |
validate();
|
|
|
20699 |
|
|
|
20700 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
20701 |
oprot.writeFieldBegin(START_DATE_FIELD_DESC);
|
|
|
20702 |
oprot.writeI64(this.startDate);
|
|
|
20703 |
oprot.writeFieldEnd();
|
|
|
20704 |
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
|
|
|
20705 |
oprot.writeI64(this.endDate);
|
|
|
20706 |
oprot.writeFieldEnd();
|
|
|
20707 |
oprot.writeFieldStop();
|
|
|
20708 |
oprot.writeStructEnd();
|
|
|
20709 |
}
|
|
|
20710 |
|
|
|
20711 |
@Override
|
|
|
20712 |
public String toString() {
|
|
|
20713 |
StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_args(");
|
|
|
20714 |
boolean first = true;
|
|
|
20715 |
|
|
|
20716 |
sb.append("startDate:");
|
|
|
20717 |
sb.append(this.startDate);
|
|
|
20718 |
first = false;
|
|
|
20719 |
if (!first) sb.append(", ");
|
|
|
20720 |
sb.append("endDate:");
|
|
|
20721 |
sb.append(this.endDate);
|
|
|
20722 |
first = false;
|
|
|
20723 |
sb.append(")");
|
|
|
20724 |
return sb.toString();
|
|
|
20725 |
}
|
|
|
20726 |
|
|
|
20727 |
public void validate() throws org.apache.thrift.TException {
|
|
|
20728 |
// check for required fields
|
|
|
20729 |
}
|
|
|
20730 |
|
|
|
20731 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
20732 |
try {
|
|
|
20733 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
20734 |
} catch (org.apache.thrift.TException te) {
|
|
|
20735 |
throw new java.io.IOException(te);
|
|
|
20736 |
}
|
|
|
20737 |
}
|
|
|
20738 |
|
|
|
20739 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
20740 |
try {
|
|
|
20741 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
20742 |
__isset_bit_vector = new BitSet(1);
|
|
|
20743 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
20744 |
} catch (org.apache.thrift.TException te) {
|
|
|
20745 |
throw new java.io.IOException(te);
|
|
|
20746 |
}
|
|
|
20747 |
}
|
|
|
20748 |
|
|
|
20749 |
}
|
|
|
20750 |
|
|
|
20751 |
public static class getMovementSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_result, getMovementSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
20752 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_result");
|
|
|
20753 |
|
|
|
20754 |
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);
|
|
|
20755 |
|
|
|
20756 |
private List<InventoryMovement> success; // required
|
|
|
20757 |
|
|
|
20758 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
20759 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
20760 |
SUCCESS((short)0, "success");
|
|
|
20761 |
|
|
|
20762 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
20763 |
|
|
|
20764 |
static {
|
|
|
20765 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
20766 |
byName.put(field.getFieldName(), field);
|
|
|
20767 |
}
|
|
|
20768 |
}
|
|
|
20769 |
|
|
|
20770 |
/**
|
|
|
20771 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
20772 |
*/
|
|
|
20773 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
20774 |
switch(fieldId) {
|
|
|
20775 |
case 0: // SUCCESS
|
|
|
20776 |
return SUCCESS;
|
|
|
20777 |
default:
|
|
|
20778 |
return null;
|
|
|
20779 |
}
|
|
|
20780 |
}
|
|
|
20781 |
|
|
|
20782 |
/**
|
|
|
20783 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
20784 |
* if it is not found.
|
|
|
20785 |
*/
|
|
|
20786 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
20787 |
_Fields fields = findByThriftId(fieldId);
|
|
|
20788 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
20789 |
return fields;
|
|
|
20790 |
}
|
|
|
20791 |
|
|
|
20792 |
/**
|
|
|
20793 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
20794 |
*/
|
|
|
20795 |
public static _Fields findByName(String name) {
|
|
|
20796 |
return byName.get(name);
|
|
|
20797 |
}
|
|
|
20798 |
|
|
|
20799 |
private final short _thriftId;
|
|
|
20800 |
private final String _fieldName;
|
|
|
20801 |
|
|
|
20802 |
_Fields(short thriftId, String fieldName) {
|
|
|
20803 |
_thriftId = thriftId;
|
|
|
20804 |
_fieldName = fieldName;
|
|
|
20805 |
}
|
|
|
20806 |
|
|
|
20807 |
public short getThriftFieldId() {
|
|
|
20808 |
return _thriftId;
|
|
|
20809 |
}
|
|
|
20810 |
|
|
|
20811 |
public String getFieldName() {
|
|
|
20812 |
return _fieldName;
|
|
|
20813 |
}
|
|
|
20814 |
}
|
|
|
20815 |
|
|
|
20816 |
// isset id assignments
|
|
|
20817 |
|
|
|
20818 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
20819 |
static {
|
|
|
20820 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
20821 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
20822 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
20823 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
|
|
|
20824 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
20825 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
20826 |
}
|
|
|
20827 |
|
|
|
20828 |
public getMovementSerializedInventoryByScans_result() {
|
|
|
20829 |
}
|
|
|
20830 |
|
|
|
20831 |
public getMovementSerializedInventoryByScans_result(
|
|
|
20832 |
List<InventoryMovement> success)
|
|
|
20833 |
{
|
|
|
20834 |
this();
|
|
|
20835 |
this.success = success;
|
|
|
20836 |
}
|
|
|
20837 |
|
|
|
20838 |
/**
|
|
|
20839 |
* Performs a deep copy on <i>other</i>.
|
|
|
20840 |
*/
|
|
|
20841 |
public getMovementSerializedInventoryByScans_result(getMovementSerializedInventoryByScans_result other) {
|
|
|
20842 |
if (other.isSetSuccess()) {
|
|
|
20843 |
List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
|
|
|
20844 |
for (InventoryMovement other_element : other.success) {
|
|
|
20845 |
__this__success.add(new InventoryMovement(other_element));
|
|
|
20846 |
}
|
|
|
20847 |
this.success = __this__success;
|
|
|
20848 |
}
|
|
|
20849 |
}
|
|
|
20850 |
|
|
|
20851 |
public getMovementSerializedInventoryByScans_result deepCopy() {
|
|
|
20852 |
return new getMovementSerializedInventoryByScans_result(this);
|
|
|
20853 |
}
|
|
|
20854 |
|
|
|
20855 |
@Override
|
|
|
20856 |
public void clear() {
|
|
|
20857 |
this.success = null;
|
|
|
20858 |
}
|
|
|
20859 |
|
|
|
20860 |
public int getSuccessSize() {
|
|
|
20861 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
20862 |
}
|
|
|
20863 |
|
|
|
20864 |
public java.util.Iterator<InventoryMovement> getSuccessIterator() {
|
|
|
20865 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
20866 |
}
|
|
|
20867 |
|
|
|
20868 |
public void addToSuccess(InventoryMovement elem) {
|
|
|
20869 |
if (this.success == null) {
|
|
|
20870 |
this.success = new ArrayList<InventoryMovement>();
|
|
|
20871 |
}
|
|
|
20872 |
this.success.add(elem);
|
|
|
20873 |
}
|
|
|
20874 |
|
|
|
20875 |
public List<InventoryMovement> getSuccess() {
|
|
|
20876 |
return this.success;
|
|
|
20877 |
}
|
|
|
20878 |
|
|
|
20879 |
public void setSuccess(List<InventoryMovement> success) {
|
|
|
20880 |
this.success = success;
|
|
|
20881 |
}
|
|
|
20882 |
|
|
|
20883 |
public void unsetSuccess() {
|
|
|
20884 |
this.success = null;
|
|
|
20885 |
}
|
|
|
20886 |
|
|
|
20887 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
20888 |
public boolean isSetSuccess() {
|
|
|
20889 |
return this.success != null;
|
|
|
20890 |
}
|
|
|
20891 |
|
|
|
20892 |
public void setSuccessIsSet(boolean value) {
|
|
|
20893 |
if (!value) {
|
|
|
20894 |
this.success = null;
|
|
|
20895 |
}
|
|
|
20896 |
}
|
|
|
20897 |
|
|
|
20898 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
20899 |
switch (field) {
|
|
|
20900 |
case SUCCESS:
|
|
|
20901 |
if (value == null) {
|
|
|
20902 |
unsetSuccess();
|
|
|
20903 |
} else {
|
|
|
20904 |
setSuccess((List<InventoryMovement>)value);
|
|
|
20905 |
}
|
|
|
20906 |
break;
|
|
|
20907 |
|
|
|
20908 |
}
|
|
|
20909 |
}
|
|
|
20910 |
|
|
|
20911 |
public Object getFieldValue(_Fields field) {
|
|
|
20912 |
switch (field) {
|
|
|
20913 |
case SUCCESS:
|
|
|
20914 |
return getSuccess();
|
|
|
20915 |
|
|
|
20916 |
}
|
|
|
20917 |
throw new IllegalStateException();
|
|
|
20918 |
}
|
|
|
20919 |
|
|
|
20920 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
20921 |
public boolean isSet(_Fields field) {
|
|
|
20922 |
if (field == null) {
|
|
|
20923 |
throw new IllegalArgumentException();
|
|
|
20924 |
}
|
|
|
20925 |
|
|
|
20926 |
switch (field) {
|
|
|
20927 |
case SUCCESS:
|
|
|
20928 |
return isSetSuccess();
|
|
|
20929 |
}
|
|
|
20930 |
throw new IllegalStateException();
|
|
|
20931 |
}
|
|
|
20932 |
|
|
|
20933 |
@Override
|
|
|
20934 |
public boolean equals(Object that) {
|
|
|
20935 |
if (that == null)
|
|
|
20936 |
return false;
|
|
|
20937 |
if (that instanceof getMovementSerializedInventoryByScans_result)
|
|
|
20938 |
return this.equals((getMovementSerializedInventoryByScans_result)that);
|
|
|
20939 |
return false;
|
|
|
20940 |
}
|
|
|
20941 |
|
|
|
20942 |
public boolean equals(getMovementSerializedInventoryByScans_result that) {
|
|
|
20943 |
if (that == null)
|
|
|
20944 |
return false;
|
|
|
20945 |
|
|
|
20946 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
20947 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
20948 |
if (this_present_success || that_present_success) {
|
|
|
20949 |
if (!(this_present_success && that_present_success))
|
|
|
20950 |
return false;
|
|
|
20951 |
if (!this.success.equals(that.success))
|
|
|
20952 |
return false;
|
|
|
20953 |
}
|
|
|
20954 |
|
|
|
20955 |
return true;
|
|
|
20956 |
}
|
|
|
20957 |
|
|
|
20958 |
@Override
|
|
|
20959 |
public int hashCode() {
|
|
|
20960 |
return 0;
|
|
|
20961 |
}
|
|
|
20962 |
|
|
|
20963 |
public int compareTo(getMovementSerializedInventoryByScans_result other) {
|
|
|
20964 |
if (!getClass().equals(other.getClass())) {
|
|
|
20965 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
20966 |
}
|
|
|
20967 |
|
|
|
20968 |
int lastComparison = 0;
|
|
|
20969 |
getMovementSerializedInventoryByScans_result typedOther = (getMovementSerializedInventoryByScans_result)other;
|
|
|
20970 |
|
|
|
20971 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
20972 |
if (lastComparison != 0) {
|
|
|
20973 |
return lastComparison;
|
|
|
20974 |
}
|
|
|
20975 |
if (isSetSuccess()) {
|
|
|
20976 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
20977 |
if (lastComparison != 0) {
|
|
|
20978 |
return lastComparison;
|
|
|
20979 |
}
|
|
|
20980 |
}
|
|
|
20981 |
return 0;
|
|
|
20982 |
}
|
|
|
20983 |
|
|
|
20984 |
public _Fields fieldForId(int fieldId) {
|
|
|
20985 |
return _Fields.findByThriftId(fieldId);
|
|
|
20986 |
}
|
|
|
20987 |
|
|
|
20988 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
20989 |
org.apache.thrift.protocol.TField field;
|
|
|
20990 |
iprot.readStructBegin();
|
|
|
20991 |
while (true)
|
|
|
20992 |
{
|
|
|
20993 |
field = iprot.readFieldBegin();
|
|
|
20994 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
20995 |
break;
|
|
|
20996 |
}
|
|
|
20997 |
switch (field.id) {
|
|
|
20998 |
case 0: // SUCCESS
|
|
|
20999 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
21000 |
{
|
|
|
21001 |
org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
|
|
|
21002 |
this.success = new ArrayList<InventoryMovement>(_list60.size);
|
|
|
21003 |
for (int _i61 = 0; _i61 < _list60.size; ++_i61)
|
|
|
21004 |
{
|
|
|
21005 |
InventoryMovement _elem62; // required
|
|
|
21006 |
_elem62 = new InventoryMovement();
|
|
|
21007 |
_elem62.read(iprot);
|
|
|
21008 |
this.success.add(_elem62);
|
|
|
21009 |
}
|
|
|
21010 |
iprot.readListEnd();
|
|
|
21011 |
}
|
|
|
21012 |
} else {
|
|
|
21013 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
21014 |
}
|
|
|
21015 |
break;
|
|
|
21016 |
default:
|
|
|
21017 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
21018 |
}
|
|
|
21019 |
iprot.readFieldEnd();
|
|
|
21020 |
}
|
|
|
21021 |
iprot.readStructEnd();
|
|
|
21022 |
validate();
|
|
|
21023 |
}
|
|
|
21024 |
|
|
|
21025 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
21026 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
21027 |
|
|
|
21028 |
if (this.isSetSuccess()) {
|
|
|
21029 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
21030 |
{
|
|
|
21031 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
21032 |
for (InventoryMovement _iter63 : this.success)
|
|
|
21033 |
{
|
|
|
21034 |
_iter63.write(oprot);
|
|
|
21035 |
}
|
|
|
21036 |
oprot.writeListEnd();
|
|
|
21037 |
}
|
|
|
21038 |
oprot.writeFieldEnd();
|
|
|
21039 |
}
|
|
|
21040 |
oprot.writeFieldStop();
|
|
|
21041 |
oprot.writeStructEnd();
|
|
|
21042 |
}
|
|
|
21043 |
|
|
|
21044 |
@Override
|
|
|
21045 |
public String toString() {
|
|
|
21046 |
StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_result(");
|
|
|
21047 |
boolean first = true;
|
|
|
21048 |
|
|
|
21049 |
sb.append("success:");
|
|
|
21050 |
if (this.success == null) {
|
|
|
21051 |
sb.append("null");
|
|
|
21052 |
} else {
|
|
|
21053 |
sb.append(this.success);
|
|
|
21054 |
}
|
|
|
21055 |
first = false;
|
|
|
21056 |
sb.append(")");
|
|
|
21057 |
return sb.toString();
|
|
|
21058 |
}
|
|
|
21059 |
|
|
|
21060 |
public void validate() throws org.apache.thrift.TException {
|
|
|
21061 |
// check for required fields
|
|
|
21062 |
}
|
|
|
21063 |
|
|
|
21064 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
21065 |
try {
|
|
|
21066 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
21067 |
} catch (org.apache.thrift.TException te) {
|
|
|
21068 |
throw new java.io.IOException(te);
|
|
|
21069 |
}
|
|
|
21070 |
}
|
|
|
21071 |
|
|
|
21072 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
21073 |
try {
|
|
|
21074 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
21075 |
} catch (org.apache.thrift.TException te) {
|
|
|
21076 |
throw new java.io.IOException(te);
|
|
|
21077 |
}
|
|
|
21078 |
}
|
|
|
21079 |
|
|
|
21080 |
}
|
|
|
21081 |
|
| 2820 |
chandransh |
21082 |
}
|