| 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 |
/**
|
| 7210 |
amar.kumar |
122 |
* Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation
|
|
|
123 |
*
|
|
|
124 |
* @param startDate
|
|
|
125 |
* @param endDate
|
|
|
126 |
*/
|
|
|
127 |
public List<DetailedPurchaseScan> getPurchaseScansByGrnDate(long startDate, long endDate) throws org.apache.thrift.TException;
|
|
|
128 |
|
|
|
129 |
/**
|
| 5496 |
mandeep.dh |
130 |
* Returns the invoices and the count of scans against on a given day.
|
|
|
131 |
*
|
|
|
132 |
* @param date
|
|
|
133 |
*/
|
|
|
134 |
public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException;
|
|
|
135 |
|
| 5620 |
mandeep.dh |
136 |
/**
|
|
|
137 |
* Returns inventory item for a given order
|
|
|
138 |
*
|
|
|
139 |
* @param orderId
|
|
|
140 |
*/
|
|
|
141 |
public InventoryItem getInventoryItemFromOrder(long orderId) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
142 |
|
| 5711 |
mandeep.dh |
143 |
/**
|
|
|
144 |
* Fetches the stock inventory age week-wise
|
|
|
145 |
*/
|
|
|
146 |
public List<InventoryAge> getInventoryAge() throws org.apache.thrift.TException;
|
|
|
147 |
|
| 6322 |
amar.kumar |
148 |
/**
|
|
|
149 |
* Fetches the scanRecords for a given item for a given time interval
|
|
|
150 |
*
|
|
|
151 |
* @param itemId
|
|
|
152 |
* @param fromDate
|
|
|
153 |
* @param toDate
|
|
|
154 |
*/
|
|
|
155 |
public List<Scan> getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException;
|
|
|
156 |
|
|
|
157 |
/**
|
|
|
158 |
* Fetches the scanRecords for a given serialNumber for a given time interval
|
|
|
159 |
*
|
|
|
160 |
* @param serialNumber
|
|
|
161 |
*/
|
|
|
162 |
public List<Scan> getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException;
|
|
|
163 |
|
| 6467 |
amar.kumar |
164 |
/**
|
| 6548 |
amar.kumar |
165 |
* Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
|
| 6467 |
amar.kumar |
166 |
*
|
|
|
167 |
* @param saleReturnItems
|
|
|
168 |
* @param vendorId
|
|
|
169 |
*/
|
|
|
170 |
public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
171 |
|
| 6548 |
amar.kumar |
172 |
/**
|
|
|
173 |
* Inserts scans for lost Items and updates lastScanType in InventoryItems
|
|
|
174 |
*
|
|
|
175 |
* @param lostItems
|
|
|
176 |
* @param vendorId
|
|
|
177 |
*/
|
|
|
178 |
public void scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
179 |
|
|
|
180 |
/**
|
|
|
181 |
* Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
|
|
|
182 |
*/
|
|
|
183 |
public List<InventoryAvailability> getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException;
|
|
|
184 |
|
| 6630 |
amar.kumar |
185 |
/**
|
|
|
186 |
* Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
|
|
|
187 |
*/
|
|
|
188 |
public List<InventoryAvailability> getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException;
|
|
|
189 |
|
| 6762 |
amar.kumar |
190 |
/**
|
|
|
191 |
* Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
|
|
|
192 |
*
|
|
|
193 |
* @param date
|
|
|
194 |
*/
|
|
|
195 |
public List<InventoryAvailability> getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException;
|
|
|
196 |
|
|
|
197 |
/**
|
|
|
198 |
* Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
|
|
|
199 |
*
|
|
|
200 |
* @param date
|
|
|
201 |
*/
|
|
|
202 |
public List<InventoryAvailability> getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException;
|
|
|
203 |
|
|
|
204 |
/**
|
| 6880 |
amar.kumar |
205 |
* Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
|
| 6762 |
amar.kumar |
206 |
*
|
|
|
207 |
* @param itemId
|
|
|
208 |
* @param serialNumber
|
|
|
209 |
* @param itemNumber
|
|
|
210 |
* @param invoiceNumber
|
|
|
211 |
* @param warehouseId
|
|
|
212 |
* @param unitPrice
|
|
|
213 |
* @param orderId
|
|
|
214 |
*/
|
|
|
215 |
public InventoryItem scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
216 |
|
|
|
217 |
/**
|
| 6880 |
amar.kumar |
218 |
* Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
|
| 6762 |
amar.kumar |
219 |
*
|
|
|
220 |
* @param orderId
|
|
|
221 |
* @param unitPrice
|
|
|
222 |
*/
|
|
|
223 |
public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException;
|
|
|
224 |
|
| 6880 |
amar.kumar |
225 |
public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
|
|
|
226 |
|
|
|
227 |
public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
|
|
|
228 |
|
| 7216 |
amar.kumar |
229 |
public List<InventoryMovement> getCompleteMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
|
|
|
230 |
|
|
|
231 |
public List<InventoryMovement> getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
|
|
|
232 |
|
| 7190 |
amar.kumar |
233 |
public InventoryItem scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
234 |
|
| 7199 |
amar.kumar |
235 |
public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
|
|
|
236 |
|
| 2820 |
chandransh |
237 |
}
|
|
|
238 |
|
| 3430 |
rajveer |
239 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
|
|
240 |
|
| 4496 |
mandeep.dh |
241 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
242 |
|
| 5530 |
mandeep.dh |
243 |
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 |
244 |
|
| 5361 |
mandeep.dh |
245 |
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 |
246 |
|
| 5110 |
mandeep.dh |
247 |
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 |
248 |
|
| 5361 |
mandeep.dh |
249 |
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 |
250 |
|
|
|
251 |
public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
252 |
|
| 4622 |
amit.gupta |
253 |
public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
254 |
|
| 5110 |
mandeep.dh |
255 |
public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemIds_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
256 |
|
| 5185 |
mandeep.dh |
257 |
public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
258 |
|
|
|
259 |
public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
260 |
|
| 5372 |
mandeep.dh |
261 |
public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
262 |
|
| 7210 |
amar.kumar |
263 |
public void getPurchaseScansByGrnDate(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScansByGrnDate_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
264 |
|
| 5496 |
mandeep.dh |
265 |
public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
266 |
|
| 5620 |
mandeep.dh |
267 |
public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
268 |
|
| 5711 |
mandeep.dh |
269 |
public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAge_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
270 |
|
| 6322 |
amar.kumar |
271 |
public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
272 |
|
|
|
273 |
public void getScanRecordsForSerialNumber(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
274 |
|
| 6467 |
amar.kumar |
275 |
public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
276 |
|
| 6548 |
amar.kumar |
277 |
public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForLostItem_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
278 |
|
|
|
279 |
public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
280 |
|
| 6630 |
amar.kumar |
281 |
public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
282 |
|
| 6762 |
amar.kumar |
283 |
public void getHistoricSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
284 |
|
|
|
285 |
public void getHistoricNonSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
286 |
|
|
|
287 |
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;
|
|
|
288 |
|
|
|
289 |
public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
290 |
|
| 6880 |
amar.kumar |
291 |
public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
292 |
|
|
|
293 |
public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
294 |
|
| 7216 |
amar.kumar |
295 |
public void getCompleteMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
296 |
|
|
|
297 |
public void getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
298 |
|
| 7190 |
amar.kumar |
299 |
public void scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanfreebie_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
300 |
|
| 7199 |
amar.kumar |
301 |
public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reshipfreebie_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
302 |
|
| 3430 |
rajveer |
303 |
}
|
|
|
304 |
|
| 3374 |
rajveer |
305 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 3430 |
rajveer |
306 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
|
|
307 |
public Factory() {}
|
|
|
308 |
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
|
|
|
309 |
return new Client(prot);
|
|
|
310 |
}
|
|
|
311 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
312 |
return new Client(iprot, oprot);
|
|
|
313 |
}
|
|
|
314 |
}
|
|
|
315 |
|
|
|
316 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
| 2820 |
chandransh |
317 |
{
|
| 3430 |
rajveer |
318 |
super(prot, prot);
|
| 2820 |
chandransh |
319 |
}
|
|
|
320 |
|
| 3430 |
rajveer |
321 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
| 3374 |
rajveer |
322 |
super(iprot, oprot);
|
| 2820 |
chandransh |
323 |
}
|
|
|
324 |
|
| 4541 |
mandeep.dh |
325 |
public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2832 |
chandransh |
326 |
{
|
| 4496 |
mandeep.dh |
327 |
send_getInventoryItem(serialNumber);
|
|
|
328 |
return recv_getInventoryItem();
|
| 2832 |
chandransh |
329 |
}
|
|
|
330 |
|
| 4496 |
mandeep.dh |
331 |
public void send_getInventoryItem(String serialNumber) throws org.apache.thrift.TException
|
| 2832 |
chandransh |
332 |
{
|
| 4496 |
mandeep.dh |
333 |
getInventoryItem_args args = new getInventoryItem_args();
|
|
|
334 |
args.setSerialNumber(serialNumber);
|
|
|
335 |
sendBase("getInventoryItem", args);
|
| 2832 |
chandransh |
336 |
}
|
|
|
337 |
|
| 4541 |
mandeep.dh |
338 |
public InventoryItem recv_getInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2832 |
chandransh |
339 |
{
|
| 4496 |
mandeep.dh |
340 |
getInventoryItem_result result = new getInventoryItem_result();
|
|
|
341 |
receiveBase(result, "getInventoryItem");
|
| 2832 |
chandransh |
342 |
if (result.isSetSuccess()) {
|
|
|
343 |
return result.success;
|
|
|
344 |
}
|
| 4541 |
mandeep.dh |
345 |
if (result.wex != null) {
|
|
|
346 |
throw result.wex;
|
|
|
347 |
}
|
| 4496 |
mandeep.dh |
348 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
|
|
|
349 |
}
|
|
|
350 |
|
| 5530 |
mandeep.dh |
351 |
public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
352 |
{
|
| 5530 |
mandeep.dh |
353 |
send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
354 |
return recv_getNonSeralizedInventoryItem();
|
| 4496 |
mandeep.dh |
355 |
}
|
|
|
356 |
|
| 5530 |
mandeep.dh |
357 |
public void send_getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
358 |
{
|
| 5361 |
mandeep.dh |
359 |
getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
|
| 5530 |
mandeep.dh |
360 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
361 |
args.setItemId(itemId);
|
| 5530 |
mandeep.dh |
362 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
363 |
sendBase("getNonSeralizedInventoryItem", args);
|
| 4496 |
mandeep.dh |
364 |
}
|
|
|
365 |
|
| 5361 |
mandeep.dh |
366 |
public InventoryItem recv_getNonSeralizedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
367 |
{
|
| 5361 |
mandeep.dh |
368 |
getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
|
|
|
369 |
receiveBase(result, "getNonSeralizedInventoryItem");
|
| 4496 |
mandeep.dh |
370 |
if (result.isSetSuccess()) {
|
|
|
371 |
return result.success;
|
| 2832 |
chandransh |
372 |
}
|
| 5361 |
mandeep.dh |
373 |
if (result.wex != null) {
|
|
|
374 |
throw result.wex;
|
| 2820 |
chandransh |
375 |
}
|
| 5361 |
mandeep.dh |
376 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
|
| 4496 |
mandeep.dh |
377 |
}
|
|
|
378 |
|
| 5361 |
mandeep.dh |
379 |
public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
380 |
{
|
| 5361 |
mandeep.dh |
381 |
send_scan(inventoryItem, type, quantity, billingWarehouseId);
|
| 4496 |
mandeep.dh |
382 |
recv_scan();
|
| 3383 |
chandransh |
383 |
}
|
|
|
384 |
|
| 5361 |
mandeep.dh |
385 |
public void send_scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId) throws org.apache.thrift.TException
|
| 3383 |
chandransh |
386 |
{
|
| 4496 |
mandeep.dh |
387 |
scan_args args = new scan_args();
|
| 5361 |
mandeep.dh |
388 |
args.setInventoryItem(inventoryItem);
|
| 4496 |
mandeep.dh |
389 |
args.setType(type);
|
|
|
390 |
args.setQuantity(quantity);
|
| 5361 |
mandeep.dh |
391 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
392 |
sendBase("scan", args);
|
| 3383 |
chandransh |
393 |
}
|
|
|
394 |
|
| 4496 |
mandeep.dh |
395 |
public void recv_scan() throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
396 |
{
|
| 4496 |
mandeep.dh |
397 |
scan_result result = new scan_result();
|
|
|
398 |
receiveBase(result, "scan");
|
|
|
399 |
if (result.wex != null) {
|
|
|
400 |
throw result.wex;
|
|
|
401 |
}
|
|
|
402 |
return;
|
|
|
403 |
}
|
|
|
404 |
|
| 5110 |
mandeep.dh |
405 |
public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
406 |
{
|
| 5110 |
mandeep.dh |
407 |
send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId);
|
| 4496 |
mandeep.dh |
408 |
return recv_scanSerializedItemForOrder();
|
|
|
409 |
}
|
|
|
410 |
|
| 5110 |
mandeep.dh |
411 |
public void send_scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
412 |
{
|
|
|
413 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
| 4555 |
mandeep.dh |
414 |
args.setSerialNumber(serialNumber);
|
| 4496 |
mandeep.dh |
415 |
args.setType(type);
|
|
|
416 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
417 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
|
|
418 |
args.setQuantity(quantity);
|
|
|
419 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
420 |
sendBase("scanSerializedItemForOrder", args);
|
|
|
421 |
}
|
|
|
422 |
|
| 4555 |
mandeep.dh |
423 |
public InventoryItem recv_scanSerializedItemForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 4496 |
mandeep.dh |
424 |
{
|
|
|
425 |
scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
|
|
|
426 |
receiveBase(result, "scanSerializedItemForOrder");
|
| 3383 |
chandransh |
427 |
if (result.isSetSuccess()) {
|
|
|
428 |
return result.success;
|
|
|
429 |
}
|
|
|
430 |
if (result.wex != null) {
|
|
|
431 |
throw result.wex;
|
|
|
432 |
}
|
| 4496 |
mandeep.dh |
433 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
|
| 3383 |
chandransh |
434 |
}
|
|
|
435 |
|
| 5361 |
mandeep.dh |
436 |
public InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
437 |
{
|
| 5361 |
mandeep.dh |
438 |
send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId);
|
|
|
439 |
return recv_scanForOrder();
|
| 2820 |
chandransh |
440 |
}
|
|
|
441 |
|
| 5361 |
mandeep.dh |
442 |
public void send_scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
443 |
{
|
| 4496 |
mandeep.dh |
444 |
scanForOrder_args args = new scanForOrder_args();
|
| 5361 |
mandeep.dh |
445 |
args.setInventoryItem(inventoryItem);
|
| 3430 |
rajveer |
446 |
args.setType(type);
|
| 4496 |
mandeep.dh |
447 |
args.setQuantity(quantity);
|
|
|
448 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
449 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
450 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
451 |
sendBase("scanForOrder", args);
|
| 2820 |
chandransh |
452 |
}
|
|
|
453 |
|
| 5361 |
mandeep.dh |
454 |
public InventoryItem recv_scanForOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
455 |
{
|
| 4496 |
mandeep.dh |
456 |
scanForOrder_result result = new scanForOrder_result();
|
|
|
457 |
receiveBase(result, "scanForOrder");
|
| 5361 |
mandeep.dh |
458 |
if (result.isSetSuccess()) {
|
|
|
459 |
return result.success;
|
|
|
460 |
}
|
| 2820 |
chandransh |
461 |
if (result.wex != null) {
|
|
|
462 |
throw result.wex;
|
|
|
463 |
}
|
| 5361 |
mandeep.dh |
464 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
|
| 2820 |
chandransh |
465 |
}
|
|
|
466 |
|
| 4496 |
mandeep.dh |
467 |
public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
468 |
{
|
| 4496 |
mandeep.dh |
469 |
send_createItemNumberMapping(itemNumber, itemId);
|
|
|
470 |
recv_createItemNumberMapping();
|
| 2820 |
chandransh |
471 |
}
|
|
|
472 |
|
| 4496 |
mandeep.dh |
473 |
public void send_createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
474 |
{
|
| 4496 |
mandeep.dh |
475 |
createItemNumberMapping_args args = new createItemNumberMapping_args();
|
| 3430 |
rajveer |
476 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
477 |
args.setItemId(itemId);
|
|
|
478 |
sendBase("createItemNumberMapping", args);
|
| 2820 |
chandransh |
479 |
}
|
|
|
480 |
|
| 4496 |
mandeep.dh |
481 |
public void recv_createItemNumberMapping() throws org.apache.thrift.TException
|
| 2820 |
chandransh |
482 |
{
|
| 4496 |
mandeep.dh |
483 |
createItemNumberMapping_result result = new createItemNumberMapping_result();
|
|
|
484 |
receiveBase(result, "createItemNumberMapping");
|
| 2820 |
chandransh |
485 |
return;
|
|
|
486 |
}
|
|
|
487 |
|
| 4622 |
amit.gupta |
488 |
public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException
|
|
|
489 |
{
|
|
|
490 |
send_getItemNumbers(itemId);
|
|
|
491 |
return recv_getItemNumbers();
|
|
|
492 |
}
|
|
|
493 |
|
|
|
494 |
public void send_getItemNumbers(long itemId) throws org.apache.thrift.TException
|
|
|
495 |
{
|
|
|
496 |
getItemNumbers_args args = new getItemNumbers_args();
|
|
|
497 |
args.setItemId(itemId);
|
|
|
498 |
sendBase("getItemNumbers", args);
|
|
|
499 |
}
|
|
|
500 |
|
|
|
501 |
public List<String> recv_getItemNumbers() throws org.apache.thrift.TException
|
|
|
502 |
{
|
|
|
503 |
getItemNumbers_result result = new getItemNumbers_result();
|
|
|
504 |
receiveBase(result, "getItemNumbers");
|
|
|
505 |
if (result.isSetSuccess()) {
|
|
|
506 |
return result.success;
|
|
|
507 |
}
|
|
|
508 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
|
|
|
509 |
}
|
|
|
510 |
|
| 5110 |
mandeep.dh |
511 |
public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException
|
|
|
512 |
{
|
|
|
513 |
send_getItemIds(itemNumber);
|
|
|
514 |
return recv_getItemIds();
|
|
|
515 |
}
|
|
|
516 |
|
|
|
517 |
public void send_getItemIds(String itemNumber) throws org.apache.thrift.TException
|
|
|
518 |
{
|
|
|
519 |
getItemIds_args args = new getItemIds_args();
|
|
|
520 |
args.setItemNumber(itemNumber);
|
|
|
521 |
sendBase("getItemIds", args);
|
|
|
522 |
}
|
|
|
523 |
|
|
|
524 |
public List<Long> recv_getItemIds() throws org.apache.thrift.TException
|
|
|
525 |
{
|
|
|
526 |
getItemIds_result result = new getItemIds_result();
|
|
|
527 |
receiveBase(result, "getItemIds");
|
|
|
528 |
if (result.isSetSuccess()) {
|
|
|
529 |
return result.success;
|
|
|
530 |
}
|
|
|
531 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
|
|
|
532 |
}
|
|
|
533 |
|
| 5185 |
mandeep.dh |
534 |
public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
535 |
{
|
|
|
536 |
send_getInventoryItemsFromLastScanType(lastScanType);
|
|
|
537 |
return recv_getInventoryItemsFromLastScanType();
|
|
|
538 |
}
|
|
|
539 |
|
|
|
540 |
public void send_getInventoryItemsFromLastScanType(ScanType lastScanType) throws org.apache.thrift.TException
|
|
|
541 |
{
|
|
|
542 |
getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
|
|
|
543 |
args.setLastScanType(lastScanType);
|
|
|
544 |
sendBase("getInventoryItemsFromLastScanType", args);
|
|
|
545 |
}
|
|
|
546 |
|
|
|
547 |
public List<InventoryItem> recv_getInventoryItemsFromLastScanType() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
548 |
{
|
|
|
549 |
getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
|
|
|
550 |
receiveBase(result, "getInventoryItemsFromLastScanType");
|
|
|
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, "getInventoryItemsFromLastScanType failed: unknown result");
|
|
|
558 |
}
|
|
|
559 |
|
|
|
560 |
public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
561 |
{
|
|
|
562 |
send_getInventoryItemFromId(inventoryItemId);
|
|
|
563 |
return recv_getInventoryItemFromId();
|
|
|
564 |
}
|
|
|
565 |
|
|
|
566 |
public void send_getInventoryItemFromId(long inventoryItemId) throws org.apache.thrift.TException
|
|
|
567 |
{
|
|
|
568 |
getInventoryItemFromId_args args = new getInventoryItemFromId_args();
|
|
|
569 |
args.setInventoryItemId(inventoryItemId);
|
|
|
570 |
sendBase("getInventoryItemFromId", args);
|
|
|
571 |
}
|
|
|
572 |
|
|
|
573 |
public InventoryItem recv_getInventoryItemFromId() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
574 |
{
|
|
|
575 |
getInventoryItemFromId_result result = new getInventoryItemFromId_result();
|
|
|
576 |
receiveBase(result, "getInventoryItemFromId");
|
|
|
577 |
if (result.isSetSuccess()) {
|
|
|
578 |
return result.success;
|
|
|
579 |
}
|
|
|
580 |
if (result.wex != null) {
|
|
|
581 |
throw result.wex;
|
|
|
582 |
}
|
|
|
583 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
|
|
|
584 |
}
|
|
|
585 |
|
| 5372 |
mandeep.dh |
586 |
public List<DetailedPurchaseScan> getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
587 |
{
|
|
|
588 |
send_getPurchaseScans(startDate, endDate);
|
|
|
589 |
return recv_getPurchaseScans();
|
|
|
590 |
}
|
|
|
591 |
|
|
|
592 |
public void send_getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
593 |
{
|
|
|
594 |
getPurchaseScans_args args = new getPurchaseScans_args();
|
|
|
595 |
args.setStartDate(startDate);
|
|
|
596 |
args.setEndDate(endDate);
|
|
|
597 |
sendBase("getPurchaseScans", args);
|
|
|
598 |
}
|
|
|
599 |
|
|
|
600 |
public List<DetailedPurchaseScan> recv_getPurchaseScans() throws org.apache.thrift.TException
|
|
|
601 |
{
|
|
|
602 |
getPurchaseScans_result result = new getPurchaseScans_result();
|
|
|
603 |
receiveBase(result, "getPurchaseScans");
|
|
|
604 |
if (result.isSetSuccess()) {
|
|
|
605 |
return result.success;
|
|
|
606 |
}
|
|
|
607 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
|
|
|
608 |
}
|
|
|
609 |
|
| 7210 |
amar.kumar |
610 |
public List<DetailedPurchaseScan> getPurchaseScansByGrnDate(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
611 |
{
|
|
|
612 |
send_getPurchaseScansByGrnDate(startDate, endDate);
|
|
|
613 |
return recv_getPurchaseScansByGrnDate();
|
|
|
614 |
}
|
|
|
615 |
|
|
|
616 |
public void send_getPurchaseScansByGrnDate(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
617 |
{
|
|
|
618 |
getPurchaseScansByGrnDate_args args = new getPurchaseScansByGrnDate_args();
|
|
|
619 |
args.setStartDate(startDate);
|
|
|
620 |
args.setEndDate(endDate);
|
|
|
621 |
sendBase("getPurchaseScansByGrnDate", args);
|
|
|
622 |
}
|
|
|
623 |
|
|
|
624 |
public List<DetailedPurchaseScan> recv_getPurchaseScansByGrnDate() throws org.apache.thrift.TException
|
|
|
625 |
{
|
|
|
626 |
getPurchaseScansByGrnDate_result result = new getPurchaseScansByGrnDate_result();
|
|
|
627 |
receiveBase(result, "getPurchaseScansByGrnDate");
|
|
|
628 |
if (result.isSetSuccess()) {
|
|
|
629 |
return result.success;
|
|
|
630 |
}
|
|
|
631 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScansByGrnDate failed: unknown result");
|
|
|
632 |
}
|
|
|
633 |
|
| 5496 |
mandeep.dh |
634 |
public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
|
|
|
635 |
{
|
|
|
636 |
send_fetchScansPerInvoiceNumber(date);
|
|
|
637 |
return recv_fetchScansPerInvoiceNumber();
|
|
|
638 |
}
|
|
|
639 |
|
|
|
640 |
public void send_fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
|
|
|
641 |
{
|
|
|
642 |
fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
|
|
|
643 |
args.setDate(date);
|
|
|
644 |
sendBase("fetchScansPerInvoiceNumber", args);
|
|
|
645 |
}
|
|
|
646 |
|
|
|
647 |
public List<InvoiceScan> recv_fetchScansPerInvoiceNumber() throws org.apache.thrift.TException
|
|
|
648 |
{
|
|
|
649 |
fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
|
|
|
650 |
receiveBase(result, "fetchScansPerInvoiceNumber");
|
|
|
651 |
if (result.isSetSuccess()) {
|
|
|
652 |
return result.success;
|
|
|
653 |
}
|
|
|
654 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
|
|
|
655 |
}
|
|
|
656 |
|
| 5620 |
mandeep.dh |
657 |
public InventoryItem getInventoryItemFromOrder(long orderId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
658 |
{
|
|
|
659 |
send_getInventoryItemFromOrder(orderId);
|
|
|
660 |
return recv_getInventoryItemFromOrder();
|
|
|
661 |
}
|
|
|
662 |
|
|
|
663 |
public void send_getInventoryItemFromOrder(long orderId) throws org.apache.thrift.TException
|
|
|
664 |
{
|
|
|
665 |
getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
|
|
|
666 |
args.setOrderId(orderId);
|
|
|
667 |
sendBase("getInventoryItemFromOrder", args);
|
|
|
668 |
}
|
|
|
669 |
|
|
|
670 |
public InventoryItem recv_getInventoryItemFromOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
671 |
{
|
|
|
672 |
getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
|
|
|
673 |
receiveBase(result, "getInventoryItemFromOrder");
|
|
|
674 |
if (result.isSetSuccess()) {
|
|
|
675 |
return result.success;
|
|
|
676 |
}
|
|
|
677 |
if (result.we != null) {
|
|
|
678 |
throw result.we;
|
|
|
679 |
}
|
|
|
680 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
|
|
|
681 |
}
|
|
|
682 |
|
| 5711 |
mandeep.dh |
683 |
public List<InventoryAge> getInventoryAge() throws org.apache.thrift.TException
|
|
|
684 |
{
|
|
|
685 |
send_getInventoryAge();
|
|
|
686 |
return recv_getInventoryAge();
|
|
|
687 |
}
|
|
|
688 |
|
|
|
689 |
public void send_getInventoryAge() throws org.apache.thrift.TException
|
|
|
690 |
{
|
|
|
691 |
getInventoryAge_args args = new getInventoryAge_args();
|
|
|
692 |
sendBase("getInventoryAge", args);
|
|
|
693 |
}
|
|
|
694 |
|
|
|
695 |
public List<InventoryAge> recv_getInventoryAge() throws org.apache.thrift.TException
|
|
|
696 |
{
|
|
|
697 |
getInventoryAge_result result = new getInventoryAge_result();
|
|
|
698 |
receiveBase(result, "getInventoryAge");
|
|
|
699 |
if (result.isSetSuccess()) {
|
|
|
700 |
return result.success;
|
|
|
701 |
}
|
|
|
702 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
|
|
|
703 |
}
|
|
|
704 |
|
| 6322 |
amar.kumar |
705 |
public List<Scan> getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
|
|
|
706 |
{
|
|
|
707 |
send_getInventoryScansForItem(itemId, fromDate, toDate);
|
|
|
708 |
return recv_getInventoryScansForItem();
|
|
|
709 |
}
|
|
|
710 |
|
|
|
711 |
public void send_getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
|
|
|
712 |
{
|
|
|
713 |
getInventoryScansForItem_args args = new getInventoryScansForItem_args();
|
|
|
714 |
args.setItemId(itemId);
|
|
|
715 |
args.setFromDate(fromDate);
|
|
|
716 |
args.setToDate(toDate);
|
|
|
717 |
sendBase("getInventoryScansForItem", args);
|
|
|
718 |
}
|
|
|
719 |
|
|
|
720 |
public List<Scan> recv_getInventoryScansForItem() throws org.apache.thrift.TException
|
|
|
721 |
{
|
|
|
722 |
getInventoryScansForItem_result result = new getInventoryScansForItem_result();
|
|
|
723 |
receiveBase(result, "getInventoryScansForItem");
|
|
|
724 |
if (result.isSetSuccess()) {
|
|
|
725 |
return result.success;
|
|
|
726 |
}
|
|
|
727 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
|
|
|
728 |
}
|
|
|
729 |
|
|
|
730 |
public List<Scan> getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException
|
|
|
731 |
{
|
|
|
732 |
send_getScanRecordsForSerialNumber(serialNumber);
|
|
|
733 |
return recv_getScanRecordsForSerialNumber();
|
|
|
734 |
}
|
|
|
735 |
|
|
|
736 |
public void send_getScanRecordsForSerialNumber(long serialNumber) throws org.apache.thrift.TException
|
|
|
737 |
{
|
|
|
738 |
getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
|
|
|
739 |
args.setSerialNumber(serialNumber);
|
|
|
740 |
sendBase("getScanRecordsForSerialNumber", args);
|
|
|
741 |
}
|
|
|
742 |
|
|
|
743 |
public List<Scan> recv_getScanRecordsForSerialNumber() throws org.apache.thrift.TException
|
|
|
744 |
{
|
|
|
745 |
getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
|
|
|
746 |
receiveBase(result, "getScanRecordsForSerialNumber");
|
|
|
747 |
if (result.isSetSuccess()) {
|
|
|
748 |
return result.success;
|
|
|
749 |
}
|
|
|
750 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
|
|
|
751 |
}
|
|
|
752 |
|
| 6467 |
amar.kumar |
753 |
public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
754 |
{
|
|
|
755 |
send_scanForPurchaseReturn(saleReturnItems, vendorId);
|
|
|
756 |
recv_scanForPurchaseReturn();
|
|
|
757 |
}
|
|
|
758 |
|
|
|
759 |
public void send_scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws org.apache.thrift.TException
|
|
|
760 |
{
|
|
|
761 |
scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
|
|
|
762 |
args.setSaleReturnItems(saleReturnItems);
|
|
|
763 |
args.setVendorId(vendorId);
|
|
|
764 |
sendBase("scanForPurchaseReturn", args);
|
|
|
765 |
}
|
|
|
766 |
|
|
|
767 |
public void recv_scanForPurchaseReturn() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
768 |
{
|
|
|
769 |
scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
|
|
|
770 |
receiveBase(result, "scanForPurchaseReturn");
|
|
|
771 |
if (result.ex != null) {
|
|
|
772 |
throw result.ex;
|
|
|
773 |
}
|
|
|
774 |
return;
|
|
|
775 |
}
|
|
|
776 |
|
| 6548 |
amar.kumar |
777 |
public void scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
778 |
{
|
|
|
779 |
send_scanForLostItem(lostItems, vendorId);
|
|
|
780 |
recv_scanForLostItem();
|
|
|
781 |
}
|
|
|
782 |
|
|
|
783 |
public void send_scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws org.apache.thrift.TException
|
|
|
784 |
{
|
|
|
785 |
scanForLostItem_args args = new scanForLostItem_args();
|
|
|
786 |
args.setLostItems(lostItems);
|
|
|
787 |
args.setVendorId(vendorId);
|
|
|
788 |
sendBase("scanForLostItem", args);
|
|
|
789 |
}
|
|
|
790 |
|
|
|
791 |
public void recv_scanForLostItem() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
792 |
{
|
|
|
793 |
scanForLostItem_result result = new scanForLostItem_result();
|
|
|
794 |
receiveBase(result, "scanForLostItem");
|
|
|
795 |
if (result.ex != null) {
|
|
|
796 |
throw result.ex;
|
|
|
797 |
}
|
|
|
798 |
return;
|
|
|
799 |
}
|
|
|
800 |
|
|
|
801 |
public List<InventoryAvailability> getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
802 |
{
|
|
|
803 |
send_getCurrentSerializedInventoryByScans();
|
|
|
804 |
return recv_getCurrentSerializedInventoryByScans();
|
|
|
805 |
}
|
|
|
806 |
|
|
|
807 |
public void send_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
808 |
{
|
|
|
809 |
getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
|
|
|
810 |
sendBase("getCurrentSerializedInventoryByScans", args);
|
|
|
811 |
}
|
|
|
812 |
|
|
|
813 |
public List<InventoryAvailability> recv_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
814 |
{
|
|
|
815 |
getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
|
|
|
816 |
receiveBase(result, "getCurrentSerializedInventoryByScans");
|
|
|
817 |
if (result.isSetSuccess()) {
|
|
|
818 |
return result.success;
|
|
|
819 |
}
|
|
|
820 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
|
|
|
821 |
}
|
|
|
822 |
|
| 6630 |
amar.kumar |
823 |
public List<InventoryAvailability> getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
824 |
{
|
|
|
825 |
send_getCurrentNonSerializedInventoryByScans();
|
|
|
826 |
return recv_getCurrentNonSerializedInventoryByScans();
|
|
|
827 |
}
|
|
|
828 |
|
|
|
829 |
public void send_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
830 |
{
|
|
|
831 |
getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
|
|
|
832 |
sendBase("getCurrentNonSerializedInventoryByScans", args);
|
|
|
833 |
}
|
|
|
834 |
|
|
|
835 |
public List<InventoryAvailability> recv_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
836 |
{
|
|
|
837 |
getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
|
|
|
838 |
receiveBase(result, "getCurrentNonSerializedInventoryByScans");
|
|
|
839 |
if (result.isSetSuccess()) {
|
|
|
840 |
return result.success;
|
|
|
841 |
}
|
|
|
842 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
|
|
|
843 |
}
|
|
|
844 |
|
| 6762 |
amar.kumar |
845 |
public List<InventoryAvailability> getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException
|
|
|
846 |
{
|
|
|
847 |
send_getHistoricSerializedInventoryByScans(date);
|
|
|
848 |
return recv_getHistoricSerializedInventoryByScans();
|
|
|
849 |
}
|
|
|
850 |
|
|
|
851 |
public void send_getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException
|
|
|
852 |
{
|
|
|
853 |
getHistoricSerializedInventoryByScans_args args = new getHistoricSerializedInventoryByScans_args();
|
|
|
854 |
args.setDate(date);
|
|
|
855 |
sendBase("getHistoricSerializedInventoryByScans", args);
|
|
|
856 |
}
|
|
|
857 |
|
|
|
858 |
public List<InventoryAvailability> recv_getHistoricSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
859 |
{
|
|
|
860 |
getHistoricSerializedInventoryByScans_result result = new getHistoricSerializedInventoryByScans_result();
|
|
|
861 |
receiveBase(result, "getHistoricSerializedInventoryByScans");
|
|
|
862 |
if (result.isSetSuccess()) {
|
|
|
863 |
return result.success;
|
|
|
864 |
}
|
|
|
865 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
|
|
|
866 |
}
|
|
|
867 |
|
|
|
868 |
public List<InventoryAvailability> getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException
|
|
|
869 |
{
|
|
|
870 |
send_getHistoricNonSerializedInventoryByScans(date);
|
|
|
871 |
return recv_getHistoricNonSerializedInventoryByScans();
|
|
|
872 |
}
|
|
|
873 |
|
|
|
874 |
public void send_getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException
|
|
|
875 |
{
|
|
|
876 |
getHistoricNonSerializedInventoryByScans_args args = new getHistoricNonSerializedInventoryByScans_args();
|
|
|
877 |
args.setDate(date);
|
|
|
878 |
sendBase("getHistoricNonSerializedInventoryByScans", args);
|
|
|
879 |
}
|
|
|
880 |
|
|
|
881 |
public List<InventoryAvailability> recv_getHistoricNonSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
882 |
{
|
|
|
883 |
getHistoricNonSerializedInventoryByScans_result result = new getHistoricNonSerializedInventoryByScans_result();
|
|
|
884 |
receiveBase(result, "getHistoricNonSerializedInventoryByScans");
|
|
|
885 |
if (result.isSetSuccess()) {
|
|
|
886 |
return result.success;
|
|
|
887 |
}
|
|
|
888 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
|
|
|
889 |
}
|
|
|
890 |
|
|
|
891 |
public InventoryItem scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
892 |
{
|
|
|
893 |
send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId);
|
|
|
894 |
return recv_scanForOursExternalSale();
|
|
|
895 |
}
|
|
|
896 |
|
|
|
897 |
public void send_scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws org.apache.thrift.TException
|
|
|
898 |
{
|
|
|
899 |
scanForOursExternalSale_args args = new scanForOursExternalSale_args();
|
|
|
900 |
args.setItemId(itemId);
|
|
|
901 |
args.setSerialNumber(serialNumber);
|
|
|
902 |
args.setItemNumber(itemNumber);
|
|
|
903 |
args.setInvoiceNumber(invoiceNumber);
|
|
|
904 |
args.setWarehouseId(warehouseId);
|
|
|
905 |
args.setUnitPrice(unitPrice);
|
|
|
906 |
args.setOrderId(orderId);
|
|
|
907 |
sendBase("scanForOursExternalSale", args);
|
|
|
908 |
}
|
|
|
909 |
|
|
|
910 |
public InventoryItem recv_scanForOursExternalSale() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
911 |
{
|
|
|
912 |
scanForOursExternalSale_result result = new scanForOursExternalSale_result();
|
|
|
913 |
receiveBase(result, "scanForOursExternalSale");
|
|
|
914 |
if (result.isSetSuccess()) {
|
|
|
915 |
return result.success;
|
|
|
916 |
}
|
|
|
917 |
if (result.ex != null) {
|
|
|
918 |
throw result.ex;
|
|
|
919 |
}
|
|
|
920 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
|
|
|
921 |
}
|
|
|
922 |
|
|
|
923 |
public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException
|
|
|
924 |
{
|
|
|
925 |
send_scanForOursExternalSaleReturn(orderId, unitPrice);
|
|
|
926 |
recv_scanForOursExternalSaleReturn();
|
|
|
927 |
}
|
|
|
928 |
|
|
|
929 |
public void send_scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException
|
|
|
930 |
{
|
|
|
931 |
scanForOursExternalSaleReturn_args args = new scanForOursExternalSaleReturn_args();
|
|
|
932 |
args.setOrderId(orderId);
|
|
|
933 |
args.setUnitPrice(unitPrice);
|
|
|
934 |
sendBase("scanForOursExternalSaleReturn", args);
|
|
|
935 |
}
|
|
|
936 |
|
|
|
937 |
public void recv_scanForOursExternalSaleReturn() throws org.apache.thrift.TException
|
|
|
938 |
{
|
|
|
939 |
scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
|
|
|
940 |
receiveBase(result, "scanForOursExternalSaleReturn");
|
|
|
941 |
return;
|
|
|
942 |
}
|
|
|
943 |
|
| 6880 |
amar.kumar |
944 |
public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
945 |
{
|
|
|
946 |
send_getMovementNonSerializedInventoryByScans(startDate, endDate);
|
|
|
947 |
return recv_getMovementNonSerializedInventoryByScans();
|
|
|
948 |
}
|
|
|
949 |
|
|
|
950 |
public void send_getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
951 |
{
|
|
|
952 |
getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
|
|
|
953 |
args.setStartDate(startDate);
|
|
|
954 |
args.setEndDate(endDate);
|
|
|
955 |
sendBase("getMovementNonSerializedInventoryByScans", args);
|
|
|
956 |
}
|
|
|
957 |
|
|
|
958 |
public List<InventoryMovement> recv_getMovementNonSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
959 |
{
|
|
|
960 |
getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
|
|
|
961 |
receiveBase(result, "getMovementNonSerializedInventoryByScans");
|
|
|
962 |
if (result.isSetSuccess()) {
|
|
|
963 |
return result.success;
|
|
|
964 |
}
|
|
|
965 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
|
|
|
966 |
}
|
|
|
967 |
|
|
|
968 |
public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
969 |
{
|
|
|
970 |
send_getMovementSerializedInventoryByScans(startDate, endDate);
|
|
|
971 |
return recv_getMovementSerializedInventoryByScans();
|
|
|
972 |
}
|
|
|
973 |
|
|
|
974 |
public void send_getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
975 |
{
|
|
|
976 |
getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
|
|
|
977 |
args.setStartDate(startDate);
|
|
|
978 |
args.setEndDate(endDate);
|
|
|
979 |
sendBase("getMovementSerializedInventoryByScans", args);
|
|
|
980 |
}
|
|
|
981 |
|
|
|
982 |
public List<InventoryMovement> recv_getMovementSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
983 |
{
|
|
|
984 |
getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
|
|
|
985 |
receiveBase(result, "getMovementSerializedInventoryByScans");
|
|
|
986 |
if (result.isSetSuccess()) {
|
|
|
987 |
return result.success;
|
|
|
988 |
}
|
|
|
989 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
|
|
|
990 |
}
|
|
|
991 |
|
| 7216 |
amar.kumar |
992 |
public List<InventoryMovement> getCompleteMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
993 |
{
|
|
|
994 |
send_getCompleteMovementSerializedInventoryByScans(startDate, endDate);
|
|
|
995 |
return recv_getCompleteMovementSerializedInventoryByScans();
|
|
|
996 |
}
|
|
|
997 |
|
|
|
998 |
public void send_getCompleteMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
999 |
{
|
|
|
1000 |
getCompleteMovementSerializedInventoryByScans_args args = new getCompleteMovementSerializedInventoryByScans_args();
|
|
|
1001 |
args.setStartDate(startDate);
|
|
|
1002 |
args.setEndDate(endDate);
|
|
|
1003 |
sendBase("getCompleteMovementSerializedInventoryByScans", args);
|
|
|
1004 |
}
|
|
|
1005 |
|
|
|
1006 |
public List<InventoryMovement> recv_getCompleteMovementSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
1007 |
{
|
|
|
1008 |
getCompleteMovementSerializedInventoryByScans_result result = new getCompleteMovementSerializedInventoryByScans_result();
|
|
|
1009 |
receiveBase(result, "getCompleteMovementSerializedInventoryByScans");
|
|
|
1010 |
if (result.isSetSuccess()) {
|
|
|
1011 |
return result.success;
|
|
|
1012 |
}
|
|
|
1013 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCompleteMovementSerializedInventoryByScans failed: unknown result");
|
|
|
1014 |
}
|
|
|
1015 |
|
|
|
1016 |
public List<InventoryMovement> getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
1017 |
{
|
|
|
1018 |
send_getCompleteMovementNonSerializedInventoryByScans(startDate, endDate);
|
|
|
1019 |
return recv_getCompleteMovementNonSerializedInventoryByScans();
|
|
|
1020 |
}
|
|
|
1021 |
|
|
|
1022 |
public void send_getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
|
|
|
1023 |
{
|
|
|
1024 |
getCompleteMovementNonSerializedInventoryByScans_args args = new getCompleteMovementNonSerializedInventoryByScans_args();
|
|
|
1025 |
args.setStartDate(startDate);
|
|
|
1026 |
args.setEndDate(endDate);
|
|
|
1027 |
sendBase("getCompleteMovementNonSerializedInventoryByScans", args);
|
|
|
1028 |
}
|
|
|
1029 |
|
|
|
1030 |
public List<InventoryMovement> recv_getCompleteMovementNonSerializedInventoryByScans() throws org.apache.thrift.TException
|
|
|
1031 |
{
|
|
|
1032 |
getCompleteMovementNonSerializedInventoryByScans_result result = new getCompleteMovementNonSerializedInventoryByScans_result();
|
|
|
1033 |
receiveBase(result, "getCompleteMovementNonSerializedInventoryByScans");
|
|
|
1034 |
if (result.isSetSuccess()) {
|
|
|
1035 |
return result.success;
|
|
|
1036 |
}
|
|
|
1037 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCompleteMovementNonSerializedInventoryByScans failed: unknown result");
|
|
|
1038 |
}
|
|
|
1039 |
|
| 7190 |
amar.kumar |
1040 |
public InventoryItem scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
1041 |
{
|
|
|
1042 |
send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType);
|
|
|
1043 |
return recv_scanfreebie();
|
|
|
1044 |
}
|
|
|
1045 |
|
|
|
1046 |
public void send_scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws org.apache.thrift.TException
|
|
|
1047 |
{
|
|
|
1048 |
scanfreebie_args args = new scanfreebie_args();
|
|
|
1049 |
args.setOrderId(orderId);
|
|
|
1050 |
args.setFreebieItemId(freebieItemId);
|
|
|
1051 |
args.setFreebieWarehouseId(freebieWarehouseId);
|
|
|
1052 |
args.setScanType(scanType);
|
|
|
1053 |
sendBase("scanfreebie", args);
|
|
|
1054 |
}
|
|
|
1055 |
|
|
|
1056 |
public InventoryItem recv_scanfreebie() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
1057 |
{
|
|
|
1058 |
scanfreebie_result result = new scanfreebie_result();
|
|
|
1059 |
receiveBase(result, "scanfreebie");
|
|
|
1060 |
if (result.isSetSuccess()) {
|
|
|
1061 |
return result.success;
|
|
|
1062 |
}
|
|
|
1063 |
if (result.wex != null) {
|
|
|
1064 |
throw result.wex;
|
|
|
1065 |
}
|
|
|
1066 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanfreebie failed: unknown result");
|
|
|
1067 |
}
|
|
|
1068 |
|
| 7199 |
amar.kumar |
1069 |
public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
1070 |
{
|
|
|
1071 |
send_reshipfreebie(oldOrderId, newOrderId, freebieItemId, scanType);
|
|
|
1072 |
recv_reshipfreebie();
|
|
|
1073 |
}
|
|
|
1074 |
|
|
|
1075 |
public void send_reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws org.apache.thrift.TException
|
|
|
1076 |
{
|
|
|
1077 |
reshipfreebie_args args = new reshipfreebie_args();
|
|
|
1078 |
args.setOldOrderId(oldOrderId);
|
|
|
1079 |
args.setNewOrderId(newOrderId);
|
|
|
1080 |
args.setFreebieItemId(freebieItemId);
|
|
|
1081 |
args.setScanType(scanType);
|
|
|
1082 |
sendBase("reshipfreebie", args);
|
|
|
1083 |
}
|
|
|
1084 |
|
|
|
1085 |
public void recv_reshipfreebie() throws WarehouseServiceException, org.apache.thrift.TException
|
|
|
1086 |
{
|
|
|
1087 |
reshipfreebie_result result = new reshipfreebie_result();
|
|
|
1088 |
receiveBase(result, "reshipfreebie");
|
|
|
1089 |
if (result.wex != null) {
|
|
|
1090 |
throw result.wex;
|
|
|
1091 |
}
|
|
|
1092 |
return;
|
|
|
1093 |
}
|
|
|
1094 |
|
| 2820 |
chandransh |
1095 |
}
|
| 3430 |
rajveer |
1096 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
|
|
1097 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
1098 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
1099 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
1100 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
1101 |
this.clientManager = clientManager;
|
|
|
1102 |
this.protocolFactory = protocolFactory;
|
|
|
1103 |
}
|
|
|
1104 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
1105 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
1106 |
}
|
| 2820 |
chandransh |
1107 |
}
|
|
|
1108 |
|
| 3430 |
rajveer |
1109 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
1110 |
super(protocolFactory, clientManager, transport);
|
|
|
1111 |
}
|
| 2820 |
chandransh |
1112 |
|
| 4496 |
mandeep.dh |
1113 |
public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
1114 |
checkReady();
|
| 4496 |
mandeep.dh |
1115 |
getInventoryItem_call method_call = new getInventoryItem_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
1116 |
this.___currentMethod = method_call;
|
|
|
1117 |
___manager.call(method_call);
|
|
|
1118 |
}
|
|
|
1119 |
|
| 4496 |
mandeep.dh |
1120 |
public static class getInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1121 |
private String serialNumber;
|
|
|
1122 |
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 |
1123 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4496 |
mandeep.dh |
1124 |
this.serialNumber = serialNumber;
|
| 3430 |
rajveer |
1125 |
}
|
|
|
1126 |
|
|
|
1127 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
1128 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1129 |
getInventoryItem_args args = new getInventoryItem_args();
|
|
|
1130 |
args.setSerialNumber(serialNumber);
|
| 3430 |
rajveer |
1131 |
args.write(prot);
|
|
|
1132 |
prot.writeMessageEnd();
|
|
|
1133 |
}
|
|
|
1134 |
|
| 4541 |
mandeep.dh |
1135 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 3430 |
rajveer |
1136 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1137 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1138 |
}
|
|
|
1139 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1140 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
1141 |
return (new Client(prot)).recv_getInventoryItem();
|
| 3430 |
rajveer |
1142 |
}
|
|
|
1143 |
}
|
|
|
1144 |
|
| 5530 |
mandeep.dh |
1145 |
public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
1146 |
checkReady();
|
| 5530 |
mandeep.dh |
1147 |
getNonSeralizedInventoryItem_call method_call = new getNonSeralizedInventoryItem_call(itemNumber, itemId, fulfilmentWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
1148 |
this.___currentMethod = method_call;
|
|
|
1149 |
___manager.call(method_call);
|
|
|
1150 |
}
|
|
|
1151 |
|
| 5361 |
mandeep.dh |
1152 |
public static class getNonSeralizedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5530 |
mandeep.dh |
1153 |
private String itemNumber;
|
| 4496 |
mandeep.dh |
1154 |
private long itemId;
|
| 5530 |
mandeep.dh |
1155 |
private long fulfilmentWarehouseId;
|
|
|
1156 |
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 |
1157 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5530 |
mandeep.dh |
1158 |
this.itemNumber = itemNumber;
|
| 4496 |
mandeep.dh |
1159 |
this.itemId = itemId;
|
| 5530 |
mandeep.dh |
1160 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| 3430 |
rajveer |
1161 |
}
|
|
|
1162 |
|
|
|
1163 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 5361 |
mandeep.dh |
1164 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1165 |
getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
|
| 5530 |
mandeep.dh |
1166 |
args.setItemNumber(itemNumber);
|
| 4496 |
mandeep.dh |
1167 |
args.setItemId(itemId);
|
| 5530 |
mandeep.dh |
1168 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 3430 |
rajveer |
1169 |
args.write(prot);
|
|
|
1170 |
prot.writeMessageEnd();
|
|
|
1171 |
}
|
|
|
1172 |
|
| 5361 |
mandeep.dh |
1173 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 3430 |
rajveer |
1174 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1175 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1176 |
}
|
|
|
1177 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1178 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 5361 |
mandeep.dh |
1179 |
return (new Client(prot)).recv_getNonSeralizedInventoryItem();
|
| 3430 |
rajveer |
1180 |
}
|
|
|
1181 |
}
|
|
|
1182 |
|
| 5361 |
mandeep.dh |
1183 |
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 |
1184 |
checkReady();
|
| 5361 |
mandeep.dh |
1185 |
scan_call method_call = new scan_call(inventoryItem, type, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
1186 |
this.___currentMethod = method_call;
|
|
|
1187 |
___manager.call(method_call);
|
|
|
1188 |
}
|
|
|
1189 |
|
| 4496 |
mandeep.dh |
1190 |
public static class scan_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5361 |
mandeep.dh |
1191 |
private InventoryItem inventoryItem;
|
| 3430 |
rajveer |
1192 |
private ScanType type;
|
| 4496 |
mandeep.dh |
1193 |
private long quantity;
|
| 5361 |
mandeep.dh |
1194 |
private long billingWarehouseId;
|
|
|
1195 |
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 |
1196 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5361 |
mandeep.dh |
1197 |
this.inventoryItem = inventoryItem;
|
| 3430 |
rajveer |
1198 |
this.type = type;
|
| 4496 |
mandeep.dh |
1199 |
this.quantity = quantity;
|
| 5361 |
mandeep.dh |
1200 |
this.billingWarehouseId = billingWarehouseId;
|
| 3430 |
rajveer |
1201 |
}
|
|
|
1202 |
|
|
|
1203 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
1204 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scan", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1205 |
scan_args args = new scan_args();
|
| 5361 |
mandeep.dh |
1206 |
args.setInventoryItem(inventoryItem);
|
| 3430 |
rajveer |
1207 |
args.setType(type);
|
| 4496 |
mandeep.dh |
1208 |
args.setQuantity(quantity);
|
| 5361 |
mandeep.dh |
1209 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 3430 |
rajveer |
1210 |
args.write(prot);
|
|
|
1211 |
prot.writeMessageEnd();
|
|
|
1212 |
}
|
|
|
1213 |
|
|
|
1214 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1215 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1216 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1217 |
}
|
|
|
1218 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1219 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4496 |
mandeep.dh |
1220 |
(new Client(prot)).recv_scan();
|
| 3430 |
rajveer |
1221 |
}
|
|
|
1222 |
}
|
|
|
1223 |
|
| 5110 |
mandeep.dh |
1224 |
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 |
1225 |
checkReady();
|
| 5110 |
mandeep.dh |
1226 |
scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 4496 |
mandeep.dh |
1227 |
this.___currentMethod = method_call;
|
|
|
1228 |
___manager.call(method_call);
|
|
|
1229 |
}
|
|
|
1230 |
|
|
|
1231 |
public static class scanSerializedItemForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 4555 |
mandeep.dh |
1232 |
private String serialNumber;
|
| 4496 |
mandeep.dh |
1233 |
private ScanType type;
|
|
|
1234 |
private long orderId;
|
| 5110 |
mandeep.dh |
1235 |
private long fulfilmentWarehouseId;
|
|
|
1236 |
private double quantity;
|
|
|
1237 |
private long billingWarehouseId;
|
|
|
1238 |
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 |
1239 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 4555 |
mandeep.dh |
1240 |
this.serialNumber = serialNumber;
|
| 4496 |
mandeep.dh |
1241 |
this.type = type;
|
|
|
1242 |
this.orderId = orderId;
|
| 5110 |
mandeep.dh |
1243 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
1244 |
this.quantity = quantity;
|
|
|
1245 |
this.billingWarehouseId = billingWarehouseId;
|
| 4496 |
mandeep.dh |
1246 |
}
|
|
|
1247 |
|
|
|
1248 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1249 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItemForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1250 |
scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
|
| 4555 |
mandeep.dh |
1251 |
args.setSerialNumber(serialNumber);
|
| 4496 |
mandeep.dh |
1252 |
args.setType(type);
|
|
|
1253 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
1254 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
|
|
1255 |
args.setQuantity(quantity);
|
|
|
1256 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
1257 |
args.write(prot);
|
|
|
1258 |
prot.writeMessageEnd();
|
|
|
1259 |
}
|
|
|
1260 |
|
| 4555 |
mandeep.dh |
1261 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
1262 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1263 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1264 |
}
|
|
|
1265 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1266 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1267 |
return (new Client(prot)).recv_scanSerializedItemForOrder();
|
|
|
1268 |
}
|
|
|
1269 |
}
|
|
|
1270 |
|
| 5361 |
mandeep.dh |
1271 |
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 |
1272 |
checkReady();
|
| 5361 |
mandeep.dh |
1273 |
scanForOrder_call method_call = new scanForOrder_call(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
|
| 4496 |
mandeep.dh |
1274 |
this.___currentMethod = method_call;
|
|
|
1275 |
___manager.call(method_call);
|
|
|
1276 |
}
|
|
|
1277 |
|
|
|
1278 |
public static class scanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 5361 |
mandeep.dh |
1279 |
private InventoryItem inventoryItem;
|
| 4496 |
mandeep.dh |
1280 |
private ScanType type;
|
|
|
1281 |
private long quantity;
|
|
|
1282 |
private long orderId;
|
| 5110 |
mandeep.dh |
1283 |
private long fulfilmentWarehouseId;
|
| 5361 |
mandeep.dh |
1284 |
private long billingWarehouseId;
|
|
|
1285 |
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 |
1286 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 5361 |
mandeep.dh |
1287 |
this.inventoryItem = inventoryItem;
|
| 4496 |
mandeep.dh |
1288 |
this.type = type;
|
|
|
1289 |
this.quantity = quantity;
|
|
|
1290 |
this.orderId = orderId;
|
| 5110 |
mandeep.dh |
1291 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
| 5361 |
mandeep.dh |
1292 |
this.billingWarehouseId = billingWarehouseId;
|
| 4496 |
mandeep.dh |
1293 |
}
|
|
|
1294 |
|
|
|
1295 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1296 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1297 |
scanForOrder_args args = new scanForOrder_args();
|
| 5361 |
mandeep.dh |
1298 |
args.setInventoryItem(inventoryItem);
|
| 4496 |
mandeep.dh |
1299 |
args.setType(type);
|
|
|
1300 |
args.setQuantity(quantity);
|
|
|
1301 |
args.setOrderId(orderId);
|
| 5110 |
mandeep.dh |
1302 |
args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
1303 |
args.setBillingWarehouseId(billingWarehouseId);
|
| 4496 |
mandeep.dh |
1304 |
args.write(prot);
|
|
|
1305 |
prot.writeMessageEnd();
|
|
|
1306 |
}
|
|
|
1307 |
|
| 5361 |
mandeep.dh |
1308 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
| 4496 |
mandeep.dh |
1309 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1310 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1311 |
}
|
|
|
1312 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1313 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 5361 |
mandeep.dh |
1314 |
return (new Client(prot)).recv_scanForOrder();
|
| 4496 |
mandeep.dh |
1315 |
}
|
|
|
1316 |
}
|
|
|
1317 |
|
|
|
1318 |
public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1319 |
checkReady();
|
|
|
1320 |
createItemNumberMapping_call method_call = new createItemNumberMapping_call(itemNumber, itemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1321 |
this.___currentMethod = method_call;
|
|
|
1322 |
___manager.call(method_call);
|
|
|
1323 |
}
|
|
|
1324 |
|
|
|
1325 |
public static class createItemNumberMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1326 |
private String itemNumber;
|
|
|
1327 |
private long itemId;
|
|
|
1328 |
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 {
|
|
|
1329 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1330 |
this.itemNumber = itemNumber;
|
|
|
1331 |
this.itemId = itemId;
|
|
|
1332 |
}
|
|
|
1333 |
|
|
|
1334 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1335 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createItemNumberMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1336 |
createItemNumberMapping_args args = new createItemNumberMapping_args();
|
|
|
1337 |
args.setItemNumber(itemNumber);
|
|
|
1338 |
args.setItemId(itemId);
|
|
|
1339 |
args.write(prot);
|
|
|
1340 |
prot.writeMessageEnd();
|
|
|
1341 |
}
|
|
|
1342 |
|
|
|
1343 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
1344 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1345 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1346 |
}
|
|
|
1347 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1348 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1349 |
(new Client(prot)).recv_createItemNumberMapping();
|
|
|
1350 |
}
|
|
|
1351 |
}
|
|
|
1352 |
|
| 4622 |
amit.gupta |
1353 |
public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemNumbers_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1354 |
checkReady();
|
|
|
1355 |
getItemNumbers_call method_call = new getItemNumbers_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1356 |
this.___currentMethod = method_call;
|
|
|
1357 |
___manager.call(method_call);
|
|
|
1358 |
}
|
|
|
1359 |
|
|
|
1360 |
public static class getItemNumbers_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1361 |
private long itemId;
|
|
|
1362 |
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 {
|
|
|
1363 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1364 |
this.itemId = itemId;
|
|
|
1365 |
}
|
|
|
1366 |
|
|
|
1367 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1368 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemNumbers", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1369 |
getItemNumbers_args args = new getItemNumbers_args();
|
|
|
1370 |
args.setItemId(itemId);
|
|
|
1371 |
args.write(prot);
|
|
|
1372 |
prot.writeMessageEnd();
|
|
|
1373 |
}
|
|
|
1374 |
|
|
|
1375 |
public List<String> getResult() throws org.apache.thrift.TException {
|
|
|
1376 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1377 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1378 |
}
|
|
|
1379 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1380 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1381 |
return (new Client(prot)).recv_getItemNumbers();
|
|
|
1382 |
}
|
|
|
1383 |
}
|
|
|
1384 |
|
| 5110 |
mandeep.dh |
1385 |
public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<getItemIds_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1386 |
checkReady();
|
|
|
1387 |
getItemIds_call method_call = new getItemIds_call(itemNumber, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1388 |
this.___currentMethod = method_call;
|
|
|
1389 |
___manager.call(method_call);
|
|
|
1390 |
}
|
|
|
1391 |
|
|
|
1392 |
public static class getItemIds_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1393 |
private String itemNumber;
|
|
|
1394 |
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 {
|
|
|
1395 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1396 |
this.itemNumber = itemNumber;
|
|
|
1397 |
}
|
|
|
1398 |
|
|
|
1399 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1400 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1401 |
getItemIds_args args = new getItemIds_args();
|
|
|
1402 |
args.setItemNumber(itemNumber);
|
|
|
1403 |
args.write(prot);
|
|
|
1404 |
prot.writeMessageEnd();
|
|
|
1405 |
}
|
|
|
1406 |
|
|
|
1407 |
public List<Long> getResult() throws org.apache.thrift.TException {
|
|
|
1408 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1409 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1410 |
}
|
|
|
1411 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1412 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1413 |
return (new Client(prot)).recv_getItemIds();
|
|
|
1414 |
}
|
|
|
1415 |
}
|
|
|
1416 |
|
| 5185 |
mandeep.dh |
1417 |
public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1418 |
checkReady();
|
|
|
1419 |
getInventoryItemsFromLastScanType_call method_call = new getInventoryItemsFromLastScanType_call(lastScanType, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1420 |
this.___currentMethod = method_call;
|
|
|
1421 |
___manager.call(method_call);
|
|
|
1422 |
}
|
|
|
1423 |
|
|
|
1424 |
public static class getInventoryItemsFromLastScanType_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1425 |
private ScanType lastScanType;
|
|
|
1426 |
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 {
|
|
|
1427 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1428 |
this.lastScanType = lastScanType;
|
|
|
1429 |
}
|
|
|
1430 |
|
|
|
1431 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1432 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemsFromLastScanType", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1433 |
getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
|
|
|
1434 |
args.setLastScanType(lastScanType);
|
|
|
1435 |
args.write(prot);
|
|
|
1436 |
prot.writeMessageEnd();
|
|
|
1437 |
}
|
|
|
1438 |
|
|
|
1439 |
public List<InventoryItem> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1440 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1441 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1442 |
}
|
|
|
1443 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1444 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1445 |
return (new Client(prot)).recv_getInventoryItemsFromLastScanType();
|
|
|
1446 |
}
|
|
|
1447 |
}
|
|
|
1448 |
|
|
|
1449 |
public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1450 |
checkReady();
|
|
|
1451 |
getInventoryItemFromId_call method_call = new getInventoryItemFromId_call(inventoryItemId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1452 |
this.___currentMethod = method_call;
|
|
|
1453 |
___manager.call(method_call);
|
|
|
1454 |
}
|
|
|
1455 |
|
|
|
1456 |
public static class getInventoryItemFromId_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1457 |
private long inventoryItemId;
|
|
|
1458 |
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 {
|
|
|
1459 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1460 |
this.inventoryItemId = inventoryItemId;
|
|
|
1461 |
}
|
|
|
1462 |
|
|
|
1463 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1464 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromId", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1465 |
getInventoryItemFromId_args args = new getInventoryItemFromId_args();
|
|
|
1466 |
args.setInventoryItemId(inventoryItemId);
|
|
|
1467 |
args.write(prot);
|
|
|
1468 |
prot.writeMessageEnd();
|
|
|
1469 |
}
|
|
|
1470 |
|
|
|
1471 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1472 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1473 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1474 |
}
|
|
|
1475 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1476 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1477 |
return (new Client(prot)).recv_getInventoryItemFromId();
|
|
|
1478 |
}
|
|
|
1479 |
}
|
|
|
1480 |
|
| 5372 |
mandeep.dh |
1481 |
public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1482 |
checkReady();
|
|
|
1483 |
getPurchaseScans_call method_call = new getPurchaseScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1484 |
this.___currentMethod = method_call;
|
|
|
1485 |
___manager.call(method_call);
|
|
|
1486 |
}
|
|
|
1487 |
|
|
|
1488 |
public static class getPurchaseScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1489 |
private long startDate;
|
|
|
1490 |
private long endDate;
|
|
|
1491 |
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 {
|
|
|
1492 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1493 |
this.startDate = startDate;
|
|
|
1494 |
this.endDate = endDate;
|
|
|
1495 |
}
|
|
|
1496 |
|
|
|
1497 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1498 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1499 |
getPurchaseScans_args args = new getPurchaseScans_args();
|
|
|
1500 |
args.setStartDate(startDate);
|
|
|
1501 |
args.setEndDate(endDate);
|
|
|
1502 |
args.write(prot);
|
|
|
1503 |
prot.writeMessageEnd();
|
|
|
1504 |
}
|
|
|
1505 |
|
|
|
1506 |
public List<DetailedPurchaseScan> getResult() throws org.apache.thrift.TException {
|
|
|
1507 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1508 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1509 |
}
|
|
|
1510 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1511 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1512 |
return (new Client(prot)).recv_getPurchaseScans();
|
|
|
1513 |
}
|
|
|
1514 |
}
|
|
|
1515 |
|
| 7210 |
amar.kumar |
1516 |
public void getPurchaseScansByGrnDate(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScansByGrnDate_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1517 |
checkReady();
|
|
|
1518 |
getPurchaseScansByGrnDate_call method_call = new getPurchaseScansByGrnDate_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1519 |
this.___currentMethod = method_call;
|
|
|
1520 |
___manager.call(method_call);
|
|
|
1521 |
}
|
|
|
1522 |
|
|
|
1523 |
public static class getPurchaseScansByGrnDate_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1524 |
private long startDate;
|
|
|
1525 |
private long endDate;
|
|
|
1526 |
public getPurchaseScansByGrnDate_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScansByGrnDate_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 {
|
|
|
1527 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1528 |
this.startDate = startDate;
|
|
|
1529 |
this.endDate = endDate;
|
|
|
1530 |
}
|
|
|
1531 |
|
|
|
1532 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1533 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseScansByGrnDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1534 |
getPurchaseScansByGrnDate_args args = new getPurchaseScansByGrnDate_args();
|
|
|
1535 |
args.setStartDate(startDate);
|
|
|
1536 |
args.setEndDate(endDate);
|
|
|
1537 |
args.write(prot);
|
|
|
1538 |
prot.writeMessageEnd();
|
|
|
1539 |
}
|
|
|
1540 |
|
|
|
1541 |
public List<DetailedPurchaseScan> getResult() throws org.apache.thrift.TException {
|
|
|
1542 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1543 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1544 |
}
|
|
|
1545 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1546 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1547 |
return (new Client(prot)).recv_getPurchaseScansByGrnDate();
|
|
|
1548 |
}
|
|
|
1549 |
}
|
|
|
1550 |
|
| 5496 |
mandeep.dh |
1551 |
public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1552 |
checkReady();
|
|
|
1553 |
fetchScansPerInvoiceNumber_call method_call = new fetchScansPerInvoiceNumber_call(date, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1554 |
this.___currentMethod = method_call;
|
|
|
1555 |
___manager.call(method_call);
|
|
|
1556 |
}
|
|
|
1557 |
|
|
|
1558 |
public static class fetchScansPerInvoiceNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1559 |
private long date;
|
|
|
1560 |
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 {
|
|
|
1561 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1562 |
this.date = date;
|
|
|
1563 |
}
|
|
|
1564 |
|
|
|
1565 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1566 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchScansPerInvoiceNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1567 |
fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
|
|
|
1568 |
args.setDate(date);
|
|
|
1569 |
args.write(prot);
|
|
|
1570 |
prot.writeMessageEnd();
|
|
|
1571 |
}
|
|
|
1572 |
|
|
|
1573 |
public List<InvoiceScan> getResult() throws org.apache.thrift.TException {
|
|
|
1574 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1575 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1576 |
}
|
|
|
1577 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1578 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1579 |
return (new Client(prot)).recv_fetchScansPerInvoiceNumber();
|
|
|
1580 |
}
|
|
|
1581 |
}
|
|
|
1582 |
|
| 5620 |
mandeep.dh |
1583 |
public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1584 |
checkReady();
|
|
|
1585 |
getInventoryItemFromOrder_call method_call = new getInventoryItemFromOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1586 |
this.___currentMethod = method_call;
|
|
|
1587 |
___manager.call(method_call);
|
|
|
1588 |
}
|
|
|
1589 |
|
|
|
1590 |
public static class getInventoryItemFromOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1591 |
private long orderId;
|
|
|
1592 |
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 {
|
|
|
1593 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1594 |
this.orderId = orderId;
|
|
|
1595 |
}
|
|
|
1596 |
|
|
|
1597 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1598 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1599 |
getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
|
|
|
1600 |
args.setOrderId(orderId);
|
|
|
1601 |
args.write(prot);
|
|
|
1602 |
prot.writeMessageEnd();
|
|
|
1603 |
}
|
|
|
1604 |
|
|
|
1605 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1606 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1607 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1608 |
}
|
|
|
1609 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1610 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1611 |
return (new Client(prot)).recv_getInventoryItemFromOrder();
|
|
|
1612 |
}
|
|
|
1613 |
}
|
|
|
1614 |
|
| 5711 |
mandeep.dh |
1615 |
public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<getInventoryAge_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1616 |
checkReady();
|
|
|
1617 |
getInventoryAge_call method_call = new getInventoryAge_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1618 |
this.___currentMethod = method_call;
|
|
|
1619 |
___manager.call(method_call);
|
|
|
1620 |
}
|
|
|
1621 |
|
|
|
1622 |
public static class getInventoryAge_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1623 |
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 {
|
|
|
1624 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1625 |
}
|
|
|
1626 |
|
|
|
1627 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1628 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryAge", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1629 |
getInventoryAge_args args = new getInventoryAge_args();
|
|
|
1630 |
args.write(prot);
|
|
|
1631 |
prot.writeMessageEnd();
|
|
|
1632 |
}
|
|
|
1633 |
|
|
|
1634 |
public List<InventoryAge> getResult() throws org.apache.thrift.TException {
|
|
|
1635 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1636 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1637 |
}
|
|
|
1638 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1639 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1640 |
return (new Client(prot)).recv_getInventoryAge();
|
|
|
1641 |
}
|
|
|
1642 |
}
|
|
|
1643 |
|
| 6322 |
amar.kumar |
1644 |
public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1645 |
checkReady();
|
|
|
1646 |
getInventoryScansForItem_call method_call = new getInventoryScansForItem_call(itemId, fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1647 |
this.___currentMethod = method_call;
|
|
|
1648 |
___manager.call(method_call);
|
|
|
1649 |
}
|
|
|
1650 |
|
|
|
1651 |
public static class getInventoryScansForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1652 |
private long itemId;
|
|
|
1653 |
private long fromDate;
|
|
|
1654 |
private long toDate;
|
|
|
1655 |
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 {
|
|
|
1656 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1657 |
this.itemId = itemId;
|
|
|
1658 |
this.fromDate = fromDate;
|
|
|
1659 |
this.toDate = toDate;
|
|
|
1660 |
}
|
|
|
1661 |
|
|
|
1662 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1663 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryScansForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1664 |
getInventoryScansForItem_args args = new getInventoryScansForItem_args();
|
|
|
1665 |
args.setItemId(itemId);
|
|
|
1666 |
args.setFromDate(fromDate);
|
|
|
1667 |
args.setToDate(toDate);
|
|
|
1668 |
args.write(prot);
|
|
|
1669 |
prot.writeMessageEnd();
|
|
|
1670 |
}
|
|
|
1671 |
|
|
|
1672 |
public List<Scan> getResult() throws org.apache.thrift.TException {
|
|
|
1673 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1674 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1675 |
}
|
|
|
1676 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1677 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1678 |
return (new Client(prot)).recv_getInventoryScansForItem();
|
|
|
1679 |
}
|
|
|
1680 |
}
|
|
|
1681 |
|
|
|
1682 |
public void getScanRecordsForSerialNumber(long serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1683 |
checkReady();
|
|
|
1684 |
getScanRecordsForSerialNumber_call method_call = new getScanRecordsForSerialNumber_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1685 |
this.___currentMethod = method_call;
|
|
|
1686 |
___manager.call(method_call);
|
|
|
1687 |
}
|
|
|
1688 |
|
|
|
1689 |
public static class getScanRecordsForSerialNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1690 |
private long serialNumber;
|
|
|
1691 |
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 {
|
|
|
1692 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1693 |
this.serialNumber = serialNumber;
|
|
|
1694 |
}
|
|
|
1695 |
|
|
|
1696 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1697 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScanRecordsForSerialNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1698 |
getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
|
|
|
1699 |
args.setSerialNumber(serialNumber);
|
|
|
1700 |
args.write(prot);
|
|
|
1701 |
prot.writeMessageEnd();
|
|
|
1702 |
}
|
|
|
1703 |
|
|
|
1704 |
public List<Scan> getResult() throws org.apache.thrift.TException {
|
|
|
1705 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1706 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1707 |
}
|
|
|
1708 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1709 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1710 |
return (new Client(prot)).recv_getScanRecordsForSerialNumber();
|
|
|
1711 |
}
|
|
|
1712 |
}
|
|
|
1713 |
|
| 6467 |
amar.kumar |
1714 |
public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1715 |
checkReady();
|
|
|
1716 |
scanForPurchaseReturn_call method_call = new scanForPurchaseReturn_call(saleReturnItems, vendorId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1717 |
this.___currentMethod = method_call;
|
|
|
1718 |
___manager.call(method_call);
|
|
|
1719 |
}
|
|
|
1720 |
|
|
|
1721 |
public static class scanForPurchaseReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1722 |
private List<InventoryItem> saleReturnItems;
|
|
|
1723 |
private long vendorId;
|
|
|
1724 |
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 {
|
|
|
1725 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1726 |
this.saleReturnItems = saleReturnItems;
|
|
|
1727 |
this.vendorId = vendorId;
|
|
|
1728 |
}
|
|
|
1729 |
|
|
|
1730 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1731 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForPurchaseReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1732 |
scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
|
|
|
1733 |
args.setSaleReturnItems(saleReturnItems);
|
|
|
1734 |
args.setVendorId(vendorId);
|
|
|
1735 |
args.write(prot);
|
|
|
1736 |
prot.writeMessageEnd();
|
|
|
1737 |
}
|
|
|
1738 |
|
|
|
1739 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1740 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1741 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1742 |
}
|
|
|
1743 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1744 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1745 |
(new Client(prot)).recv_scanForPurchaseReturn();
|
|
|
1746 |
}
|
|
|
1747 |
}
|
|
|
1748 |
|
| 6548 |
amar.kumar |
1749 |
public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForLostItem_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1750 |
checkReady();
|
|
|
1751 |
scanForLostItem_call method_call = new scanForLostItem_call(lostItems, vendorId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1752 |
this.___currentMethod = method_call;
|
|
|
1753 |
___manager.call(method_call);
|
|
|
1754 |
}
|
|
|
1755 |
|
|
|
1756 |
public static class scanForLostItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1757 |
private List<InventoryItem> lostItems;
|
|
|
1758 |
private long vendorId;
|
|
|
1759 |
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 {
|
|
|
1760 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1761 |
this.lostItems = lostItems;
|
|
|
1762 |
this.vendorId = vendorId;
|
|
|
1763 |
}
|
|
|
1764 |
|
|
|
1765 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1766 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForLostItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1767 |
scanForLostItem_args args = new scanForLostItem_args();
|
|
|
1768 |
args.setLostItems(lostItems);
|
|
|
1769 |
args.setVendorId(vendorId);
|
|
|
1770 |
args.write(prot);
|
|
|
1771 |
prot.writeMessageEnd();
|
|
|
1772 |
}
|
|
|
1773 |
|
|
|
1774 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1775 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1776 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1777 |
}
|
|
|
1778 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1779 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1780 |
(new Client(prot)).recv_scanForLostItem();
|
|
|
1781 |
}
|
|
|
1782 |
}
|
|
|
1783 |
|
|
|
1784 |
public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1785 |
checkReady();
|
|
|
1786 |
getCurrentSerializedInventoryByScans_call method_call = new getCurrentSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1787 |
this.___currentMethod = method_call;
|
|
|
1788 |
___manager.call(method_call);
|
|
|
1789 |
}
|
|
|
1790 |
|
|
|
1791 |
public static class getCurrentSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1792 |
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 {
|
|
|
1793 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1794 |
}
|
|
|
1795 |
|
|
|
1796 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1797 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1798 |
getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
|
|
|
1799 |
args.write(prot);
|
|
|
1800 |
prot.writeMessageEnd();
|
|
|
1801 |
}
|
|
|
1802 |
|
|
|
1803 |
public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
|
|
|
1804 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1805 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1806 |
}
|
|
|
1807 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1808 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1809 |
return (new Client(prot)).recv_getCurrentSerializedInventoryByScans();
|
|
|
1810 |
}
|
|
|
1811 |
}
|
|
|
1812 |
|
| 6630 |
amar.kumar |
1813 |
public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1814 |
checkReady();
|
|
|
1815 |
getCurrentNonSerializedInventoryByScans_call method_call = new getCurrentNonSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1816 |
this.___currentMethod = method_call;
|
|
|
1817 |
___manager.call(method_call);
|
|
|
1818 |
}
|
|
|
1819 |
|
|
|
1820 |
public static class getCurrentNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1821 |
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 {
|
|
|
1822 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1823 |
}
|
|
|
1824 |
|
|
|
1825 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1826 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1827 |
getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
|
|
|
1828 |
args.write(prot);
|
|
|
1829 |
prot.writeMessageEnd();
|
|
|
1830 |
}
|
|
|
1831 |
|
|
|
1832 |
public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
|
|
|
1833 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1834 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1835 |
}
|
|
|
1836 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1837 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1838 |
return (new Client(prot)).recv_getCurrentNonSerializedInventoryByScans();
|
|
|
1839 |
}
|
|
|
1840 |
}
|
|
|
1841 |
|
| 6762 |
amar.kumar |
1842 |
public void getHistoricSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1843 |
checkReady();
|
|
|
1844 |
getHistoricSerializedInventoryByScans_call method_call = new getHistoricSerializedInventoryByScans_call(date, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1845 |
this.___currentMethod = method_call;
|
|
|
1846 |
___manager.call(method_call);
|
|
|
1847 |
}
|
|
|
1848 |
|
|
|
1849 |
public static class getHistoricSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1850 |
private long date;
|
|
|
1851 |
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 {
|
|
|
1852 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1853 |
this.date = date;
|
|
|
1854 |
}
|
|
|
1855 |
|
|
|
1856 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1857 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistoricSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1858 |
getHistoricSerializedInventoryByScans_args args = new getHistoricSerializedInventoryByScans_args();
|
|
|
1859 |
args.setDate(date);
|
|
|
1860 |
args.write(prot);
|
|
|
1861 |
prot.writeMessageEnd();
|
|
|
1862 |
}
|
|
|
1863 |
|
|
|
1864 |
public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
|
|
|
1865 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1866 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1867 |
}
|
|
|
1868 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1869 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1870 |
return (new Client(prot)).recv_getHistoricSerializedInventoryByScans();
|
|
|
1871 |
}
|
|
|
1872 |
}
|
|
|
1873 |
|
|
|
1874 |
public void getHistoricNonSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1875 |
checkReady();
|
|
|
1876 |
getHistoricNonSerializedInventoryByScans_call method_call = new getHistoricNonSerializedInventoryByScans_call(date, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1877 |
this.___currentMethod = method_call;
|
|
|
1878 |
___manager.call(method_call);
|
|
|
1879 |
}
|
|
|
1880 |
|
|
|
1881 |
public static class getHistoricNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1882 |
private long date;
|
|
|
1883 |
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 {
|
|
|
1884 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1885 |
this.date = date;
|
|
|
1886 |
}
|
|
|
1887 |
|
|
|
1888 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1889 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistoricNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1890 |
getHistoricNonSerializedInventoryByScans_args args = new getHistoricNonSerializedInventoryByScans_args();
|
|
|
1891 |
args.setDate(date);
|
|
|
1892 |
args.write(prot);
|
|
|
1893 |
prot.writeMessageEnd();
|
|
|
1894 |
}
|
|
|
1895 |
|
|
|
1896 |
public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
|
|
|
1897 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1898 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1899 |
}
|
|
|
1900 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1901 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1902 |
return (new Client(prot)).recv_getHistoricNonSerializedInventoryByScans();
|
|
|
1903 |
}
|
|
|
1904 |
}
|
|
|
1905 |
|
|
|
1906 |
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 {
|
|
|
1907 |
checkReady();
|
|
|
1908 |
scanForOursExternalSale_call method_call = new scanForOursExternalSale_call(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1909 |
this.___currentMethod = method_call;
|
|
|
1910 |
___manager.call(method_call);
|
|
|
1911 |
}
|
|
|
1912 |
|
|
|
1913 |
public static class scanForOursExternalSale_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1914 |
private long itemId;
|
|
|
1915 |
private String serialNumber;
|
|
|
1916 |
private String itemNumber;
|
|
|
1917 |
private String invoiceNumber;
|
|
|
1918 |
private long warehouseId;
|
|
|
1919 |
private double unitPrice;
|
|
|
1920 |
private long orderId;
|
|
|
1921 |
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 {
|
|
|
1922 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1923 |
this.itemId = itemId;
|
|
|
1924 |
this.serialNumber = serialNumber;
|
|
|
1925 |
this.itemNumber = itemNumber;
|
|
|
1926 |
this.invoiceNumber = invoiceNumber;
|
|
|
1927 |
this.warehouseId = warehouseId;
|
|
|
1928 |
this.unitPrice = unitPrice;
|
|
|
1929 |
this.orderId = orderId;
|
|
|
1930 |
}
|
|
|
1931 |
|
|
|
1932 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1933 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursExternalSale", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1934 |
scanForOursExternalSale_args args = new scanForOursExternalSale_args();
|
|
|
1935 |
args.setItemId(itemId);
|
|
|
1936 |
args.setSerialNumber(serialNumber);
|
|
|
1937 |
args.setItemNumber(itemNumber);
|
|
|
1938 |
args.setInvoiceNumber(invoiceNumber);
|
|
|
1939 |
args.setWarehouseId(warehouseId);
|
|
|
1940 |
args.setUnitPrice(unitPrice);
|
|
|
1941 |
args.setOrderId(orderId);
|
|
|
1942 |
args.write(prot);
|
|
|
1943 |
prot.writeMessageEnd();
|
|
|
1944 |
}
|
|
|
1945 |
|
|
|
1946 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
1947 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1948 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1949 |
}
|
|
|
1950 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1951 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1952 |
return (new Client(prot)).recv_scanForOursExternalSale();
|
|
|
1953 |
}
|
|
|
1954 |
}
|
|
|
1955 |
|
|
|
1956 |
public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1957 |
checkReady();
|
|
|
1958 |
scanForOursExternalSaleReturn_call method_call = new scanForOursExternalSaleReturn_call(orderId, unitPrice, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1959 |
this.___currentMethod = method_call;
|
|
|
1960 |
___manager.call(method_call);
|
|
|
1961 |
}
|
|
|
1962 |
|
|
|
1963 |
public static class scanForOursExternalSaleReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1964 |
private long orderId;
|
|
|
1965 |
private double unitPrice;
|
|
|
1966 |
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 {
|
|
|
1967 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1968 |
this.orderId = orderId;
|
|
|
1969 |
this.unitPrice = unitPrice;
|
|
|
1970 |
}
|
|
|
1971 |
|
|
|
1972 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1973 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursExternalSaleReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1974 |
scanForOursExternalSaleReturn_args args = new scanForOursExternalSaleReturn_args();
|
|
|
1975 |
args.setOrderId(orderId);
|
|
|
1976 |
args.setUnitPrice(unitPrice);
|
|
|
1977 |
args.write(prot);
|
|
|
1978 |
prot.writeMessageEnd();
|
|
|
1979 |
}
|
|
|
1980 |
|
|
|
1981 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
1982 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1983 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1984 |
}
|
|
|
1985 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1986 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1987 |
(new Client(prot)).recv_scanForOursExternalSaleReturn();
|
|
|
1988 |
}
|
|
|
1989 |
}
|
|
|
1990 |
|
| 6880 |
amar.kumar |
1991 |
public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1992 |
checkReady();
|
|
|
1993 |
getMovementNonSerializedInventoryByScans_call method_call = new getMovementNonSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1994 |
this.___currentMethod = method_call;
|
|
|
1995 |
___manager.call(method_call);
|
|
|
1996 |
}
|
|
|
1997 |
|
|
|
1998 |
public static class getMovementNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1999 |
private long startDate;
|
|
|
2000 |
private long endDate;
|
|
|
2001 |
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 {
|
|
|
2002 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
2003 |
this.startDate = startDate;
|
|
|
2004 |
this.endDate = endDate;
|
|
|
2005 |
}
|
|
|
2006 |
|
|
|
2007 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
2008 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
2009 |
getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
|
|
|
2010 |
args.setStartDate(startDate);
|
|
|
2011 |
args.setEndDate(endDate);
|
|
|
2012 |
args.write(prot);
|
|
|
2013 |
prot.writeMessageEnd();
|
|
|
2014 |
}
|
|
|
2015 |
|
|
|
2016 |
public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
|
|
|
2017 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
2018 |
throw new IllegalStateException("Method call not finished!");
|
|
|
2019 |
}
|
|
|
2020 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
2021 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
2022 |
return (new Client(prot)).recv_getMovementNonSerializedInventoryByScans();
|
|
|
2023 |
}
|
|
|
2024 |
}
|
|
|
2025 |
|
|
|
2026 |
public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
2027 |
checkReady();
|
|
|
2028 |
getMovementSerializedInventoryByScans_call method_call = new getMovementSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
2029 |
this.___currentMethod = method_call;
|
|
|
2030 |
___manager.call(method_call);
|
|
|
2031 |
}
|
|
|
2032 |
|
|
|
2033 |
public static class getMovementSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
2034 |
private long startDate;
|
|
|
2035 |
private long endDate;
|
|
|
2036 |
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 {
|
|
|
2037 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
2038 |
this.startDate = startDate;
|
|
|
2039 |
this.endDate = endDate;
|
|
|
2040 |
}
|
|
|
2041 |
|
|
|
2042 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
2043 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
2044 |
getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
|
|
|
2045 |
args.setStartDate(startDate);
|
|
|
2046 |
args.setEndDate(endDate);
|
|
|
2047 |
args.write(prot);
|
|
|
2048 |
prot.writeMessageEnd();
|
|
|
2049 |
}
|
|
|
2050 |
|
|
|
2051 |
public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
|
|
|
2052 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
2053 |
throw new IllegalStateException("Method call not finished!");
|
|
|
2054 |
}
|
|
|
2055 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
2056 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
2057 |
return (new Client(prot)).recv_getMovementSerializedInventoryByScans();
|
|
|
2058 |
}
|
|
|
2059 |
}
|
|
|
2060 |
|
| 7216 |
amar.kumar |
2061 |
public void getCompleteMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
2062 |
checkReady();
|
|
|
2063 |
getCompleteMovementSerializedInventoryByScans_call method_call = new getCompleteMovementSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
2064 |
this.___currentMethod = method_call;
|
|
|
2065 |
___manager.call(method_call);
|
|
|
2066 |
}
|
|
|
2067 |
|
|
|
2068 |
public static class getCompleteMovementSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
2069 |
private long startDate;
|
|
|
2070 |
private long endDate;
|
|
|
2071 |
public getCompleteMovementSerializedInventoryByScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementSerializedInventoryByScans_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 {
|
|
|
2072 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
2073 |
this.startDate = startDate;
|
|
|
2074 |
this.endDate = endDate;
|
|
|
2075 |
}
|
|
|
2076 |
|
|
|
2077 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
2078 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCompleteMovementSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
2079 |
getCompleteMovementSerializedInventoryByScans_args args = new getCompleteMovementSerializedInventoryByScans_args();
|
|
|
2080 |
args.setStartDate(startDate);
|
|
|
2081 |
args.setEndDate(endDate);
|
|
|
2082 |
args.write(prot);
|
|
|
2083 |
prot.writeMessageEnd();
|
|
|
2084 |
}
|
|
|
2085 |
|
|
|
2086 |
public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
|
|
|
2087 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
2088 |
throw new IllegalStateException("Method call not finished!");
|
|
|
2089 |
}
|
|
|
2090 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
2091 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
2092 |
return (new Client(prot)).recv_getCompleteMovementSerializedInventoryByScans();
|
|
|
2093 |
}
|
|
|
2094 |
}
|
|
|
2095 |
|
|
|
2096 |
public void getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
2097 |
checkReady();
|
|
|
2098 |
getCompleteMovementNonSerializedInventoryByScans_call method_call = new getCompleteMovementNonSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
2099 |
this.___currentMethod = method_call;
|
|
|
2100 |
___manager.call(method_call);
|
|
|
2101 |
}
|
|
|
2102 |
|
|
|
2103 |
public static class getCompleteMovementNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
2104 |
private long startDate;
|
|
|
2105 |
private long endDate;
|
|
|
2106 |
public getCompleteMovementNonSerializedInventoryByScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementNonSerializedInventoryByScans_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 {
|
|
|
2107 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
2108 |
this.startDate = startDate;
|
|
|
2109 |
this.endDate = endDate;
|
|
|
2110 |
}
|
|
|
2111 |
|
|
|
2112 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
2113 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCompleteMovementNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
2114 |
getCompleteMovementNonSerializedInventoryByScans_args args = new getCompleteMovementNonSerializedInventoryByScans_args();
|
|
|
2115 |
args.setStartDate(startDate);
|
|
|
2116 |
args.setEndDate(endDate);
|
|
|
2117 |
args.write(prot);
|
|
|
2118 |
prot.writeMessageEnd();
|
|
|
2119 |
}
|
|
|
2120 |
|
|
|
2121 |
public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
|
|
|
2122 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
2123 |
throw new IllegalStateException("Method call not finished!");
|
|
|
2124 |
}
|
|
|
2125 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
2126 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
2127 |
return (new Client(prot)).recv_getCompleteMovementNonSerializedInventoryByScans();
|
|
|
2128 |
}
|
|
|
2129 |
}
|
|
|
2130 |
|
| 7190 |
amar.kumar |
2131 |
public void scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<scanfreebie_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
2132 |
checkReady();
|
|
|
2133 |
scanfreebie_call method_call = new scanfreebie_call(orderId, freebieItemId, freebieWarehouseId, scanType, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
2134 |
this.___currentMethod = method_call;
|
|
|
2135 |
___manager.call(method_call);
|
|
|
2136 |
}
|
|
|
2137 |
|
|
|
2138 |
public static class scanfreebie_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
2139 |
private long orderId;
|
|
|
2140 |
private long freebieItemId;
|
|
|
2141 |
private long freebieWarehouseId;
|
|
|
2142 |
private ScanType scanType;
|
|
|
2143 |
public scanfreebie_call(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<scanfreebie_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 {
|
|
|
2144 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
2145 |
this.orderId = orderId;
|
|
|
2146 |
this.freebieItemId = freebieItemId;
|
|
|
2147 |
this.freebieWarehouseId = freebieWarehouseId;
|
|
|
2148 |
this.scanType = scanType;
|
|
|
2149 |
}
|
|
|
2150 |
|
|
|
2151 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
2152 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanfreebie", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
2153 |
scanfreebie_args args = new scanfreebie_args();
|
|
|
2154 |
args.setOrderId(orderId);
|
|
|
2155 |
args.setFreebieItemId(freebieItemId);
|
|
|
2156 |
args.setFreebieWarehouseId(freebieWarehouseId);
|
|
|
2157 |
args.setScanType(scanType);
|
|
|
2158 |
args.write(prot);
|
|
|
2159 |
prot.writeMessageEnd();
|
|
|
2160 |
}
|
|
|
2161 |
|
|
|
2162 |
public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
2163 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
2164 |
throw new IllegalStateException("Method call not finished!");
|
|
|
2165 |
}
|
|
|
2166 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
2167 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
2168 |
return (new Client(prot)).recv_scanfreebie();
|
|
|
2169 |
}
|
|
|
2170 |
}
|
|
|
2171 |
|
| 7199 |
amar.kumar |
2172 |
public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<reshipfreebie_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
2173 |
checkReady();
|
|
|
2174 |
reshipfreebie_call method_call = new reshipfreebie_call(oldOrderId, newOrderId, freebieItemId, scanType, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
2175 |
this.___currentMethod = method_call;
|
|
|
2176 |
___manager.call(method_call);
|
|
|
2177 |
}
|
|
|
2178 |
|
|
|
2179 |
public static class reshipfreebie_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
2180 |
private long oldOrderId;
|
|
|
2181 |
private long newOrderId;
|
|
|
2182 |
private long freebieItemId;
|
|
|
2183 |
private ScanType scanType;
|
|
|
2184 |
public reshipfreebie_call(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<reshipfreebie_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 {
|
|
|
2185 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
2186 |
this.oldOrderId = oldOrderId;
|
|
|
2187 |
this.newOrderId = newOrderId;
|
|
|
2188 |
this.freebieItemId = freebieItemId;
|
|
|
2189 |
this.scanType = scanType;
|
|
|
2190 |
}
|
|
|
2191 |
|
|
|
2192 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
2193 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reshipfreebie", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
2194 |
reshipfreebie_args args = new reshipfreebie_args();
|
|
|
2195 |
args.setOldOrderId(oldOrderId);
|
|
|
2196 |
args.setNewOrderId(newOrderId);
|
|
|
2197 |
args.setFreebieItemId(freebieItemId);
|
|
|
2198 |
args.setScanType(scanType);
|
|
|
2199 |
args.write(prot);
|
|
|
2200 |
prot.writeMessageEnd();
|
|
|
2201 |
}
|
|
|
2202 |
|
|
|
2203 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
2204 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
2205 |
throw new IllegalStateException("Method call not finished!");
|
|
|
2206 |
}
|
|
|
2207 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
2208 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
2209 |
(new Client(prot)).recv_reshipfreebie();
|
|
|
2210 |
}
|
|
|
2211 |
}
|
|
|
2212 |
|
| 3430 |
rajveer |
2213 |
}
|
|
|
2214 |
|
|
|
2215 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
|
|
2216 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
2217 |
public Processor(I iface) {
|
|
|
2218 |
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
|
|
|
2219 |
}
|
|
|
2220 |
|
|
|
2221 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
2222 |
super(iface, getProcessMap(processMap));
|
|
|
2223 |
}
|
|
|
2224 |
|
|
|
2225 |
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 |
2226 |
processMap.put("getInventoryItem", new getInventoryItem());
|
| 5361 |
mandeep.dh |
2227 |
processMap.put("getNonSeralizedInventoryItem", new getNonSeralizedInventoryItem());
|
| 4496 |
mandeep.dh |
2228 |
processMap.put("scan", new scan());
|
|
|
2229 |
processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
|
|
|
2230 |
processMap.put("scanForOrder", new scanForOrder());
|
|
|
2231 |
processMap.put("createItemNumberMapping", new createItemNumberMapping());
|
| 4622 |
amit.gupta |
2232 |
processMap.put("getItemNumbers", new getItemNumbers());
|
| 5110 |
mandeep.dh |
2233 |
processMap.put("getItemIds", new getItemIds());
|
| 5185 |
mandeep.dh |
2234 |
processMap.put("getInventoryItemsFromLastScanType", new getInventoryItemsFromLastScanType());
|
|
|
2235 |
processMap.put("getInventoryItemFromId", new getInventoryItemFromId());
|
| 5372 |
mandeep.dh |
2236 |
processMap.put("getPurchaseScans", new getPurchaseScans());
|
| 7210 |
amar.kumar |
2237 |
processMap.put("getPurchaseScansByGrnDate", new getPurchaseScansByGrnDate());
|
| 5496 |
mandeep.dh |
2238 |
processMap.put("fetchScansPerInvoiceNumber", new fetchScansPerInvoiceNumber());
|
| 5620 |
mandeep.dh |
2239 |
processMap.put("getInventoryItemFromOrder", new getInventoryItemFromOrder());
|
| 5711 |
mandeep.dh |
2240 |
processMap.put("getInventoryAge", new getInventoryAge());
|
| 6322 |
amar.kumar |
2241 |
processMap.put("getInventoryScansForItem", new getInventoryScansForItem());
|
|
|
2242 |
processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
|
| 6467 |
amar.kumar |
2243 |
processMap.put("scanForPurchaseReturn", new scanForPurchaseReturn());
|
| 6548 |
amar.kumar |
2244 |
processMap.put("scanForLostItem", new scanForLostItem());
|
|
|
2245 |
processMap.put("getCurrentSerializedInventoryByScans", new getCurrentSerializedInventoryByScans());
|
| 6630 |
amar.kumar |
2246 |
processMap.put("getCurrentNonSerializedInventoryByScans", new getCurrentNonSerializedInventoryByScans());
|
| 6762 |
amar.kumar |
2247 |
processMap.put("getHistoricSerializedInventoryByScans", new getHistoricSerializedInventoryByScans());
|
|
|
2248 |
processMap.put("getHistoricNonSerializedInventoryByScans", new getHistoricNonSerializedInventoryByScans());
|
|
|
2249 |
processMap.put("scanForOursExternalSale", new scanForOursExternalSale());
|
|
|
2250 |
processMap.put("scanForOursExternalSaleReturn", new scanForOursExternalSaleReturn());
|
| 6880 |
amar.kumar |
2251 |
processMap.put("getMovementNonSerializedInventoryByScans", new getMovementNonSerializedInventoryByScans());
|
|
|
2252 |
processMap.put("getMovementSerializedInventoryByScans", new getMovementSerializedInventoryByScans());
|
| 7216 |
amar.kumar |
2253 |
processMap.put("getCompleteMovementSerializedInventoryByScans", new getCompleteMovementSerializedInventoryByScans());
|
|
|
2254 |
processMap.put("getCompleteMovementNonSerializedInventoryByScans", new getCompleteMovementNonSerializedInventoryByScans());
|
| 7190 |
amar.kumar |
2255 |
processMap.put("scanfreebie", new scanfreebie());
|
| 7199 |
amar.kumar |
2256 |
processMap.put("reshipfreebie", new reshipfreebie());
|
| 3430 |
rajveer |
2257 |
return processMap;
|
|
|
2258 |
}
|
|
|
2259 |
|
| 4496 |
mandeep.dh |
2260 |
private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
|
|
|
2261 |
public getInventoryItem() {
|
|
|
2262 |
super("getInventoryItem");
|
| 3430 |
rajveer |
2263 |
}
|
|
|
2264 |
|
| 4496 |
mandeep.dh |
2265 |
protected getInventoryItem_args getEmptyArgsInstance() {
|
|
|
2266 |
return new getInventoryItem_args();
|
| 3430 |
rajveer |
2267 |
}
|
|
|
2268 |
|
| 4496 |
mandeep.dh |
2269 |
protected getInventoryItem_result getResult(I iface, getInventoryItem_args args) throws org.apache.thrift.TException {
|
|
|
2270 |
getInventoryItem_result result = new getInventoryItem_result();
|
| 4541 |
mandeep.dh |
2271 |
try {
|
|
|
2272 |
result.success = iface.getInventoryItem(args.serialNumber);
|
|
|
2273 |
} catch (WarehouseServiceException wex) {
|
|
|
2274 |
result.wex = wex;
|
|
|
2275 |
}
|
| 3430 |
rajveer |
2276 |
return result;
|
| 2832 |
chandransh |
2277 |
}
|
|
|
2278 |
}
|
|
|
2279 |
|
| 5361 |
mandeep.dh |
2280 |
private static class getNonSeralizedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonSeralizedInventoryItem_args> {
|
|
|
2281 |
public getNonSeralizedInventoryItem() {
|
|
|
2282 |
super("getNonSeralizedInventoryItem");
|
| 3430 |
rajveer |
2283 |
}
|
|
|
2284 |
|
| 5361 |
mandeep.dh |
2285 |
protected getNonSeralizedInventoryItem_args getEmptyArgsInstance() {
|
|
|
2286 |
return new getNonSeralizedInventoryItem_args();
|
| 3430 |
rajveer |
2287 |
}
|
|
|
2288 |
|
| 5361 |
mandeep.dh |
2289 |
protected getNonSeralizedInventoryItem_result getResult(I iface, getNonSeralizedInventoryItem_args args) throws org.apache.thrift.TException {
|
|
|
2290 |
getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
|
|
|
2291 |
try {
|
| 5530 |
mandeep.dh |
2292 |
result.success = iface.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId);
|
| 5361 |
mandeep.dh |
2293 |
} catch (WarehouseServiceException wex) {
|
|
|
2294 |
result.wex = wex;
|
|
|
2295 |
}
|
| 3430 |
rajveer |
2296 |
return result;
|
| 2820 |
chandransh |
2297 |
}
|
|
|
2298 |
}
|
|
|
2299 |
|
| 4496 |
mandeep.dh |
2300 |
private static class scan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scan_args> {
|
|
|
2301 |
public scan() {
|
|
|
2302 |
super("scan");
|
| 3430 |
rajveer |
2303 |
}
|
|
|
2304 |
|
| 4496 |
mandeep.dh |
2305 |
protected scan_args getEmptyArgsInstance() {
|
|
|
2306 |
return new scan_args();
|
| 3430 |
rajveer |
2307 |
}
|
|
|
2308 |
|
| 4496 |
mandeep.dh |
2309 |
protected scan_result getResult(I iface, scan_args args) throws org.apache.thrift.TException {
|
|
|
2310 |
scan_result result = new scan_result();
|
| 3383 |
chandransh |
2311 |
try {
|
| 5361 |
mandeep.dh |
2312 |
iface.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId);
|
| 3383 |
chandransh |
2313 |
} catch (WarehouseServiceException wex) {
|
|
|
2314 |
result.wex = wex;
|
|
|
2315 |
}
|
| 3430 |
rajveer |
2316 |
return result;
|
| 3383 |
chandransh |
2317 |
}
|
|
|
2318 |
}
|
|
|
2319 |
|
| 4496 |
mandeep.dh |
2320 |
private static class scanSerializedItemForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItemForOrder_args> {
|
|
|
2321 |
public scanSerializedItemForOrder() {
|
|
|
2322 |
super("scanSerializedItemForOrder");
|
| 3430 |
rajveer |
2323 |
}
|
|
|
2324 |
|
| 4496 |
mandeep.dh |
2325 |
protected scanSerializedItemForOrder_args getEmptyArgsInstance() {
|
|
|
2326 |
return new scanSerializedItemForOrder_args();
|
| 3430 |
rajveer |
2327 |
}
|
|
|
2328 |
|
| 4496 |
mandeep.dh |
2329 |
protected scanSerializedItemForOrder_result getResult(I iface, scanSerializedItemForOrder_args args) throws org.apache.thrift.TException {
|
|
|
2330 |
scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
|
| 2820 |
chandransh |
2331 |
try {
|
| 5110 |
mandeep.dh |
2332 |
result.success = iface.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId);
|
| 2820 |
chandransh |
2333 |
} catch (WarehouseServiceException wex) {
|
|
|
2334 |
result.wex = wex;
|
|
|
2335 |
}
|
| 3430 |
rajveer |
2336 |
return result;
|
| 2820 |
chandransh |
2337 |
}
|
|
|
2338 |
}
|
|
|
2339 |
|
| 4496 |
mandeep.dh |
2340 |
private static class scanForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOrder_args> {
|
|
|
2341 |
public scanForOrder() {
|
|
|
2342 |
super("scanForOrder");
|
| 3430 |
rajveer |
2343 |
}
|
|
|
2344 |
|
| 4496 |
mandeep.dh |
2345 |
protected scanForOrder_args getEmptyArgsInstance() {
|
|
|
2346 |
return new scanForOrder_args();
|
| 3430 |
rajveer |
2347 |
}
|
|
|
2348 |
|
| 4496 |
mandeep.dh |
2349 |
protected scanForOrder_result getResult(I iface, scanForOrder_args args) throws org.apache.thrift.TException {
|
|
|
2350 |
scanForOrder_result result = new scanForOrder_result();
|
| 2820 |
chandransh |
2351 |
try {
|
| 5361 |
mandeep.dh |
2352 |
result.success = iface.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId);
|
| 2820 |
chandransh |
2353 |
} catch (WarehouseServiceException wex) {
|
|
|
2354 |
result.wex = wex;
|
|
|
2355 |
}
|
| 3430 |
rajveer |
2356 |
return result;
|
| 2820 |
chandransh |
2357 |
}
|
|
|
2358 |
}
|
|
|
2359 |
|
| 4496 |
mandeep.dh |
2360 |
private static class createItemNumberMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createItemNumberMapping_args> {
|
|
|
2361 |
public createItemNumberMapping() {
|
|
|
2362 |
super("createItemNumberMapping");
|
|
|
2363 |
}
|
|
|
2364 |
|
|
|
2365 |
protected createItemNumberMapping_args getEmptyArgsInstance() {
|
|
|
2366 |
return new createItemNumberMapping_args();
|
|
|
2367 |
}
|
|
|
2368 |
|
|
|
2369 |
protected createItemNumberMapping_result getResult(I iface, createItemNumberMapping_args args) throws org.apache.thrift.TException {
|
|
|
2370 |
createItemNumberMapping_result result = new createItemNumberMapping_result();
|
|
|
2371 |
iface.createItemNumberMapping(args.itemNumber, args.itemId);
|
|
|
2372 |
return result;
|
|
|
2373 |
}
|
|
|
2374 |
}
|
|
|
2375 |
|
| 4622 |
amit.gupta |
2376 |
private static class getItemNumbers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemNumbers_args> {
|
|
|
2377 |
public getItemNumbers() {
|
|
|
2378 |
super("getItemNumbers");
|
|
|
2379 |
}
|
|
|
2380 |
|
|
|
2381 |
protected getItemNumbers_args getEmptyArgsInstance() {
|
|
|
2382 |
return new getItemNumbers_args();
|
|
|
2383 |
}
|
|
|
2384 |
|
|
|
2385 |
protected getItemNumbers_result getResult(I iface, getItemNumbers_args args) throws org.apache.thrift.TException {
|
|
|
2386 |
getItemNumbers_result result = new getItemNumbers_result();
|
|
|
2387 |
result.success = iface.getItemNumbers(args.itemId);
|
|
|
2388 |
return result;
|
|
|
2389 |
}
|
|
|
2390 |
}
|
|
|
2391 |
|
| 5110 |
mandeep.dh |
2392 |
private static class getItemIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemIds_args> {
|
|
|
2393 |
public getItemIds() {
|
|
|
2394 |
super("getItemIds");
|
|
|
2395 |
}
|
|
|
2396 |
|
|
|
2397 |
protected getItemIds_args getEmptyArgsInstance() {
|
|
|
2398 |
return new getItemIds_args();
|
|
|
2399 |
}
|
|
|
2400 |
|
|
|
2401 |
protected getItemIds_result getResult(I iface, getItemIds_args args) throws org.apache.thrift.TException {
|
|
|
2402 |
getItemIds_result result = new getItemIds_result();
|
|
|
2403 |
result.success = iface.getItemIds(args.itemNumber);
|
|
|
2404 |
return result;
|
|
|
2405 |
}
|
|
|
2406 |
}
|
|
|
2407 |
|
| 5185 |
mandeep.dh |
2408 |
private static class getInventoryItemsFromLastScanType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemsFromLastScanType_args> {
|
|
|
2409 |
public getInventoryItemsFromLastScanType() {
|
|
|
2410 |
super("getInventoryItemsFromLastScanType");
|
|
|
2411 |
}
|
|
|
2412 |
|
|
|
2413 |
protected getInventoryItemsFromLastScanType_args getEmptyArgsInstance() {
|
|
|
2414 |
return new getInventoryItemsFromLastScanType_args();
|
|
|
2415 |
}
|
|
|
2416 |
|
|
|
2417 |
protected getInventoryItemsFromLastScanType_result getResult(I iface, getInventoryItemsFromLastScanType_args args) throws org.apache.thrift.TException {
|
|
|
2418 |
getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
|
|
|
2419 |
try {
|
|
|
2420 |
result.success = iface.getInventoryItemsFromLastScanType(args.lastScanType);
|
|
|
2421 |
} catch (WarehouseServiceException wex) {
|
|
|
2422 |
result.wex = wex;
|
|
|
2423 |
}
|
|
|
2424 |
return result;
|
|
|
2425 |
}
|
|
|
2426 |
}
|
|
|
2427 |
|
|
|
2428 |
private static class getInventoryItemFromId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromId_args> {
|
|
|
2429 |
public getInventoryItemFromId() {
|
|
|
2430 |
super("getInventoryItemFromId");
|
|
|
2431 |
}
|
|
|
2432 |
|
|
|
2433 |
protected getInventoryItemFromId_args getEmptyArgsInstance() {
|
|
|
2434 |
return new getInventoryItemFromId_args();
|
|
|
2435 |
}
|
|
|
2436 |
|
|
|
2437 |
protected getInventoryItemFromId_result getResult(I iface, getInventoryItemFromId_args args) throws org.apache.thrift.TException {
|
|
|
2438 |
getInventoryItemFromId_result result = new getInventoryItemFromId_result();
|
|
|
2439 |
try {
|
|
|
2440 |
result.success = iface.getInventoryItemFromId(args.inventoryItemId);
|
|
|
2441 |
} catch (WarehouseServiceException wex) {
|
|
|
2442 |
result.wex = wex;
|
|
|
2443 |
}
|
|
|
2444 |
return result;
|
|
|
2445 |
}
|
|
|
2446 |
}
|
|
|
2447 |
|
| 5372 |
mandeep.dh |
2448 |
private static class getPurchaseScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseScans_args> {
|
|
|
2449 |
public getPurchaseScans() {
|
|
|
2450 |
super("getPurchaseScans");
|
|
|
2451 |
}
|
|
|
2452 |
|
|
|
2453 |
protected getPurchaseScans_args getEmptyArgsInstance() {
|
|
|
2454 |
return new getPurchaseScans_args();
|
|
|
2455 |
}
|
|
|
2456 |
|
|
|
2457 |
protected getPurchaseScans_result getResult(I iface, getPurchaseScans_args args) throws org.apache.thrift.TException {
|
|
|
2458 |
getPurchaseScans_result result = new getPurchaseScans_result();
|
|
|
2459 |
result.success = iface.getPurchaseScans(args.startDate, args.endDate);
|
|
|
2460 |
return result;
|
|
|
2461 |
}
|
|
|
2462 |
}
|
|
|
2463 |
|
| 7210 |
amar.kumar |
2464 |
private static class getPurchaseScansByGrnDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseScansByGrnDate_args> {
|
|
|
2465 |
public getPurchaseScansByGrnDate() {
|
|
|
2466 |
super("getPurchaseScansByGrnDate");
|
|
|
2467 |
}
|
|
|
2468 |
|
|
|
2469 |
protected getPurchaseScansByGrnDate_args getEmptyArgsInstance() {
|
|
|
2470 |
return new getPurchaseScansByGrnDate_args();
|
|
|
2471 |
}
|
|
|
2472 |
|
|
|
2473 |
protected getPurchaseScansByGrnDate_result getResult(I iface, getPurchaseScansByGrnDate_args args) throws org.apache.thrift.TException {
|
|
|
2474 |
getPurchaseScansByGrnDate_result result = new getPurchaseScansByGrnDate_result();
|
|
|
2475 |
result.success = iface.getPurchaseScansByGrnDate(args.startDate, args.endDate);
|
|
|
2476 |
return result;
|
|
|
2477 |
}
|
|
|
2478 |
}
|
|
|
2479 |
|
| 5496 |
mandeep.dh |
2480 |
private static class fetchScansPerInvoiceNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fetchScansPerInvoiceNumber_args> {
|
|
|
2481 |
public fetchScansPerInvoiceNumber() {
|
|
|
2482 |
super("fetchScansPerInvoiceNumber");
|
|
|
2483 |
}
|
|
|
2484 |
|
|
|
2485 |
protected fetchScansPerInvoiceNumber_args getEmptyArgsInstance() {
|
|
|
2486 |
return new fetchScansPerInvoiceNumber_args();
|
|
|
2487 |
}
|
|
|
2488 |
|
|
|
2489 |
protected fetchScansPerInvoiceNumber_result getResult(I iface, fetchScansPerInvoiceNumber_args args) throws org.apache.thrift.TException {
|
|
|
2490 |
fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
|
|
|
2491 |
result.success = iface.fetchScansPerInvoiceNumber(args.date);
|
|
|
2492 |
return result;
|
|
|
2493 |
}
|
|
|
2494 |
}
|
|
|
2495 |
|
| 5620 |
mandeep.dh |
2496 |
private static class getInventoryItemFromOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromOrder_args> {
|
|
|
2497 |
public getInventoryItemFromOrder() {
|
|
|
2498 |
super("getInventoryItemFromOrder");
|
|
|
2499 |
}
|
|
|
2500 |
|
|
|
2501 |
protected getInventoryItemFromOrder_args getEmptyArgsInstance() {
|
|
|
2502 |
return new getInventoryItemFromOrder_args();
|
|
|
2503 |
}
|
|
|
2504 |
|
|
|
2505 |
protected getInventoryItemFromOrder_result getResult(I iface, getInventoryItemFromOrder_args args) throws org.apache.thrift.TException {
|
|
|
2506 |
getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
|
|
|
2507 |
try {
|
|
|
2508 |
result.success = iface.getInventoryItemFromOrder(args.orderId);
|
|
|
2509 |
} catch (WarehouseServiceException we) {
|
|
|
2510 |
result.we = we;
|
|
|
2511 |
}
|
|
|
2512 |
return result;
|
|
|
2513 |
}
|
|
|
2514 |
}
|
|
|
2515 |
|
| 5711 |
mandeep.dh |
2516 |
private static class getInventoryAge<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryAge_args> {
|
|
|
2517 |
public getInventoryAge() {
|
|
|
2518 |
super("getInventoryAge");
|
|
|
2519 |
}
|
|
|
2520 |
|
|
|
2521 |
protected getInventoryAge_args getEmptyArgsInstance() {
|
|
|
2522 |
return new getInventoryAge_args();
|
|
|
2523 |
}
|
|
|
2524 |
|
|
|
2525 |
protected getInventoryAge_result getResult(I iface, getInventoryAge_args args) throws org.apache.thrift.TException {
|
|
|
2526 |
getInventoryAge_result result = new getInventoryAge_result();
|
|
|
2527 |
result.success = iface.getInventoryAge();
|
|
|
2528 |
return result;
|
|
|
2529 |
}
|
|
|
2530 |
}
|
|
|
2531 |
|
| 6322 |
amar.kumar |
2532 |
private static class getInventoryScansForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryScansForItem_args> {
|
|
|
2533 |
public getInventoryScansForItem() {
|
|
|
2534 |
super("getInventoryScansForItem");
|
|
|
2535 |
}
|
|
|
2536 |
|
|
|
2537 |
protected getInventoryScansForItem_args getEmptyArgsInstance() {
|
|
|
2538 |
return new getInventoryScansForItem_args();
|
|
|
2539 |
}
|
|
|
2540 |
|
|
|
2541 |
protected getInventoryScansForItem_result getResult(I iface, getInventoryScansForItem_args args) throws org.apache.thrift.TException {
|
|
|
2542 |
getInventoryScansForItem_result result = new getInventoryScansForItem_result();
|
|
|
2543 |
result.success = iface.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate);
|
|
|
2544 |
return result;
|
|
|
2545 |
}
|
|
|
2546 |
}
|
|
|
2547 |
|
|
|
2548 |
private static class getScanRecordsForSerialNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScanRecordsForSerialNumber_args> {
|
|
|
2549 |
public getScanRecordsForSerialNumber() {
|
|
|
2550 |
super("getScanRecordsForSerialNumber");
|
|
|
2551 |
}
|
|
|
2552 |
|
|
|
2553 |
protected getScanRecordsForSerialNumber_args getEmptyArgsInstance() {
|
|
|
2554 |
return new getScanRecordsForSerialNumber_args();
|
|
|
2555 |
}
|
|
|
2556 |
|
|
|
2557 |
protected getScanRecordsForSerialNumber_result getResult(I iface, getScanRecordsForSerialNumber_args args) throws org.apache.thrift.TException {
|
|
|
2558 |
getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
|
|
|
2559 |
result.success = iface.getScanRecordsForSerialNumber(args.serialNumber);
|
|
|
2560 |
return result;
|
|
|
2561 |
}
|
|
|
2562 |
}
|
|
|
2563 |
|
| 6467 |
amar.kumar |
2564 |
private static class scanForPurchaseReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForPurchaseReturn_args> {
|
|
|
2565 |
public scanForPurchaseReturn() {
|
|
|
2566 |
super("scanForPurchaseReturn");
|
|
|
2567 |
}
|
|
|
2568 |
|
|
|
2569 |
protected scanForPurchaseReturn_args getEmptyArgsInstance() {
|
|
|
2570 |
return new scanForPurchaseReturn_args();
|
|
|
2571 |
}
|
|
|
2572 |
|
|
|
2573 |
protected scanForPurchaseReturn_result getResult(I iface, scanForPurchaseReturn_args args) throws org.apache.thrift.TException {
|
|
|
2574 |
scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
|
|
|
2575 |
try {
|
|
|
2576 |
iface.scanForPurchaseReturn(args.saleReturnItems, args.vendorId);
|
|
|
2577 |
} catch (WarehouseServiceException ex) {
|
|
|
2578 |
result.ex = ex;
|
|
|
2579 |
}
|
|
|
2580 |
return result;
|
|
|
2581 |
}
|
|
|
2582 |
}
|
|
|
2583 |
|
| 6548 |
amar.kumar |
2584 |
private static class scanForLostItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForLostItem_args> {
|
|
|
2585 |
public scanForLostItem() {
|
|
|
2586 |
super("scanForLostItem");
|
|
|
2587 |
}
|
|
|
2588 |
|
|
|
2589 |
protected scanForLostItem_args getEmptyArgsInstance() {
|
|
|
2590 |
return new scanForLostItem_args();
|
|
|
2591 |
}
|
|
|
2592 |
|
|
|
2593 |
protected scanForLostItem_result getResult(I iface, scanForLostItem_args args) throws org.apache.thrift.TException {
|
|
|
2594 |
scanForLostItem_result result = new scanForLostItem_result();
|
|
|
2595 |
try {
|
|
|
2596 |
iface.scanForLostItem(args.lostItems, args.vendorId);
|
|
|
2597 |
} catch (WarehouseServiceException ex) {
|
|
|
2598 |
result.ex = ex;
|
|
|
2599 |
}
|
|
|
2600 |
return result;
|
|
|
2601 |
}
|
|
|
2602 |
}
|
|
|
2603 |
|
|
|
2604 |
private static class getCurrentSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentSerializedInventoryByScans_args> {
|
|
|
2605 |
public getCurrentSerializedInventoryByScans() {
|
|
|
2606 |
super("getCurrentSerializedInventoryByScans");
|
|
|
2607 |
}
|
|
|
2608 |
|
|
|
2609 |
protected getCurrentSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
2610 |
return new getCurrentSerializedInventoryByScans_args();
|
|
|
2611 |
}
|
|
|
2612 |
|
|
|
2613 |
protected getCurrentSerializedInventoryByScans_result getResult(I iface, getCurrentSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
2614 |
getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
|
|
|
2615 |
result.success = iface.getCurrentSerializedInventoryByScans();
|
|
|
2616 |
return result;
|
|
|
2617 |
}
|
|
|
2618 |
}
|
|
|
2619 |
|
| 6630 |
amar.kumar |
2620 |
private static class getCurrentNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentNonSerializedInventoryByScans_args> {
|
|
|
2621 |
public getCurrentNonSerializedInventoryByScans() {
|
|
|
2622 |
super("getCurrentNonSerializedInventoryByScans");
|
|
|
2623 |
}
|
|
|
2624 |
|
|
|
2625 |
protected getCurrentNonSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
2626 |
return new getCurrentNonSerializedInventoryByScans_args();
|
|
|
2627 |
}
|
|
|
2628 |
|
|
|
2629 |
protected getCurrentNonSerializedInventoryByScans_result getResult(I iface, getCurrentNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
2630 |
getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
|
|
|
2631 |
result.success = iface.getCurrentNonSerializedInventoryByScans();
|
|
|
2632 |
return result;
|
|
|
2633 |
}
|
|
|
2634 |
}
|
|
|
2635 |
|
| 6762 |
amar.kumar |
2636 |
private static class getHistoricSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistoricSerializedInventoryByScans_args> {
|
|
|
2637 |
public getHistoricSerializedInventoryByScans() {
|
|
|
2638 |
super("getHistoricSerializedInventoryByScans");
|
|
|
2639 |
}
|
|
|
2640 |
|
|
|
2641 |
protected getHistoricSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
2642 |
return new getHistoricSerializedInventoryByScans_args();
|
|
|
2643 |
}
|
|
|
2644 |
|
|
|
2645 |
protected getHistoricSerializedInventoryByScans_result getResult(I iface, getHistoricSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
2646 |
getHistoricSerializedInventoryByScans_result result = new getHistoricSerializedInventoryByScans_result();
|
|
|
2647 |
result.success = iface.getHistoricSerializedInventoryByScans(args.date);
|
|
|
2648 |
return result;
|
|
|
2649 |
}
|
|
|
2650 |
}
|
|
|
2651 |
|
|
|
2652 |
private static class getHistoricNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistoricNonSerializedInventoryByScans_args> {
|
|
|
2653 |
public getHistoricNonSerializedInventoryByScans() {
|
|
|
2654 |
super("getHistoricNonSerializedInventoryByScans");
|
|
|
2655 |
}
|
|
|
2656 |
|
|
|
2657 |
protected getHistoricNonSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
2658 |
return new getHistoricNonSerializedInventoryByScans_args();
|
|
|
2659 |
}
|
|
|
2660 |
|
|
|
2661 |
protected getHistoricNonSerializedInventoryByScans_result getResult(I iface, getHistoricNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
2662 |
getHistoricNonSerializedInventoryByScans_result result = new getHistoricNonSerializedInventoryByScans_result();
|
|
|
2663 |
result.success = iface.getHistoricNonSerializedInventoryByScans(args.date);
|
|
|
2664 |
return result;
|
|
|
2665 |
}
|
|
|
2666 |
}
|
|
|
2667 |
|
|
|
2668 |
private static class scanForOursExternalSale<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursExternalSale_args> {
|
|
|
2669 |
public scanForOursExternalSale() {
|
|
|
2670 |
super("scanForOursExternalSale");
|
|
|
2671 |
}
|
|
|
2672 |
|
|
|
2673 |
protected scanForOursExternalSale_args getEmptyArgsInstance() {
|
|
|
2674 |
return new scanForOursExternalSale_args();
|
|
|
2675 |
}
|
|
|
2676 |
|
|
|
2677 |
protected scanForOursExternalSale_result getResult(I iface, scanForOursExternalSale_args args) throws org.apache.thrift.TException {
|
|
|
2678 |
scanForOursExternalSale_result result = new scanForOursExternalSale_result();
|
|
|
2679 |
try {
|
|
|
2680 |
result.success = iface.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.orderId);
|
|
|
2681 |
} catch (WarehouseServiceException ex) {
|
|
|
2682 |
result.ex = ex;
|
|
|
2683 |
}
|
|
|
2684 |
return result;
|
|
|
2685 |
}
|
|
|
2686 |
}
|
|
|
2687 |
|
|
|
2688 |
private static class scanForOursExternalSaleReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursExternalSaleReturn_args> {
|
|
|
2689 |
public scanForOursExternalSaleReturn() {
|
|
|
2690 |
super("scanForOursExternalSaleReturn");
|
|
|
2691 |
}
|
|
|
2692 |
|
|
|
2693 |
protected scanForOursExternalSaleReturn_args getEmptyArgsInstance() {
|
|
|
2694 |
return new scanForOursExternalSaleReturn_args();
|
|
|
2695 |
}
|
|
|
2696 |
|
|
|
2697 |
protected scanForOursExternalSaleReturn_result getResult(I iface, scanForOursExternalSaleReturn_args args) throws org.apache.thrift.TException {
|
|
|
2698 |
scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
|
|
|
2699 |
iface.scanForOursExternalSaleReturn(args.orderId, args.unitPrice);
|
|
|
2700 |
return result;
|
|
|
2701 |
}
|
|
|
2702 |
}
|
|
|
2703 |
|
| 6880 |
amar.kumar |
2704 |
private static class getMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementNonSerializedInventoryByScans_args> {
|
|
|
2705 |
public getMovementNonSerializedInventoryByScans() {
|
|
|
2706 |
super("getMovementNonSerializedInventoryByScans");
|
|
|
2707 |
}
|
|
|
2708 |
|
|
|
2709 |
protected getMovementNonSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
2710 |
return new getMovementNonSerializedInventoryByScans_args();
|
|
|
2711 |
}
|
|
|
2712 |
|
|
|
2713 |
protected getMovementNonSerializedInventoryByScans_result getResult(I iface, getMovementNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
2714 |
getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
|
|
|
2715 |
result.success = iface.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate);
|
|
|
2716 |
return result;
|
|
|
2717 |
}
|
|
|
2718 |
}
|
|
|
2719 |
|
|
|
2720 |
private static class getMovementSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementSerializedInventoryByScans_args> {
|
|
|
2721 |
public getMovementSerializedInventoryByScans() {
|
|
|
2722 |
super("getMovementSerializedInventoryByScans");
|
|
|
2723 |
}
|
|
|
2724 |
|
|
|
2725 |
protected getMovementSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
2726 |
return new getMovementSerializedInventoryByScans_args();
|
|
|
2727 |
}
|
|
|
2728 |
|
|
|
2729 |
protected getMovementSerializedInventoryByScans_result getResult(I iface, getMovementSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
2730 |
getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
|
|
|
2731 |
result.success = iface.getMovementSerializedInventoryByScans(args.startDate, args.endDate);
|
|
|
2732 |
return result;
|
|
|
2733 |
}
|
|
|
2734 |
}
|
|
|
2735 |
|
| 7216 |
amar.kumar |
2736 |
private static class getCompleteMovementSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCompleteMovementSerializedInventoryByScans_args> {
|
|
|
2737 |
public getCompleteMovementSerializedInventoryByScans() {
|
|
|
2738 |
super("getCompleteMovementSerializedInventoryByScans");
|
|
|
2739 |
}
|
|
|
2740 |
|
|
|
2741 |
protected getCompleteMovementSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
2742 |
return new getCompleteMovementSerializedInventoryByScans_args();
|
|
|
2743 |
}
|
|
|
2744 |
|
|
|
2745 |
protected getCompleteMovementSerializedInventoryByScans_result getResult(I iface, getCompleteMovementSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
2746 |
getCompleteMovementSerializedInventoryByScans_result result = new getCompleteMovementSerializedInventoryByScans_result();
|
|
|
2747 |
result.success = iface.getCompleteMovementSerializedInventoryByScans(args.startDate, args.endDate);
|
|
|
2748 |
return result;
|
|
|
2749 |
}
|
|
|
2750 |
}
|
|
|
2751 |
|
|
|
2752 |
private static class getCompleteMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCompleteMovementNonSerializedInventoryByScans_args> {
|
|
|
2753 |
public getCompleteMovementNonSerializedInventoryByScans() {
|
|
|
2754 |
super("getCompleteMovementNonSerializedInventoryByScans");
|
|
|
2755 |
}
|
|
|
2756 |
|
|
|
2757 |
protected getCompleteMovementNonSerializedInventoryByScans_args getEmptyArgsInstance() {
|
|
|
2758 |
return new getCompleteMovementNonSerializedInventoryByScans_args();
|
|
|
2759 |
}
|
|
|
2760 |
|
|
|
2761 |
protected getCompleteMovementNonSerializedInventoryByScans_result getResult(I iface, getCompleteMovementNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
|
|
|
2762 |
getCompleteMovementNonSerializedInventoryByScans_result result = new getCompleteMovementNonSerializedInventoryByScans_result();
|
|
|
2763 |
result.success = iface.getCompleteMovementNonSerializedInventoryByScans(args.startDate, args.endDate);
|
|
|
2764 |
return result;
|
|
|
2765 |
}
|
|
|
2766 |
}
|
|
|
2767 |
|
| 7190 |
amar.kumar |
2768 |
private static class scanfreebie<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanfreebie_args> {
|
|
|
2769 |
public scanfreebie() {
|
|
|
2770 |
super("scanfreebie");
|
|
|
2771 |
}
|
|
|
2772 |
|
|
|
2773 |
protected scanfreebie_args getEmptyArgsInstance() {
|
|
|
2774 |
return new scanfreebie_args();
|
|
|
2775 |
}
|
|
|
2776 |
|
|
|
2777 |
protected scanfreebie_result getResult(I iface, scanfreebie_args args) throws org.apache.thrift.TException {
|
|
|
2778 |
scanfreebie_result result = new scanfreebie_result();
|
|
|
2779 |
try {
|
|
|
2780 |
result.success = iface.scanfreebie(args.orderId, args.freebieItemId, args.freebieWarehouseId, args.scanType);
|
|
|
2781 |
} catch (WarehouseServiceException wex) {
|
|
|
2782 |
result.wex = wex;
|
|
|
2783 |
}
|
|
|
2784 |
return result;
|
|
|
2785 |
}
|
|
|
2786 |
}
|
|
|
2787 |
|
| 7199 |
amar.kumar |
2788 |
private static class reshipfreebie<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reshipfreebie_args> {
|
|
|
2789 |
public reshipfreebie() {
|
|
|
2790 |
super("reshipfreebie");
|
|
|
2791 |
}
|
|
|
2792 |
|
|
|
2793 |
protected reshipfreebie_args getEmptyArgsInstance() {
|
|
|
2794 |
return new reshipfreebie_args();
|
|
|
2795 |
}
|
|
|
2796 |
|
|
|
2797 |
protected reshipfreebie_result getResult(I iface, reshipfreebie_args args) throws org.apache.thrift.TException {
|
|
|
2798 |
reshipfreebie_result result = new reshipfreebie_result();
|
|
|
2799 |
try {
|
|
|
2800 |
iface.reshipfreebie(args.oldOrderId, args.newOrderId, args.freebieItemId, args.scanType);
|
|
|
2801 |
} catch (WarehouseServiceException wex) {
|
|
|
2802 |
result.wex = wex;
|
|
|
2803 |
}
|
|
|
2804 |
return result;
|
|
|
2805 |
}
|
|
|
2806 |
}
|
|
|
2807 |
|
| 2820 |
chandransh |
2808 |
}
|
|
|
2809 |
|
| 4496 |
mandeep.dh |
2810 |
public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2811 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
|
| 2832 |
chandransh |
2812 |
|
| 4496 |
mandeep.dh |
2813 |
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 |
2814 |
|
| 4496 |
mandeep.dh |
2815 |
private String serialNumber; // required
|
| 2832 |
chandransh |
2816 |
|
|
|
2817 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2818 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
2819 |
SERIAL_NUMBER((short)1, "serialNumber");
|
| 2832 |
chandransh |
2820 |
|
|
|
2821 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2822 |
|
|
|
2823 |
static {
|
|
|
2824 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2825 |
byName.put(field.getFieldName(), field);
|
|
|
2826 |
}
|
|
|
2827 |
}
|
|
|
2828 |
|
|
|
2829 |
/**
|
|
|
2830 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2831 |
*/
|
|
|
2832 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2833 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
2834 |
case 1: // SERIAL_NUMBER
|
|
|
2835 |
return SERIAL_NUMBER;
|
| 3430 |
rajveer |
2836 |
default:
|
|
|
2837 |
return null;
|
|
|
2838 |
}
|
| 2832 |
chandransh |
2839 |
}
|
|
|
2840 |
|
|
|
2841 |
/**
|
|
|
2842 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2843 |
* if it is not found.
|
|
|
2844 |
*/
|
|
|
2845 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2846 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2847 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2848 |
return fields;
|
|
|
2849 |
}
|
|
|
2850 |
|
|
|
2851 |
/**
|
|
|
2852 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2853 |
*/
|
|
|
2854 |
public static _Fields findByName(String name) {
|
|
|
2855 |
return byName.get(name);
|
|
|
2856 |
}
|
|
|
2857 |
|
|
|
2858 |
private final short _thriftId;
|
|
|
2859 |
private final String _fieldName;
|
|
|
2860 |
|
|
|
2861 |
_Fields(short thriftId, String fieldName) {
|
|
|
2862 |
_thriftId = thriftId;
|
|
|
2863 |
_fieldName = fieldName;
|
|
|
2864 |
}
|
|
|
2865 |
|
|
|
2866 |
public short getThriftFieldId() {
|
|
|
2867 |
return _thriftId;
|
|
|
2868 |
}
|
|
|
2869 |
|
|
|
2870 |
public String getFieldName() {
|
|
|
2871 |
return _fieldName;
|
|
|
2872 |
}
|
|
|
2873 |
}
|
|
|
2874 |
|
|
|
2875 |
// isset id assignments
|
|
|
2876 |
|
| 3430 |
rajveer |
2877 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2832 |
chandransh |
2878 |
static {
|
| 3430 |
rajveer |
2879 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
2880 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2881 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 3430 |
rajveer |
2882 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
2883 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_args.class, metaDataMap);
|
| 2832 |
chandransh |
2884 |
}
|
|
|
2885 |
|
| 4496 |
mandeep.dh |
2886 |
public getInventoryItem_args() {
|
| 2832 |
chandransh |
2887 |
}
|
|
|
2888 |
|
| 4496 |
mandeep.dh |
2889 |
public getInventoryItem_args(
|
|
|
2890 |
String serialNumber)
|
| 2832 |
chandransh |
2891 |
{
|
|
|
2892 |
this();
|
| 4496 |
mandeep.dh |
2893 |
this.serialNumber = serialNumber;
|
| 2832 |
chandransh |
2894 |
}
|
|
|
2895 |
|
|
|
2896 |
/**
|
|
|
2897 |
* Performs a deep copy on <i>other</i>.
|
|
|
2898 |
*/
|
| 4496 |
mandeep.dh |
2899 |
public getInventoryItem_args(getInventoryItem_args other) {
|
|
|
2900 |
if (other.isSetSerialNumber()) {
|
|
|
2901 |
this.serialNumber = other.serialNumber;
|
|
|
2902 |
}
|
| 2832 |
chandransh |
2903 |
}
|
|
|
2904 |
|
| 4496 |
mandeep.dh |
2905 |
public getInventoryItem_args deepCopy() {
|
|
|
2906 |
return new getInventoryItem_args(this);
|
| 2832 |
chandransh |
2907 |
}
|
|
|
2908 |
|
| 3430 |
rajveer |
2909 |
@Override
|
|
|
2910 |
public void clear() {
|
| 4496 |
mandeep.dh |
2911 |
this.serialNumber = null;
|
| 2832 |
chandransh |
2912 |
}
|
|
|
2913 |
|
| 4496 |
mandeep.dh |
2914 |
public String getSerialNumber() {
|
|
|
2915 |
return this.serialNumber;
|
| 2832 |
chandransh |
2916 |
}
|
|
|
2917 |
|
| 4496 |
mandeep.dh |
2918 |
public void setSerialNumber(String serialNumber) {
|
|
|
2919 |
this.serialNumber = serialNumber;
|
| 2832 |
chandransh |
2920 |
}
|
|
|
2921 |
|
| 4496 |
mandeep.dh |
2922 |
public void unsetSerialNumber() {
|
|
|
2923 |
this.serialNumber = null;
|
| 2832 |
chandransh |
2924 |
}
|
|
|
2925 |
|
| 4496 |
mandeep.dh |
2926 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
2927 |
public boolean isSetSerialNumber() {
|
|
|
2928 |
return this.serialNumber != null;
|
| 2832 |
chandransh |
2929 |
}
|
|
|
2930 |
|
| 4496 |
mandeep.dh |
2931 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
2932 |
if (!value) {
|
|
|
2933 |
this.serialNumber = null;
|
|
|
2934 |
}
|
| 2832 |
chandransh |
2935 |
}
|
|
|
2936 |
|
|
|
2937 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2938 |
switch (field) {
|
| 4496 |
mandeep.dh |
2939 |
case SERIAL_NUMBER:
|
| 2832 |
chandransh |
2940 |
if (value == null) {
|
| 4496 |
mandeep.dh |
2941 |
unsetSerialNumber();
|
| 2832 |
chandransh |
2942 |
} else {
|
| 4496 |
mandeep.dh |
2943 |
setSerialNumber((String)value);
|
| 2832 |
chandransh |
2944 |
}
|
|
|
2945 |
break;
|
|
|
2946 |
|
|
|
2947 |
}
|
|
|
2948 |
}
|
|
|
2949 |
|
|
|
2950 |
public Object getFieldValue(_Fields field) {
|
|
|
2951 |
switch (field) {
|
| 4496 |
mandeep.dh |
2952 |
case SERIAL_NUMBER:
|
|
|
2953 |
return getSerialNumber();
|
| 2832 |
chandransh |
2954 |
|
|
|
2955 |
}
|
|
|
2956 |
throw new IllegalStateException();
|
|
|
2957 |
}
|
|
|
2958 |
|
| 3430 |
rajveer |
2959 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2960 |
public boolean isSet(_Fields field) {
|
|
|
2961 |
if (field == null) {
|
|
|
2962 |
throw new IllegalArgumentException();
|
|
|
2963 |
}
|
| 2832 |
chandransh |
2964 |
|
|
|
2965 |
switch (field) {
|
| 4496 |
mandeep.dh |
2966 |
case SERIAL_NUMBER:
|
|
|
2967 |
return isSetSerialNumber();
|
| 2832 |
chandransh |
2968 |
}
|
|
|
2969 |
throw new IllegalStateException();
|
|
|
2970 |
}
|
|
|
2971 |
|
|
|
2972 |
@Override
|
|
|
2973 |
public boolean equals(Object that) {
|
|
|
2974 |
if (that == null)
|
|
|
2975 |
return false;
|
| 4496 |
mandeep.dh |
2976 |
if (that instanceof getInventoryItem_args)
|
|
|
2977 |
return this.equals((getInventoryItem_args)that);
|
| 2832 |
chandransh |
2978 |
return false;
|
|
|
2979 |
}
|
|
|
2980 |
|
| 4496 |
mandeep.dh |
2981 |
public boolean equals(getInventoryItem_args that) {
|
| 2832 |
chandransh |
2982 |
if (that == null)
|
|
|
2983 |
return false;
|
|
|
2984 |
|
| 4496 |
mandeep.dh |
2985 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
2986 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
2987 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
2988 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
| 2832 |
chandransh |
2989 |
return false;
|
| 4496 |
mandeep.dh |
2990 |
if (!this.serialNumber.equals(that.serialNumber))
|
| 2832 |
chandransh |
2991 |
return false;
|
|
|
2992 |
}
|
|
|
2993 |
|
|
|
2994 |
return true;
|
|
|
2995 |
}
|
|
|
2996 |
|
|
|
2997 |
@Override
|
|
|
2998 |
public int hashCode() {
|
|
|
2999 |
return 0;
|
|
|
3000 |
}
|
|
|
3001 |
|
| 4496 |
mandeep.dh |
3002 |
public int compareTo(getInventoryItem_args other) {
|
| 2832 |
chandransh |
3003 |
if (!getClass().equals(other.getClass())) {
|
|
|
3004 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3005 |
}
|
|
|
3006 |
|
|
|
3007 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
3008 |
getInventoryItem_args typedOther = (getInventoryItem_args)other;
|
| 2832 |
chandransh |
3009 |
|
| 4496 |
mandeep.dh |
3010 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
| 2832 |
chandransh |
3011 |
if (lastComparison != 0) {
|
|
|
3012 |
return lastComparison;
|
|
|
3013 |
}
|
| 4496 |
mandeep.dh |
3014 |
if (isSetSerialNumber()) {
|
|
|
3015 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
| 3430 |
rajveer |
3016 |
if (lastComparison != 0) {
|
|
|
3017 |
return lastComparison;
|
|
|
3018 |
}
|
| 2832 |
chandransh |
3019 |
}
|
|
|
3020 |
return 0;
|
|
|
3021 |
}
|
|
|
3022 |
|
| 3430 |
rajveer |
3023 |
public _Fields fieldForId(int fieldId) {
|
|
|
3024 |
return _Fields.findByThriftId(fieldId);
|
|
|
3025 |
}
|
|
|
3026 |
|
|
|
3027 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3028 |
org.apache.thrift.protocol.TField field;
|
| 2832 |
chandransh |
3029 |
iprot.readStructBegin();
|
|
|
3030 |
while (true)
|
|
|
3031 |
{
|
|
|
3032 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3033 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2832 |
chandransh |
3034 |
break;
|
|
|
3035 |
}
|
| 3430 |
rajveer |
3036 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
3037 |
case 1: // SERIAL_NUMBER
|
|
|
3038 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
3039 |
this.serialNumber = iprot.readString();
|
| 3430 |
rajveer |
3040 |
} else {
|
|
|
3041 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3042 |
}
|
|
|
3043 |
break;
|
|
|
3044 |
default:
|
|
|
3045 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2832 |
chandransh |
3046 |
}
|
| 3430 |
rajveer |
3047 |
iprot.readFieldEnd();
|
| 2832 |
chandransh |
3048 |
}
|
|
|
3049 |
iprot.readStructEnd();
|
|
|
3050 |
validate();
|
|
|
3051 |
}
|
|
|
3052 |
|
| 3430 |
rajveer |
3053 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
3054 |
validate();
|
|
|
3055 |
|
|
|
3056 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4496 |
mandeep.dh |
3057 |
if (this.serialNumber != null) {
|
|
|
3058 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
3059 |
oprot.writeString(this.serialNumber);
|
|
|
3060 |
oprot.writeFieldEnd();
|
|
|
3061 |
}
|
| 2832 |
chandransh |
3062 |
oprot.writeFieldStop();
|
|
|
3063 |
oprot.writeStructEnd();
|
|
|
3064 |
}
|
|
|
3065 |
|
|
|
3066 |
@Override
|
|
|
3067 |
public String toString() {
|
| 4496 |
mandeep.dh |
3068 |
StringBuilder sb = new StringBuilder("getInventoryItem_args(");
|
| 2832 |
chandransh |
3069 |
boolean first = true;
|
|
|
3070 |
|
| 4496 |
mandeep.dh |
3071 |
sb.append("serialNumber:");
|
|
|
3072 |
if (this.serialNumber == null) {
|
|
|
3073 |
sb.append("null");
|
|
|
3074 |
} else {
|
|
|
3075 |
sb.append(this.serialNumber);
|
|
|
3076 |
}
|
| 2832 |
chandransh |
3077 |
first = false;
|
|
|
3078 |
sb.append(")");
|
|
|
3079 |
return sb.toString();
|
|
|
3080 |
}
|
|
|
3081 |
|
| 3430 |
rajveer |
3082 |
public void validate() throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
3083 |
// check for required fields
|
|
|
3084 |
}
|
|
|
3085 |
|
| 3430 |
rajveer |
3086 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3087 |
try {
|
|
|
3088 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3089 |
} catch (org.apache.thrift.TException te) {
|
|
|
3090 |
throw new java.io.IOException(te);
|
|
|
3091 |
}
|
|
|
3092 |
}
|
|
|
3093 |
|
|
|
3094 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3095 |
try {
|
|
|
3096 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3097 |
} catch (org.apache.thrift.TException te) {
|
|
|
3098 |
throw new java.io.IOException(te);
|
|
|
3099 |
}
|
|
|
3100 |
}
|
|
|
3101 |
|
| 2832 |
chandransh |
3102 |
}
|
|
|
3103 |
|
| 4496 |
mandeep.dh |
3104 |
public static class getInventoryItem_result implements org.apache.thrift.TBase<getInventoryItem_result, getInventoryItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3105 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_result");
|
| 2832 |
chandransh |
3106 |
|
| 3430 |
rajveer |
3107 |
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 |
3108 |
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 |
3109 |
|
| 4496 |
mandeep.dh |
3110 |
private InventoryItem success; // required
|
| 4541 |
mandeep.dh |
3111 |
private WarehouseServiceException wex; // required
|
| 2832 |
chandransh |
3112 |
|
|
|
3113 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3114 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4541 |
mandeep.dh |
3115 |
SUCCESS((short)0, "success"),
|
|
|
3116 |
WEX((short)1, "wex");
|
| 2832 |
chandransh |
3117 |
|
|
|
3118 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3119 |
|
|
|
3120 |
static {
|
|
|
3121 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3122 |
byName.put(field.getFieldName(), field);
|
|
|
3123 |
}
|
|
|
3124 |
}
|
|
|
3125 |
|
|
|
3126 |
/**
|
|
|
3127 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3128 |
*/
|
|
|
3129 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3130 |
switch(fieldId) {
|
|
|
3131 |
case 0: // SUCCESS
|
|
|
3132 |
return SUCCESS;
|
| 4541 |
mandeep.dh |
3133 |
case 1: // WEX
|
|
|
3134 |
return WEX;
|
| 3430 |
rajveer |
3135 |
default:
|
|
|
3136 |
return null;
|
|
|
3137 |
}
|
| 2832 |
chandransh |
3138 |
}
|
|
|
3139 |
|
|
|
3140 |
/**
|
|
|
3141 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3142 |
* if it is not found.
|
|
|
3143 |
*/
|
|
|
3144 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3145 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3146 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3147 |
return fields;
|
|
|
3148 |
}
|
|
|
3149 |
|
|
|
3150 |
/**
|
|
|
3151 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3152 |
*/
|
|
|
3153 |
public static _Fields findByName(String name) {
|
|
|
3154 |
return byName.get(name);
|
|
|
3155 |
}
|
|
|
3156 |
|
|
|
3157 |
private final short _thriftId;
|
|
|
3158 |
private final String _fieldName;
|
|
|
3159 |
|
|
|
3160 |
_Fields(short thriftId, String fieldName) {
|
|
|
3161 |
_thriftId = thriftId;
|
|
|
3162 |
_fieldName = fieldName;
|
|
|
3163 |
}
|
|
|
3164 |
|
|
|
3165 |
public short getThriftFieldId() {
|
|
|
3166 |
return _thriftId;
|
|
|
3167 |
}
|
|
|
3168 |
|
|
|
3169 |
public String getFieldName() {
|
|
|
3170 |
return _fieldName;
|
|
|
3171 |
}
|
|
|
3172 |
}
|
|
|
3173 |
|
|
|
3174 |
// isset id assignments
|
|
|
3175 |
|
| 3430 |
rajveer |
3176 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2832 |
chandransh |
3177 |
static {
|
| 3430 |
rajveer |
3178 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3179 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
3180 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 4541 |
mandeep.dh |
3181 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3182 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
| 3430 |
rajveer |
3183 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
3184 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_result.class, metaDataMap);
|
| 2832 |
chandransh |
3185 |
}
|
|
|
3186 |
|
| 4496 |
mandeep.dh |
3187 |
public getInventoryItem_result() {
|
| 2832 |
chandransh |
3188 |
}
|
|
|
3189 |
|
| 4496 |
mandeep.dh |
3190 |
public getInventoryItem_result(
|
| 4541 |
mandeep.dh |
3191 |
InventoryItem success,
|
|
|
3192 |
WarehouseServiceException wex)
|
| 2832 |
chandransh |
3193 |
{
|
|
|
3194 |
this();
|
|
|
3195 |
this.success = success;
|
| 4541 |
mandeep.dh |
3196 |
this.wex = wex;
|
| 2832 |
chandransh |
3197 |
}
|
|
|
3198 |
|
|
|
3199 |
/**
|
|
|
3200 |
* Performs a deep copy on <i>other</i>.
|
|
|
3201 |
*/
|
| 4496 |
mandeep.dh |
3202 |
public getInventoryItem_result(getInventoryItem_result other) {
|
| 2832 |
chandransh |
3203 |
if (other.isSetSuccess()) {
|
| 4496 |
mandeep.dh |
3204 |
this.success = new InventoryItem(other.success);
|
| 2832 |
chandransh |
3205 |
}
|
| 4541 |
mandeep.dh |
3206 |
if (other.isSetWex()) {
|
|
|
3207 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
3208 |
}
|
| 2832 |
chandransh |
3209 |
}
|
|
|
3210 |
|
| 4496 |
mandeep.dh |
3211 |
public getInventoryItem_result deepCopy() {
|
|
|
3212 |
return new getInventoryItem_result(this);
|
| 2832 |
chandransh |
3213 |
}
|
|
|
3214 |
|
| 3430 |
rajveer |
3215 |
@Override
|
|
|
3216 |
public void clear() {
|
|
|
3217 |
this.success = null;
|
| 4541 |
mandeep.dh |
3218 |
this.wex = null;
|
| 2832 |
chandransh |
3219 |
}
|
|
|
3220 |
|
| 4496 |
mandeep.dh |
3221 |
public InventoryItem getSuccess() {
|
| 2832 |
chandransh |
3222 |
return this.success;
|
|
|
3223 |
}
|
|
|
3224 |
|
| 4496 |
mandeep.dh |
3225 |
public void setSuccess(InventoryItem success) {
|
| 2832 |
chandransh |
3226 |
this.success = success;
|
|
|
3227 |
}
|
|
|
3228 |
|
|
|
3229 |
public void unsetSuccess() {
|
|
|
3230 |
this.success = null;
|
|
|
3231 |
}
|
|
|
3232 |
|
| 3430 |
rajveer |
3233 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2832 |
chandransh |
3234 |
public boolean isSetSuccess() {
|
|
|
3235 |
return this.success != null;
|
|
|
3236 |
}
|
|
|
3237 |
|
|
|
3238 |
public void setSuccessIsSet(boolean value) {
|
|
|
3239 |
if (!value) {
|
|
|
3240 |
this.success = null;
|
|
|
3241 |
}
|
|
|
3242 |
}
|
|
|
3243 |
|
| 4541 |
mandeep.dh |
3244 |
public WarehouseServiceException getWex() {
|
|
|
3245 |
return this.wex;
|
|
|
3246 |
}
|
|
|
3247 |
|
|
|
3248 |
public void setWex(WarehouseServiceException wex) {
|
|
|
3249 |
this.wex = wex;
|
|
|
3250 |
}
|
|
|
3251 |
|
|
|
3252 |
public void unsetWex() {
|
|
|
3253 |
this.wex = null;
|
|
|
3254 |
}
|
|
|
3255 |
|
|
|
3256 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
3257 |
public boolean isSetWex() {
|
|
|
3258 |
return this.wex != null;
|
|
|
3259 |
}
|
|
|
3260 |
|
|
|
3261 |
public void setWexIsSet(boolean value) {
|
|
|
3262 |
if (!value) {
|
|
|
3263 |
this.wex = null;
|
|
|
3264 |
}
|
|
|
3265 |
}
|
|
|
3266 |
|
| 2832 |
chandransh |
3267 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3268 |
switch (field) {
|
|
|
3269 |
case SUCCESS:
|
|
|
3270 |
if (value == null) {
|
|
|
3271 |
unsetSuccess();
|
|
|
3272 |
} else {
|
| 4496 |
mandeep.dh |
3273 |
setSuccess((InventoryItem)value);
|
| 2832 |
chandransh |
3274 |
}
|
|
|
3275 |
break;
|
|
|
3276 |
|
| 4541 |
mandeep.dh |
3277 |
case WEX:
|
|
|
3278 |
if (value == null) {
|
|
|
3279 |
unsetWex();
|
|
|
3280 |
} else {
|
|
|
3281 |
setWex((WarehouseServiceException)value);
|
|
|
3282 |
}
|
|
|
3283 |
break;
|
|
|
3284 |
|
| 2832 |
chandransh |
3285 |
}
|
|
|
3286 |
}
|
|
|
3287 |
|
|
|
3288 |
public Object getFieldValue(_Fields field) {
|
|
|
3289 |
switch (field) {
|
|
|
3290 |
case SUCCESS:
|
|
|
3291 |
return getSuccess();
|
|
|
3292 |
|
| 4541 |
mandeep.dh |
3293 |
case WEX:
|
|
|
3294 |
return getWex();
|
|
|
3295 |
|
| 2832 |
chandransh |
3296 |
}
|
|
|
3297 |
throw new IllegalStateException();
|
|
|
3298 |
}
|
|
|
3299 |
|
| 3430 |
rajveer |
3300 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3301 |
public boolean isSet(_Fields field) {
|
|
|
3302 |
if (field == null) {
|
|
|
3303 |
throw new IllegalArgumentException();
|
|
|
3304 |
}
|
| 2832 |
chandransh |
3305 |
|
|
|
3306 |
switch (field) {
|
|
|
3307 |
case SUCCESS:
|
|
|
3308 |
return isSetSuccess();
|
| 4541 |
mandeep.dh |
3309 |
case WEX:
|
|
|
3310 |
return isSetWex();
|
| 2832 |
chandransh |
3311 |
}
|
|
|
3312 |
throw new IllegalStateException();
|
|
|
3313 |
}
|
|
|
3314 |
|
|
|
3315 |
@Override
|
|
|
3316 |
public boolean equals(Object that) {
|
|
|
3317 |
if (that == null)
|
|
|
3318 |
return false;
|
| 4496 |
mandeep.dh |
3319 |
if (that instanceof getInventoryItem_result)
|
|
|
3320 |
return this.equals((getInventoryItem_result)that);
|
| 2832 |
chandransh |
3321 |
return false;
|
|
|
3322 |
}
|
|
|
3323 |
|
| 4496 |
mandeep.dh |
3324 |
public boolean equals(getInventoryItem_result that) {
|
| 2832 |
chandransh |
3325 |
if (that == null)
|
|
|
3326 |
return false;
|
|
|
3327 |
|
|
|
3328 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
3329 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
3330 |
if (this_present_success || that_present_success) {
|
|
|
3331 |
if (!(this_present_success && that_present_success))
|
|
|
3332 |
return false;
|
|
|
3333 |
if (!this.success.equals(that.success))
|
|
|
3334 |
return false;
|
|
|
3335 |
}
|
|
|
3336 |
|
| 4541 |
mandeep.dh |
3337 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
3338 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
3339 |
if (this_present_wex || that_present_wex) {
|
|
|
3340 |
if (!(this_present_wex && that_present_wex))
|
|
|
3341 |
return false;
|
|
|
3342 |
if (!this.wex.equals(that.wex))
|
|
|
3343 |
return false;
|
|
|
3344 |
}
|
|
|
3345 |
|
| 2832 |
chandransh |
3346 |
return true;
|
|
|
3347 |
}
|
|
|
3348 |
|
|
|
3349 |
@Override
|
|
|
3350 |
public int hashCode() {
|
|
|
3351 |
return 0;
|
|
|
3352 |
}
|
|
|
3353 |
|
| 4496 |
mandeep.dh |
3354 |
public int compareTo(getInventoryItem_result other) {
|
| 2832 |
chandransh |
3355 |
if (!getClass().equals(other.getClass())) {
|
|
|
3356 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3357 |
}
|
|
|
3358 |
|
|
|
3359 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
3360 |
getInventoryItem_result typedOther = (getInventoryItem_result)other;
|
| 2832 |
chandransh |
3361 |
|
| 3430 |
rajveer |
3362 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2832 |
chandransh |
3363 |
if (lastComparison != 0) {
|
|
|
3364 |
return lastComparison;
|
|
|
3365 |
}
|
| 3430 |
rajveer |
3366 |
if (isSetSuccess()) {
|
|
|
3367 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
3368 |
if (lastComparison != 0) {
|
|
|
3369 |
return lastComparison;
|
|
|
3370 |
}
|
| 2832 |
chandransh |
3371 |
}
|
| 4541 |
mandeep.dh |
3372 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
3373 |
if (lastComparison != 0) {
|
|
|
3374 |
return lastComparison;
|
|
|
3375 |
}
|
|
|
3376 |
if (isSetWex()) {
|
|
|
3377 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
3378 |
if (lastComparison != 0) {
|
|
|
3379 |
return lastComparison;
|
|
|
3380 |
}
|
|
|
3381 |
}
|
| 2832 |
chandransh |
3382 |
return 0;
|
|
|
3383 |
}
|
|
|
3384 |
|
| 3430 |
rajveer |
3385 |
public _Fields fieldForId(int fieldId) {
|
|
|
3386 |
return _Fields.findByThriftId(fieldId);
|
|
|
3387 |
}
|
|
|
3388 |
|
|
|
3389 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3390 |
org.apache.thrift.protocol.TField field;
|
| 2832 |
chandransh |
3391 |
iprot.readStructBegin();
|
|
|
3392 |
while (true)
|
|
|
3393 |
{
|
|
|
3394 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3395 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2832 |
chandransh |
3396 |
break;
|
|
|
3397 |
}
|
| 3430 |
rajveer |
3398 |
switch (field.id) {
|
|
|
3399 |
case 0: // SUCCESS
|
|
|
3400 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
| 4496 |
mandeep.dh |
3401 |
this.success = new InventoryItem();
|
| 3430 |
rajveer |
3402 |
this.success.read(iprot);
|
|
|
3403 |
} else {
|
|
|
3404 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3405 |
}
|
|
|
3406 |
break;
|
| 4541 |
mandeep.dh |
3407 |
case 1: // WEX
|
|
|
3408 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3409 |
this.wex = new WarehouseServiceException();
|
|
|
3410 |
this.wex.read(iprot);
|
|
|
3411 |
} else {
|
|
|
3412 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3413 |
}
|
|
|
3414 |
break;
|
| 3430 |
rajveer |
3415 |
default:
|
|
|
3416 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2832 |
chandransh |
3417 |
}
|
| 3430 |
rajveer |
3418 |
iprot.readFieldEnd();
|
| 2832 |
chandransh |
3419 |
}
|
|
|
3420 |
iprot.readStructEnd();
|
|
|
3421 |
validate();
|
|
|
3422 |
}
|
|
|
3423 |
|
| 3430 |
rajveer |
3424 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
3425 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3426 |
|
|
|
3427 |
if (this.isSetSuccess()) {
|
|
|
3428 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
3429 |
this.success.write(oprot);
|
|
|
3430 |
oprot.writeFieldEnd();
|
| 4541 |
mandeep.dh |
3431 |
} else if (this.isSetWex()) {
|
|
|
3432 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
3433 |
this.wex.write(oprot);
|
|
|
3434 |
oprot.writeFieldEnd();
|
| 2832 |
chandransh |
3435 |
}
|
|
|
3436 |
oprot.writeFieldStop();
|
|
|
3437 |
oprot.writeStructEnd();
|
|
|
3438 |
}
|
|
|
3439 |
|
|
|
3440 |
@Override
|
|
|
3441 |
public String toString() {
|
| 4496 |
mandeep.dh |
3442 |
StringBuilder sb = new StringBuilder("getInventoryItem_result(");
|
| 2832 |
chandransh |
3443 |
boolean first = true;
|
|
|
3444 |
|
|
|
3445 |
sb.append("success:");
|
|
|
3446 |
if (this.success == null) {
|
|
|
3447 |
sb.append("null");
|
|
|
3448 |
} else {
|
|
|
3449 |
sb.append(this.success);
|
|
|
3450 |
}
|
|
|
3451 |
first = false;
|
| 4541 |
mandeep.dh |
3452 |
if (!first) sb.append(", ");
|
|
|
3453 |
sb.append("wex:");
|
|
|
3454 |
if (this.wex == null) {
|
|
|
3455 |
sb.append("null");
|
|
|
3456 |
} else {
|
|
|
3457 |
sb.append(this.wex);
|
|
|
3458 |
}
|
|
|
3459 |
first = false;
|
| 2832 |
chandransh |
3460 |
sb.append(")");
|
|
|
3461 |
return sb.toString();
|
|
|
3462 |
}
|
|
|
3463 |
|
| 3430 |
rajveer |
3464 |
public void validate() throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
3465 |
// check for required fields
|
|
|
3466 |
}
|
|
|
3467 |
|
| 3430 |
rajveer |
3468 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3469 |
try {
|
|
|
3470 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3471 |
} catch (org.apache.thrift.TException te) {
|
|
|
3472 |
throw new java.io.IOException(te);
|
|
|
3473 |
}
|
|
|
3474 |
}
|
|
|
3475 |
|
|
|
3476 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3477 |
try {
|
|
|
3478 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3479 |
} catch (org.apache.thrift.TException te) {
|
|
|
3480 |
throw new java.io.IOException(te);
|
|
|
3481 |
}
|
|
|
3482 |
}
|
|
|
3483 |
|
| 2832 |
chandransh |
3484 |
}
|
|
|
3485 |
|
| 5361 |
mandeep.dh |
3486 |
public static class getNonSeralizedInventoryItem_args implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_args, getNonSeralizedInventoryItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3487 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_args");
|
| 2820 |
chandransh |
3488 |
|
| 5530 |
mandeep.dh |
3489 |
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);
|
|
|
3490 |
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);
|
|
|
3491 |
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 |
3492 |
|
| 5530 |
mandeep.dh |
3493 |
private String itemNumber; // required
|
| 4496 |
mandeep.dh |
3494 |
private long itemId; // required
|
| 5530 |
mandeep.dh |
3495 |
private long fulfilmentWarehouseId; // required
|
| 2820 |
chandransh |
3496 |
|
|
|
3497 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3498 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5530 |
mandeep.dh |
3499 |
ITEM_NUMBER((short)1, "itemNumber"),
|
|
|
3500 |
ITEM_ID((short)2, "itemId"),
|
|
|
3501 |
FULFILMENT_WAREHOUSE_ID((short)3, "fulfilmentWarehouseId");
|
| 2820 |
chandransh |
3502 |
|
|
|
3503 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3504 |
|
|
|
3505 |
static {
|
|
|
3506 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3507 |
byName.put(field.getFieldName(), field);
|
|
|
3508 |
}
|
|
|
3509 |
}
|
|
|
3510 |
|
|
|
3511 |
/**
|
|
|
3512 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3513 |
*/
|
|
|
3514 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3515 |
switch(fieldId) {
|
| 5530 |
mandeep.dh |
3516 |
case 1: // ITEM_NUMBER
|
|
|
3517 |
return ITEM_NUMBER;
|
|
|
3518 |
case 2: // ITEM_ID
|
| 4496 |
mandeep.dh |
3519 |
return ITEM_ID;
|
| 5530 |
mandeep.dh |
3520 |
case 3: // FULFILMENT_WAREHOUSE_ID
|
|
|
3521 |
return FULFILMENT_WAREHOUSE_ID;
|
| 3430 |
rajveer |
3522 |
default:
|
|
|
3523 |
return null;
|
|
|
3524 |
}
|
| 2820 |
chandransh |
3525 |
}
|
|
|
3526 |
|
|
|
3527 |
/**
|
|
|
3528 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3529 |
* if it is not found.
|
|
|
3530 |
*/
|
|
|
3531 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3532 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3533 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3534 |
return fields;
|
|
|
3535 |
}
|
|
|
3536 |
|
|
|
3537 |
/**
|
|
|
3538 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3539 |
*/
|
|
|
3540 |
public static _Fields findByName(String name) {
|
|
|
3541 |
return byName.get(name);
|
|
|
3542 |
}
|
|
|
3543 |
|
|
|
3544 |
private final short _thriftId;
|
|
|
3545 |
private final String _fieldName;
|
|
|
3546 |
|
|
|
3547 |
_Fields(short thriftId, String fieldName) {
|
|
|
3548 |
_thriftId = thriftId;
|
|
|
3549 |
_fieldName = fieldName;
|
|
|
3550 |
}
|
|
|
3551 |
|
|
|
3552 |
public short getThriftFieldId() {
|
|
|
3553 |
return _thriftId;
|
|
|
3554 |
}
|
|
|
3555 |
|
|
|
3556 |
public String getFieldName() {
|
|
|
3557 |
return _fieldName;
|
|
|
3558 |
}
|
|
|
3559 |
}
|
|
|
3560 |
|
|
|
3561 |
// isset id assignments
|
| 4496 |
mandeep.dh |
3562 |
private static final int __ITEMID_ISSET_ID = 0;
|
| 5530 |
mandeep.dh |
3563 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
|
| 5361 |
mandeep.dh |
3564 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 2820 |
chandransh |
3565 |
|
| 3430 |
rajveer |
3566 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
3567 |
static {
|
| 3430 |
rajveer |
3568 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5530 |
mandeep.dh |
3569 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3570 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 4496 |
mandeep.dh |
3571 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 3430 |
rajveer |
3572 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5530 |
mandeep.dh |
3573 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
3574 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
3575 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 5361 |
mandeep.dh |
3576 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_args.class, metaDataMap);
|
| 2820 |
chandransh |
3577 |
}
|
|
|
3578 |
|
| 5361 |
mandeep.dh |
3579 |
public getNonSeralizedInventoryItem_args() {
|
| 2820 |
chandransh |
3580 |
}
|
|
|
3581 |
|
| 5361 |
mandeep.dh |
3582 |
public getNonSeralizedInventoryItem_args(
|
| 5530 |
mandeep.dh |
3583 |
String itemNumber,
|
| 4496 |
mandeep.dh |
3584 |
long itemId,
|
| 5530 |
mandeep.dh |
3585 |
long fulfilmentWarehouseId)
|
| 2820 |
chandransh |
3586 |
{
|
|
|
3587 |
this();
|
| 5530 |
mandeep.dh |
3588 |
this.itemNumber = itemNumber;
|
| 4496 |
mandeep.dh |
3589 |
this.itemId = itemId;
|
|
|
3590 |
setItemIdIsSet(true);
|
| 5530 |
mandeep.dh |
3591 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
3592 |
setFulfilmentWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
3593 |
}
|
|
|
3594 |
|
|
|
3595 |
/**
|
|
|
3596 |
* Performs a deep copy on <i>other</i>.
|
|
|
3597 |
*/
|
| 5361 |
mandeep.dh |
3598 |
public getNonSeralizedInventoryItem_args(getNonSeralizedInventoryItem_args other) {
|
| 2820 |
chandransh |
3599 |
__isset_bit_vector.clear();
|
|
|
3600 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5530 |
mandeep.dh |
3601 |
if (other.isSetItemNumber()) {
|
|
|
3602 |
this.itemNumber = other.itemNumber;
|
|
|
3603 |
}
|
| 4496 |
mandeep.dh |
3604 |
this.itemId = other.itemId;
|
| 5530 |
mandeep.dh |
3605 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
| 2820 |
chandransh |
3606 |
}
|
|
|
3607 |
|
| 5361 |
mandeep.dh |
3608 |
public getNonSeralizedInventoryItem_args deepCopy() {
|
|
|
3609 |
return new getNonSeralizedInventoryItem_args(this);
|
| 2820 |
chandransh |
3610 |
}
|
|
|
3611 |
|
| 3430 |
rajveer |
3612 |
@Override
|
|
|
3613 |
public void clear() {
|
| 5530 |
mandeep.dh |
3614 |
this.itemNumber = null;
|
| 4496 |
mandeep.dh |
3615 |
setItemIdIsSet(false);
|
|
|
3616 |
this.itemId = 0;
|
| 5530 |
mandeep.dh |
3617 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
3618 |
this.fulfilmentWarehouseId = 0;
|
| 2820 |
chandransh |
3619 |
}
|
|
|
3620 |
|
| 5530 |
mandeep.dh |
3621 |
public String getItemNumber() {
|
|
|
3622 |
return this.itemNumber;
|
|
|
3623 |
}
|
|
|
3624 |
|
|
|
3625 |
public void setItemNumber(String itemNumber) {
|
|
|
3626 |
this.itemNumber = itemNumber;
|
|
|
3627 |
}
|
|
|
3628 |
|
|
|
3629 |
public void unsetItemNumber() {
|
|
|
3630 |
this.itemNumber = null;
|
|
|
3631 |
}
|
|
|
3632 |
|
|
|
3633 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
3634 |
public boolean isSetItemNumber() {
|
|
|
3635 |
return this.itemNumber != null;
|
|
|
3636 |
}
|
|
|
3637 |
|
|
|
3638 |
public void setItemNumberIsSet(boolean value) {
|
|
|
3639 |
if (!value) {
|
|
|
3640 |
this.itemNumber = null;
|
|
|
3641 |
}
|
|
|
3642 |
}
|
|
|
3643 |
|
| 4496 |
mandeep.dh |
3644 |
public long getItemId() {
|
|
|
3645 |
return this.itemId;
|
| 2820 |
chandransh |
3646 |
}
|
|
|
3647 |
|
| 4496 |
mandeep.dh |
3648 |
public void setItemId(long itemId) {
|
|
|
3649 |
this.itemId = itemId;
|
|
|
3650 |
setItemIdIsSet(true);
|
| 2820 |
chandransh |
3651 |
}
|
|
|
3652 |
|
| 4496 |
mandeep.dh |
3653 |
public void unsetItemId() {
|
|
|
3654 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
| 2820 |
chandransh |
3655 |
}
|
|
|
3656 |
|
| 4496 |
mandeep.dh |
3657 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
3658 |
public boolean isSetItemId() {
|
|
|
3659 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
| 2820 |
chandransh |
3660 |
}
|
|
|
3661 |
|
| 4496 |
mandeep.dh |
3662 |
public void setItemIdIsSet(boolean value) {
|
|
|
3663 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
| 2820 |
chandransh |
3664 |
}
|
|
|
3665 |
|
| 5530 |
mandeep.dh |
3666 |
public long getFulfilmentWarehouseId() {
|
|
|
3667 |
return this.fulfilmentWarehouseId;
|
| 2820 |
chandransh |
3668 |
}
|
|
|
3669 |
|
| 5530 |
mandeep.dh |
3670 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
3671 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
3672 |
setFulfilmentWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
3673 |
}
|
|
|
3674 |
|
| 5530 |
mandeep.dh |
3675 |
public void unsetFulfilmentWarehouseId() {
|
|
|
3676 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
3677 |
}
|
|
|
3678 |
|
| 5530 |
mandeep.dh |
3679 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
3680 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
3681 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
3682 |
}
|
|
|
3683 |
|
| 5530 |
mandeep.dh |
3684 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
3685 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 2820 |
chandransh |
3686 |
}
|
|
|
3687 |
|
|
|
3688 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3689 |
switch (field) {
|
| 5530 |
mandeep.dh |
3690 |
case ITEM_NUMBER:
|
|
|
3691 |
if (value == null) {
|
|
|
3692 |
unsetItemNumber();
|
|
|
3693 |
} else {
|
|
|
3694 |
setItemNumber((String)value);
|
|
|
3695 |
}
|
|
|
3696 |
break;
|
|
|
3697 |
|
| 4496 |
mandeep.dh |
3698 |
case ITEM_ID:
|
| 2820 |
chandransh |
3699 |
if (value == null) {
|
| 4496 |
mandeep.dh |
3700 |
unsetItemId();
|
| 2820 |
chandransh |
3701 |
} else {
|
| 4496 |
mandeep.dh |
3702 |
setItemId((Long)value);
|
| 2820 |
chandransh |
3703 |
}
|
|
|
3704 |
break;
|
|
|
3705 |
|
| 5530 |
mandeep.dh |
3706 |
case FULFILMENT_WAREHOUSE_ID:
|
| 2820 |
chandransh |
3707 |
if (value == null) {
|
| 5530 |
mandeep.dh |
3708 |
unsetFulfilmentWarehouseId();
|
| 2820 |
chandransh |
3709 |
} else {
|
| 5530 |
mandeep.dh |
3710 |
setFulfilmentWarehouseId((Long)value);
|
| 2820 |
chandransh |
3711 |
}
|
|
|
3712 |
break;
|
|
|
3713 |
|
|
|
3714 |
}
|
|
|
3715 |
}
|
|
|
3716 |
|
|
|
3717 |
public Object getFieldValue(_Fields field) {
|
|
|
3718 |
switch (field) {
|
| 5530 |
mandeep.dh |
3719 |
case ITEM_NUMBER:
|
|
|
3720 |
return getItemNumber();
|
|
|
3721 |
|
| 4496 |
mandeep.dh |
3722 |
case ITEM_ID:
|
|
|
3723 |
return Long.valueOf(getItemId());
|
| 2820 |
chandransh |
3724 |
|
| 5530 |
mandeep.dh |
3725 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
3726 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 2820 |
chandransh |
3727 |
|
|
|
3728 |
}
|
|
|
3729 |
throw new IllegalStateException();
|
|
|
3730 |
}
|
|
|
3731 |
|
| 3430 |
rajveer |
3732 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3733 |
public boolean isSet(_Fields field) {
|
|
|
3734 |
if (field == null) {
|
|
|
3735 |
throw new IllegalArgumentException();
|
|
|
3736 |
}
|
| 2820 |
chandransh |
3737 |
|
|
|
3738 |
switch (field) {
|
| 5530 |
mandeep.dh |
3739 |
case ITEM_NUMBER:
|
|
|
3740 |
return isSetItemNumber();
|
| 4496 |
mandeep.dh |
3741 |
case ITEM_ID:
|
|
|
3742 |
return isSetItemId();
|
| 5530 |
mandeep.dh |
3743 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
3744 |
return isSetFulfilmentWarehouseId();
|
| 2820 |
chandransh |
3745 |
}
|
|
|
3746 |
throw new IllegalStateException();
|
|
|
3747 |
}
|
|
|
3748 |
|
|
|
3749 |
@Override
|
|
|
3750 |
public boolean equals(Object that) {
|
|
|
3751 |
if (that == null)
|
|
|
3752 |
return false;
|
| 5361 |
mandeep.dh |
3753 |
if (that instanceof getNonSeralizedInventoryItem_args)
|
|
|
3754 |
return this.equals((getNonSeralizedInventoryItem_args)that);
|
| 2820 |
chandransh |
3755 |
return false;
|
|
|
3756 |
}
|
|
|
3757 |
|
| 5361 |
mandeep.dh |
3758 |
public boolean equals(getNonSeralizedInventoryItem_args that) {
|
| 2820 |
chandransh |
3759 |
if (that == null)
|
|
|
3760 |
return false;
|
|
|
3761 |
|
| 5530 |
mandeep.dh |
3762 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
3763 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
3764 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
3765 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
3766 |
return false;
|
|
|
3767 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
3768 |
return false;
|
|
|
3769 |
}
|
|
|
3770 |
|
| 4496 |
mandeep.dh |
3771 |
boolean this_present_itemId = true;
|
|
|
3772 |
boolean that_present_itemId = true;
|
|
|
3773 |
if (this_present_itemId || that_present_itemId) {
|
|
|
3774 |
if (!(this_present_itemId && that_present_itemId))
|
| 2820 |
chandransh |
3775 |
return false;
|
| 4496 |
mandeep.dh |
3776 |
if (this.itemId != that.itemId)
|
| 2820 |
chandransh |
3777 |
return false;
|
|
|
3778 |
}
|
|
|
3779 |
|
| 5530 |
mandeep.dh |
3780 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
3781 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
3782 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
3783 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 2820 |
chandransh |
3784 |
return false;
|
| 5530 |
mandeep.dh |
3785 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 2820 |
chandransh |
3786 |
return false;
|
|
|
3787 |
}
|
|
|
3788 |
|
|
|
3789 |
return true;
|
|
|
3790 |
}
|
|
|
3791 |
|
|
|
3792 |
@Override
|
|
|
3793 |
public int hashCode() {
|
|
|
3794 |
return 0;
|
|
|
3795 |
}
|
|
|
3796 |
|
| 5361 |
mandeep.dh |
3797 |
public int compareTo(getNonSeralizedInventoryItem_args other) {
|
| 2820 |
chandransh |
3798 |
if (!getClass().equals(other.getClass())) {
|
|
|
3799 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3800 |
}
|
|
|
3801 |
|
|
|
3802 |
int lastComparison = 0;
|
| 5361 |
mandeep.dh |
3803 |
getNonSeralizedInventoryItem_args typedOther = (getNonSeralizedInventoryItem_args)other;
|
| 2820 |
chandransh |
3804 |
|
| 5530 |
mandeep.dh |
3805 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
3806 |
if (lastComparison != 0) {
|
|
|
3807 |
return lastComparison;
|
|
|
3808 |
}
|
|
|
3809 |
if (isSetItemNumber()) {
|
|
|
3810 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
3811 |
if (lastComparison != 0) {
|
|
|
3812 |
return lastComparison;
|
|
|
3813 |
}
|
|
|
3814 |
}
|
| 4496 |
mandeep.dh |
3815 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
| 2820 |
chandransh |
3816 |
if (lastComparison != 0) {
|
|
|
3817 |
return lastComparison;
|
|
|
3818 |
}
|
| 4496 |
mandeep.dh |
3819 |
if (isSetItemId()) {
|
|
|
3820 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
| 3430 |
rajveer |
3821 |
if (lastComparison != 0) {
|
|
|
3822 |
return lastComparison;
|
|
|
3823 |
}
|
| 2820 |
chandransh |
3824 |
}
|
| 5530 |
mandeep.dh |
3825 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 2820 |
chandransh |
3826 |
if (lastComparison != 0) {
|
|
|
3827 |
return lastComparison;
|
|
|
3828 |
}
|
| 5530 |
mandeep.dh |
3829 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
3830 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 3430 |
rajveer |
3831 |
if (lastComparison != 0) {
|
|
|
3832 |
return lastComparison;
|
|
|
3833 |
}
|
| 2820 |
chandransh |
3834 |
}
|
|
|
3835 |
return 0;
|
|
|
3836 |
}
|
|
|
3837 |
|
| 3430 |
rajveer |
3838 |
public _Fields fieldForId(int fieldId) {
|
|
|
3839 |
return _Fields.findByThriftId(fieldId);
|
|
|
3840 |
}
|
|
|
3841 |
|
|
|
3842 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3843 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
3844 |
iprot.readStructBegin();
|
|
|
3845 |
while (true)
|
|
|
3846 |
{
|
|
|
3847 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3848 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
3849 |
break;
|
|
|
3850 |
}
|
| 3430 |
rajveer |
3851 |
switch (field.id) {
|
| 5530 |
mandeep.dh |
3852 |
case 1: // ITEM_NUMBER
|
|
|
3853 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
3854 |
this.itemNumber = iprot.readString();
|
|
|
3855 |
} else {
|
|
|
3856 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3857 |
}
|
|
|
3858 |
break;
|
|
|
3859 |
case 2: // ITEM_ID
|
| 3430 |
rajveer |
3860 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 4496 |
mandeep.dh |
3861 |
this.itemId = iprot.readI64();
|
|
|
3862 |
setItemIdIsSet(true);
|
| 3430 |
rajveer |
3863 |
} else {
|
|
|
3864 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3865 |
}
|
|
|
3866 |
break;
|
| 5530 |
mandeep.dh |
3867 |
case 3: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
3868 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5530 |
mandeep.dh |
3869 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
3870 |
setFulfilmentWarehouseIdIsSet(true);
|
| 3430 |
rajveer |
3871 |
} else {
|
|
|
3872 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3873 |
}
|
|
|
3874 |
break;
|
|
|
3875 |
default:
|
|
|
3876 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
3877 |
}
|
| 3430 |
rajveer |
3878 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
3879 |
}
|
|
|
3880 |
iprot.readStructEnd();
|
|
|
3881 |
validate();
|
|
|
3882 |
}
|
|
|
3883 |
|
| 3430 |
rajveer |
3884 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
3885 |
validate();
|
|
|
3886 |
|
|
|
3887 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5530 |
mandeep.dh |
3888 |
if (this.itemNumber != null) {
|
|
|
3889 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
3890 |
oprot.writeString(this.itemNumber);
|
|
|
3891 |
oprot.writeFieldEnd();
|
|
|
3892 |
}
|
| 4496 |
mandeep.dh |
3893 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
3894 |
oprot.writeI64(this.itemId);
|
| 2820 |
chandransh |
3895 |
oprot.writeFieldEnd();
|
| 5530 |
mandeep.dh |
3896 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
3897 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 2820 |
chandransh |
3898 |
oprot.writeFieldEnd();
|
|
|
3899 |
oprot.writeFieldStop();
|
|
|
3900 |
oprot.writeStructEnd();
|
|
|
3901 |
}
|
|
|
3902 |
|
|
|
3903 |
@Override
|
|
|
3904 |
public String toString() {
|
| 5361 |
mandeep.dh |
3905 |
StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_args(");
|
| 2820 |
chandransh |
3906 |
boolean first = true;
|
|
|
3907 |
|
| 5530 |
mandeep.dh |
3908 |
sb.append("itemNumber:");
|
|
|
3909 |
if (this.itemNumber == null) {
|
|
|
3910 |
sb.append("null");
|
|
|
3911 |
} else {
|
|
|
3912 |
sb.append(this.itemNumber);
|
|
|
3913 |
}
|
|
|
3914 |
first = false;
|
|
|
3915 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
3916 |
sb.append("itemId:");
|
|
|
3917 |
sb.append(this.itemId);
|
| 2820 |
chandransh |
3918 |
first = false;
|
|
|
3919 |
if (!first) sb.append(", ");
|
| 5530 |
mandeep.dh |
3920 |
sb.append("fulfilmentWarehouseId:");
|
|
|
3921 |
sb.append(this.fulfilmentWarehouseId);
|
| 2820 |
chandransh |
3922 |
first = false;
|
|
|
3923 |
sb.append(")");
|
|
|
3924 |
return sb.toString();
|
|
|
3925 |
}
|
|
|
3926 |
|
| 3430 |
rajveer |
3927 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
3928 |
// check for required fields
|
|
|
3929 |
}
|
|
|
3930 |
|
| 3430 |
rajveer |
3931 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3932 |
try {
|
|
|
3933 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3934 |
} catch (org.apache.thrift.TException te) {
|
|
|
3935 |
throw new java.io.IOException(te);
|
|
|
3936 |
}
|
|
|
3937 |
}
|
|
|
3938 |
|
|
|
3939 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3940 |
try {
|
| 4496 |
mandeep.dh |
3941 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
3942 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
3943 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3944 |
} catch (org.apache.thrift.TException te) {
|
|
|
3945 |
throw new java.io.IOException(te);
|
|
|
3946 |
}
|
|
|
3947 |
}
|
|
|
3948 |
|
| 2820 |
chandransh |
3949 |
}
|
|
|
3950 |
|
| 5361 |
mandeep.dh |
3951 |
public static class getNonSeralizedInventoryItem_result implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_result, getNonSeralizedInventoryItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3952 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_result");
|
| 2820 |
chandransh |
3953 |
|
| 5361 |
mandeep.dh |
3954 |
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);
|
|
|
3955 |
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 |
3956 |
|
| 5361 |
mandeep.dh |
3957 |
private InventoryItem success; // required
|
|
|
3958 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
3959 |
|
|
|
3960 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3961 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
3962 |
SUCCESS((short)0, "success"),
|
|
|
3963 |
WEX((short)1, "wex");
|
| 2820 |
chandransh |
3964 |
|
|
|
3965 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3966 |
|
|
|
3967 |
static {
|
|
|
3968 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3969 |
byName.put(field.getFieldName(), field);
|
|
|
3970 |
}
|
|
|
3971 |
}
|
|
|
3972 |
|
|
|
3973 |
/**
|
|
|
3974 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3975 |
*/
|
|
|
3976 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3977 |
switch(fieldId) {
|
|
|
3978 |
case 0: // SUCCESS
|
|
|
3979 |
return SUCCESS;
|
| 5361 |
mandeep.dh |
3980 |
case 1: // WEX
|
|
|
3981 |
return WEX;
|
| 3430 |
rajveer |
3982 |
default:
|
|
|
3983 |
return null;
|
|
|
3984 |
}
|
| 2820 |
chandransh |
3985 |
}
|
|
|
3986 |
|
|
|
3987 |
/**
|
|
|
3988 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3989 |
* if it is not found.
|
|
|
3990 |
*/
|
|
|
3991 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3992 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3993 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3994 |
return fields;
|
|
|
3995 |
}
|
|
|
3996 |
|
|
|
3997 |
/**
|
|
|
3998 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3999 |
*/
|
|
|
4000 |
public static _Fields findByName(String name) {
|
|
|
4001 |
return byName.get(name);
|
|
|
4002 |
}
|
|
|
4003 |
|
|
|
4004 |
private final short _thriftId;
|
|
|
4005 |
private final String _fieldName;
|
|
|
4006 |
|
|
|
4007 |
_Fields(short thriftId, String fieldName) {
|
|
|
4008 |
_thriftId = thriftId;
|
|
|
4009 |
_fieldName = fieldName;
|
|
|
4010 |
}
|
|
|
4011 |
|
|
|
4012 |
public short getThriftFieldId() {
|
|
|
4013 |
return _thriftId;
|
|
|
4014 |
}
|
|
|
4015 |
|
|
|
4016 |
public String getFieldName() {
|
|
|
4017 |
return _fieldName;
|
|
|
4018 |
}
|
|
|
4019 |
}
|
|
|
4020 |
|
|
|
4021 |
// isset id assignments
|
|
|
4022 |
|
| 3430 |
rajveer |
4023 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
4024 |
static {
|
| 3430 |
rajveer |
4025 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4026 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 5361 |
mandeep.dh |
4027 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
4028 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4029 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
| 3430 |
rajveer |
4030 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 5361 |
mandeep.dh |
4031 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_result.class, metaDataMap);
|
| 2820 |
chandransh |
4032 |
}
|
|
|
4033 |
|
| 5361 |
mandeep.dh |
4034 |
public getNonSeralizedInventoryItem_result() {
|
| 2820 |
chandransh |
4035 |
}
|
|
|
4036 |
|
| 5361 |
mandeep.dh |
4037 |
public getNonSeralizedInventoryItem_result(
|
|
|
4038 |
InventoryItem success,
|
|
|
4039 |
WarehouseServiceException wex)
|
| 2820 |
chandransh |
4040 |
{
|
|
|
4041 |
this();
|
|
|
4042 |
this.success = success;
|
| 5361 |
mandeep.dh |
4043 |
this.wex = wex;
|
| 2820 |
chandransh |
4044 |
}
|
|
|
4045 |
|
|
|
4046 |
/**
|
|
|
4047 |
* Performs a deep copy on <i>other</i>.
|
|
|
4048 |
*/
|
| 5361 |
mandeep.dh |
4049 |
public getNonSeralizedInventoryItem_result(getNonSeralizedInventoryItem_result other) {
|
| 4496 |
mandeep.dh |
4050 |
if (other.isSetSuccess()) {
|
| 5361 |
mandeep.dh |
4051 |
this.success = new InventoryItem(other.success);
|
| 2820 |
chandransh |
4052 |
}
|
| 5361 |
mandeep.dh |
4053 |
if (other.isSetWex()) {
|
|
|
4054 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
4055 |
}
|
| 2820 |
chandransh |
4056 |
}
|
|
|
4057 |
|
| 5361 |
mandeep.dh |
4058 |
public getNonSeralizedInventoryItem_result deepCopy() {
|
|
|
4059 |
return new getNonSeralizedInventoryItem_result(this);
|
| 2820 |
chandransh |
4060 |
}
|
|
|
4061 |
|
| 3430 |
rajveer |
4062 |
@Override
|
|
|
4063 |
public void clear() {
|
| 4496 |
mandeep.dh |
4064 |
this.success = null;
|
| 5361 |
mandeep.dh |
4065 |
this.wex = null;
|
| 2820 |
chandransh |
4066 |
}
|
|
|
4067 |
|
| 5361 |
mandeep.dh |
4068 |
public InventoryItem getSuccess() {
|
| 2820 |
chandransh |
4069 |
return this.success;
|
|
|
4070 |
}
|
|
|
4071 |
|
| 5361 |
mandeep.dh |
4072 |
public void setSuccess(InventoryItem success) {
|
| 2820 |
chandransh |
4073 |
this.success = success;
|
|
|
4074 |
}
|
|
|
4075 |
|
|
|
4076 |
public void unsetSuccess() {
|
| 4496 |
mandeep.dh |
4077 |
this.success = null;
|
| 2820 |
chandransh |
4078 |
}
|
|
|
4079 |
|
| 3430 |
rajveer |
4080 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
4081 |
public boolean isSetSuccess() {
|
| 4496 |
mandeep.dh |
4082 |
return this.success != null;
|
| 2820 |
chandransh |
4083 |
}
|
|
|
4084 |
|
|
|
4085 |
public void setSuccessIsSet(boolean value) {
|
| 4496 |
mandeep.dh |
4086 |
if (!value) {
|
|
|
4087 |
this.success = null;
|
|
|
4088 |
}
|
| 2820 |
chandransh |
4089 |
}
|
|
|
4090 |
|
| 5361 |
mandeep.dh |
4091 |
public WarehouseServiceException getWex() {
|
|
|
4092 |
return this.wex;
|
| 2820 |
chandransh |
4093 |
}
|
|
|
4094 |
|
| 5361 |
mandeep.dh |
4095 |
public void setWex(WarehouseServiceException wex) {
|
|
|
4096 |
this.wex = wex;
|
| 2820 |
chandransh |
4097 |
}
|
|
|
4098 |
|
| 5361 |
mandeep.dh |
4099 |
public void unsetWex() {
|
|
|
4100 |
this.wex = null;
|
| 2820 |
chandransh |
4101 |
}
|
|
|
4102 |
|
| 5361 |
mandeep.dh |
4103 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
4104 |
public boolean isSetWex() {
|
|
|
4105 |
return this.wex != null;
|
| 2820 |
chandransh |
4106 |
}
|
|
|
4107 |
|
| 5361 |
mandeep.dh |
4108 |
public void setWexIsSet(boolean value) {
|
|
|
4109 |
if (!value) {
|
|
|
4110 |
this.wex = null;
|
| 2820 |
chandransh |
4111 |
}
|
|
|
4112 |
}
|
|
|
4113 |
|
|
|
4114 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4115 |
switch (field) {
|
| 5361 |
mandeep.dh |
4116 |
case SUCCESS:
|
| 2820 |
chandransh |
4117 |
if (value == null) {
|
| 5361 |
mandeep.dh |
4118 |
unsetSuccess();
|
| 2820 |
chandransh |
4119 |
} else {
|
| 5361 |
mandeep.dh |
4120 |
setSuccess((InventoryItem)value);
|
| 2820 |
chandransh |
4121 |
}
|
|
|
4122 |
break;
|
|
|
4123 |
|
| 5361 |
mandeep.dh |
4124 |
case WEX:
|
| 2820 |
chandransh |
4125 |
if (value == null) {
|
| 5361 |
mandeep.dh |
4126 |
unsetWex();
|
| 2820 |
chandransh |
4127 |
} else {
|
| 5361 |
mandeep.dh |
4128 |
setWex((WarehouseServiceException)value);
|
| 2820 |
chandransh |
4129 |
}
|
|
|
4130 |
break;
|
|
|
4131 |
|
|
|
4132 |
}
|
|
|
4133 |
}
|
|
|
4134 |
|
|
|
4135 |
public Object getFieldValue(_Fields field) {
|
|
|
4136 |
switch (field) {
|
|
|
4137 |
case SUCCESS:
|
| 4496 |
mandeep.dh |
4138 |
return getSuccess();
|
| 2820 |
chandransh |
4139 |
|
| 5361 |
mandeep.dh |
4140 |
case WEX:
|
|
|
4141 |
return getWex();
|
|
|
4142 |
|
| 2820 |
chandransh |
4143 |
}
|
|
|
4144 |
throw new IllegalStateException();
|
|
|
4145 |
}
|
|
|
4146 |
|
| 3430 |
rajveer |
4147 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4148 |
public boolean isSet(_Fields field) {
|
|
|
4149 |
if (field == null) {
|
|
|
4150 |
throw new IllegalArgumentException();
|
|
|
4151 |
}
|
| 2820 |
chandransh |
4152 |
|
|
|
4153 |
switch (field) {
|
|
|
4154 |
case SUCCESS:
|
|
|
4155 |
return isSetSuccess();
|
| 5361 |
mandeep.dh |
4156 |
case WEX:
|
|
|
4157 |
return isSetWex();
|
| 2820 |
chandransh |
4158 |
}
|
|
|
4159 |
throw new IllegalStateException();
|
|
|
4160 |
}
|
|
|
4161 |
|
|
|
4162 |
@Override
|
|
|
4163 |
public boolean equals(Object that) {
|
|
|
4164 |
if (that == null)
|
|
|
4165 |
return false;
|
| 5361 |
mandeep.dh |
4166 |
if (that instanceof getNonSeralizedInventoryItem_result)
|
|
|
4167 |
return this.equals((getNonSeralizedInventoryItem_result)that);
|
| 2820 |
chandransh |
4168 |
return false;
|
|
|
4169 |
}
|
|
|
4170 |
|
| 5361 |
mandeep.dh |
4171 |
public boolean equals(getNonSeralizedInventoryItem_result that) {
|
| 2820 |
chandransh |
4172 |
if (that == null)
|
|
|
4173 |
return false;
|
|
|
4174 |
|
| 4496 |
mandeep.dh |
4175 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
4176 |
boolean that_present_success = true && that.isSetSuccess();
|
| 2820 |
chandransh |
4177 |
if (this_present_success || that_present_success) {
|
|
|
4178 |
if (!(this_present_success && that_present_success))
|
|
|
4179 |
return false;
|
| 4496 |
mandeep.dh |
4180 |
if (!this.success.equals(that.success))
|
| 2820 |
chandransh |
4181 |
return false;
|
|
|
4182 |
}
|
|
|
4183 |
|
| 5361 |
mandeep.dh |
4184 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
4185 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
4186 |
if (this_present_wex || that_present_wex) {
|
|
|
4187 |
if (!(this_present_wex && that_present_wex))
|
| 4496 |
mandeep.dh |
4188 |
return false;
|
| 5361 |
mandeep.dh |
4189 |
if (!this.wex.equals(that.wex))
|
| 4496 |
mandeep.dh |
4190 |
return false;
|
|
|
4191 |
}
|
|
|
4192 |
|
|
|
4193 |
return true;
|
|
|
4194 |
}
|
|
|
4195 |
|
|
|
4196 |
@Override
|
|
|
4197 |
public int hashCode() {
|
|
|
4198 |
return 0;
|
|
|
4199 |
}
|
|
|
4200 |
|
| 5361 |
mandeep.dh |
4201 |
public int compareTo(getNonSeralizedInventoryItem_result other) {
|
| 4496 |
mandeep.dh |
4202 |
if (!getClass().equals(other.getClass())) {
|
|
|
4203 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4204 |
}
|
|
|
4205 |
|
|
|
4206 |
int lastComparison = 0;
|
| 5361 |
mandeep.dh |
4207 |
getNonSeralizedInventoryItem_result typedOther = (getNonSeralizedInventoryItem_result)other;
|
| 4496 |
mandeep.dh |
4208 |
|
|
|
4209 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
4210 |
if (lastComparison != 0) {
|
|
|
4211 |
return lastComparison;
|
|
|
4212 |
}
|
|
|
4213 |
if (isSetSuccess()) {
|
|
|
4214 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
4215 |
if (lastComparison != 0) {
|
|
|
4216 |
return lastComparison;
|
|
|
4217 |
}
|
|
|
4218 |
}
|
| 5361 |
mandeep.dh |
4219 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
4220 |
if (lastComparison != 0) {
|
|
|
4221 |
return lastComparison;
|
|
|
4222 |
}
|
| 5361 |
mandeep.dh |
4223 |
if (isSetWex()) {
|
|
|
4224 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
| 3430 |
rajveer |
4225 |
if (lastComparison != 0) {
|
|
|
4226 |
return lastComparison;
|
|
|
4227 |
}
|
| 2820 |
chandransh |
4228 |
}
|
|
|
4229 |
return 0;
|
|
|
4230 |
}
|
|
|
4231 |
|
| 3430 |
rajveer |
4232 |
public _Fields fieldForId(int fieldId) {
|
|
|
4233 |
return _Fields.findByThriftId(fieldId);
|
|
|
4234 |
}
|
|
|
4235 |
|
|
|
4236 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4237 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
4238 |
iprot.readStructBegin();
|
|
|
4239 |
while (true)
|
|
|
4240 |
{
|
|
|
4241 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4242 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
4243 |
break;
|
|
|
4244 |
}
|
| 3430 |
rajveer |
4245 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
4246 |
case 0: // SUCCESS
|
|
|
4247 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4248 |
this.success = new InventoryItem();
|
|
|
4249 |
this.success.read(iprot);
|
| 3430 |
rajveer |
4250 |
} else {
|
|
|
4251 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4252 |
}
|
|
|
4253 |
break;
|
| 5361 |
mandeep.dh |
4254 |
case 1: // WEX
|
|
|
4255 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4256 |
this.wex = new WarehouseServiceException();
|
|
|
4257 |
this.wex.read(iprot);
|
| 4496 |
mandeep.dh |
4258 |
} else {
|
|
|
4259 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4260 |
}
|
|
|
4261 |
break;
|
|
|
4262 |
default:
|
|
|
4263 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4264 |
}
|
|
|
4265 |
iprot.readFieldEnd();
|
|
|
4266 |
}
|
|
|
4267 |
iprot.readStructEnd();
|
|
|
4268 |
validate();
|
|
|
4269 |
}
|
|
|
4270 |
|
|
|
4271 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
4272 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4273 |
|
|
|
4274 |
if (this.isSetSuccess()) {
|
|
|
4275 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 5361 |
mandeep.dh |
4276 |
this.success.write(oprot);
|
| 4496 |
mandeep.dh |
4277 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
4278 |
} else if (this.isSetWex()) {
|
|
|
4279 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
4280 |
this.wex.write(oprot);
|
|
|
4281 |
oprot.writeFieldEnd();
|
| 4496 |
mandeep.dh |
4282 |
}
|
|
|
4283 |
oprot.writeFieldStop();
|
|
|
4284 |
oprot.writeStructEnd();
|
|
|
4285 |
}
|
|
|
4286 |
|
|
|
4287 |
@Override
|
|
|
4288 |
public String toString() {
|
| 5361 |
mandeep.dh |
4289 |
StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_result(");
|
| 4496 |
mandeep.dh |
4290 |
boolean first = true;
|
|
|
4291 |
|
|
|
4292 |
sb.append("success:");
|
|
|
4293 |
if (this.success == null) {
|
|
|
4294 |
sb.append("null");
|
|
|
4295 |
} else {
|
|
|
4296 |
sb.append(this.success);
|
|
|
4297 |
}
|
|
|
4298 |
first = false;
|
| 5361 |
mandeep.dh |
4299 |
if (!first) sb.append(", ");
|
|
|
4300 |
sb.append("wex:");
|
|
|
4301 |
if (this.wex == null) {
|
|
|
4302 |
sb.append("null");
|
|
|
4303 |
} else {
|
|
|
4304 |
sb.append(this.wex);
|
|
|
4305 |
}
|
|
|
4306 |
first = false;
|
| 4496 |
mandeep.dh |
4307 |
sb.append(")");
|
|
|
4308 |
return sb.toString();
|
|
|
4309 |
}
|
|
|
4310 |
|
|
|
4311 |
public void validate() throws org.apache.thrift.TException {
|
|
|
4312 |
// check for required fields
|
|
|
4313 |
}
|
|
|
4314 |
|
|
|
4315 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4316 |
try {
|
|
|
4317 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4318 |
} catch (org.apache.thrift.TException te) {
|
|
|
4319 |
throw new java.io.IOException(te);
|
|
|
4320 |
}
|
|
|
4321 |
}
|
|
|
4322 |
|
|
|
4323 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4324 |
try {
|
|
|
4325 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4326 |
} catch (org.apache.thrift.TException te) {
|
|
|
4327 |
throw new java.io.IOException(te);
|
|
|
4328 |
}
|
|
|
4329 |
}
|
|
|
4330 |
|
|
|
4331 |
}
|
|
|
4332 |
|
|
|
4333 |
public static class scan_args implements org.apache.thrift.TBase<scan_args, scan_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4334 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_args");
|
| 3383 |
chandransh |
4335 |
|
| 5361 |
mandeep.dh |
4336 |
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 |
4337 |
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);
|
|
|
4338 |
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 |
4339 |
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 |
4340 |
|
| 5361 |
mandeep.dh |
4341 |
private InventoryItem inventoryItem; // required
|
| 4496 |
mandeep.dh |
4342 |
private ScanType type; // required
|
|
|
4343 |
private long quantity; // required
|
| 5361 |
mandeep.dh |
4344 |
private long billingWarehouseId; // required
|
| 3383 |
chandransh |
4345 |
|
|
|
4346 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4347 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
4348 |
INVENTORY_ITEM((short)1, "inventoryItem"),
|
| 4496 |
mandeep.dh |
4349 |
/**
|
|
|
4350 |
*
|
|
|
4351 |
* @see ScanType
|
|
|
4352 |
*/
|
|
|
4353 |
TYPE((short)2, "type"),
|
|
|
4354 |
QUANTITY((short)3, "quantity"),
|
| 5361 |
mandeep.dh |
4355 |
BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId");
|
| 3383 |
chandransh |
4356 |
|
|
|
4357 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4358 |
|
|
|
4359 |
static {
|
|
|
4360 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4361 |
byName.put(field.getFieldName(), field);
|
|
|
4362 |
}
|
|
|
4363 |
}
|
|
|
4364 |
|
|
|
4365 |
/**
|
|
|
4366 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4367 |
*/
|
|
|
4368 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4369 |
switch(fieldId) {
|
| 5361 |
mandeep.dh |
4370 |
case 1: // INVENTORY_ITEM
|
|
|
4371 |
return INVENTORY_ITEM;
|
| 4496 |
mandeep.dh |
4372 |
case 2: // TYPE
|
|
|
4373 |
return TYPE;
|
|
|
4374 |
case 3: // QUANTITY
|
|
|
4375 |
return QUANTITY;
|
| 5361 |
mandeep.dh |
4376 |
case 4: // BILLING_WAREHOUSE_ID
|
|
|
4377 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
4378 |
default:
|
|
|
4379 |
return null;
|
|
|
4380 |
}
|
| 3383 |
chandransh |
4381 |
}
|
|
|
4382 |
|
|
|
4383 |
/**
|
|
|
4384 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4385 |
* if it is not found.
|
|
|
4386 |
*/
|
|
|
4387 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4388 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4389 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4390 |
return fields;
|
|
|
4391 |
}
|
|
|
4392 |
|
|
|
4393 |
/**
|
|
|
4394 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4395 |
*/
|
|
|
4396 |
public static _Fields findByName(String name) {
|
|
|
4397 |
return byName.get(name);
|
|
|
4398 |
}
|
|
|
4399 |
|
|
|
4400 |
private final short _thriftId;
|
|
|
4401 |
private final String _fieldName;
|
|
|
4402 |
|
|
|
4403 |
_Fields(short thriftId, String fieldName) {
|
|
|
4404 |
_thriftId = thriftId;
|
|
|
4405 |
_fieldName = fieldName;
|
|
|
4406 |
}
|
|
|
4407 |
|
|
|
4408 |
public short getThriftFieldId() {
|
|
|
4409 |
return _thriftId;
|
|
|
4410 |
}
|
|
|
4411 |
|
|
|
4412 |
public String getFieldName() {
|
|
|
4413 |
return _fieldName;
|
|
|
4414 |
}
|
|
|
4415 |
}
|
|
|
4416 |
|
|
|
4417 |
// isset id assignments
|
| 5361 |
mandeep.dh |
4418 |
private static final int __QUANTITY_ISSET_ID = 0;
|
|
|
4419 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
|
|
|
4420 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 3383 |
chandransh |
4421 |
|
| 3430 |
rajveer |
4422 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
4423 |
static {
|
| 3430 |
rajveer |
4424 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5361 |
mandeep.dh |
4425 |
tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4426 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 4496 |
mandeep.dh |
4427 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4428 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
4429 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4430 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5361 |
mandeep.dh |
4431 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
4432 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
4433 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
4434 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap);
|
| 3383 |
chandransh |
4435 |
}
|
|
|
4436 |
|
| 4496 |
mandeep.dh |
4437 |
public scan_args() {
|
| 3383 |
chandransh |
4438 |
}
|
|
|
4439 |
|
| 4496 |
mandeep.dh |
4440 |
public scan_args(
|
| 5361 |
mandeep.dh |
4441 |
InventoryItem inventoryItem,
|
| 4496 |
mandeep.dh |
4442 |
ScanType type,
|
|
|
4443 |
long quantity,
|
| 5361 |
mandeep.dh |
4444 |
long billingWarehouseId)
|
| 3383 |
chandransh |
4445 |
{
|
|
|
4446 |
this();
|
| 5361 |
mandeep.dh |
4447 |
this.inventoryItem = inventoryItem;
|
| 4496 |
mandeep.dh |
4448 |
this.type = type;
|
|
|
4449 |
this.quantity = quantity;
|
|
|
4450 |
setQuantityIsSet(true);
|
| 5361 |
mandeep.dh |
4451 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
4452 |
setBillingWarehouseIdIsSet(true);
|
| 3383 |
chandransh |
4453 |
}
|
|
|
4454 |
|
|
|
4455 |
/**
|
|
|
4456 |
* Performs a deep copy on <i>other</i>.
|
|
|
4457 |
*/
|
| 4496 |
mandeep.dh |
4458 |
public scan_args(scan_args other) {
|
| 3383 |
chandransh |
4459 |
__isset_bit_vector.clear();
|
|
|
4460 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5361 |
mandeep.dh |
4461 |
if (other.isSetInventoryItem()) {
|
|
|
4462 |
this.inventoryItem = new InventoryItem(other.inventoryItem);
|
|
|
4463 |
}
|
| 4496 |
mandeep.dh |
4464 |
if (other.isSetType()) {
|
|
|
4465 |
this.type = other.type;
|
|
|
4466 |
}
|
|
|
4467 |
this.quantity = other.quantity;
|
| 5361 |
mandeep.dh |
4468 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 3383 |
chandransh |
4469 |
}
|
|
|
4470 |
|
| 4496 |
mandeep.dh |
4471 |
public scan_args deepCopy() {
|
|
|
4472 |
return new scan_args(this);
|
| 3383 |
chandransh |
4473 |
}
|
|
|
4474 |
|
| 3430 |
rajveer |
4475 |
@Override
|
|
|
4476 |
public void clear() {
|
| 5361 |
mandeep.dh |
4477 |
this.inventoryItem = null;
|
| 4496 |
mandeep.dh |
4478 |
this.type = null;
|
|
|
4479 |
setQuantityIsSet(false);
|
|
|
4480 |
this.quantity = 0;
|
| 5361 |
mandeep.dh |
4481 |
setBillingWarehouseIdIsSet(false);
|
|
|
4482 |
this.billingWarehouseId = 0;
|
| 3383 |
chandransh |
4483 |
}
|
|
|
4484 |
|
| 5361 |
mandeep.dh |
4485 |
public InventoryItem getInventoryItem() {
|
|
|
4486 |
return this.inventoryItem;
|
| 3383 |
chandransh |
4487 |
}
|
|
|
4488 |
|
| 5361 |
mandeep.dh |
4489 |
public void setInventoryItem(InventoryItem inventoryItem) {
|
|
|
4490 |
this.inventoryItem = inventoryItem;
|
| 3383 |
chandransh |
4491 |
}
|
|
|
4492 |
|
| 5361 |
mandeep.dh |
4493 |
public void unsetInventoryItem() {
|
|
|
4494 |
this.inventoryItem = null;
|
| 3383 |
chandransh |
4495 |
}
|
|
|
4496 |
|
| 5361 |
mandeep.dh |
4497 |
/** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
|
|
|
4498 |
public boolean isSetInventoryItem() {
|
|
|
4499 |
return this.inventoryItem != null;
|
| 3383 |
chandransh |
4500 |
}
|
|
|
4501 |
|
| 5361 |
mandeep.dh |
4502 |
public void setInventoryItemIsSet(boolean value) {
|
|
|
4503 |
if (!value) {
|
|
|
4504 |
this.inventoryItem = null;
|
|
|
4505 |
}
|
| 3383 |
chandransh |
4506 |
}
|
|
|
4507 |
|
| 4496 |
mandeep.dh |
4508 |
/**
|
|
|
4509 |
*
|
|
|
4510 |
* @see ScanType
|
|
|
4511 |
*/
|
|
|
4512 |
public ScanType getType() {
|
|
|
4513 |
return this.type;
|
| 3383 |
chandransh |
4514 |
}
|
|
|
4515 |
|
| 4496 |
mandeep.dh |
4516 |
/**
|
|
|
4517 |
*
|
|
|
4518 |
* @see ScanType
|
|
|
4519 |
*/
|
|
|
4520 |
public void setType(ScanType type) {
|
|
|
4521 |
this.type = type;
|
| 3383 |
chandransh |
4522 |
}
|
|
|
4523 |
|
| 4496 |
mandeep.dh |
4524 |
public void unsetType() {
|
|
|
4525 |
this.type = null;
|
| 3383 |
chandransh |
4526 |
}
|
|
|
4527 |
|
| 4496 |
mandeep.dh |
4528 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
4529 |
public boolean isSetType() {
|
|
|
4530 |
return this.type != null;
|
| 3383 |
chandransh |
4531 |
}
|
|
|
4532 |
|
| 4496 |
mandeep.dh |
4533 |
public void setTypeIsSet(boolean value) {
|
|
|
4534 |
if (!value) {
|
|
|
4535 |
this.type = null;
|
|
|
4536 |
}
|
| 3383 |
chandransh |
4537 |
}
|
|
|
4538 |
|
| 4496 |
mandeep.dh |
4539 |
public long getQuantity() {
|
|
|
4540 |
return this.quantity;
|
|
|
4541 |
}
|
|
|
4542 |
|
|
|
4543 |
public void setQuantity(long quantity) {
|
|
|
4544 |
this.quantity = quantity;
|
|
|
4545 |
setQuantityIsSet(true);
|
|
|
4546 |
}
|
|
|
4547 |
|
|
|
4548 |
public void unsetQuantity() {
|
|
|
4549 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
4550 |
}
|
|
|
4551 |
|
|
|
4552 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
4553 |
public boolean isSetQuantity() {
|
|
|
4554 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
4555 |
}
|
|
|
4556 |
|
|
|
4557 |
public void setQuantityIsSet(boolean value) {
|
|
|
4558 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
4559 |
}
|
|
|
4560 |
|
| 5361 |
mandeep.dh |
4561 |
public long getBillingWarehouseId() {
|
|
|
4562 |
return this.billingWarehouseId;
|
| 4496 |
mandeep.dh |
4563 |
}
|
|
|
4564 |
|
| 5361 |
mandeep.dh |
4565 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
4566 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
4567 |
setBillingWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
4568 |
}
|
|
|
4569 |
|
| 5361 |
mandeep.dh |
4570 |
public void unsetBillingWarehouseId() {
|
|
|
4571 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
4572 |
}
|
|
|
4573 |
|
| 5361 |
mandeep.dh |
4574 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
4575 |
public boolean isSetBillingWarehouseId() {
|
|
|
4576 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
4577 |
}
|
|
|
4578 |
|
| 5361 |
mandeep.dh |
4579 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
4580 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
| 4496 |
mandeep.dh |
4581 |
}
|
|
|
4582 |
|
| 3383 |
chandransh |
4583 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4584 |
switch (field) {
|
| 5361 |
mandeep.dh |
4585 |
case INVENTORY_ITEM:
|
| 3383 |
chandransh |
4586 |
if (value == null) {
|
| 5361 |
mandeep.dh |
4587 |
unsetInventoryItem();
|
| 3383 |
chandransh |
4588 |
} else {
|
| 5361 |
mandeep.dh |
4589 |
setInventoryItem((InventoryItem)value);
|
| 3383 |
chandransh |
4590 |
}
|
|
|
4591 |
break;
|
|
|
4592 |
|
| 4496 |
mandeep.dh |
4593 |
case TYPE:
|
| 3383 |
chandransh |
4594 |
if (value == null) {
|
| 4496 |
mandeep.dh |
4595 |
unsetType();
|
| 3383 |
chandransh |
4596 |
} else {
|
| 4496 |
mandeep.dh |
4597 |
setType((ScanType)value);
|
| 3383 |
chandransh |
4598 |
}
|
|
|
4599 |
break;
|
|
|
4600 |
|
| 4496 |
mandeep.dh |
4601 |
case QUANTITY:
|
|
|
4602 |
if (value == null) {
|
|
|
4603 |
unsetQuantity();
|
|
|
4604 |
} else {
|
|
|
4605 |
setQuantity((Long)value);
|
|
|
4606 |
}
|
|
|
4607 |
break;
|
|
|
4608 |
|
| 5361 |
mandeep.dh |
4609 |
case BILLING_WAREHOUSE_ID:
|
| 4496 |
mandeep.dh |
4610 |
if (value == null) {
|
| 5361 |
mandeep.dh |
4611 |
unsetBillingWarehouseId();
|
| 4496 |
mandeep.dh |
4612 |
} else {
|
| 5361 |
mandeep.dh |
4613 |
setBillingWarehouseId((Long)value);
|
| 4496 |
mandeep.dh |
4614 |
}
|
|
|
4615 |
break;
|
|
|
4616 |
|
| 3383 |
chandransh |
4617 |
}
|
|
|
4618 |
}
|
|
|
4619 |
|
|
|
4620 |
public Object getFieldValue(_Fields field) {
|
|
|
4621 |
switch (field) {
|
| 5361 |
mandeep.dh |
4622 |
case INVENTORY_ITEM:
|
|
|
4623 |
return getInventoryItem();
|
| 3383 |
chandransh |
4624 |
|
| 4496 |
mandeep.dh |
4625 |
case TYPE:
|
|
|
4626 |
return getType();
|
| 3383 |
chandransh |
4627 |
|
| 4496 |
mandeep.dh |
4628 |
case QUANTITY:
|
|
|
4629 |
return Long.valueOf(getQuantity());
|
|
|
4630 |
|
| 5361 |
mandeep.dh |
4631 |
case BILLING_WAREHOUSE_ID:
|
|
|
4632 |
return Long.valueOf(getBillingWarehouseId());
|
| 4496 |
mandeep.dh |
4633 |
|
| 3383 |
chandransh |
4634 |
}
|
|
|
4635 |
throw new IllegalStateException();
|
|
|
4636 |
}
|
|
|
4637 |
|
| 3430 |
rajveer |
4638 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4639 |
public boolean isSet(_Fields field) {
|
|
|
4640 |
if (field == null) {
|
|
|
4641 |
throw new IllegalArgumentException();
|
|
|
4642 |
}
|
| 3383 |
chandransh |
4643 |
|
|
|
4644 |
switch (field) {
|
| 5361 |
mandeep.dh |
4645 |
case INVENTORY_ITEM:
|
|
|
4646 |
return isSetInventoryItem();
|
| 4496 |
mandeep.dh |
4647 |
case TYPE:
|
|
|
4648 |
return isSetType();
|
|
|
4649 |
case QUANTITY:
|
|
|
4650 |
return isSetQuantity();
|
| 5361 |
mandeep.dh |
4651 |
case BILLING_WAREHOUSE_ID:
|
|
|
4652 |
return isSetBillingWarehouseId();
|
| 3383 |
chandransh |
4653 |
}
|
|
|
4654 |
throw new IllegalStateException();
|
|
|
4655 |
}
|
|
|
4656 |
|
|
|
4657 |
@Override
|
|
|
4658 |
public boolean equals(Object that) {
|
|
|
4659 |
if (that == null)
|
|
|
4660 |
return false;
|
| 4496 |
mandeep.dh |
4661 |
if (that instanceof scan_args)
|
|
|
4662 |
return this.equals((scan_args)that);
|
| 3383 |
chandransh |
4663 |
return false;
|
|
|
4664 |
}
|
|
|
4665 |
|
| 4496 |
mandeep.dh |
4666 |
public boolean equals(scan_args that) {
|
| 3383 |
chandransh |
4667 |
if (that == null)
|
|
|
4668 |
return false;
|
|
|
4669 |
|
| 5361 |
mandeep.dh |
4670 |
boolean this_present_inventoryItem = true && this.isSetInventoryItem();
|
|
|
4671 |
boolean that_present_inventoryItem = true && that.isSetInventoryItem();
|
|
|
4672 |
if (this_present_inventoryItem || that_present_inventoryItem) {
|
|
|
4673 |
if (!(this_present_inventoryItem && that_present_inventoryItem))
|
| 3383 |
chandransh |
4674 |
return false;
|
| 5361 |
mandeep.dh |
4675 |
if (!this.inventoryItem.equals(that.inventoryItem))
|
| 3383 |
chandransh |
4676 |
return false;
|
|
|
4677 |
}
|
|
|
4678 |
|
| 4496 |
mandeep.dh |
4679 |
boolean this_present_type = true && this.isSetType();
|
|
|
4680 |
boolean that_present_type = true && that.isSetType();
|
|
|
4681 |
if (this_present_type || that_present_type) {
|
|
|
4682 |
if (!(this_present_type && that_present_type))
|
| 3383 |
chandransh |
4683 |
return false;
|
| 4496 |
mandeep.dh |
4684 |
if (!this.type.equals(that.type))
|
| 3383 |
chandransh |
4685 |
return false;
|
|
|
4686 |
}
|
|
|
4687 |
|
| 4496 |
mandeep.dh |
4688 |
boolean this_present_quantity = true;
|
|
|
4689 |
boolean that_present_quantity = true;
|
|
|
4690 |
if (this_present_quantity || that_present_quantity) {
|
|
|
4691 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
4692 |
return false;
|
|
|
4693 |
if (this.quantity != that.quantity)
|
|
|
4694 |
return false;
|
|
|
4695 |
}
|
|
|
4696 |
|
| 5361 |
mandeep.dh |
4697 |
boolean this_present_billingWarehouseId = true;
|
|
|
4698 |
boolean that_present_billingWarehouseId = true;
|
|
|
4699 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
4700 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
| 4496 |
mandeep.dh |
4701 |
return false;
|
| 5361 |
mandeep.dh |
4702 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
| 4496 |
mandeep.dh |
4703 |
return false;
|
|
|
4704 |
}
|
|
|
4705 |
|
| 3383 |
chandransh |
4706 |
return true;
|
|
|
4707 |
}
|
|
|
4708 |
|
|
|
4709 |
@Override
|
|
|
4710 |
public int hashCode() {
|
|
|
4711 |
return 0;
|
|
|
4712 |
}
|
|
|
4713 |
|
| 4496 |
mandeep.dh |
4714 |
public int compareTo(scan_args other) {
|
| 3383 |
chandransh |
4715 |
if (!getClass().equals(other.getClass())) {
|
|
|
4716 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4717 |
}
|
|
|
4718 |
|
|
|
4719 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
4720 |
scan_args typedOther = (scan_args)other;
|
| 3383 |
chandransh |
4721 |
|
| 5361 |
mandeep.dh |
4722 |
lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
|
| 3383 |
chandransh |
4723 |
if (lastComparison != 0) {
|
|
|
4724 |
return lastComparison;
|
|
|
4725 |
}
|
| 5361 |
mandeep.dh |
4726 |
if (isSetInventoryItem()) {
|
|
|
4727 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
|
| 3430 |
rajveer |
4728 |
if (lastComparison != 0) {
|
|
|
4729 |
return lastComparison;
|
|
|
4730 |
}
|
| 3383 |
chandransh |
4731 |
}
|
| 4496 |
mandeep.dh |
4732 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 3383 |
chandransh |
4733 |
if (lastComparison != 0) {
|
|
|
4734 |
return lastComparison;
|
|
|
4735 |
}
|
| 4496 |
mandeep.dh |
4736 |
if (isSetType()) {
|
|
|
4737 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
4738 |
if (lastComparison != 0) {
|
|
|
4739 |
return lastComparison;
|
|
|
4740 |
}
|
| 3383 |
chandransh |
4741 |
}
|
| 4496 |
mandeep.dh |
4742 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
|
|
4743 |
if (lastComparison != 0) {
|
|
|
4744 |
return lastComparison;
|
|
|
4745 |
}
|
|
|
4746 |
if (isSetQuantity()) {
|
|
|
4747 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
|
|
4748 |
if (lastComparison != 0) {
|
|
|
4749 |
return lastComparison;
|
|
|
4750 |
}
|
|
|
4751 |
}
|
| 5361 |
mandeep.dh |
4752 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
| 4496 |
mandeep.dh |
4753 |
if (lastComparison != 0) {
|
|
|
4754 |
return lastComparison;
|
|
|
4755 |
}
|
| 5361 |
mandeep.dh |
4756 |
if (isSetBillingWarehouseId()) {
|
|
|
4757 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
| 4496 |
mandeep.dh |
4758 |
if (lastComparison != 0) {
|
|
|
4759 |
return lastComparison;
|
|
|
4760 |
}
|
|
|
4761 |
}
|
| 3383 |
chandransh |
4762 |
return 0;
|
|
|
4763 |
}
|
|
|
4764 |
|
| 3430 |
rajveer |
4765 |
public _Fields fieldForId(int fieldId) {
|
|
|
4766 |
return _Fields.findByThriftId(fieldId);
|
|
|
4767 |
}
|
|
|
4768 |
|
|
|
4769 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4770 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
4771 |
iprot.readStructBegin();
|
|
|
4772 |
while (true)
|
|
|
4773 |
{
|
|
|
4774 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4775 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
4776 |
break;
|
|
|
4777 |
}
|
| 3430 |
rajveer |
4778 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
4779 |
case 1: // INVENTORY_ITEM
|
|
|
4780 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4781 |
this.inventoryItem = new InventoryItem();
|
|
|
4782 |
this.inventoryItem.read(iprot);
|
| 3430 |
rajveer |
4783 |
} else {
|
|
|
4784 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4785 |
}
|
|
|
4786 |
break;
|
| 4496 |
mandeep.dh |
4787 |
case 2: // TYPE
|
|
|
4788 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
4789 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
4790 |
} else {
|
|
|
4791 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4792 |
}
|
|
|
4793 |
break;
|
| 4496 |
mandeep.dh |
4794 |
case 3: // QUANTITY
|
|
|
4795 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4796 |
this.quantity = iprot.readI64();
|
|
|
4797 |
setQuantityIsSet(true);
|
|
|
4798 |
} else {
|
|
|
4799 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4800 |
}
|
|
|
4801 |
break;
|
| 5361 |
mandeep.dh |
4802 |
case 4: // BILLING_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
4803 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5361 |
mandeep.dh |
4804 |
this.billingWarehouseId = iprot.readI64();
|
|
|
4805 |
setBillingWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
4806 |
} else {
|
|
|
4807 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4808 |
}
|
|
|
4809 |
break;
|
| 3430 |
rajveer |
4810 |
default:
|
|
|
4811 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
4812 |
}
|
| 3430 |
rajveer |
4813 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
4814 |
}
|
|
|
4815 |
iprot.readStructEnd();
|
|
|
4816 |
validate();
|
|
|
4817 |
}
|
|
|
4818 |
|
| 3430 |
rajveer |
4819 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
4820 |
validate();
|
|
|
4821 |
|
|
|
4822 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5361 |
mandeep.dh |
4823 |
if (this.inventoryItem != null) {
|
|
|
4824 |
oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
|
|
|
4825 |
this.inventoryItem.write(oprot);
|
|
|
4826 |
oprot.writeFieldEnd();
|
|
|
4827 |
}
|
| 4496 |
mandeep.dh |
4828 |
if (this.type != null) {
|
|
|
4829 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
4830 |
oprot.writeI32(this.type.getValue());
|
|
|
4831 |
oprot.writeFieldEnd();
|
|
|
4832 |
}
|
|
|
4833 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
4834 |
oprot.writeI64(this.quantity);
|
| 3383 |
chandransh |
4835 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
4836 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
4837 |
oprot.writeI64(this.billingWarehouseId);
|
| 4496 |
mandeep.dh |
4838 |
oprot.writeFieldEnd();
|
| 3383 |
chandransh |
4839 |
oprot.writeFieldStop();
|
|
|
4840 |
oprot.writeStructEnd();
|
|
|
4841 |
}
|
|
|
4842 |
|
|
|
4843 |
@Override
|
|
|
4844 |
public String toString() {
|
| 4496 |
mandeep.dh |
4845 |
StringBuilder sb = new StringBuilder("scan_args(");
|
| 3383 |
chandransh |
4846 |
boolean first = true;
|
|
|
4847 |
|
| 5361 |
mandeep.dh |
4848 |
sb.append("inventoryItem:");
|
|
|
4849 |
if (this.inventoryItem == null) {
|
|
|
4850 |
sb.append("null");
|
|
|
4851 |
} else {
|
|
|
4852 |
sb.append(this.inventoryItem);
|
|
|
4853 |
}
|
| 3383 |
chandransh |
4854 |
first = false;
|
|
|
4855 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
4856 |
sb.append("type:");
|
|
|
4857 |
if (this.type == null) {
|
|
|
4858 |
sb.append("null");
|
|
|
4859 |
} else {
|
|
|
4860 |
sb.append(this.type);
|
|
|
4861 |
}
|
| 3383 |
chandransh |
4862 |
first = false;
|
| 4496 |
mandeep.dh |
4863 |
if (!first) sb.append(", ");
|
|
|
4864 |
sb.append("quantity:");
|
|
|
4865 |
sb.append(this.quantity);
|
|
|
4866 |
first = false;
|
|
|
4867 |
if (!first) sb.append(", ");
|
| 5361 |
mandeep.dh |
4868 |
sb.append("billingWarehouseId:");
|
|
|
4869 |
sb.append(this.billingWarehouseId);
|
| 4496 |
mandeep.dh |
4870 |
first = false;
|
| 3383 |
chandransh |
4871 |
sb.append(")");
|
|
|
4872 |
return sb.toString();
|
|
|
4873 |
}
|
|
|
4874 |
|
| 3430 |
rajveer |
4875 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
4876 |
// check for required fields
|
|
|
4877 |
}
|
|
|
4878 |
|
| 3430 |
rajveer |
4879 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4880 |
try {
|
|
|
4881 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4882 |
} catch (org.apache.thrift.TException te) {
|
|
|
4883 |
throw new java.io.IOException(te);
|
|
|
4884 |
}
|
|
|
4885 |
}
|
|
|
4886 |
|
|
|
4887 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4888 |
try {
|
| 4496 |
mandeep.dh |
4889 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
4890 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
4891 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4892 |
} catch (org.apache.thrift.TException te) {
|
|
|
4893 |
throw new java.io.IOException(te);
|
|
|
4894 |
}
|
|
|
4895 |
}
|
|
|
4896 |
|
| 3383 |
chandransh |
4897 |
}
|
|
|
4898 |
|
| 4496 |
mandeep.dh |
4899 |
public static class scan_result implements org.apache.thrift.TBase<scan_result, scan_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
4900 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_result");
|
| 3383 |
chandransh |
4901 |
|
| 3430 |
rajveer |
4902 |
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 |
4903 |
|
| 3430 |
rajveer |
4904 |
private WarehouseServiceException wex; // required
|
| 3383 |
chandransh |
4905 |
|
|
|
4906 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4907 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3383 |
chandransh |
4908 |
WEX((short)1, "wex");
|
|
|
4909 |
|
|
|
4910 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4911 |
|
|
|
4912 |
static {
|
|
|
4913 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4914 |
byName.put(field.getFieldName(), field);
|
|
|
4915 |
}
|
|
|
4916 |
}
|
|
|
4917 |
|
|
|
4918 |
/**
|
|
|
4919 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4920 |
*/
|
|
|
4921 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4922 |
switch(fieldId) {
|
|
|
4923 |
case 1: // WEX
|
|
|
4924 |
return WEX;
|
|
|
4925 |
default:
|
|
|
4926 |
return null;
|
|
|
4927 |
}
|
| 3383 |
chandransh |
4928 |
}
|
|
|
4929 |
|
|
|
4930 |
/**
|
|
|
4931 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4932 |
* if it is not found.
|
|
|
4933 |
*/
|
|
|
4934 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4935 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4936 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4937 |
return fields;
|
|
|
4938 |
}
|
|
|
4939 |
|
|
|
4940 |
/**
|
|
|
4941 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4942 |
*/
|
|
|
4943 |
public static _Fields findByName(String name) {
|
|
|
4944 |
return byName.get(name);
|
|
|
4945 |
}
|
|
|
4946 |
|
|
|
4947 |
private final short _thriftId;
|
|
|
4948 |
private final String _fieldName;
|
|
|
4949 |
|
|
|
4950 |
_Fields(short thriftId, String fieldName) {
|
|
|
4951 |
_thriftId = thriftId;
|
|
|
4952 |
_fieldName = fieldName;
|
|
|
4953 |
}
|
|
|
4954 |
|
|
|
4955 |
public short getThriftFieldId() {
|
|
|
4956 |
return _thriftId;
|
|
|
4957 |
}
|
|
|
4958 |
|
|
|
4959 |
public String getFieldName() {
|
|
|
4960 |
return _fieldName;
|
|
|
4961 |
}
|
|
|
4962 |
}
|
|
|
4963 |
|
|
|
4964 |
// isset id assignments
|
|
|
4965 |
|
| 3430 |
rajveer |
4966 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
4967 |
static {
|
| 3430 |
rajveer |
4968 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4969 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4970 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
4971 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
4972 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_result.class, metaDataMap);
|
| 3383 |
chandransh |
4973 |
}
|
|
|
4974 |
|
| 4496 |
mandeep.dh |
4975 |
public scan_result() {
|
| 3383 |
chandransh |
4976 |
}
|
|
|
4977 |
|
| 4496 |
mandeep.dh |
4978 |
public scan_result(
|
| 3383 |
chandransh |
4979 |
WarehouseServiceException wex)
|
|
|
4980 |
{
|
|
|
4981 |
this();
|
|
|
4982 |
this.wex = wex;
|
|
|
4983 |
}
|
|
|
4984 |
|
|
|
4985 |
/**
|
|
|
4986 |
* Performs a deep copy on <i>other</i>.
|
|
|
4987 |
*/
|
| 4496 |
mandeep.dh |
4988 |
public scan_result(scan_result other) {
|
| 3383 |
chandransh |
4989 |
if (other.isSetWex()) {
|
|
|
4990 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
4991 |
}
|
|
|
4992 |
}
|
|
|
4993 |
|
| 4496 |
mandeep.dh |
4994 |
public scan_result deepCopy() {
|
|
|
4995 |
return new scan_result(this);
|
| 3383 |
chandransh |
4996 |
}
|
|
|
4997 |
|
| 3430 |
rajveer |
4998 |
@Override
|
|
|
4999 |
public void clear() {
|
|
|
5000 |
this.wex = null;
|
| 3383 |
chandransh |
5001 |
}
|
|
|
5002 |
|
|
|
5003 |
public WarehouseServiceException getWex() {
|
|
|
5004 |
return this.wex;
|
|
|
5005 |
}
|
|
|
5006 |
|
| 3430 |
rajveer |
5007 |
public void setWex(WarehouseServiceException wex) {
|
| 3383 |
chandransh |
5008 |
this.wex = wex;
|
|
|
5009 |
}
|
|
|
5010 |
|
|
|
5011 |
public void unsetWex() {
|
|
|
5012 |
this.wex = null;
|
|
|
5013 |
}
|
|
|
5014 |
|
| 3430 |
rajveer |
5015 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 3383 |
chandransh |
5016 |
public boolean isSetWex() {
|
|
|
5017 |
return this.wex != null;
|
|
|
5018 |
}
|
|
|
5019 |
|
|
|
5020 |
public void setWexIsSet(boolean value) {
|
|
|
5021 |
if (!value) {
|
|
|
5022 |
this.wex = null;
|
|
|
5023 |
}
|
|
|
5024 |
}
|
|
|
5025 |
|
|
|
5026 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5027 |
switch (field) {
|
|
|
5028 |
case WEX:
|
|
|
5029 |
if (value == null) {
|
|
|
5030 |
unsetWex();
|
|
|
5031 |
} else {
|
|
|
5032 |
setWex((WarehouseServiceException)value);
|
|
|
5033 |
}
|
|
|
5034 |
break;
|
|
|
5035 |
|
|
|
5036 |
}
|
|
|
5037 |
}
|
|
|
5038 |
|
|
|
5039 |
public Object getFieldValue(_Fields field) {
|
|
|
5040 |
switch (field) {
|
|
|
5041 |
case WEX:
|
|
|
5042 |
return getWex();
|
|
|
5043 |
|
|
|
5044 |
}
|
|
|
5045 |
throw new IllegalStateException();
|
|
|
5046 |
}
|
|
|
5047 |
|
| 3430 |
rajveer |
5048 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5049 |
public boolean isSet(_Fields field) {
|
|
|
5050 |
if (field == null) {
|
|
|
5051 |
throw new IllegalArgumentException();
|
|
|
5052 |
}
|
| 3383 |
chandransh |
5053 |
|
|
|
5054 |
switch (field) {
|
|
|
5055 |
case WEX:
|
|
|
5056 |
return isSetWex();
|
|
|
5057 |
}
|
|
|
5058 |
throw new IllegalStateException();
|
|
|
5059 |
}
|
|
|
5060 |
|
|
|
5061 |
@Override
|
|
|
5062 |
public boolean equals(Object that) {
|
|
|
5063 |
if (that == null)
|
|
|
5064 |
return false;
|
| 4496 |
mandeep.dh |
5065 |
if (that instanceof scan_result)
|
|
|
5066 |
return this.equals((scan_result)that);
|
| 3383 |
chandransh |
5067 |
return false;
|
|
|
5068 |
}
|
|
|
5069 |
|
| 4496 |
mandeep.dh |
5070 |
public boolean equals(scan_result that) {
|
| 3383 |
chandransh |
5071 |
if (that == null)
|
|
|
5072 |
return false;
|
|
|
5073 |
|
|
|
5074 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
5075 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
5076 |
if (this_present_wex || that_present_wex) {
|
|
|
5077 |
if (!(this_present_wex && that_present_wex))
|
|
|
5078 |
return false;
|
|
|
5079 |
if (!this.wex.equals(that.wex))
|
|
|
5080 |
return false;
|
|
|
5081 |
}
|
|
|
5082 |
|
|
|
5083 |
return true;
|
|
|
5084 |
}
|
|
|
5085 |
|
|
|
5086 |
@Override
|
|
|
5087 |
public int hashCode() {
|
|
|
5088 |
return 0;
|
|
|
5089 |
}
|
|
|
5090 |
|
| 4496 |
mandeep.dh |
5091 |
public int compareTo(scan_result other) {
|
| 3383 |
chandransh |
5092 |
if (!getClass().equals(other.getClass())) {
|
|
|
5093 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5094 |
}
|
|
|
5095 |
|
|
|
5096 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
5097 |
scan_result typedOther = (scan_result)other;
|
| 3383 |
chandransh |
5098 |
|
| 3430 |
rajveer |
5099 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 3383 |
chandransh |
5100 |
if (lastComparison != 0) {
|
|
|
5101 |
return lastComparison;
|
|
|
5102 |
}
|
| 3430 |
rajveer |
5103 |
if (isSetWex()) {
|
|
|
5104 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
5105 |
if (lastComparison != 0) {
|
|
|
5106 |
return lastComparison;
|
|
|
5107 |
}
|
| 3383 |
chandransh |
5108 |
}
|
|
|
5109 |
return 0;
|
|
|
5110 |
}
|
|
|
5111 |
|
| 3430 |
rajveer |
5112 |
public _Fields fieldForId(int fieldId) {
|
|
|
5113 |
return _Fields.findByThriftId(fieldId);
|
|
|
5114 |
}
|
|
|
5115 |
|
|
|
5116 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5117 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
5118 |
iprot.readStructBegin();
|
|
|
5119 |
while (true)
|
|
|
5120 |
{
|
|
|
5121 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5122 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
5123 |
break;
|
|
|
5124 |
}
|
| 3430 |
rajveer |
5125 |
switch (field.id) {
|
|
|
5126 |
case 1: // WEX
|
|
|
5127 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5128 |
this.wex = new WarehouseServiceException();
|
|
|
5129 |
this.wex.read(iprot);
|
|
|
5130 |
} else {
|
|
|
5131 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5132 |
}
|
|
|
5133 |
break;
|
|
|
5134 |
default:
|
|
|
5135 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
5136 |
}
|
| 3430 |
rajveer |
5137 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
5138 |
}
|
|
|
5139 |
iprot.readStructEnd();
|
|
|
5140 |
validate();
|
|
|
5141 |
}
|
|
|
5142 |
|
| 3430 |
rajveer |
5143 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
5144 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5145 |
|
| 4496 |
mandeep.dh |
5146 |
if (this.isSetWex()) {
|
| 3383 |
chandransh |
5147 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
5148 |
this.wex.write(oprot);
|
|
|
5149 |
oprot.writeFieldEnd();
|
|
|
5150 |
}
|
|
|
5151 |
oprot.writeFieldStop();
|
|
|
5152 |
oprot.writeStructEnd();
|
|
|
5153 |
}
|
|
|
5154 |
|
|
|
5155 |
@Override
|
|
|
5156 |
public String toString() {
|
| 4496 |
mandeep.dh |
5157 |
StringBuilder sb = new StringBuilder("scan_result(");
|
| 3383 |
chandransh |
5158 |
boolean first = true;
|
|
|
5159 |
|
|
|
5160 |
sb.append("wex:");
|
|
|
5161 |
if (this.wex == null) {
|
|
|
5162 |
sb.append("null");
|
|
|
5163 |
} else {
|
|
|
5164 |
sb.append(this.wex);
|
|
|
5165 |
}
|
|
|
5166 |
first = false;
|
|
|
5167 |
sb.append(")");
|
|
|
5168 |
return sb.toString();
|
|
|
5169 |
}
|
|
|
5170 |
|
| 3430 |
rajveer |
5171 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
5172 |
// check for required fields
|
|
|
5173 |
}
|
|
|
5174 |
|
| 3430 |
rajveer |
5175 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5176 |
try {
|
|
|
5177 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5178 |
} catch (org.apache.thrift.TException te) {
|
|
|
5179 |
throw new java.io.IOException(te);
|
|
|
5180 |
}
|
|
|
5181 |
}
|
|
|
5182 |
|
|
|
5183 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5184 |
try {
|
|
|
5185 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5186 |
} catch (org.apache.thrift.TException te) {
|
|
|
5187 |
throw new java.io.IOException(te);
|
|
|
5188 |
}
|
|
|
5189 |
}
|
|
|
5190 |
|
| 3383 |
chandransh |
5191 |
}
|
|
|
5192 |
|
| 4496 |
mandeep.dh |
5193 |
public static class scanSerializedItemForOrder_args implements org.apache.thrift.TBase<scanSerializedItemForOrder_args, scanSerializedItemForOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
5194 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
|
| 2820 |
chandransh |
5195 |
|
| 4555 |
mandeep.dh |
5196 |
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 |
5197 |
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);
|
|
|
5198 |
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 |
5199 |
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);
|
|
|
5200 |
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);
|
|
|
5201 |
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 |
5202 |
|
| 4555 |
mandeep.dh |
5203 |
private String serialNumber; // required
|
| 3430 |
rajveer |
5204 |
private ScanType type; // required
|
| 4496 |
mandeep.dh |
5205 |
private long orderId; // required
|
| 5110 |
mandeep.dh |
5206 |
private long fulfilmentWarehouseId; // required
|
|
|
5207 |
private double quantity; // required
|
|
|
5208 |
private long billingWarehouseId; // required
|
| 2820 |
chandransh |
5209 |
|
|
|
5210 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5211 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4555 |
mandeep.dh |
5212 |
SERIAL_NUMBER((short)1, "serialNumber"),
|
| 2820 |
chandransh |
5213 |
/**
|
|
|
5214 |
*
|
|
|
5215 |
* @see ScanType
|
|
|
5216 |
*/
|
| 4496 |
mandeep.dh |
5217 |
TYPE((short)2, "type"),
|
|
|
5218 |
ORDER_ID((short)3, "orderId"),
|
| 5110 |
mandeep.dh |
5219 |
FULFILMENT_WAREHOUSE_ID((short)4, "fulfilmentWarehouseId"),
|
|
|
5220 |
QUANTITY((short)5, "quantity"),
|
|
|
5221 |
BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
|
| 2820 |
chandransh |
5222 |
|
|
|
5223 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5224 |
|
|
|
5225 |
static {
|
|
|
5226 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5227 |
byName.put(field.getFieldName(), field);
|
|
|
5228 |
}
|
|
|
5229 |
}
|
|
|
5230 |
|
|
|
5231 |
/**
|
|
|
5232 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5233 |
*/
|
|
|
5234 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5235 |
switch(fieldId) {
|
| 4555 |
mandeep.dh |
5236 |
case 1: // SERIAL_NUMBER
|
|
|
5237 |
return SERIAL_NUMBER;
|
| 4496 |
mandeep.dh |
5238 |
case 2: // TYPE
|
| 3430 |
rajveer |
5239 |
return TYPE;
|
| 4496 |
mandeep.dh |
5240 |
case 3: // ORDER_ID
|
|
|
5241 |
return ORDER_ID;
|
| 5110 |
mandeep.dh |
5242 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
|
|
5243 |
return FULFILMENT_WAREHOUSE_ID;
|
|
|
5244 |
case 5: // QUANTITY
|
|
|
5245 |
return QUANTITY;
|
|
|
5246 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
5247 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
5248 |
default:
|
|
|
5249 |
return null;
|
|
|
5250 |
}
|
| 2820 |
chandransh |
5251 |
}
|
|
|
5252 |
|
|
|
5253 |
/**
|
|
|
5254 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5255 |
* if it is not found.
|
|
|
5256 |
*/
|
|
|
5257 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5258 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5259 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5260 |
return fields;
|
|
|
5261 |
}
|
|
|
5262 |
|
|
|
5263 |
/**
|
|
|
5264 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5265 |
*/
|
|
|
5266 |
public static _Fields findByName(String name) {
|
|
|
5267 |
return byName.get(name);
|
|
|
5268 |
}
|
|
|
5269 |
|
|
|
5270 |
private final short _thriftId;
|
|
|
5271 |
private final String _fieldName;
|
|
|
5272 |
|
|
|
5273 |
_Fields(short thriftId, String fieldName) {
|
|
|
5274 |
_thriftId = thriftId;
|
|
|
5275 |
_fieldName = fieldName;
|
|
|
5276 |
}
|
|
|
5277 |
|
|
|
5278 |
public short getThriftFieldId() {
|
|
|
5279 |
return _thriftId;
|
|
|
5280 |
}
|
|
|
5281 |
|
|
|
5282 |
public String getFieldName() {
|
|
|
5283 |
return _fieldName;
|
|
|
5284 |
}
|
|
|
5285 |
}
|
|
|
5286 |
|
|
|
5287 |
// isset id assignments
|
| 4555 |
mandeep.dh |
5288 |
private static final int __ORDERID_ISSET_ID = 0;
|
| 5110 |
mandeep.dh |
5289 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
|
|
|
5290 |
private static final int __QUANTITY_ISSET_ID = 2;
|
|
|
5291 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
|
|
|
5292 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 2820 |
chandransh |
5293 |
|
| 3430 |
rajveer |
5294 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
5295 |
static {
|
| 3430 |
rajveer |
5296 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4555 |
mandeep.dh |
5297 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5298 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 3430 |
rajveer |
5299 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5300 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 4496 |
mandeep.dh |
5301 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5302 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
5303 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
5304 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
5305 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5306 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
5307 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5308 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
5309 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
5310 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_args.class, metaDataMap);
|
| 2820 |
chandransh |
5311 |
}
|
|
|
5312 |
|
| 4496 |
mandeep.dh |
5313 |
public scanSerializedItemForOrder_args() {
|
| 2820 |
chandransh |
5314 |
}
|
|
|
5315 |
|
| 4496 |
mandeep.dh |
5316 |
public scanSerializedItemForOrder_args(
|
| 4555 |
mandeep.dh |
5317 |
String serialNumber,
|
| 4496 |
mandeep.dh |
5318 |
ScanType type,
|
|
|
5319 |
long orderId,
|
| 5110 |
mandeep.dh |
5320 |
long fulfilmentWarehouseId,
|
|
|
5321 |
double quantity,
|
|
|
5322 |
long billingWarehouseId)
|
| 2820 |
chandransh |
5323 |
{
|
|
|
5324 |
this();
|
| 4555 |
mandeep.dh |
5325 |
this.serialNumber = serialNumber;
|
| 2820 |
chandransh |
5326 |
this.type = type;
|
| 4496 |
mandeep.dh |
5327 |
this.orderId = orderId;
|
|
|
5328 |
setOrderIdIsSet(true);
|
| 5110 |
mandeep.dh |
5329 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
5330 |
setFulfilmentWarehouseIdIsSet(true);
|
|
|
5331 |
this.quantity = quantity;
|
|
|
5332 |
setQuantityIsSet(true);
|
|
|
5333 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
5334 |
setBillingWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
5335 |
}
|
|
|
5336 |
|
|
|
5337 |
/**
|
|
|
5338 |
* Performs a deep copy on <i>other</i>.
|
|
|
5339 |
*/
|
| 4496 |
mandeep.dh |
5340 |
public scanSerializedItemForOrder_args(scanSerializedItemForOrder_args other) {
|
| 2820 |
chandransh |
5341 |
__isset_bit_vector.clear();
|
|
|
5342 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 4555 |
mandeep.dh |
5343 |
if (other.isSetSerialNumber()) {
|
|
|
5344 |
this.serialNumber = other.serialNumber;
|
|
|
5345 |
}
|
| 2820 |
chandransh |
5346 |
if (other.isSetType()) {
|
|
|
5347 |
this.type = other.type;
|
|
|
5348 |
}
|
| 4496 |
mandeep.dh |
5349 |
this.orderId = other.orderId;
|
| 5110 |
mandeep.dh |
5350 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
|
|
5351 |
this.quantity = other.quantity;
|
|
|
5352 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 2820 |
chandransh |
5353 |
}
|
|
|
5354 |
|
| 4496 |
mandeep.dh |
5355 |
public scanSerializedItemForOrder_args deepCopy() {
|
|
|
5356 |
return new scanSerializedItemForOrder_args(this);
|
| 2820 |
chandransh |
5357 |
}
|
|
|
5358 |
|
| 3430 |
rajveer |
5359 |
@Override
|
|
|
5360 |
public void clear() {
|
| 4555 |
mandeep.dh |
5361 |
this.serialNumber = null;
|
| 3430 |
rajveer |
5362 |
this.type = null;
|
| 4496 |
mandeep.dh |
5363 |
setOrderIdIsSet(false);
|
|
|
5364 |
this.orderId = 0;
|
| 5110 |
mandeep.dh |
5365 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
5366 |
this.fulfilmentWarehouseId = 0;
|
|
|
5367 |
setQuantityIsSet(false);
|
|
|
5368 |
this.quantity = 0.0;
|
|
|
5369 |
setBillingWarehouseIdIsSet(false);
|
|
|
5370 |
this.billingWarehouseId = 0;
|
| 2820 |
chandransh |
5371 |
}
|
|
|
5372 |
|
| 4555 |
mandeep.dh |
5373 |
public String getSerialNumber() {
|
|
|
5374 |
return this.serialNumber;
|
| 2820 |
chandransh |
5375 |
}
|
|
|
5376 |
|
| 4555 |
mandeep.dh |
5377 |
public void setSerialNumber(String serialNumber) {
|
|
|
5378 |
this.serialNumber = serialNumber;
|
| 2820 |
chandransh |
5379 |
}
|
|
|
5380 |
|
| 4555 |
mandeep.dh |
5381 |
public void unsetSerialNumber() {
|
|
|
5382 |
this.serialNumber = null;
|
| 2820 |
chandransh |
5383 |
}
|
|
|
5384 |
|
| 4555 |
mandeep.dh |
5385 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
5386 |
public boolean isSetSerialNumber() {
|
|
|
5387 |
return this.serialNumber != null;
|
| 2820 |
chandransh |
5388 |
}
|
|
|
5389 |
|
| 4555 |
mandeep.dh |
5390 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
5391 |
if (!value) {
|
|
|
5392 |
this.serialNumber = null;
|
|
|
5393 |
}
|
| 2820 |
chandransh |
5394 |
}
|
|
|
5395 |
|
| 4496 |
mandeep.dh |
5396 |
/**
|
|
|
5397 |
*
|
|
|
5398 |
* @see ScanType
|
|
|
5399 |
*/
|
|
|
5400 |
public ScanType getType() {
|
|
|
5401 |
return this.type;
|
| 2820 |
chandransh |
5402 |
}
|
|
|
5403 |
|
| 4496 |
mandeep.dh |
5404 |
/**
|
|
|
5405 |
*
|
|
|
5406 |
* @see ScanType
|
|
|
5407 |
*/
|
|
|
5408 |
public void setType(ScanType type) {
|
|
|
5409 |
this.type = type;
|
| 2820 |
chandransh |
5410 |
}
|
|
|
5411 |
|
| 4496 |
mandeep.dh |
5412 |
public void unsetType() {
|
|
|
5413 |
this.type = null;
|
| 2820 |
chandransh |
5414 |
}
|
|
|
5415 |
|
| 4496 |
mandeep.dh |
5416 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
5417 |
public boolean isSetType() {
|
|
|
5418 |
return this.type != null;
|
| 2820 |
chandransh |
5419 |
}
|
|
|
5420 |
|
| 4496 |
mandeep.dh |
5421 |
public void setTypeIsSet(boolean value) {
|
| 2820 |
chandransh |
5422 |
if (!value) {
|
| 4496 |
mandeep.dh |
5423 |
this.type = null;
|
| 2820 |
chandransh |
5424 |
}
|
|
|
5425 |
}
|
|
|
5426 |
|
| 4496 |
mandeep.dh |
5427 |
public long getOrderId() {
|
|
|
5428 |
return this.orderId;
|
| 2820 |
chandransh |
5429 |
}
|
|
|
5430 |
|
| 4496 |
mandeep.dh |
5431 |
public void setOrderId(long orderId) {
|
|
|
5432 |
this.orderId = orderId;
|
|
|
5433 |
setOrderIdIsSet(true);
|
| 2820 |
chandransh |
5434 |
}
|
|
|
5435 |
|
| 4496 |
mandeep.dh |
5436 |
public void unsetOrderId() {
|
|
|
5437 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
| 2820 |
chandransh |
5438 |
}
|
|
|
5439 |
|
| 4496 |
mandeep.dh |
5440 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
5441 |
public boolean isSetOrderId() {
|
|
|
5442 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
| 2820 |
chandransh |
5443 |
}
|
|
|
5444 |
|
| 4496 |
mandeep.dh |
5445 |
public void setOrderIdIsSet(boolean value) {
|
|
|
5446 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
| 2820 |
chandransh |
5447 |
}
|
|
|
5448 |
|
| 5110 |
mandeep.dh |
5449 |
public long getFulfilmentWarehouseId() {
|
|
|
5450 |
return this.fulfilmentWarehouseId;
|
| 2820 |
chandransh |
5451 |
}
|
|
|
5452 |
|
| 5110 |
mandeep.dh |
5453 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
5454 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
5455 |
setFulfilmentWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
5456 |
}
|
|
|
5457 |
|
| 5110 |
mandeep.dh |
5458 |
public void unsetFulfilmentWarehouseId() {
|
|
|
5459 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
5460 |
}
|
|
|
5461 |
|
| 5110 |
mandeep.dh |
5462 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
5463 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
5464 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 2820 |
chandransh |
5465 |
}
|
|
|
5466 |
|
| 5110 |
mandeep.dh |
5467 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
5468 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 2820 |
chandransh |
5469 |
}
|
|
|
5470 |
|
| 5110 |
mandeep.dh |
5471 |
public double getQuantity() {
|
|
|
5472 |
return this.quantity;
|
|
|
5473 |
}
|
|
|
5474 |
|
|
|
5475 |
public void setQuantity(double quantity) {
|
|
|
5476 |
this.quantity = quantity;
|
|
|
5477 |
setQuantityIsSet(true);
|
|
|
5478 |
}
|
|
|
5479 |
|
|
|
5480 |
public void unsetQuantity() {
|
|
|
5481 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
5482 |
}
|
|
|
5483 |
|
|
|
5484 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
5485 |
public boolean isSetQuantity() {
|
|
|
5486 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
5487 |
}
|
|
|
5488 |
|
|
|
5489 |
public void setQuantityIsSet(boolean value) {
|
|
|
5490 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
5491 |
}
|
|
|
5492 |
|
|
|
5493 |
public long getBillingWarehouseId() {
|
|
|
5494 |
return this.billingWarehouseId;
|
|
|
5495 |
}
|
|
|
5496 |
|
|
|
5497 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
5498 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
5499 |
setBillingWarehouseIdIsSet(true);
|
|
|
5500 |
}
|
|
|
5501 |
|
|
|
5502 |
public void unsetBillingWarehouseId() {
|
|
|
5503 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
5504 |
}
|
|
|
5505 |
|
|
|
5506 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
5507 |
public boolean isSetBillingWarehouseId() {
|
|
|
5508 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
5509 |
}
|
|
|
5510 |
|
|
|
5511 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
5512 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
|
|
5513 |
}
|
|
|
5514 |
|
| 2820 |
chandransh |
5515 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5516 |
switch (field) {
|
| 4555 |
mandeep.dh |
5517 |
case SERIAL_NUMBER:
|
| 2820 |
chandransh |
5518 |
if (value == null) {
|
| 4555 |
mandeep.dh |
5519 |
unsetSerialNumber();
|
| 2820 |
chandransh |
5520 |
} else {
|
| 4555 |
mandeep.dh |
5521 |
setSerialNumber((String)value);
|
| 2820 |
chandransh |
5522 |
}
|
|
|
5523 |
break;
|
|
|
5524 |
|
| 4496 |
mandeep.dh |
5525 |
case TYPE:
|
| 2820 |
chandransh |
5526 |
if (value == null) {
|
| 4496 |
mandeep.dh |
5527 |
unsetType();
|
| 2820 |
chandransh |
5528 |
} else {
|
| 4496 |
mandeep.dh |
5529 |
setType((ScanType)value);
|
| 2820 |
chandransh |
5530 |
}
|
|
|
5531 |
break;
|
|
|
5532 |
|
| 4496 |
mandeep.dh |
5533 |
case ORDER_ID:
|
| 2820 |
chandransh |
5534 |
if (value == null) {
|
| 4496 |
mandeep.dh |
5535 |
unsetOrderId();
|
| 2820 |
chandransh |
5536 |
} else {
|
| 4496 |
mandeep.dh |
5537 |
setOrderId((Long)value);
|
| 2820 |
chandransh |
5538 |
}
|
|
|
5539 |
break;
|
|
|
5540 |
|
| 5110 |
mandeep.dh |
5541 |
case FULFILMENT_WAREHOUSE_ID:
|
| 2820 |
chandransh |
5542 |
if (value == null) {
|
| 5110 |
mandeep.dh |
5543 |
unsetFulfilmentWarehouseId();
|
| 2820 |
chandransh |
5544 |
} else {
|
| 5110 |
mandeep.dh |
5545 |
setFulfilmentWarehouseId((Long)value);
|
| 2820 |
chandransh |
5546 |
}
|
|
|
5547 |
break;
|
|
|
5548 |
|
| 5110 |
mandeep.dh |
5549 |
case QUANTITY:
|
|
|
5550 |
if (value == null) {
|
|
|
5551 |
unsetQuantity();
|
|
|
5552 |
} else {
|
|
|
5553 |
setQuantity((Double)value);
|
|
|
5554 |
}
|
|
|
5555 |
break;
|
|
|
5556 |
|
|
|
5557 |
case BILLING_WAREHOUSE_ID:
|
|
|
5558 |
if (value == null) {
|
|
|
5559 |
unsetBillingWarehouseId();
|
|
|
5560 |
} else {
|
|
|
5561 |
setBillingWarehouseId((Long)value);
|
|
|
5562 |
}
|
|
|
5563 |
break;
|
|
|
5564 |
|
| 2820 |
chandransh |
5565 |
}
|
|
|
5566 |
}
|
|
|
5567 |
|
|
|
5568 |
public Object getFieldValue(_Fields field) {
|
|
|
5569 |
switch (field) {
|
| 4555 |
mandeep.dh |
5570 |
case SERIAL_NUMBER:
|
|
|
5571 |
return getSerialNumber();
|
| 2820 |
chandransh |
5572 |
|
|
|
5573 |
case TYPE:
|
|
|
5574 |
return getType();
|
|
|
5575 |
|
| 4496 |
mandeep.dh |
5576 |
case ORDER_ID:
|
|
|
5577 |
return Long.valueOf(getOrderId());
|
|
|
5578 |
|
| 5110 |
mandeep.dh |
5579 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
5580 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
5581 |
|
| 5110 |
mandeep.dh |
5582 |
case QUANTITY:
|
|
|
5583 |
return Double.valueOf(getQuantity());
|
|
|
5584 |
|
|
|
5585 |
case BILLING_WAREHOUSE_ID:
|
|
|
5586 |
return Long.valueOf(getBillingWarehouseId());
|
|
|
5587 |
|
| 2820 |
chandransh |
5588 |
}
|
|
|
5589 |
throw new IllegalStateException();
|
|
|
5590 |
}
|
|
|
5591 |
|
| 3430 |
rajveer |
5592 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5593 |
public boolean isSet(_Fields field) {
|
|
|
5594 |
if (field == null) {
|
|
|
5595 |
throw new IllegalArgumentException();
|
|
|
5596 |
}
|
| 2820 |
chandransh |
5597 |
|
|
|
5598 |
switch (field) {
|
| 4555 |
mandeep.dh |
5599 |
case SERIAL_NUMBER:
|
|
|
5600 |
return isSetSerialNumber();
|
| 2820 |
chandransh |
5601 |
case TYPE:
|
|
|
5602 |
return isSetType();
|
| 4496 |
mandeep.dh |
5603 |
case ORDER_ID:
|
|
|
5604 |
return isSetOrderId();
|
| 5110 |
mandeep.dh |
5605 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
5606 |
return isSetFulfilmentWarehouseId();
|
|
|
5607 |
case QUANTITY:
|
|
|
5608 |
return isSetQuantity();
|
|
|
5609 |
case BILLING_WAREHOUSE_ID:
|
|
|
5610 |
return isSetBillingWarehouseId();
|
| 2820 |
chandransh |
5611 |
}
|
|
|
5612 |
throw new IllegalStateException();
|
|
|
5613 |
}
|
|
|
5614 |
|
|
|
5615 |
@Override
|
|
|
5616 |
public boolean equals(Object that) {
|
|
|
5617 |
if (that == null)
|
|
|
5618 |
return false;
|
| 4496 |
mandeep.dh |
5619 |
if (that instanceof scanSerializedItemForOrder_args)
|
|
|
5620 |
return this.equals((scanSerializedItemForOrder_args)that);
|
| 2820 |
chandransh |
5621 |
return false;
|
|
|
5622 |
}
|
|
|
5623 |
|
| 4496 |
mandeep.dh |
5624 |
public boolean equals(scanSerializedItemForOrder_args that) {
|
| 2820 |
chandransh |
5625 |
if (that == null)
|
|
|
5626 |
return false;
|
|
|
5627 |
|
| 4555 |
mandeep.dh |
5628 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
5629 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
5630 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
5631 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
| 2820 |
chandransh |
5632 |
return false;
|
| 4555 |
mandeep.dh |
5633 |
if (!this.serialNumber.equals(that.serialNumber))
|
| 2820 |
chandransh |
5634 |
return false;
|
|
|
5635 |
}
|
|
|
5636 |
|
| 4496 |
mandeep.dh |
5637 |
boolean this_present_type = true && this.isSetType();
|
|
|
5638 |
boolean that_present_type = true && that.isSetType();
|
|
|
5639 |
if (this_present_type || that_present_type) {
|
|
|
5640 |
if (!(this_present_type && that_present_type))
|
| 2820 |
chandransh |
5641 |
return false;
|
| 4496 |
mandeep.dh |
5642 |
if (!this.type.equals(that.type))
|
| 2820 |
chandransh |
5643 |
return false;
|
|
|
5644 |
}
|
|
|
5645 |
|
| 4496 |
mandeep.dh |
5646 |
boolean this_present_orderId = true;
|
|
|
5647 |
boolean that_present_orderId = true;
|
|
|
5648 |
if (this_present_orderId || that_present_orderId) {
|
|
|
5649 |
if (!(this_present_orderId && that_present_orderId))
|
| 2820 |
chandransh |
5650 |
return false;
|
| 4496 |
mandeep.dh |
5651 |
if (this.orderId != that.orderId)
|
| 2820 |
chandransh |
5652 |
return false;
|
|
|
5653 |
}
|
|
|
5654 |
|
| 5110 |
mandeep.dh |
5655 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
5656 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
5657 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
5658 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 2820 |
chandransh |
5659 |
return false;
|
| 5110 |
mandeep.dh |
5660 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 2820 |
chandransh |
5661 |
return false;
|
|
|
5662 |
}
|
|
|
5663 |
|
| 5110 |
mandeep.dh |
5664 |
boolean this_present_quantity = true;
|
|
|
5665 |
boolean that_present_quantity = true;
|
|
|
5666 |
if (this_present_quantity || that_present_quantity) {
|
|
|
5667 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
5668 |
return false;
|
|
|
5669 |
if (this.quantity != that.quantity)
|
|
|
5670 |
return false;
|
|
|
5671 |
}
|
|
|
5672 |
|
|
|
5673 |
boolean this_present_billingWarehouseId = true;
|
|
|
5674 |
boolean that_present_billingWarehouseId = true;
|
|
|
5675 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
5676 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
|
|
5677 |
return false;
|
|
|
5678 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
|
|
5679 |
return false;
|
|
|
5680 |
}
|
|
|
5681 |
|
| 2820 |
chandransh |
5682 |
return true;
|
|
|
5683 |
}
|
|
|
5684 |
|
|
|
5685 |
@Override
|
|
|
5686 |
public int hashCode() {
|
|
|
5687 |
return 0;
|
|
|
5688 |
}
|
|
|
5689 |
|
| 4496 |
mandeep.dh |
5690 |
public int compareTo(scanSerializedItemForOrder_args other) {
|
| 2820 |
chandransh |
5691 |
if (!getClass().equals(other.getClass())) {
|
|
|
5692 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5693 |
}
|
|
|
5694 |
|
|
|
5695 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
5696 |
scanSerializedItemForOrder_args typedOther = (scanSerializedItemForOrder_args)other;
|
| 2820 |
chandransh |
5697 |
|
| 4555 |
mandeep.dh |
5698 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
| 2820 |
chandransh |
5699 |
if (lastComparison != 0) {
|
|
|
5700 |
return lastComparison;
|
|
|
5701 |
}
|
| 4555 |
mandeep.dh |
5702 |
if (isSetSerialNumber()) {
|
|
|
5703 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
| 3430 |
rajveer |
5704 |
if (lastComparison != 0) {
|
|
|
5705 |
return lastComparison;
|
|
|
5706 |
}
|
| 2820 |
chandransh |
5707 |
}
|
| 4496 |
mandeep.dh |
5708 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 2820 |
chandransh |
5709 |
if (lastComparison != 0) {
|
|
|
5710 |
return lastComparison;
|
|
|
5711 |
}
|
| 4496 |
mandeep.dh |
5712 |
if (isSetType()) {
|
|
|
5713 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
5714 |
if (lastComparison != 0) {
|
|
|
5715 |
return lastComparison;
|
|
|
5716 |
}
|
| 2820 |
chandransh |
5717 |
}
|
| 4496 |
mandeep.dh |
5718 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
| 2820 |
chandransh |
5719 |
if (lastComparison != 0) {
|
|
|
5720 |
return lastComparison;
|
|
|
5721 |
}
|
| 4496 |
mandeep.dh |
5722 |
if (isSetOrderId()) {
|
|
|
5723 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
| 3430 |
rajveer |
5724 |
if (lastComparison != 0) {
|
|
|
5725 |
return lastComparison;
|
|
|
5726 |
}
|
| 2820 |
chandransh |
5727 |
}
|
| 5110 |
mandeep.dh |
5728 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 2820 |
chandransh |
5729 |
if (lastComparison != 0) {
|
|
|
5730 |
return lastComparison;
|
|
|
5731 |
}
|
| 5110 |
mandeep.dh |
5732 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
5733 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 3430 |
rajveer |
5734 |
if (lastComparison != 0) {
|
|
|
5735 |
return lastComparison;
|
|
|
5736 |
}
|
| 2820 |
chandransh |
5737 |
}
|
| 5110 |
mandeep.dh |
5738 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
|
|
5739 |
if (lastComparison != 0) {
|
|
|
5740 |
return lastComparison;
|
|
|
5741 |
}
|
|
|
5742 |
if (isSetQuantity()) {
|
|
|
5743 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
|
|
5744 |
if (lastComparison != 0) {
|
|
|
5745 |
return lastComparison;
|
|
|
5746 |
}
|
|
|
5747 |
}
|
|
|
5748 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
|
|
5749 |
if (lastComparison != 0) {
|
|
|
5750 |
return lastComparison;
|
|
|
5751 |
}
|
|
|
5752 |
if (isSetBillingWarehouseId()) {
|
|
|
5753 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
|
|
5754 |
if (lastComparison != 0) {
|
|
|
5755 |
return lastComparison;
|
|
|
5756 |
}
|
|
|
5757 |
}
|
| 2820 |
chandransh |
5758 |
return 0;
|
|
|
5759 |
}
|
|
|
5760 |
|
| 3430 |
rajveer |
5761 |
public _Fields fieldForId(int fieldId) {
|
|
|
5762 |
return _Fields.findByThriftId(fieldId);
|
|
|
5763 |
}
|
|
|
5764 |
|
|
|
5765 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5766 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
5767 |
iprot.readStructBegin();
|
|
|
5768 |
while (true)
|
|
|
5769 |
{
|
|
|
5770 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5771 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
5772 |
break;
|
|
|
5773 |
}
|
| 3430 |
rajveer |
5774 |
switch (field.id) {
|
| 4555 |
mandeep.dh |
5775 |
case 1: // SERIAL_NUMBER
|
|
|
5776 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
5777 |
this.serialNumber = iprot.readString();
|
| 3430 |
rajveer |
5778 |
} else {
|
|
|
5779 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5780 |
}
|
|
|
5781 |
break;
|
| 4496 |
mandeep.dh |
5782 |
case 2: // TYPE
|
|
|
5783 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
5784 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
5785 |
} else {
|
|
|
5786 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5787 |
}
|
|
|
5788 |
break;
|
| 4496 |
mandeep.dh |
5789 |
case 3: // ORDER_ID
|
|
|
5790 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5791 |
this.orderId = iprot.readI64();
|
|
|
5792 |
setOrderIdIsSet(true);
|
| 3430 |
rajveer |
5793 |
} else {
|
|
|
5794 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5795 |
}
|
|
|
5796 |
break;
|
| 5110 |
mandeep.dh |
5797 |
case 4: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
5798 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5110 |
mandeep.dh |
5799 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
5800 |
setFulfilmentWarehouseIdIsSet(true);
|
| 3430 |
rajveer |
5801 |
} else {
|
|
|
5802 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5803 |
}
|
|
|
5804 |
break;
|
| 5110 |
mandeep.dh |
5805 |
case 5: // QUANTITY
|
|
|
5806 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
5807 |
this.quantity = iprot.readDouble();
|
|
|
5808 |
setQuantityIsSet(true);
|
|
|
5809 |
} else {
|
|
|
5810 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5811 |
}
|
|
|
5812 |
break;
|
|
|
5813 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
5814 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5815 |
this.billingWarehouseId = iprot.readI64();
|
|
|
5816 |
setBillingWarehouseIdIsSet(true);
|
|
|
5817 |
} else {
|
|
|
5818 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5819 |
}
|
|
|
5820 |
break;
|
| 3430 |
rajveer |
5821 |
default:
|
|
|
5822 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
5823 |
}
|
| 3430 |
rajveer |
5824 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
5825 |
}
|
|
|
5826 |
iprot.readStructEnd();
|
|
|
5827 |
validate();
|
|
|
5828 |
}
|
|
|
5829 |
|
| 3430 |
rajveer |
5830 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5831 |
validate();
|
|
|
5832 |
|
|
|
5833 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 4555 |
mandeep.dh |
5834 |
if (this.serialNumber != null) {
|
|
|
5835 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
5836 |
oprot.writeString(this.serialNumber);
|
|
|
5837 |
oprot.writeFieldEnd();
|
|
|
5838 |
}
|
| 2820 |
chandransh |
5839 |
if (this.type != null) {
|
|
|
5840 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
5841 |
oprot.writeI32(this.type.getValue());
|
|
|
5842 |
oprot.writeFieldEnd();
|
|
|
5843 |
}
|
| 4496 |
mandeep.dh |
5844 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
5845 |
oprot.writeI64(this.orderId);
|
|
|
5846 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
5847 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
5848 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
5849 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
5850 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
5851 |
oprot.writeDouble(this.quantity);
|
|
|
5852 |
oprot.writeFieldEnd();
|
|
|
5853 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
5854 |
oprot.writeI64(this.billingWarehouseId);
|
|
|
5855 |
oprot.writeFieldEnd();
|
| 2820 |
chandransh |
5856 |
oprot.writeFieldStop();
|
|
|
5857 |
oprot.writeStructEnd();
|
|
|
5858 |
}
|
|
|
5859 |
|
|
|
5860 |
@Override
|
|
|
5861 |
public String toString() {
|
| 4496 |
mandeep.dh |
5862 |
StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_args(");
|
| 2820 |
chandransh |
5863 |
boolean first = true;
|
|
|
5864 |
|
| 4555 |
mandeep.dh |
5865 |
sb.append("serialNumber:");
|
|
|
5866 |
if (this.serialNumber == null) {
|
|
|
5867 |
sb.append("null");
|
|
|
5868 |
} else {
|
|
|
5869 |
sb.append(this.serialNumber);
|
|
|
5870 |
}
|
| 2820 |
chandransh |
5871 |
first = false;
|
|
|
5872 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
5873 |
sb.append("type:");
|
|
|
5874 |
if (this.type == null) {
|
| 2820 |
chandransh |
5875 |
sb.append("null");
|
|
|
5876 |
} else {
|
| 4496 |
mandeep.dh |
5877 |
sb.append(this.type);
|
| 2820 |
chandransh |
5878 |
}
|
|
|
5879 |
first = false;
|
|
|
5880 |
if (!first) sb.append(", ");
|
| 4496 |
mandeep.dh |
5881 |
sb.append("orderId:");
|
|
|
5882 |
sb.append(this.orderId);
|
| 2820 |
chandransh |
5883 |
first = false;
|
|
|
5884 |
if (!first) sb.append(", ");
|
| 5110 |
mandeep.dh |
5885 |
sb.append("fulfilmentWarehouseId:");
|
|
|
5886 |
sb.append(this.fulfilmentWarehouseId);
|
| 2820 |
chandransh |
5887 |
first = false;
|
| 5110 |
mandeep.dh |
5888 |
if (!first) sb.append(", ");
|
|
|
5889 |
sb.append("quantity:");
|
|
|
5890 |
sb.append(this.quantity);
|
|
|
5891 |
first = false;
|
|
|
5892 |
if (!first) sb.append(", ");
|
|
|
5893 |
sb.append("billingWarehouseId:");
|
|
|
5894 |
sb.append(this.billingWarehouseId);
|
|
|
5895 |
first = false;
|
| 2820 |
chandransh |
5896 |
sb.append(")");
|
|
|
5897 |
return sb.toString();
|
|
|
5898 |
}
|
|
|
5899 |
|
| 3430 |
rajveer |
5900 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5901 |
// check for required fields
|
|
|
5902 |
}
|
|
|
5903 |
|
| 3430 |
rajveer |
5904 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5905 |
try {
|
|
|
5906 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5907 |
} catch (org.apache.thrift.TException te) {
|
|
|
5908 |
throw new java.io.IOException(te);
|
|
|
5909 |
}
|
|
|
5910 |
}
|
|
|
5911 |
|
|
|
5912 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5913 |
try {
|
|
|
5914 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5915 |
} catch (org.apache.thrift.TException te) {
|
|
|
5916 |
throw new java.io.IOException(te);
|
|
|
5917 |
}
|
|
|
5918 |
}
|
|
|
5919 |
|
| 2820 |
chandransh |
5920 |
}
|
|
|
5921 |
|
| 4496 |
mandeep.dh |
5922 |
public static class scanSerializedItemForOrder_result implements org.apache.thrift.TBase<scanSerializedItemForOrder_result, scanSerializedItemForOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
5923 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_result");
|
| 2820 |
chandransh |
5924 |
|
| 4555 |
mandeep.dh |
5925 |
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 |
5926 |
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 |
5927 |
|
| 4555 |
mandeep.dh |
5928 |
private InventoryItem success; // required
|
| 3430 |
rajveer |
5929 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
5930 |
|
|
|
5931 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5932 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 4496 |
mandeep.dh |
5933 |
SUCCESS((short)0, "success"),
|
| 2820 |
chandransh |
5934 |
WEX((short)1, "wex");
|
|
|
5935 |
|
|
|
5936 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5937 |
|
|
|
5938 |
static {
|
|
|
5939 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5940 |
byName.put(field.getFieldName(), field);
|
|
|
5941 |
}
|
|
|
5942 |
}
|
|
|
5943 |
|
|
|
5944 |
/**
|
|
|
5945 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5946 |
*/
|
|
|
5947 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5948 |
switch(fieldId) {
|
| 4496 |
mandeep.dh |
5949 |
case 0: // SUCCESS
|
|
|
5950 |
return SUCCESS;
|
| 3430 |
rajveer |
5951 |
case 1: // WEX
|
|
|
5952 |
return WEX;
|
|
|
5953 |
default:
|
|
|
5954 |
return null;
|
|
|
5955 |
}
|
| 2820 |
chandransh |
5956 |
}
|
|
|
5957 |
|
|
|
5958 |
/**
|
|
|
5959 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5960 |
* if it is not found.
|
|
|
5961 |
*/
|
|
|
5962 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5963 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5964 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5965 |
return fields;
|
|
|
5966 |
}
|
|
|
5967 |
|
|
|
5968 |
/**
|
|
|
5969 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5970 |
*/
|
|
|
5971 |
public static _Fields findByName(String name) {
|
|
|
5972 |
return byName.get(name);
|
|
|
5973 |
}
|
|
|
5974 |
|
|
|
5975 |
private final short _thriftId;
|
|
|
5976 |
private final String _fieldName;
|
|
|
5977 |
|
|
|
5978 |
_Fields(short thriftId, String fieldName) {
|
|
|
5979 |
_thriftId = thriftId;
|
|
|
5980 |
_fieldName = fieldName;
|
|
|
5981 |
}
|
|
|
5982 |
|
|
|
5983 |
public short getThriftFieldId() {
|
|
|
5984 |
return _thriftId;
|
|
|
5985 |
}
|
|
|
5986 |
|
|
|
5987 |
public String getFieldName() {
|
|
|
5988 |
return _fieldName;
|
|
|
5989 |
}
|
|
|
5990 |
}
|
|
|
5991 |
|
|
|
5992 |
// isset id assignments
|
|
|
5993 |
|
| 3430 |
rajveer |
5994 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
5995 |
static {
|
| 3430 |
rajveer |
5996 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 4496 |
mandeep.dh |
5997 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4555 |
mandeep.dh |
5998 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
5999 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6000 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
6001 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
6002 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_result.class, metaDataMap);
|
| 2820 |
chandransh |
6003 |
}
|
|
|
6004 |
|
| 4496 |
mandeep.dh |
6005 |
public scanSerializedItemForOrder_result() {
|
| 2820 |
chandransh |
6006 |
}
|
|
|
6007 |
|
| 4496 |
mandeep.dh |
6008 |
public scanSerializedItemForOrder_result(
|
| 4555 |
mandeep.dh |
6009 |
InventoryItem success,
|
| 2820 |
chandransh |
6010 |
WarehouseServiceException wex)
|
|
|
6011 |
{
|
|
|
6012 |
this();
|
| 4496 |
mandeep.dh |
6013 |
this.success = success;
|
| 2820 |
chandransh |
6014 |
this.wex = wex;
|
|
|
6015 |
}
|
|
|
6016 |
|
|
|
6017 |
/**
|
|
|
6018 |
* Performs a deep copy on <i>other</i>.
|
|
|
6019 |
*/
|
| 4496 |
mandeep.dh |
6020 |
public scanSerializedItemForOrder_result(scanSerializedItemForOrder_result other) {
|
| 4555 |
mandeep.dh |
6021 |
if (other.isSetSuccess()) {
|
|
|
6022 |
this.success = new InventoryItem(other.success);
|
|
|
6023 |
}
|
| 2820 |
chandransh |
6024 |
if (other.isSetWex()) {
|
|
|
6025 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
6026 |
}
|
|
|
6027 |
}
|
|
|
6028 |
|
| 4496 |
mandeep.dh |
6029 |
public scanSerializedItemForOrder_result deepCopy() {
|
|
|
6030 |
return new scanSerializedItemForOrder_result(this);
|
| 2820 |
chandransh |
6031 |
}
|
|
|
6032 |
|
| 3430 |
rajveer |
6033 |
@Override
|
|
|
6034 |
public void clear() {
|
| 4555 |
mandeep.dh |
6035 |
this.success = null;
|
| 3430 |
rajveer |
6036 |
this.wex = null;
|
| 2820 |
chandransh |
6037 |
}
|
|
|
6038 |
|
| 4555 |
mandeep.dh |
6039 |
public InventoryItem getSuccess() {
|
| 4496 |
mandeep.dh |
6040 |
return this.success;
|
|
|
6041 |
}
|
|
|
6042 |
|
| 4555 |
mandeep.dh |
6043 |
public void setSuccess(InventoryItem success) {
|
| 4496 |
mandeep.dh |
6044 |
this.success = success;
|
|
|
6045 |
}
|
|
|
6046 |
|
|
|
6047 |
public void unsetSuccess() {
|
| 4555 |
mandeep.dh |
6048 |
this.success = null;
|
| 4496 |
mandeep.dh |
6049 |
}
|
|
|
6050 |
|
|
|
6051 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
6052 |
public boolean isSetSuccess() {
|
| 4555 |
mandeep.dh |
6053 |
return this.success != null;
|
| 4496 |
mandeep.dh |
6054 |
}
|
|
|
6055 |
|
|
|
6056 |
public void setSuccessIsSet(boolean value) {
|
| 4555 |
mandeep.dh |
6057 |
if (!value) {
|
|
|
6058 |
this.success = null;
|
|
|
6059 |
}
|
| 4496 |
mandeep.dh |
6060 |
}
|
|
|
6061 |
|
| 2820 |
chandransh |
6062 |
public WarehouseServiceException getWex() {
|
|
|
6063 |
return this.wex;
|
|
|
6064 |
}
|
|
|
6065 |
|
| 3430 |
rajveer |
6066 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
6067 |
this.wex = wex;
|
|
|
6068 |
}
|
|
|
6069 |
|
|
|
6070 |
public void unsetWex() {
|
|
|
6071 |
this.wex = null;
|
|
|
6072 |
}
|
|
|
6073 |
|
| 3430 |
rajveer |
6074 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
6075 |
public boolean isSetWex() {
|
|
|
6076 |
return this.wex != null;
|
|
|
6077 |
}
|
|
|
6078 |
|
|
|
6079 |
public void setWexIsSet(boolean value) {
|
|
|
6080 |
if (!value) {
|
|
|
6081 |
this.wex = null;
|
|
|
6082 |
}
|
|
|
6083 |
}
|
|
|
6084 |
|
|
|
6085 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6086 |
switch (field) {
|
| 4496 |
mandeep.dh |
6087 |
case SUCCESS:
|
|
|
6088 |
if (value == null) {
|
|
|
6089 |
unsetSuccess();
|
|
|
6090 |
} else {
|
| 4555 |
mandeep.dh |
6091 |
setSuccess((InventoryItem)value);
|
| 4496 |
mandeep.dh |
6092 |
}
|
|
|
6093 |
break;
|
|
|
6094 |
|
| 2820 |
chandransh |
6095 |
case WEX:
|
|
|
6096 |
if (value == null) {
|
|
|
6097 |
unsetWex();
|
|
|
6098 |
} else {
|
|
|
6099 |
setWex((WarehouseServiceException)value);
|
|
|
6100 |
}
|
|
|
6101 |
break;
|
|
|
6102 |
|
|
|
6103 |
}
|
|
|
6104 |
}
|
|
|
6105 |
|
|
|
6106 |
public Object getFieldValue(_Fields field) {
|
|
|
6107 |
switch (field) {
|
| 4496 |
mandeep.dh |
6108 |
case SUCCESS:
|
| 4555 |
mandeep.dh |
6109 |
return getSuccess();
|
| 4496 |
mandeep.dh |
6110 |
|
| 2820 |
chandransh |
6111 |
case WEX:
|
|
|
6112 |
return getWex();
|
|
|
6113 |
|
|
|
6114 |
}
|
|
|
6115 |
throw new IllegalStateException();
|
|
|
6116 |
}
|
|
|
6117 |
|
| 3430 |
rajveer |
6118 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6119 |
public boolean isSet(_Fields field) {
|
|
|
6120 |
if (field == null) {
|
|
|
6121 |
throw new IllegalArgumentException();
|
|
|
6122 |
}
|
| 2820 |
chandransh |
6123 |
|
|
|
6124 |
switch (field) {
|
| 4496 |
mandeep.dh |
6125 |
case SUCCESS:
|
|
|
6126 |
return isSetSuccess();
|
| 2820 |
chandransh |
6127 |
case WEX:
|
|
|
6128 |
return isSetWex();
|
|
|
6129 |
}
|
|
|
6130 |
throw new IllegalStateException();
|
|
|
6131 |
}
|
|
|
6132 |
|
|
|
6133 |
@Override
|
|
|
6134 |
public boolean equals(Object that) {
|
|
|
6135 |
if (that == null)
|
|
|
6136 |
return false;
|
| 4496 |
mandeep.dh |
6137 |
if (that instanceof scanSerializedItemForOrder_result)
|
|
|
6138 |
return this.equals((scanSerializedItemForOrder_result)that);
|
| 2820 |
chandransh |
6139 |
return false;
|
|
|
6140 |
}
|
|
|
6141 |
|
| 4496 |
mandeep.dh |
6142 |
public boolean equals(scanSerializedItemForOrder_result that) {
|
| 2820 |
chandransh |
6143 |
if (that == null)
|
|
|
6144 |
return false;
|
|
|
6145 |
|
| 4555 |
mandeep.dh |
6146 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
6147 |
boolean that_present_success = true && that.isSetSuccess();
|
| 4496 |
mandeep.dh |
6148 |
if (this_present_success || that_present_success) {
|
|
|
6149 |
if (!(this_present_success && that_present_success))
|
|
|
6150 |
return false;
|
| 4555 |
mandeep.dh |
6151 |
if (!this.success.equals(that.success))
|
| 4496 |
mandeep.dh |
6152 |
return false;
|
|
|
6153 |
}
|
|
|
6154 |
|
| 2820 |
chandransh |
6155 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
6156 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
6157 |
if (this_present_wex || that_present_wex) {
|
|
|
6158 |
if (!(this_present_wex && that_present_wex))
|
|
|
6159 |
return false;
|
|
|
6160 |
if (!this.wex.equals(that.wex))
|
|
|
6161 |
return false;
|
|
|
6162 |
}
|
|
|
6163 |
|
|
|
6164 |
return true;
|
|
|
6165 |
}
|
|
|
6166 |
|
|
|
6167 |
@Override
|
|
|
6168 |
public int hashCode() {
|
|
|
6169 |
return 0;
|
|
|
6170 |
}
|
|
|
6171 |
|
| 4496 |
mandeep.dh |
6172 |
public int compareTo(scanSerializedItemForOrder_result other) {
|
| 2820 |
chandransh |
6173 |
if (!getClass().equals(other.getClass())) {
|
|
|
6174 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6175 |
}
|
|
|
6176 |
|
|
|
6177 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
6178 |
scanSerializedItemForOrder_result typedOther = (scanSerializedItemForOrder_result)other;
|
| 2820 |
chandransh |
6179 |
|
| 4496 |
mandeep.dh |
6180 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
6181 |
if (lastComparison != 0) {
|
|
|
6182 |
return lastComparison;
|
|
|
6183 |
}
|
|
|
6184 |
if (isSetSuccess()) {
|
|
|
6185 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
6186 |
if (lastComparison != 0) {
|
|
|
6187 |
return lastComparison;
|
|
|
6188 |
}
|
|
|
6189 |
}
|
| 3430 |
rajveer |
6190 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
6191 |
if (lastComparison != 0) {
|
|
|
6192 |
return lastComparison;
|
|
|
6193 |
}
|
| 3430 |
rajveer |
6194 |
if (isSetWex()) {
|
|
|
6195 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
6196 |
if (lastComparison != 0) {
|
|
|
6197 |
return lastComparison;
|
|
|
6198 |
}
|
| 2820 |
chandransh |
6199 |
}
|
|
|
6200 |
return 0;
|
|
|
6201 |
}
|
|
|
6202 |
|
| 3430 |
rajveer |
6203 |
public _Fields fieldForId(int fieldId) {
|
|
|
6204 |
return _Fields.findByThriftId(fieldId);
|
|
|
6205 |
}
|
|
|
6206 |
|
|
|
6207 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6208 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
6209 |
iprot.readStructBegin();
|
|
|
6210 |
while (true)
|
|
|
6211 |
{
|
|
|
6212 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6213 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
6214 |
break;
|
|
|
6215 |
}
|
| 3430 |
rajveer |
6216 |
switch (field.id) {
|
| 4496 |
mandeep.dh |
6217 |
case 0: // SUCCESS
|
| 4555 |
mandeep.dh |
6218 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6219 |
this.success = new InventoryItem();
|
|
|
6220 |
this.success.read(iprot);
|
| 4496 |
mandeep.dh |
6221 |
} else {
|
|
|
6222 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6223 |
}
|
|
|
6224 |
break;
|
| 3430 |
rajveer |
6225 |
case 1: // WEX
|
|
|
6226 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6227 |
this.wex = new WarehouseServiceException();
|
|
|
6228 |
this.wex.read(iprot);
|
|
|
6229 |
} else {
|
|
|
6230 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6231 |
}
|
|
|
6232 |
break;
|
|
|
6233 |
default:
|
|
|
6234 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
6235 |
}
|
| 3430 |
rajveer |
6236 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
6237 |
}
|
|
|
6238 |
iprot.readStructEnd();
|
|
|
6239 |
validate();
|
|
|
6240 |
}
|
|
|
6241 |
|
| 3430 |
rajveer |
6242 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6243 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6244 |
|
| 4496 |
mandeep.dh |
6245 |
if (this.isSetSuccess()) {
|
|
|
6246 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 4555 |
mandeep.dh |
6247 |
this.success.write(oprot);
|
| 4496 |
mandeep.dh |
6248 |
oprot.writeFieldEnd();
|
|
|
6249 |
} else if (this.isSetWex()) {
|
| 2820 |
chandransh |
6250 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
6251 |
this.wex.write(oprot);
|
|
|
6252 |
oprot.writeFieldEnd();
|
|
|
6253 |
}
|
|
|
6254 |
oprot.writeFieldStop();
|
|
|
6255 |
oprot.writeStructEnd();
|
|
|
6256 |
}
|
|
|
6257 |
|
|
|
6258 |
@Override
|
|
|
6259 |
public String toString() {
|
| 4496 |
mandeep.dh |
6260 |
StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_result(");
|
| 2820 |
chandransh |
6261 |
boolean first = true;
|
|
|
6262 |
|
| 4496 |
mandeep.dh |
6263 |
sb.append("success:");
|
| 4555 |
mandeep.dh |
6264 |
if (this.success == null) {
|
|
|
6265 |
sb.append("null");
|
|
|
6266 |
} else {
|
|
|
6267 |
sb.append(this.success);
|
|
|
6268 |
}
|
| 4496 |
mandeep.dh |
6269 |
first = false;
|
|
|
6270 |
if (!first) sb.append(", ");
|
| 2820 |
chandransh |
6271 |
sb.append("wex:");
|
|
|
6272 |
if (this.wex == null) {
|
|
|
6273 |
sb.append("null");
|
|
|
6274 |
} else {
|
|
|
6275 |
sb.append(this.wex);
|
|
|
6276 |
}
|
|
|
6277 |
first = false;
|
|
|
6278 |
sb.append(")");
|
|
|
6279 |
return sb.toString();
|
|
|
6280 |
}
|
|
|
6281 |
|
| 3430 |
rajveer |
6282 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6283 |
// check for required fields
|
|
|
6284 |
}
|
|
|
6285 |
|
| 3430 |
rajveer |
6286 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6287 |
try {
|
|
|
6288 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6289 |
} catch (org.apache.thrift.TException te) {
|
|
|
6290 |
throw new java.io.IOException(te);
|
|
|
6291 |
}
|
|
|
6292 |
}
|
|
|
6293 |
|
|
|
6294 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6295 |
try {
|
|
|
6296 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6297 |
} catch (org.apache.thrift.TException te) {
|
|
|
6298 |
throw new java.io.IOException(te);
|
|
|
6299 |
}
|
|
|
6300 |
}
|
|
|
6301 |
|
| 2820 |
chandransh |
6302 |
}
|
|
|
6303 |
|
| 4496 |
mandeep.dh |
6304 |
public static class scanForOrder_args implements org.apache.thrift.TBase<scanForOrder_args, scanForOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6305 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_args");
|
| 2820 |
chandransh |
6306 |
|
| 5361 |
mandeep.dh |
6307 |
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 |
6308 |
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);
|
|
|
6309 |
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);
|
|
|
6310 |
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 |
6311 |
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 |
6312 |
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 |
6313 |
|
| 5361 |
mandeep.dh |
6314 |
private InventoryItem inventoryItem; // required
|
| 3430 |
rajveer |
6315 |
private ScanType type; // required
|
| 4496 |
mandeep.dh |
6316 |
private long quantity; // required
|
|
|
6317 |
private long orderId; // required
|
| 5110 |
mandeep.dh |
6318 |
private long fulfilmentWarehouseId; // required
|
| 5361 |
mandeep.dh |
6319 |
private long billingWarehouseId; // required
|
| 2820 |
chandransh |
6320 |
|
|
|
6321 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6322 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
6323 |
INVENTORY_ITEM((short)1, "inventoryItem"),
|
| 2820 |
chandransh |
6324 |
/**
|
|
|
6325 |
*
|
|
|
6326 |
* @see ScanType
|
|
|
6327 |
*/
|
| 4496 |
mandeep.dh |
6328 |
TYPE((short)2, "type"),
|
|
|
6329 |
QUANTITY((short)3, "quantity"),
|
|
|
6330 |
ORDER_ID((short)4, "orderId"),
|
| 5361 |
mandeep.dh |
6331 |
FULFILMENT_WAREHOUSE_ID((short)5, "fulfilmentWarehouseId"),
|
|
|
6332 |
BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
|
| 2820 |
chandransh |
6333 |
|
|
|
6334 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6335 |
|
|
|
6336 |
static {
|
|
|
6337 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6338 |
byName.put(field.getFieldName(), field);
|
|
|
6339 |
}
|
|
|
6340 |
}
|
|
|
6341 |
|
|
|
6342 |
/**
|
|
|
6343 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6344 |
*/
|
|
|
6345 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6346 |
switch(fieldId) {
|
| 5361 |
mandeep.dh |
6347 |
case 1: // INVENTORY_ITEM
|
|
|
6348 |
return INVENTORY_ITEM;
|
| 4496 |
mandeep.dh |
6349 |
case 2: // TYPE
|
| 3430 |
rajveer |
6350 |
return TYPE;
|
| 4496 |
mandeep.dh |
6351 |
case 3: // QUANTITY
|
|
|
6352 |
return QUANTITY;
|
|
|
6353 |
case 4: // ORDER_ID
|
|
|
6354 |
return ORDER_ID;
|
| 5110 |
mandeep.dh |
6355 |
case 5: // FULFILMENT_WAREHOUSE_ID
|
|
|
6356 |
return FULFILMENT_WAREHOUSE_ID;
|
| 5361 |
mandeep.dh |
6357 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
6358 |
return BILLING_WAREHOUSE_ID;
|
| 3430 |
rajveer |
6359 |
default:
|
|
|
6360 |
return null;
|
|
|
6361 |
}
|
| 2820 |
chandransh |
6362 |
}
|
|
|
6363 |
|
|
|
6364 |
/**
|
|
|
6365 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6366 |
* if it is not found.
|
|
|
6367 |
*/
|
|
|
6368 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6369 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6370 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6371 |
return fields;
|
|
|
6372 |
}
|
|
|
6373 |
|
|
|
6374 |
/**
|
|
|
6375 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6376 |
*/
|
|
|
6377 |
public static _Fields findByName(String name) {
|
|
|
6378 |
return byName.get(name);
|
|
|
6379 |
}
|
|
|
6380 |
|
|
|
6381 |
private final short _thriftId;
|
|
|
6382 |
private final String _fieldName;
|
|
|
6383 |
|
|
|
6384 |
_Fields(short thriftId, String fieldName) {
|
|
|
6385 |
_thriftId = thriftId;
|
|
|
6386 |
_fieldName = fieldName;
|
|
|
6387 |
}
|
|
|
6388 |
|
|
|
6389 |
public short getThriftFieldId() {
|
|
|
6390 |
return _thriftId;
|
|
|
6391 |
}
|
|
|
6392 |
|
|
|
6393 |
public String getFieldName() {
|
|
|
6394 |
return _fieldName;
|
|
|
6395 |
}
|
|
|
6396 |
}
|
|
|
6397 |
|
|
|
6398 |
// isset id assignments
|
| 5361 |
mandeep.dh |
6399 |
private static final int __QUANTITY_ISSET_ID = 0;
|
|
|
6400 |
private static final int __ORDERID_ISSET_ID = 1;
|
|
|
6401 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 2;
|
|
|
6402 |
private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
|
| 4496 |
mandeep.dh |
6403 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 2820 |
chandransh |
6404 |
|
| 3430 |
rajveer |
6405 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
6406 |
static {
|
| 3430 |
rajveer |
6407 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5361 |
mandeep.dh |
6408 |
tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6409 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
6410 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6411 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
| 4496 |
mandeep.dh |
6412 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6413 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
6414 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6415 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5110 |
mandeep.dh |
6416 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 4496 |
mandeep.dh |
6417 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5361 |
mandeep.dh |
6418 |
tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6419 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
6420 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
6421 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_args.class, metaDataMap);
|
| 2820 |
chandransh |
6422 |
}
|
|
|
6423 |
|
| 4496 |
mandeep.dh |
6424 |
public scanForOrder_args() {
|
| 2820 |
chandransh |
6425 |
}
|
|
|
6426 |
|
| 4496 |
mandeep.dh |
6427 |
public scanForOrder_args(
|
| 5361 |
mandeep.dh |
6428 |
InventoryItem inventoryItem,
|
| 4496 |
mandeep.dh |
6429 |
ScanType type,
|
|
|
6430 |
long quantity,
|
|
|
6431 |
long orderId,
|
| 5361 |
mandeep.dh |
6432 |
long fulfilmentWarehouseId,
|
|
|
6433 |
long billingWarehouseId)
|
| 2820 |
chandransh |
6434 |
{
|
|
|
6435 |
this();
|
| 5361 |
mandeep.dh |
6436 |
this.inventoryItem = inventoryItem;
|
| 2820 |
chandransh |
6437 |
this.type = type;
|
| 4496 |
mandeep.dh |
6438 |
this.quantity = quantity;
|
|
|
6439 |
setQuantityIsSet(true);
|
|
|
6440 |
this.orderId = orderId;
|
|
|
6441 |
setOrderIdIsSet(true);
|
| 5110 |
mandeep.dh |
6442 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
6443 |
setFulfilmentWarehouseIdIsSet(true);
|
| 5361 |
mandeep.dh |
6444 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
6445 |
setBillingWarehouseIdIsSet(true);
|
| 2820 |
chandransh |
6446 |
}
|
|
|
6447 |
|
|
|
6448 |
/**
|
|
|
6449 |
* Performs a deep copy on <i>other</i>.
|
|
|
6450 |
*/
|
| 4496 |
mandeep.dh |
6451 |
public scanForOrder_args(scanForOrder_args other) {
|
|
|
6452 |
__isset_bit_vector.clear();
|
|
|
6453 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 5361 |
mandeep.dh |
6454 |
if (other.isSetInventoryItem()) {
|
|
|
6455 |
this.inventoryItem = new InventoryItem(other.inventoryItem);
|
|
|
6456 |
}
|
| 2820 |
chandransh |
6457 |
if (other.isSetType()) {
|
|
|
6458 |
this.type = other.type;
|
|
|
6459 |
}
|
| 4496 |
mandeep.dh |
6460 |
this.quantity = other.quantity;
|
|
|
6461 |
this.orderId = other.orderId;
|
| 5110 |
mandeep.dh |
6462 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
| 5361 |
mandeep.dh |
6463 |
this.billingWarehouseId = other.billingWarehouseId;
|
| 2820 |
chandransh |
6464 |
}
|
|
|
6465 |
|
| 4496 |
mandeep.dh |
6466 |
public scanForOrder_args deepCopy() {
|
|
|
6467 |
return new scanForOrder_args(this);
|
| 2820 |
chandransh |
6468 |
}
|
|
|
6469 |
|
| 3430 |
rajveer |
6470 |
@Override
|
|
|
6471 |
public void clear() {
|
| 5361 |
mandeep.dh |
6472 |
this.inventoryItem = null;
|
| 3430 |
rajveer |
6473 |
this.type = null;
|
| 4496 |
mandeep.dh |
6474 |
setQuantityIsSet(false);
|
|
|
6475 |
this.quantity = 0;
|
|
|
6476 |
setOrderIdIsSet(false);
|
|
|
6477 |
this.orderId = 0;
|
| 5110 |
mandeep.dh |
6478 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
6479 |
this.fulfilmentWarehouseId = 0;
|
| 5361 |
mandeep.dh |
6480 |
setBillingWarehouseIdIsSet(false);
|
|
|
6481 |
this.billingWarehouseId = 0;
|
| 2820 |
chandransh |
6482 |
}
|
|
|
6483 |
|
| 5361 |
mandeep.dh |
6484 |
public InventoryItem getInventoryItem() {
|
|
|
6485 |
return this.inventoryItem;
|
| 2820 |
chandransh |
6486 |
}
|
|
|
6487 |
|
| 5361 |
mandeep.dh |
6488 |
public void setInventoryItem(InventoryItem inventoryItem) {
|
|
|
6489 |
this.inventoryItem = inventoryItem;
|
| 2820 |
chandransh |
6490 |
}
|
|
|
6491 |
|
| 5361 |
mandeep.dh |
6492 |
public void unsetInventoryItem() {
|
|
|
6493 |
this.inventoryItem = null;
|
| 2820 |
chandransh |
6494 |
}
|
|
|
6495 |
|
| 5361 |
mandeep.dh |
6496 |
/** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
|
|
|
6497 |
public boolean isSetInventoryItem() {
|
|
|
6498 |
return this.inventoryItem != null;
|
| 2820 |
chandransh |
6499 |
}
|
|
|
6500 |
|
| 5361 |
mandeep.dh |
6501 |
public void setInventoryItemIsSet(boolean value) {
|
|
|
6502 |
if (!value) {
|
|
|
6503 |
this.inventoryItem = null;
|
|
|
6504 |
}
|
| 2820 |
chandransh |
6505 |
}
|
|
|
6506 |
|
|
|
6507 |
/**
|
|
|
6508 |
*
|
|
|
6509 |
* @see ScanType
|
|
|
6510 |
*/
|
|
|
6511 |
public ScanType getType() {
|
|
|
6512 |
return this.type;
|
|
|
6513 |
}
|
|
|
6514 |
|
|
|
6515 |
/**
|
|
|
6516 |
*
|
|
|
6517 |
* @see ScanType
|
|
|
6518 |
*/
|
| 3430 |
rajveer |
6519 |
public void setType(ScanType type) {
|
| 2820 |
chandransh |
6520 |
this.type = type;
|
|
|
6521 |
}
|
|
|
6522 |
|
|
|
6523 |
public void unsetType() {
|
|
|
6524 |
this.type = null;
|
|
|
6525 |
}
|
|
|
6526 |
|
| 3430 |
rajveer |
6527 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
6528 |
public boolean isSetType() {
|
|
|
6529 |
return this.type != null;
|
|
|
6530 |
}
|
|
|
6531 |
|
|
|
6532 |
public void setTypeIsSet(boolean value) {
|
|
|
6533 |
if (!value) {
|
|
|
6534 |
this.type = null;
|
|
|
6535 |
}
|
|
|
6536 |
}
|
|
|
6537 |
|
| 4496 |
mandeep.dh |
6538 |
public long getQuantity() {
|
|
|
6539 |
return this.quantity;
|
|
|
6540 |
}
|
|
|
6541 |
|
|
|
6542 |
public void setQuantity(long quantity) {
|
|
|
6543 |
this.quantity = quantity;
|
|
|
6544 |
setQuantityIsSet(true);
|
|
|
6545 |
}
|
|
|
6546 |
|
|
|
6547 |
public void unsetQuantity() {
|
|
|
6548 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
6549 |
}
|
|
|
6550 |
|
|
|
6551 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
6552 |
public boolean isSetQuantity() {
|
|
|
6553 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
6554 |
}
|
|
|
6555 |
|
|
|
6556 |
public void setQuantityIsSet(boolean value) {
|
|
|
6557 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
6558 |
}
|
|
|
6559 |
|
|
|
6560 |
public long getOrderId() {
|
|
|
6561 |
return this.orderId;
|
|
|
6562 |
}
|
|
|
6563 |
|
|
|
6564 |
public void setOrderId(long orderId) {
|
|
|
6565 |
this.orderId = orderId;
|
|
|
6566 |
setOrderIdIsSet(true);
|
|
|
6567 |
}
|
|
|
6568 |
|
|
|
6569 |
public void unsetOrderId() {
|
|
|
6570 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
6571 |
}
|
|
|
6572 |
|
|
|
6573 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
6574 |
public boolean isSetOrderId() {
|
|
|
6575 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
6576 |
}
|
|
|
6577 |
|
|
|
6578 |
public void setOrderIdIsSet(boolean value) {
|
|
|
6579 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
6580 |
}
|
|
|
6581 |
|
| 5110 |
mandeep.dh |
6582 |
public long getFulfilmentWarehouseId() {
|
|
|
6583 |
return this.fulfilmentWarehouseId;
|
| 4496 |
mandeep.dh |
6584 |
}
|
|
|
6585 |
|
| 5110 |
mandeep.dh |
6586 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
6587 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
6588 |
setFulfilmentWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
6589 |
}
|
|
|
6590 |
|
| 5110 |
mandeep.dh |
6591 |
public void unsetFulfilmentWarehouseId() {
|
|
|
6592 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
6593 |
}
|
|
|
6594 |
|
| 5110 |
mandeep.dh |
6595 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
6596 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
6597 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
| 4496 |
mandeep.dh |
6598 |
}
|
|
|
6599 |
|
| 5110 |
mandeep.dh |
6600 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
6601 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
| 4496 |
mandeep.dh |
6602 |
}
|
|
|
6603 |
|
| 5361 |
mandeep.dh |
6604 |
public long getBillingWarehouseId() {
|
|
|
6605 |
return this.billingWarehouseId;
|
|
|
6606 |
}
|
|
|
6607 |
|
|
|
6608 |
public void setBillingWarehouseId(long billingWarehouseId) {
|
|
|
6609 |
this.billingWarehouseId = billingWarehouseId;
|
|
|
6610 |
setBillingWarehouseIdIsSet(true);
|
|
|
6611 |
}
|
|
|
6612 |
|
|
|
6613 |
public void unsetBillingWarehouseId() {
|
|
|
6614 |
__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
6615 |
}
|
|
|
6616 |
|
|
|
6617 |
/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
6618 |
public boolean isSetBillingWarehouseId() {
|
|
|
6619 |
return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
|
|
|
6620 |
}
|
|
|
6621 |
|
|
|
6622 |
public void setBillingWarehouseIdIsSet(boolean value) {
|
|
|
6623 |
__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
|
|
|
6624 |
}
|
|
|
6625 |
|
| 2820 |
chandransh |
6626 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6627 |
switch (field) {
|
| 5361 |
mandeep.dh |
6628 |
case INVENTORY_ITEM:
|
| 2820 |
chandransh |
6629 |
if (value == null) {
|
| 5361 |
mandeep.dh |
6630 |
unsetInventoryItem();
|
| 2820 |
chandransh |
6631 |
} else {
|
| 5361 |
mandeep.dh |
6632 |
setInventoryItem((InventoryItem)value);
|
| 2820 |
chandransh |
6633 |
}
|
|
|
6634 |
break;
|
|
|
6635 |
|
| 4496 |
mandeep.dh |
6636 |
case TYPE:
|
| 2820 |
chandransh |
6637 |
if (value == null) {
|
| 4496 |
mandeep.dh |
6638 |
unsetType();
|
| 2820 |
chandransh |
6639 |
} else {
|
| 4496 |
mandeep.dh |
6640 |
setType((ScanType)value);
|
| 2820 |
chandransh |
6641 |
}
|
|
|
6642 |
break;
|
|
|
6643 |
|
| 4496 |
mandeep.dh |
6644 |
case QUANTITY:
|
| 2820 |
chandransh |
6645 |
if (value == null) {
|
| 4496 |
mandeep.dh |
6646 |
unsetQuantity();
|
| 2820 |
chandransh |
6647 |
} else {
|
| 4496 |
mandeep.dh |
6648 |
setQuantity((Long)value);
|
| 2820 |
chandransh |
6649 |
}
|
|
|
6650 |
break;
|
|
|
6651 |
|
| 4496 |
mandeep.dh |
6652 |
case ORDER_ID:
|
|
|
6653 |
if (value == null) {
|
|
|
6654 |
unsetOrderId();
|
|
|
6655 |
} else {
|
|
|
6656 |
setOrderId((Long)value);
|
|
|
6657 |
}
|
|
|
6658 |
break;
|
|
|
6659 |
|
| 5110 |
mandeep.dh |
6660 |
case FULFILMENT_WAREHOUSE_ID:
|
| 4496 |
mandeep.dh |
6661 |
if (value == null) {
|
| 5110 |
mandeep.dh |
6662 |
unsetFulfilmentWarehouseId();
|
| 4496 |
mandeep.dh |
6663 |
} else {
|
| 5110 |
mandeep.dh |
6664 |
setFulfilmentWarehouseId((Long)value);
|
| 4496 |
mandeep.dh |
6665 |
}
|
|
|
6666 |
break;
|
|
|
6667 |
|
| 5361 |
mandeep.dh |
6668 |
case BILLING_WAREHOUSE_ID:
|
|
|
6669 |
if (value == null) {
|
|
|
6670 |
unsetBillingWarehouseId();
|
|
|
6671 |
} else {
|
|
|
6672 |
setBillingWarehouseId((Long)value);
|
|
|
6673 |
}
|
|
|
6674 |
break;
|
|
|
6675 |
|
| 2820 |
chandransh |
6676 |
}
|
|
|
6677 |
}
|
|
|
6678 |
|
|
|
6679 |
public Object getFieldValue(_Fields field) {
|
|
|
6680 |
switch (field) {
|
| 5361 |
mandeep.dh |
6681 |
case INVENTORY_ITEM:
|
|
|
6682 |
return getInventoryItem();
|
| 2820 |
chandransh |
6683 |
|
|
|
6684 |
case TYPE:
|
|
|
6685 |
return getType();
|
|
|
6686 |
|
| 4496 |
mandeep.dh |
6687 |
case QUANTITY:
|
|
|
6688 |
return Long.valueOf(getQuantity());
|
|
|
6689 |
|
|
|
6690 |
case ORDER_ID:
|
|
|
6691 |
return Long.valueOf(getOrderId());
|
|
|
6692 |
|
| 5110 |
mandeep.dh |
6693 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
6694 |
return Long.valueOf(getFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
6695 |
|
| 5361 |
mandeep.dh |
6696 |
case BILLING_WAREHOUSE_ID:
|
|
|
6697 |
return Long.valueOf(getBillingWarehouseId());
|
|
|
6698 |
|
| 2820 |
chandransh |
6699 |
}
|
|
|
6700 |
throw new IllegalStateException();
|
|
|
6701 |
}
|
|
|
6702 |
|
| 3430 |
rajveer |
6703 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6704 |
public boolean isSet(_Fields field) {
|
|
|
6705 |
if (field == null) {
|
|
|
6706 |
throw new IllegalArgumentException();
|
|
|
6707 |
}
|
| 2820 |
chandransh |
6708 |
|
|
|
6709 |
switch (field) {
|
| 5361 |
mandeep.dh |
6710 |
case INVENTORY_ITEM:
|
|
|
6711 |
return isSetInventoryItem();
|
| 2820 |
chandransh |
6712 |
case TYPE:
|
|
|
6713 |
return isSetType();
|
| 4496 |
mandeep.dh |
6714 |
case QUANTITY:
|
|
|
6715 |
return isSetQuantity();
|
|
|
6716 |
case ORDER_ID:
|
|
|
6717 |
return isSetOrderId();
|
| 5110 |
mandeep.dh |
6718 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
6719 |
return isSetFulfilmentWarehouseId();
|
| 5361 |
mandeep.dh |
6720 |
case BILLING_WAREHOUSE_ID:
|
|
|
6721 |
return isSetBillingWarehouseId();
|
| 2820 |
chandransh |
6722 |
}
|
|
|
6723 |
throw new IllegalStateException();
|
|
|
6724 |
}
|
|
|
6725 |
|
|
|
6726 |
@Override
|
|
|
6727 |
public boolean equals(Object that) {
|
|
|
6728 |
if (that == null)
|
|
|
6729 |
return false;
|
| 4496 |
mandeep.dh |
6730 |
if (that instanceof scanForOrder_args)
|
|
|
6731 |
return this.equals((scanForOrder_args)that);
|
| 2820 |
chandransh |
6732 |
return false;
|
|
|
6733 |
}
|
|
|
6734 |
|
| 4496 |
mandeep.dh |
6735 |
public boolean equals(scanForOrder_args that) {
|
| 2820 |
chandransh |
6736 |
if (that == null)
|
|
|
6737 |
return false;
|
|
|
6738 |
|
| 5361 |
mandeep.dh |
6739 |
boolean this_present_inventoryItem = true && this.isSetInventoryItem();
|
|
|
6740 |
boolean that_present_inventoryItem = true && that.isSetInventoryItem();
|
|
|
6741 |
if (this_present_inventoryItem || that_present_inventoryItem) {
|
|
|
6742 |
if (!(this_present_inventoryItem && that_present_inventoryItem))
|
| 2820 |
chandransh |
6743 |
return false;
|
| 5361 |
mandeep.dh |
6744 |
if (!this.inventoryItem.equals(that.inventoryItem))
|
| 2820 |
chandransh |
6745 |
return false;
|
|
|
6746 |
}
|
|
|
6747 |
|
|
|
6748 |
boolean this_present_type = true && this.isSetType();
|
|
|
6749 |
boolean that_present_type = true && that.isSetType();
|
|
|
6750 |
if (this_present_type || that_present_type) {
|
|
|
6751 |
if (!(this_present_type && that_present_type))
|
|
|
6752 |
return false;
|
|
|
6753 |
if (!this.type.equals(that.type))
|
|
|
6754 |
return false;
|
|
|
6755 |
}
|
|
|
6756 |
|
| 4496 |
mandeep.dh |
6757 |
boolean this_present_quantity = true;
|
|
|
6758 |
boolean that_present_quantity = true;
|
|
|
6759 |
if (this_present_quantity || that_present_quantity) {
|
|
|
6760 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
6761 |
return false;
|
|
|
6762 |
if (this.quantity != that.quantity)
|
|
|
6763 |
return false;
|
|
|
6764 |
}
|
|
|
6765 |
|
|
|
6766 |
boolean this_present_orderId = true;
|
|
|
6767 |
boolean that_present_orderId = true;
|
|
|
6768 |
if (this_present_orderId || that_present_orderId) {
|
|
|
6769 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
6770 |
return false;
|
|
|
6771 |
if (this.orderId != that.orderId)
|
|
|
6772 |
return false;
|
|
|
6773 |
}
|
|
|
6774 |
|
| 5110 |
mandeep.dh |
6775 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
6776 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
6777 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
6778 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
| 4496 |
mandeep.dh |
6779 |
return false;
|
| 5110 |
mandeep.dh |
6780 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
| 4496 |
mandeep.dh |
6781 |
return false;
|
|
|
6782 |
}
|
|
|
6783 |
|
| 5361 |
mandeep.dh |
6784 |
boolean this_present_billingWarehouseId = true;
|
|
|
6785 |
boolean that_present_billingWarehouseId = true;
|
|
|
6786 |
if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
|
|
|
6787 |
if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
|
|
|
6788 |
return false;
|
|
|
6789 |
if (this.billingWarehouseId != that.billingWarehouseId)
|
|
|
6790 |
return false;
|
|
|
6791 |
}
|
|
|
6792 |
|
| 2820 |
chandransh |
6793 |
return true;
|
|
|
6794 |
}
|
|
|
6795 |
|
|
|
6796 |
@Override
|
|
|
6797 |
public int hashCode() {
|
|
|
6798 |
return 0;
|
|
|
6799 |
}
|
|
|
6800 |
|
| 4496 |
mandeep.dh |
6801 |
public int compareTo(scanForOrder_args other) {
|
| 2820 |
chandransh |
6802 |
if (!getClass().equals(other.getClass())) {
|
|
|
6803 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6804 |
}
|
|
|
6805 |
|
|
|
6806 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
6807 |
scanForOrder_args typedOther = (scanForOrder_args)other;
|
| 2820 |
chandransh |
6808 |
|
| 5361 |
mandeep.dh |
6809 |
lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
|
| 2820 |
chandransh |
6810 |
if (lastComparison != 0) {
|
|
|
6811 |
return lastComparison;
|
|
|
6812 |
}
|
| 5361 |
mandeep.dh |
6813 |
if (isSetInventoryItem()) {
|
|
|
6814 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
|
| 3430 |
rajveer |
6815 |
if (lastComparison != 0) {
|
|
|
6816 |
return lastComparison;
|
|
|
6817 |
}
|
| 2820 |
chandransh |
6818 |
}
|
| 4496 |
mandeep.dh |
6819 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 2820 |
chandransh |
6820 |
if (lastComparison != 0) {
|
|
|
6821 |
return lastComparison;
|
|
|
6822 |
}
|
| 4496 |
mandeep.dh |
6823 |
if (isSetType()) {
|
|
|
6824 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3430 |
rajveer |
6825 |
if (lastComparison != 0) {
|
|
|
6826 |
return lastComparison;
|
|
|
6827 |
}
|
| 2820 |
chandransh |
6828 |
}
|
| 4496 |
mandeep.dh |
6829 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
| 2820 |
chandransh |
6830 |
if (lastComparison != 0) {
|
|
|
6831 |
return lastComparison;
|
|
|
6832 |
}
|
| 4496 |
mandeep.dh |
6833 |
if (isSetQuantity()) {
|
|
|
6834 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
| 3430 |
rajveer |
6835 |
if (lastComparison != 0) {
|
|
|
6836 |
return lastComparison;
|
|
|
6837 |
}
|
| 2820 |
chandransh |
6838 |
}
|
| 4496 |
mandeep.dh |
6839 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
6840 |
if (lastComparison != 0) {
|
|
|
6841 |
return lastComparison;
|
|
|
6842 |
}
|
|
|
6843 |
if (isSetOrderId()) {
|
|
|
6844 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
6845 |
if (lastComparison != 0) {
|
|
|
6846 |
return lastComparison;
|
|
|
6847 |
}
|
|
|
6848 |
}
|
| 5110 |
mandeep.dh |
6849 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
| 4496 |
mandeep.dh |
6850 |
if (lastComparison != 0) {
|
|
|
6851 |
return lastComparison;
|
|
|
6852 |
}
|
| 5110 |
mandeep.dh |
6853 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
6854 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
6855 |
if (lastComparison != 0) {
|
|
|
6856 |
return lastComparison;
|
|
|
6857 |
}
|
|
|
6858 |
}
|
| 5361 |
mandeep.dh |
6859 |
lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
|
|
|
6860 |
if (lastComparison != 0) {
|
|
|
6861 |
return lastComparison;
|
|
|
6862 |
}
|
|
|
6863 |
if (isSetBillingWarehouseId()) {
|
|
|
6864 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
|
|
|
6865 |
if (lastComparison != 0) {
|
|
|
6866 |
return lastComparison;
|
|
|
6867 |
}
|
|
|
6868 |
}
|
| 2820 |
chandransh |
6869 |
return 0;
|
|
|
6870 |
}
|
|
|
6871 |
|
| 3430 |
rajveer |
6872 |
public _Fields fieldForId(int fieldId) {
|
|
|
6873 |
return _Fields.findByThriftId(fieldId);
|
|
|
6874 |
}
|
|
|
6875 |
|
|
|
6876 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6877 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
6878 |
iprot.readStructBegin();
|
|
|
6879 |
while (true)
|
|
|
6880 |
{
|
|
|
6881 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6882 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
6883 |
break;
|
|
|
6884 |
}
|
| 3430 |
rajveer |
6885 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
6886 |
case 1: // INVENTORY_ITEM
|
|
|
6887 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6888 |
this.inventoryItem = new InventoryItem();
|
|
|
6889 |
this.inventoryItem.read(iprot);
|
| 3430 |
rajveer |
6890 |
} else {
|
|
|
6891 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6892 |
}
|
|
|
6893 |
break;
|
| 4496 |
mandeep.dh |
6894 |
case 2: // TYPE
|
|
|
6895 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
6896 |
this.type = ScanType.findByValue(iprot.readI32());
|
| 3430 |
rajveer |
6897 |
} else {
|
|
|
6898 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6899 |
}
|
|
|
6900 |
break;
|
| 4496 |
mandeep.dh |
6901 |
case 3: // QUANTITY
|
|
|
6902 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6903 |
this.quantity = iprot.readI64();
|
|
|
6904 |
setQuantityIsSet(true);
|
| 3430 |
rajveer |
6905 |
} else {
|
|
|
6906 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6907 |
}
|
|
|
6908 |
break;
|
| 4496 |
mandeep.dh |
6909 |
case 4: // ORDER_ID
|
|
|
6910 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6911 |
this.orderId = iprot.readI64();
|
|
|
6912 |
setOrderIdIsSet(true);
|
|
|
6913 |
} else {
|
|
|
6914 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6915 |
}
|
|
|
6916 |
break;
|
| 5110 |
mandeep.dh |
6917 |
case 5: // FULFILMENT_WAREHOUSE_ID
|
| 4496 |
mandeep.dh |
6918 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 5110 |
mandeep.dh |
6919 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
6920 |
setFulfilmentWarehouseIdIsSet(true);
|
| 4496 |
mandeep.dh |
6921 |
} else {
|
|
|
6922 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6923 |
}
|
|
|
6924 |
break;
|
| 5361 |
mandeep.dh |
6925 |
case 6: // BILLING_WAREHOUSE_ID
|
|
|
6926 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6927 |
this.billingWarehouseId = iprot.readI64();
|
|
|
6928 |
setBillingWarehouseIdIsSet(true);
|
|
|
6929 |
} else {
|
|
|
6930 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6931 |
}
|
|
|
6932 |
break;
|
| 3430 |
rajveer |
6933 |
default:
|
|
|
6934 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
6935 |
}
|
| 3430 |
rajveer |
6936 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
6937 |
}
|
|
|
6938 |
iprot.readStructEnd();
|
|
|
6939 |
validate();
|
|
|
6940 |
}
|
|
|
6941 |
|
| 3430 |
rajveer |
6942 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6943 |
validate();
|
|
|
6944 |
|
|
|
6945 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5361 |
mandeep.dh |
6946 |
if (this.inventoryItem != null) {
|
|
|
6947 |
oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
|
|
|
6948 |
this.inventoryItem.write(oprot);
|
|
|
6949 |
oprot.writeFieldEnd();
|
|
|
6950 |
}
|
| 2820 |
chandransh |
6951 |
if (this.type != null) {
|
|
|
6952 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
6953 |
oprot.writeI32(this.type.getValue());
|
|
|
6954 |
oprot.writeFieldEnd();
|
|
|
6955 |
}
|
| 4496 |
mandeep.dh |
6956 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
6957 |
oprot.writeI64(this.quantity);
|
|
|
6958 |
oprot.writeFieldEnd();
|
|
|
6959 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
6960 |
oprot.writeI64(this.orderId);
|
|
|
6961 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
6962 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
6963 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
6964 |
oprot.writeFieldEnd();
|
| 5361 |
mandeep.dh |
6965 |
oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
|
|
|
6966 |
oprot.writeI64(this.billingWarehouseId);
|
|
|
6967 |
oprot.writeFieldEnd();
|
| 2820 |
chandransh |
6968 |
oprot.writeFieldStop();
|
|
|
6969 |
oprot.writeStructEnd();
|
|
|
6970 |
}
|
|
|
6971 |
|
|
|
6972 |
@Override
|
|
|
6973 |
public String toString() {
|
| 4496 |
mandeep.dh |
6974 |
StringBuilder sb = new StringBuilder("scanForOrder_args(");
|
| 2820 |
chandransh |
6975 |
boolean first = true;
|
|
|
6976 |
|
| 5361 |
mandeep.dh |
6977 |
sb.append("inventoryItem:");
|
|
|
6978 |
if (this.inventoryItem == null) {
|
|
|
6979 |
sb.append("null");
|
|
|
6980 |
} else {
|
|
|
6981 |
sb.append(this.inventoryItem);
|
|
|
6982 |
}
|
| 2820 |
chandransh |
6983 |
first = false;
|
|
|
6984 |
if (!first) sb.append(", ");
|
|
|
6985 |
sb.append("type:");
|
|
|
6986 |
if (this.type == null) {
|
|
|
6987 |
sb.append("null");
|
|
|
6988 |
} else {
|
|
|
6989 |
sb.append(this.type);
|
|
|
6990 |
}
|
|
|
6991 |
first = false;
|
| 4496 |
mandeep.dh |
6992 |
if (!first) sb.append(", ");
|
|
|
6993 |
sb.append("quantity:");
|
|
|
6994 |
sb.append(this.quantity);
|
|
|
6995 |
first = false;
|
|
|
6996 |
if (!first) sb.append(", ");
|
|
|
6997 |
sb.append("orderId:");
|
|
|
6998 |
sb.append(this.orderId);
|
|
|
6999 |
first = false;
|
|
|
7000 |
if (!first) sb.append(", ");
|
| 5110 |
mandeep.dh |
7001 |
sb.append("fulfilmentWarehouseId:");
|
|
|
7002 |
sb.append(this.fulfilmentWarehouseId);
|
| 4496 |
mandeep.dh |
7003 |
first = false;
|
| 5361 |
mandeep.dh |
7004 |
if (!first) sb.append(", ");
|
|
|
7005 |
sb.append("billingWarehouseId:");
|
|
|
7006 |
sb.append(this.billingWarehouseId);
|
|
|
7007 |
first = false;
|
| 2820 |
chandransh |
7008 |
sb.append(")");
|
|
|
7009 |
return sb.toString();
|
|
|
7010 |
}
|
|
|
7011 |
|
| 3430 |
rajveer |
7012 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
7013 |
// check for required fields
|
|
|
7014 |
}
|
|
|
7015 |
|
| 3430 |
rajveer |
7016 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7017 |
try {
|
|
|
7018 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7019 |
} catch (org.apache.thrift.TException te) {
|
|
|
7020 |
throw new java.io.IOException(te);
|
|
|
7021 |
}
|
|
|
7022 |
}
|
|
|
7023 |
|
|
|
7024 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7025 |
try {
|
| 4496 |
mandeep.dh |
7026 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
7027 |
__isset_bit_vector = new BitSet(1);
|
| 3430 |
rajveer |
7028 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7029 |
} catch (org.apache.thrift.TException te) {
|
|
|
7030 |
throw new java.io.IOException(te);
|
|
|
7031 |
}
|
|
|
7032 |
}
|
|
|
7033 |
|
| 2820 |
chandransh |
7034 |
}
|
|
|
7035 |
|
| 4496 |
mandeep.dh |
7036 |
public static class scanForOrder_result implements org.apache.thrift.TBase<scanForOrder_result, scanForOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7037 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_result");
|
| 2820 |
chandransh |
7038 |
|
| 5361 |
mandeep.dh |
7039 |
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 |
7040 |
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 |
7041 |
|
| 5361 |
mandeep.dh |
7042 |
private InventoryItem success; // required
|
| 3430 |
rajveer |
7043 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
7044 |
|
|
|
7045 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
7046 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5361 |
mandeep.dh |
7047 |
SUCCESS((short)0, "success"),
|
| 2820 |
chandransh |
7048 |
WEX((short)1, "wex");
|
|
|
7049 |
|
|
|
7050 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7051 |
|
|
|
7052 |
static {
|
|
|
7053 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7054 |
byName.put(field.getFieldName(), field);
|
|
|
7055 |
}
|
|
|
7056 |
}
|
|
|
7057 |
|
|
|
7058 |
/**
|
|
|
7059 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7060 |
*/
|
|
|
7061 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
7062 |
switch(fieldId) {
|
| 5361 |
mandeep.dh |
7063 |
case 0: // SUCCESS
|
|
|
7064 |
return SUCCESS;
|
| 3430 |
rajveer |
7065 |
case 1: // WEX
|
|
|
7066 |
return WEX;
|
|
|
7067 |
default:
|
|
|
7068 |
return null;
|
|
|
7069 |
}
|
| 2820 |
chandransh |
7070 |
}
|
|
|
7071 |
|
|
|
7072 |
/**
|
|
|
7073 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7074 |
* if it is not found.
|
|
|
7075 |
*/
|
|
|
7076 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7077 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7078 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7079 |
return fields;
|
|
|
7080 |
}
|
|
|
7081 |
|
|
|
7082 |
/**
|
|
|
7083 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7084 |
*/
|
|
|
7085 |
public static _Fields findByName(String name) {
|
|
|
7086 |
return byName.get(name);
|
|
|
7087 |
}
|
|
|
7088 |
|
|
|
7089 |
private final short _thriftId;
|
|
|
7090 |
private final String _fieldName;
|
|
|
7091 |
|
|
|
7092 |
_Fields(short thriftId, String fieldName) {
|
|
|
7093 |
_thriftId = thriftId;
|
|
|
7094 |
_fieldName = fieldName;
|
|
|
7095 |
}
|
|
|
7096 |
|
|
|
7097 |
public short getThriftFieldId() {
|
|
|
7098 |
return _thriftId;
|
|
|
7099 |
}
|
|
|
7100 |
|
|
|
7101 |
public String getFieldName() {
|
|
|
7102 |
return _fieldName;
|
|
|
7103 |
}
|
|
|
7104 |
}
|
|
|
7105 |
|
|
|
7106 |
// isset id assignments
|
|
|
7107 |
|
| 3430 |
rajveer |
7108 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
7109 |
static {
|
| 3430 |
rajveer |
7110 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5361 |
mandeep.dh |
7111 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7112 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
| 3430 |
rajveer |
7113 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7114 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
7115 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 4496 |
mandeep.dh |
7116 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_result.class, metaDataMap);
|
| 2820 |
chandransh |
7117 |
}
|
|
|
7118 |
|
| 4496 |
mandeep.dh |
7119 |
public scanForOrder_result() {
|
| 2820 |
chandransh |
7120 |
}
|
|
|
7121 |
|
| 4496 |
mandeep.dh |
7122 |
public scanForOrder_result(
|
| 5361 |
mandeep.dh |
7123 |
InventoryItem success,
|
| 2820 |
chandransh |
7124 |
WarehouseServiceException wex)
|
|
|
7125 |
{
|
|
|
7126 |
this();
|
| 5361 |
mandeep.dh |
7127 |
this.success = success;
|
| 2820 |
chandransh |
7128 |
this.wex = wex;
|
|
|
7129 |
}
|
|
|
7130 |
|
|
|
7131 |
/**
|
|
|
7132 |
* Performs a deep copy on <i>other</i>.
|
|
|
7133 |
*/
|
| 4496 |
mandeep.dh |
7134 |
public scanForOrder_result(scanForOrder_result other) {
|
| 5361 |
mandeep.dh |
7135 |
if (other.isSetSuccess()) {
|
|
|
7136 |
this.success = new InventoryItem(other.success);
|
|
|
7137 |
}
|
| 2820 |
chandransh |
7138 |
if (other.isSetWex()) {
|
|
|
7139 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
7140 |
}
|
|
|
7141 |
}
|
|
|
7142 |
|
| 4496 |
mandeep.dh |
7143 |
public scanForOrder_result deepCopy() {
|
|
|
7144 |
return new scanForOrder_result(this);
|
| 2820 |
chandransh |
7145 |
}
|
|
|
7146 |
|
| 3430 |
rajveer |
7147 |
@Override
|
|
|
7148 |
public void clear() {
|
| 5361 |
mandeep.dh |
7149 |
this.success = null;
|
| 3430 |
rajveer |
7150 |
this.wex = null;
|
| 2820 |
chandransh |
7151 |
}
|
|
|
7152 |
|
| 5361 |
mandeep.dh |
7153 |
public InventoryItem getSuccess() {
|
|
|
7154 |
return this.success;
|
|
|
7155 |
}
|
|
|
7156 |
|
|
|
7157 |
public void setSuccess(InventoryItem success) {
|
|
|
7158 |
this.success = success;
|
|
|
7159 |
}
|
|
|
7160 |
|
|
|
7161 |
public void unsetSuccess() {
|
|
|
7162 |
this.success = null;
|
|
|
7163 |
}
|
|
|
7164 |
|
|
|
7165 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
7166 |
public boolean isSetSuccess() {
|
|
|
7167 |
return this.success != null;
|
|
|
7168 |
}
|
|
|
7169 |
|
|
|
7170 |
public void setSuccessIsSet(boolean value) {
|
|
|
7171 |
if (!value) {
|
|
|
7172 |
this.success = null;
|
|
|
7173 |
}
|
|
|
7174 |
}
|
|
|
7175 |
|
| 2820 |
chandransh |
7176 |
public WarehouseServiceException getWex() {
|
|
|
7177 |
return this.wex;
|
|
|
7178 |
}
|
|
|
7179 |
|
| 3430 |
rajveer |
7180 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
7181 |
this.wex = wex;
|
|
|
7182 |
}
|
|
|
7183 |
|
|
|
7184 |
public void unsetWex() {
|
|
|
7185 |
this.wex = null;
|
|
|
7186 |
}
|
|
|
7187 |
|
| 3430 |
rajveer |
7188 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
7189 |
public boolean isSetWex() {
|
|
|
7190 |
return this.wex != null;
|
|
|
7191 |
}
|
|
|
7192 |
|
|
|
7193 |
public void setWexIsSet(boolean value) {
|
|
|
7194 |
if (!value) {
|
|
|
7195 |
this.wex = null;
|
|
|
7196 |
}
|
|
|
7197 |
}
|
|
|
7198 |
|
|
|
7199 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7200 |
switch (field) {
|
| 5361 |
mandeep.dh |
7201 |
case SUCCESS:
|
|
|
7202 |
if (value == null) {
|
|
|
7203 |
unsetSuccess();
|
|
|
7204 |
} else {
|
|
|
7205 |
setSuccess((InventoryItem)value);
|
|
|
7206 |
}
|
|
|
7207 |
break;
|
|
|
7208 |
|
| 2820 |
chandransh |
7209 |
case WEX:
|
|
|
7210 |
if (value == null) {
|
|
|
7211 |
unsetWex();
|
|
|
7212 |
} else {
|
|
|
7213 |
setWex((WarehouseServiceException)value);
|
|
|
7214 |
}
|
|
|
7215 |
break;
|
|
|
7216 |
|
|
|
7217 |
}
|
|
|
7218 |
}
|
|
|
7219 |
|
|
|
7220 |
public Object getFieldValue(_Fields field) {
|
|
|
7221 |
switch (field) {
|
| 5361 |
mandeep.dh |
7222 |
case SUCCESS:
|
|
|
7223 |
return getSuccess();
|
|
|
7224 |
|
| 2820 |
chandransh |
7225 |
case WEX:
|
|
|
7226 |
return getWex();
|
|
|
7227 |
|
|
|
7228 |
}
|
|
|
7229 |
throw new IllegalStateException();
|
|
|
7230 |
}
|
|
|
7231 |
|
| 3430 |
rajveer |
7232 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7233 |
public boolean isSet(_Fields field) {
|
|
|
7234 |
if (field == null) {
|
|
|
7235 |
throw new IllegalArgumentException();
|
|
|
7236 |
}
|
| 2820 |
chandransh |
7237 |
|
|
|
7238 |
switch (field) {
|
| 5361 |
mandeep.dh |
7239 |
case SUCCESS:
|
|
|
7240 |
return isSetSuccess();
|
| 2820 |
chandransh |
7241 |
case WEX:
|
|
|
7242 |
return isSetWex();
|
|
|
7243 |
}
|
|
|
7244 |
throw new IllegalStateException();
|
|
|
7245 |
}
|
|
|
7246 |
|
|
|
7247 |
@Override
|
|
|
7248 |
public boolean equals(Object that) {
|
|
|
7249 |
if (that == null)
|
|
|
7250 |
return false;
|
| 4496 |
mandeep.dh |
7251 |
if (that instanceof scanForOrder_result)
|
|
|
7252 |
return this.equals((scanForOrder_result)that);
|
| 2820 |
chandransh |
7253 |
return false;
|
|
|
7254 |
}
|
|
|
7255 |
|
| 4496 |
mandeep.dh |
7256 |
public boolean equals(scanForOrder_result that) {
|
| 2820 |
chandransh |
7257 |
if (that == null)
|
|
|
7258 |
return false;
|
|
|
7259 |
|
| 5361 |
mandeep.dh |
7260 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
7261 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
7262 |
if (this_present_success || that_present_success) {
|
|
|
7263 |
if (!(this_present_success && that_present_success))
|
|
|
7264 |
return false;
|
|
|
7265 |
if (!this.success.equals(that.success))
|
|
|
7266 |
return false;
|
|
|
7267 |
}
|
|
|
7268 |
|
| 2820 |
chandransh |
7269 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
7270 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
7271 |
if (this_present_wex || that_present_wex) {
|
|
|
7272 |
if (!(this_present_wex && that_present_wex))
|
|
|
7273 |
return false;
|
|
|
7274 |
if (!this.wex.equals(that.wex))
|
|
|
7275 |
return false;
|
|
|
7276 |
}
|
|
|
7277 |
|
|
|
7278 |
return true;
|
|
|
7279 |
}
|
|
|
7280 |
|
|
|
7281 |
@Override
|
|
|
7282 |
public int hashCode() {
|
|
|
7283 |
return 0;
|
|
|
7284 |
}
|
|
|
7285 |
|
| 4496 |
mandeep.dh |
7286 |
public int compareTo(scanForOrder_result other) {
|
| 2820 |
chandransh |
7287 |
if (!getClass().equals(other.getClass())) {
|
|
|
7288 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7289 |
}
|
|
|
7290 |
|
|
|
7291 |
int lastComparison = 0;
|
| 4496 |
mandeep.dh |
7292 |
scanForOrder_result typedOther = (scanForOrder_result)other;
|
| 2820 |
chandransh |
7293 |
|
| 5361 |
mandeep.dh |
7294 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
7295 |
if (lastComparison != 0) {
|
|
|
7296 |
return lastComparison;
|
|
|
7297 |
}
|
|
|
7298 |
if (isSetSuccess()) {
|
|
|
7299 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
7300 |
if (lastComparison != 0) {
|
|
|
7301 |
return lastComparison;
|
|
|
7302 |
}
|
|
|
7303 |
}
|
| 3430 |
rajveer |
7304 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
7305 |
if (lastComparison != 0) {
|
|
|
7306 |
return lastComparison;
|
|
|
7307 |
}
|
| 3430 |
rajveer |
7308 |
if (isSetWex()) {
|
|
|
7309 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
7310 |
if (lastComparison != 0) {
|
|
|
7311 |
return lastComparison;
|
|
|
7312 |
}
|
| 2820 |
chandransh |
7313 |
}
|
|
|
7314 |
return 0;
|
|
|
7315 |
}
|
|
|
7316 |
|
| 3430 |
rajveer |
7317 |
public _Fields fieldForId(int fieldId) {
|
|
|
7318 |
return _Fields.findByThriftId(fieldId);
|
|
|
7319 |
}
|
|
|
7320 |
|
|
|
7321 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7322 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
7323 |
iprot.readStructBegin();
|
|
|
7324 |
while (true)
|
|
|
7325 |
{
|
|
|
7326 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
7327 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
7328 |
break;
|
|
|
7329 |
}
|
| 3430 |
rajveer |
7330 |
switch (field.id) {
|
| 5361 |
mandeep.dh |
7331 |
case 0: // SUCCESS
|
|
|
7332 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
7333 |
this.success = new InventoryItem();
|
|
|
7334 |
this.success.read(iprot);
|
|
|
7335 |
} else {
|
|
|
7336 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7337 |
}
|
|
|
7338 |
break;
|
| 3430 |
rajveer |
7339 |
case 1: // WEX
|
|
|
7340 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
7341 |
this.wex = new WarehouseServiceException();
|
|
|
7342 |
this.wex.read(iprot);
|
|
|
7343 |
} else {
|
|
|
7344 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7345 |
}
|
|
|
7346 |
break;
|
|
|
7347 |
default:
|
|
|
7348 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
7349 |
}
|
| 3430 |
rajveer |
7350 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
7351 |
}
|
|
|
7352 |
iprot.readStructEnd();
|
|
|
7353 |
validate();
|
|
|
7354 |
}
|
|
|
7355 |
|
| 3430 |
rajveer |
7356 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
7357 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7358 |
|
| 5361 |
mandeep.dh |
7359 |
if (this.isSetSuccess()) {
|
|
|
7360 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
7361 |
this.success.write(oprot);
|
|
|
7362 |
oprot.writeFieldEnd();
|
|
|
7363 |
} else if (this.isSetWex()) {
|
| 2820 |
chandransh |
7364 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
7365 |
this.wex.write(oprot);
|
|
|
7366 |
oprot.writeFieldEnd();
|
|
|
7367 |
}
|
|
|
7368 |
oprot.writeFieldStop();
|
|
|
7369 |
oprot.writeStructEnd();
|
|
|
7370 |
}
|
|
|
7371 |
|
|
|
7372 |
@Override
|
|
|
7373 |
public String toString() {
|
| 4496 |
mandeep.dh |
7374 |
StringBuilder sb = new StringBuilder("scanForOrder_result(");
|
| 2820 |
chandransh |
7375 |
boolean first = true;
|
|
|
7376 |
|
| 5361 |
mandeep.dh |
7377 |
sb.append("success:");
|
|
|
7378 |
if (this.success == null) {
|
|
|
7379 |
sb.append("null");
|
|
|
7380 |
} else {
|
|
|
7381 |
sb.append(this.success);
|
|
|
7382 |
}
|
|
|
7383 |
first = false;
|
|
|
7384 |
if (!first) sb.append(", ");
|
| 2820 |
chandransh |
7385 |
sb.append("wex:");
|
|
|
7386 |
if (this.wex == null) {
|
|
|
7387 |
sb.append("null");
|
|
|
7388 |
} else {
|
|
|
7389 |
sb.append(this.wex);
|
|
|
7390 |
}
|
|
|
7391 |
first = false;
|
|
|
7392 |
sb.append(")");
|
|
|
7393 |
return sb.toString();
|
|
|
7394 |
}
|
|
|
7395 |
|
| 3430 |
rajveer |
7396 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
7397 |
// check for required fields
|
|
|
7398 |
}
|
|
|
7399 |
|
| 3430 |
rajveer |
7400 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7401 |
try {
|
|
|
7402 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7403 |
} catch (org.apache.thrift.TException te) {
|
|
|
7404 |
throw new java.io.IOException(te);
|
|
|
7405 |
}
|
|
|
7406 |
}
|
|
|
7407 |
|
|
|
7408 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7409 |
try {
|
|
|
7410 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7411 |
} catch (org.apache.thrift.TException te) {
|
|
|
7412 |
throw new java.io.IOException(te);
|
|
|
7413 |
}
|
|
|
7414 |
}
|
|
|
7415 |
|
| 2820 |
chandransh |
7416 |
}
|
|
|
7417 |
|
| 4496 |
mandeep.dh |
7418 |
public static class createItemNumberMapping_args implements org.apache.thrift.TBase<createItemNumberMapping_args, createItemNumberMapping_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
7419 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_args");
|
|
|
7420 |
|
|
|
7421 |
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);
|
|
|
7422 |
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);
|
|
|
7423 |
|
|
|
7424 |
private String itemNumber; // required
|
|
|
7425 |
private long itemId; // required
|
|
|
7426 |
|
|
|
7427 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7428 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7429 |
ITEM_NUMBER((short)1, "itemNumber"),
|
|
|
7430 |
ITEM_ID((short)2, "itemId");
|
|
|
7431 |
|
|
|
7432 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7433 |
|
|
|
7434 |
static {
|
|
|
7435 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7436 |
byName.put(field.getFieldName(), field);
|
|
|
7437 |
}
|
|
|
7438 |
}
|
|
|
7439 |
|
|
|
7440 |
/**
|
|
|
7441 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7442 |
*/
|
|
|
7443 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7444 |
switch(fieldId) {
|
|
|
7445 |
case 1: // ITEM_NUMBER
|
|
|
7446 |
return ITEM_NUMBER;
|
|
|
7447 |
case 2: // ITEM_ID
|
|
|
7448 |
return ITEM_ID;
|
|
|
7449 |
default:
|
|
|
7450 |
return null;
|
|
|
7451 |
}
|
|
|
7452 |
}
|
|
|
7453 |
|
|
|
7454 |
/**
|
|
|
7455 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7456 |
* if it is not found.
|
|
|
7457 |
*/
|
|
|
7458 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7459 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7460 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7461 |
return fields;
|
|
|
7462 |
}
|
|
|
7463 |
|
|
|
7464 |
/**
|
|
|
7465 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7466 |
*/
|
|
|
7467 |
public static _Fields findByName(String name) {
|
|
|
7468 |
return byName.get(name);
|
|
|
7469 |
}
|
|
|
7470 |
|
|
|
7471 |
private final short _thriftId;
|
|
|
7472 |
private final String _fieldName;
|
|
|
7473 |
|
|
|
7474 |
_Fields(short thriftId, String fieldName) {
|
|
|
7475 |
_thriftId = thriftId;
|
|
|
7476 |
_fieldName = fieldName;
|
|
|
7477 |
}
|
|
|
7478 |
|
|
|
7479 |
public short getThriftFieldId() {
|
|
|
7480 |
return _thriftId;
|
|
|
7481 |
}
|
|
|
7482 |
|
|
|
7483 |
public String getFieldName() {
|
|
|
7484 |
return _fieldName;
|
|
|
7485 |
}
|
|
|
7486 |
}
|
|
|
7487 |
|
|
|
7488 |
// isset id assignments
|
|
|
7489 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
7490 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
7491 |
|
|
|
7492 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7493 |
static {
|
|
|
7494 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7495 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7496 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
7497 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7498 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
7499 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7500 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_args.class, metaDataMap);
|
|
|
7501 |
}
|
|
|
7502 |
|
|
|
7503 |
public createItemNumberMapping_args() {
|
|
|
7504 |
}
|
|
|
7505 |
|
|
|
7506 |
public createItemNumberMapping_args(
|
|
|
7507 |
String itemNumber,
|
|
|
7508 |
long itemId)
|
|
|
7509 |
{
|
|
|
7510 |
this();
|
|
|
7511 |
this.itemNumber = itemNumber;
|
|
|
7512 |
this.itemId = itemId;
|
|
|
7513 |
setItemIdIsSet(true);
|
|
|
7514 |
}
|
|
|
7515 |
|
|
|
7516 |
/**
|
|
|
7517 |
* Performs a deep copy on <i>other</i>.
|
|
|
7518 |
*/
|
|
|
7519 |
public createItemNumberMapping_args(createItemNumberMapping_args other) {
|
|
|
7520 |
__isset_bit_vector.clear();
|
|
|
7521 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
7522 |
if (other.isSetItemNumber()) {
|
|
|
7523 |
this.itemNumber = other.itemNumber;
|
|
|
7524 |
}
|
|
|
7525 |
this.itemId = other.itemId;
|
|
|
7526 |
}
|
|
|
7527 |
|
|
|
7528 |
public createItemNumberMapping_args deepCopy() {
|
|
|
7529 |
return new createItemNumberMapping_args(this);
|
|
|
7530 |
}
|
|
|
7531 |
|
|
|
7532 |
@Override
|
|
|
7533 |
public void clear() {
|
|
|
7534 |
this.itemNumber = null;
|
|
|
7535 |
setItemIdIsSet(false);
|
|
|
7536 |
this.itemId = 0;
|
|
|
7537 |
}
|
|
|
7538 |
|
|
|
7539 |
public String getItemNumber() {
|
|
|
7540 |
return this.itemNumber;
|
|
|
7541 |
}
|
|
|
7542 |
|
|
|
7543 |
public void setItemNumber(String itemNumber) {
|
|
|
7544 |
this.itemNumber = itemNumber;
|
|
|
7545 |
}
|
|
|
7546 |
|
|
|
7547 |
public void unsetItemNumber() {
|
|
|
7548 |
this.itemNumber = null;
|
|
|
7549 |
}
|
|
|
7550 |
|
|
|
7551 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
7552 |
public boolean isSetItemNumber() {
|
|
|
7553 |
return this.itemNumber != null;
|
|
|
7554 |
}
|
|
|
7555 |
|
|
|
7556 |
public void setItemNumberIsSet(boolean value) {
|
|
|
7557 |
if (!value) {
|
|
|
7558 |
this.itemNumber = null;
|
|
|
7559 |
}
|
|
|
7560 |
}
|
|
|
7561 |
|
|
|
7562 |
public long getItemId() {
|
|
|
7563 |
return this.itemId;
|
|
|
7564 |
}
|
|
|
7565 |
|
|
|
7566 |
public void setItemId(long itemId) {
|
|
|
7567 |
this.itemId = itemId;
|
|
|
7568 |
setItemIdIsSet(true);
|
|
|
7569 |
}
|
|
|
7570 |
|
|
|
7571 |
public void unsetItemId() {
|
|
|
7572 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
7573 |
}
|
|
|
7574 |
|
|
|
7575 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
7576 |
public boolean isSetItemId() {
|
|
|
7577 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
7578 |
}
|
|
|
7579 |
|
|
|
7580 |
public void setItemIdIsSet(boolean value) {
|
|
|
7581 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
7582 |
}
|
|
|
7583 |
|
|
|
7584 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7585 |
switch (field) {
|
|
|
7586 |
case ITEM_NUMBER:
|
|
|
7587 |
if (value == null) {
|
|
|
7588 |
unsetItemNumber();
|
|
|
7589 |
} else {
|
|
|
7590 |
setItemNumber((String)value);
|
|
|
7591 |
}
|
|
|
7592 |
break;
|
|
|
7593 |
|
|
|
7594 |
case ITEM_ID:
|
|
|
7595 |
if (value == null) {
|
|
|
7596 |
unsetItemId();
|
|
|
7597 |
} else {
|
|
|
7598 |
setItemId((Long)value);
|
|
|
7599 |
}
|
|
|
7600 |
break;
|
|
|
7601 |
|
|
|
7602 |
}
|
|
|
7603 |
}
|
|
|
7604 |
|
|
|
7605 |
public Object getFieldValue(_Fields field) {
|
|
|
7606 |
switch (field) {
|
|
|
7607 |
case ITEM_NUMBER:
|
|
|
7608 |
return getItemNumber();
|
|
|
7609 |
|
|
|
7610 |
case ITEM_ID:
|
|
|
7611 |
return Long.valueOf(getItemId());
|
|
|
7612 |
|
|
|
7613 |
}
|
|
|
7614 |
throw new IllegalStateException();
|
|
|
7615 |
}
|
|
|
7616 |
|
|
|
7617 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7618 |
public boolean isSet(_Fields field) {
|
|
|
7619 |
if (field == null) {
|
|
|
7620 |
throw new IllegalArgumentException();
|
|
|
7621 |
}
|
|
|
7622 |
|
|
|
7623 |
switch (field) {
|
|
|
7624 |
case ITEM_NUMBER:
|
|
|
7625 |
return isSetItemNumber();
|
|
|
7626 |
case ITEM_ID:
|
|
|
7627 |
return isSetItemId();
|
|
|
7628 |
}
|
|
|
7629 |
throw new IllegalStateException();
|
|
|
7630 |
}
|
|
|
7631 |
|
|
|
7632 |
@Override
|
|
|
7633 |
public boolean equals(Object that) {
|
|
|
7634 |
if (that == null)
|
|
|
7635 |
return false;
|
|
|
7636 |
if (that instanceof createItemNumberMapping_args)
|
|
|
7637 |
return this.equals((createItemNumberMapping_args)that);
|
|
|
7638 |
return false;
|
|
|
7639 |
}
|
|
|
7640 |
|
|
|
7641 |
public boolean equals(createItemNumberMapping_args that) {
|
|
|
7642 |
if (that == null)
|
|
|
7643 |
return false;
|
|
|
7644 |
|
|
|
7645 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
7646 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
7647 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
7648 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
7649 |
return false;
|
|
|
7650 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
7651 |
return false;
|
|
|
7652 |
}
|
|
|
7653 |
|
|
|
7654 |
boolean this_present_itemId = true;
|
|
|
7655 |
boolean that_present_itemId = true;
|
|
|
7656 |
if (this_present_itemId || that_present_itemId) {
|
|
|
7657 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
7658 |
return false;
|
|
|
7659 |
if (this.itemId != that.itemId)
|
|
|
7660 |
return false;
|
|
|
7661 |
}
|
|
|
7662 |
|
|
|
7663 |
return true;
|
|
|
7664 |
}
|
|
|
7665 |
|
|
|
7666 |
@Override
|
|
|
7667 |
public int hashCode() {
|
|
|
7668 |
return 0;
|
|
|
7669 |
}
|
|
|
7670 |
|
|
|
7671 |
public int compareTo(createItemNumberMapping_args other) {
|
|
|
7672 |
if (!getClass().equals(other.getClass())) {
|
|
|
7673 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7674 |
}
|
|
|
7675 |
|
|
|
7676 |
int lastComparison = 0;
|
|
|
7677 |
createItemNumberMapping_args typedOther = (createItemNumberMapping_args)other;
|
|
|
7678 |
|
|
|
7679 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
7680 |
if (lastComparison != 0) {
|
|
|
7681 |
return lastComparison;
|
|
|
7682 |
}
|
|
|
7683 |
if (isSetItemNumber()) {
|
|
|
7684 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
7685 |
if (lastComparison != 0) {
|
|
|
7686 |
return lastComparison;
|
|
|
7687 |
}
|
|
|
7688 |
}
|
|
|
7689 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
7690 |
if (lastComparison != 0) {
|
|
|
7691 |
return lastComparison;
|
|
|
7692 |
}
|
|
|
7693 |
if (isSetItemId()) {
|
|
|
7694 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
7695 |
if (lastComparison != 0) {
|
|
|
7696 |
return lastComparison;
|
|
|
7697 |
}
|
|
|
7698 |
}
|
|
|
7699 |
return 0;
|
|
|
7700 |
}
|
|
|
7701 |
|
|
|
7702 |
public _Fields fieldForId(int fieldId) {
|
|
|
7703 |
return _Fields.findByThriftId(fieldId);
|
|
|
7704 |
}
|
|
|
7705 |
|
|
|
7706 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7707 |
org.apache.thrift.protocol.TField field;
|
|
|
7708 |
iprot.readStructBegin();
|
|
|
7709 |
while (true)
|
|
|
7710 |
{
|
|
|
7711 |
field = iprot.readFieldBegin();
|
|
|
7712 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7713 |
break;
|
|
|
7714 |
}
|
|
|
7715 |
switch (field.id) {
|
|
|
7716 |
case 1: // ITEM_NUMBER
|
|
|
7717 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7718 |
this.itemNumber = iprot.readString();
|
|
|
7719 |
} else {
|
|
|
7720 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7721 |
}
|
|
|
7722 |
break;
|
|
|
7723 |
case 2: // ITEM_ID
|
|
|
7724 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
7725 |
this.itemId = iprot.readI64();
|
|
|
7726 |
setItemIdIsSet(true);
|
|
|
7727 |
} else {
|
|
|
7728 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7729 |
}
|
|
|
7730 |
break;
|
|
|
7731 |
default:
|
|
|
7732 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7733 |
}
|
|
|
7734 |
iprot.readFieldEnd();
|
|
|
7735 |
}
|
|
|
7736 |
iprot.readStructEnd();
|
|
|
7737 |
validate();
|
|
|
7738 |
}
|
|
|
7739 |
|
|
|
7740 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7741 |
validate();
|
|
|
7742 |
|
|
|
7743 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7744 |
if (this.itemNumber != null) {
|
|
|
7745 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
7746 |
oprot.writeString(this.itemNumber);
|
|
|
7747 |
oprot.writeFieldEnd();
|
|
|
7748 |
}
|
|
|
7749 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
7750 |
oprot.writeI64(this.itemId);
|
|
|
7751 |
oprot.writeFieldEnd();
|
|
|
7752 |
oprot.writeFieldStop();
|
|
|
7753 |
oprot.writeStructEnd();
|
|
|
7754 |
}
|
|
|
7755 |
|
|
|
7756 |
@Override
|
|
|
7757 |
public String toString() {
|
|
|
7758 |
StringBuilder sb = new StringBuilder("createItemNumberMapping_args(");
|
|
|
7759 |
boolean first = true;
|
|
|
7760 |
|
|
|
7761 |
sb.append("itemNumber:");
|
|
|
7762 |
if (this.itemNumber == null) {
|
|
|
7763 |
sb.append("null");
|
|
|
7764 |
} else {
|
|
|
7765 |
sb.append(this.itemNumber);
|
|
|
7766 |
}
|
|
|
7767 |
first = false;
|
|
|
7768 |
if (!first) sb.append(", ");
|
|
|
7769 |
sb.append("itemId:");
|
|
|
7770 |
sb.append(this.itemId);
|
|
|
7771 |
first = false;
|
|
|
7772 |
sb.append(")");
|
|
|
7773 |
return sb.toString();
|
|
|
7774 |
}
|
|
|
7775 |
|
|
|
7776 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7777 |
// check for required fields
|
|
|
7778 |
}
|
|
|
7779 |
|
|
|
7780 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7781 |
try {
|
|
|
7782 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7783 |
} catch (org.apache.thrift.TException te) {
|
|
|
7784 |
throw new java.io.IOException(te);
|
|
|
7785 |
}
|
|
|
7786 |
}
|
|
|
7787 |
|
|
|
7788 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7789 |
try {
|
|
|
7790 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
7791 |
__isset_bit_vector = new BitSet(1);
|
|
|
7792 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7793 |
} catch (org.apache.thrift.TException te) {
|
|
|
7794 |
throw new java.io.IOException(te);
|
|
|
7795 |
}
|
|
|
7796 |
}
|
|
|
7797 |
|
|
|
7798 |
}
|
|
|
7799 |
|
|
|
7800 |
public static class createItemNumberMapping_result implements org.apache.thrift.TBase<createItemNumberMapping_result, createItemNumberMapping_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7801 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_result");
|
|
|
7802 |
|
|
|
7803 |
|
|
|
7804 |
|
|
|
7805 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7806 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7807 |
;
|
|
|
7808 |
|
|
|
7809 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7810 |
|
|
|
7811 |
static {
|
|
|
7812 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7813 |
byName.put(field.getFieldName(), field);
|
|
|
7814 |
}
|
|
|
7815 |
}
|
|
|
7816 |
|
|
|
7817 |
/**
|
|
|
7818 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7819 |
*/
|
|
|
7820 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7821 |
switch(fieldId) {
|
|
|
7822 |
default:
|
|
|
7823 |
return null;
|
|
|
7824 |
}
|
|
|
7825 |
}
|
|
|
7826 |
|
|
|
7827 |
/**
|
|
|
7828 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7829 |
* if it is not found.
|
|
|
7830 |
*/
|
|
|
7831 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7832 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7833 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7834 |
return fields;
|
|
|
7835 |
}
|
|
|
7836 |
|
|
|
7837 |
/**
|
|
|
7838 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7839 |
*/
|
|
|
7840 |
public static _Fields findByName(String name) {
|
|
|
7841 |
return byName.get(name);
|
|
|
7842 |
}
|
|
|
7843 |
|
|
|
7844 |
private final short _thriftId;
|
|
|
7845 |
private final String _fieldName;
|
|
|
7846 |
|
|
|
7847 |
_Fields(short thriftId, String fieldName) {
|
|
|
7848 |
_thriftId = thriftId;
|
|
|
7849 |
_fieldName = fieldName;
|
|
|
7850 |
}
|
|
|
7851 |
|
|
|
7852 |
public short getThriftFieldId() {
|
|
|
7853 |
return _thriftId;
|
|
|
7854 |
}
|
|
|
7855 |
|
|
|
7856 |
public String getFieldName() {
|
|
|
7857 |
return _fieldName;
|
|
|
7858 |
}
|
|
|
7859 |
}
|
|
|
7860 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7861 |
static {
|
|
|
7862 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7863 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7864 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_result.class, metaDataMap);
|
|
|
7865 |
}
|
|
|
7866 |
|
|
|
7867 |
public createItemNumberMapping_result() {
|
|
|
7868 |
}
|
|
|
7869 |
|
|
|
7870 |
/**
|
|
|
7871 |
* Performs a deep copy on <i>other</i>.
|
|
|
7872 |
*/
|
|
|
7873 |
public createItemNumberMapping_result(createItemNumberMapping_result other) {
|
|
|
7874 |
}
|
|
|
7875 |
|
|
|
7876 |
public createItemNumberMapping_result deepCopy() {
|
|
|
7877 |
return new createItemNumberMapping_result(this);
|
|
|
7878 |
}
|
|
|
7879 |
|
|
|
7880 |
@Override
|
|
|
7881 |
public void clear() {
|
|
|
7882 |
}
|
|
|
7883 |
|
|
|
7884 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7885 |
switch (field) {
|
|
|
7886 |
}
|
|
|
7887 |
}
|
|
|
7888 |
|
|
|
7889 |
public Object getFieldValue(_Fields field) {
|
|
|
7890 |
switch (field) {
|
|
|
7891 |
}
|
|
|
7892 |
throw new IllegalStateException();
|
|
|
7893 |
}
|
|
|
7894 |
|
|
|
7895 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7896 |
public boolean isSet(_Fields field) {
|
|
|
7897 |
if (field == null) {
|
|
|
7898 |
throw new IllegalArgumentException();
|
|
|
7899 |
}
|
|
|
7900 |
|
|
|
7901 |
switch (field) {
|
|
|
7902 |
}
|
|
|
7903 |
throw new IllegalStateException();
|
|
|
7904 |
}
|
|
|
7905 |
|
|
|
7906 |
@Override
|
|
|
7907 |
public boolean equals(Object that) {
|
|
|
7908 |
if (that == null)
|
|
|
7909 |
return false;
|
|
|
7910 |
if (that instanceof createItemNumberMapping_result)
|
|
|
7911 |
return this.equals((createItemNumberMapping_result)that);
|
|
|
7912 |
return false;
|
|
|
7913 |
}
|
|
|
7914 |
|
|
|
7915 |
public boolean equals(createItemNumberMapping_result that) {
|
|
|
7916 |
if (that == null)
|
|
|
7917 |
return false;
|
|
|
7918 |
|
|
|
7919 |
return true;
|
|
|
7920 |
}
|
|
|
7921 |
|
|
|
7922 |
@Override
|
|
|
7923 |
public int hashCode() {
|
|
|
7924 |
return 0;
|
|
|
7925 |
}
|
|
|
7926 |
|
|
|
7927 |
public int compareTo(createItemNumberMapping_result other) {
|
|
|
7928 |
if (!getClass().equals(other.getClass())) {
|
|
|
7929 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7930 |
}
|
|
|
7931 |
|
|
|
7932 |
int lastComparison = 0;
|
|
|
7933 |
createItemNumberMapping_result typedOther = (createItemNumberMapping_result)other;
|
|
|
7934 |
|
|
|
7935 |
return 0;
|
|
|
7936 |
}
|
|
|
7937 |
|
|
|
7938 |
public _Fields fieldForId(int fieldId) {
|
|
|
7939 |
return _Fields.findByThriftId(fieldId);
|
|
|
7940 |
}
|
|
|
7941 |
|
|
|
7942 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7943 |
org.apache.thrift.protocol.TField field;
|
|
|
7944 |
iprot.readStructBegin();
|
|
|
7945 |
while (true)
|
|
|
7946 |
{
|
|
|
7947 |
field = iprot.readFieldBegin();
|
|
|
7948 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7949 |
break;
|
|
|
7950 |
}
|
|
|
7951 |
switch (field.id) {
|
|
|
7952 |
default:
|
|
|
7953 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7954 |
}
|
|
|
7955 |
iprot.readFieldEnd();
|
|
|
7956 |
}
|
|
|
7957 |
iprot.readStructEnd();
|
|
|
7958 |
validate();
|
|
|
7959 |
}
|
|
|
7960 |
|
|
|
7961 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7962 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7963 |
|
|
|
7964 |
oprot.writeFieldStop();
|
|
|
7965 |
oprot.writeStructEnd();
|
|
|
7966 |
}
|
|
|
7967 |
|
|
|
7968 |
@Override
|
|
|
7969 |
public String toString() {
|
|
|
7970 |
StringBuilder sb = new StringBuilder("createItemNumberMapping_result(");
|
|
|
7971 |
boolean first = true;
|
|
|
7972 |
|
|
|
7973 |
sb.append(")");
|
|
|
7974 |
return sb.toString();
|
|
|
7975 |
}
|
|
|
7976 |
|
|
|
7977 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7978 |
// check for required fields
|
|
|
7979 |
}
|
|
|
7980 |
|
|
|
7981 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7982 |
try {
|
|
|
7983 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7984 |
} catch (org.apache.thrift.TException te) {
|
|
|
7985 |
throw new java.io.IOException(te);
|
|
|
7986 |
}
|
|
|
7987 |
}
|
|
|
7988 |
|
|
|
7989 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7990 |
try {
|
|
|
7991 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7992 |
} catch (org.apache.thrift.TException te) {
|
|
|
7993 |
throw new java.io.IOException(te);
|
|
|
7994 |
}
|
|
|
7995 |
}
|
|
|
7996 |
|
|
|
7997 |
}
|
|
|
7998 |
|
| 4622 |
amit.gupta |
7999 |
public static class getItemNumbers_args implements org.apache.thrift.TBase<getItemNumbers_args, getItemNumbers_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
8000 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_args");
|
|
|
8001 |
|
|
|
8002 |
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);
|
|
|
8003 |
|
|
|
8004 |
private long itemId; // required
|
|
|
8005 |
|
|
|
8006 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8007 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8008 |
ITEM_ID((short)1, "itemId");
|
|
|
8009 |
|
|
|
8010 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8011 |
|
|
|
8012 |
static {
|
|
|
8013 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8014 |
byName.put(field.getFieldName(), field);
|
|
|
8015 |
}
|
|
|
8016 |
}
|
|
|
8017 |
|
|
|
8018 |
/**
|
|
|
8019 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8020 |
*/
|
|
|
8021 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8022 |
switch(fieldId) {
|
|
|
8023 |
case 1: // ITEM_ID
|
|
|
8024 |
return ITEM_ID;
|
|
|
8025 |
default:
|
|
|
8026 |
return null;
|
|
|
8027 |
}
|
|
|
8028 |
}
|
|
|
8029 |
|
|
|
8030 |
/**
|
|
|
8031 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8032 |
* if it is not found.
|
|
|
8033 |
*/
|
|
|
8034 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8035 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8036 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8037 |
return fields;
|
|
|
8038 |
}
|
|
|
8039 |
|
|
|
8040 |
/**
|
|
|
8041 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8042 |
*/
|
|
|
8043 |
public static _Fields findByName(String name) {
|
|
|
8044 |
return byName.get(name);
|
|
|
8045 |
}
|
|
|
8046 |
|
|
|
8047 |
private final short _thriftId;
|
|
|
8048 |
private final String _fieldName;
|
|
|
8049 |
|
|
|
8050 |
_Fields(short thriftId, String fieldName) {
|
|
|
8051 |
_thriftId = thriftId;
|
|
|
8052 |
_fieldName = fieldName;
|
|
|
8053 |
}
|
|
|
8054 |
|
|
|
8055 |
public short getThriftFieldId() {
|
|
|
8056 |
return _thriftId;
|
|
|
8057 |
}
|
|
|
8058 |
|
|
|
8059 |
public String getFieldName() {
|
|
|
8060 |
return _fieldName;
|
|
|
8061 |
}
|
|
|
8062 |
}
|
|
|
8063 |
|
|
|
8064 |
// isset id assignments
|
|
|
8065 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
8066 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
8067 |
|
|
|
8068 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8069 |
static {
|
|
|
8070 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8071 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8072 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
8073 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8074 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_args.class, metaDataMap);
|
|
|
8075 |
}
|
|
|
8076 |
|
|
|
8077 |
public getItemNumbers_args() {
|
|
|
8078 |
}
|
|
|
8079 |
|
|
|
8080 |
public getItemNumbers_args(
|
|
|
8081 |
long itemId)
|
|
|
8082 |
{
|
|
|
8083 |
this();
|
|
|
8084 |
this.itemId = itemId;
|
|
|
8085 |
setItemIdIsSet(true);
|
|
|
8086 |
}
|
|
|
8087 |
|
|
|
8088 |
/**
|
|
|
8089 |
* Performs a deep copy on <i>other</i>.
|
|
|
8090 |
*/
|
|
|
8091 |
public getItemNumbers_args(getItemNumbers_args other) {
|
|
|
8092 |
__isset_bit_vector.clear();
|
|
|
8093 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
8094 |
this.itemId = other.itemId;
|
|
|
8095 |
}
|
|
|
8096 |
|
|
|
8097 |
public getItemNumbers_args deepCopy() {
|
|
|
8098 |
return new getItemNumbers_args(this);
|
|
|
8099 |
}
|
|
|
8100 |
|
|
|
8101 |
@Override
|
|
|
8102 |
public void clear() {
|
|
|
8103 |
setItemIdIsSet(false);
|
|
|
8104 |
this.itemId = 0;
|
|
|
8105 |
}
|
|
|
8106 |
|
|
|
8107 |
public long getItemId() {
|
|
|
8108 |
return this.itemId;
|
|
|
8109 |
}
|
|
|
8110 |
|
|
|
8111 |
public void setItemId(long itemId) {
|
|
|
8112 |
this.itemId = itemId;
|
|
|
8113 |
setItemIdIsSet(true);
|
|
|
8114 |
}
|
|
|
8115 |
|
|
|
8116 |
public void unsetItemId() {
|
|
|
8117 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
8118 |
}
|
|
|
8119 |
|
|
|
8120 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
8121 |
public boolean isSetItemId() {
|
|
|
8122 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
8123 |
}
|
|
|
8124 |
|
|
|
8125 |
public void setItemIdIsSet(boolean value) {
|
|
|
8126 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
8127 |
}
|
|
|
8128 |
|
|
|
8129 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8130 |
switch (field) {
|
|
|
8131 |
case ITEM_ID:
|
|
|
8132 |
if (value == null) {
|
|
|
8133 |
unsetItemId();
|
|
|
8134 |
} else {
|
|
|
8135 |
setItemId((Long)value);
|
|
|
8136 |
}
|
|
|
8137 |
break;
|
|
|
8138 |
|
|
|
8139 |
}
|
|
|
8140 |
}
|
|
|
8141 |
|
|
|
8142 |
public Object getFieldValue(_Fields field) {
|
|
|
8143 |
switch (field) {
|
|
|
8144 |
case ITEM_ID:
|
|
|
8145 |
return Long.valueOf(getItemId());
|
|
|
8146 |
|
|
|
8147 |
}
|
|
|
8148 |
throw new IllegalStateException();
|
|
|
8149 |
}
|
|
|
8150 |
|
|
|
8151 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8152 |
public boolean isSet(_Fields field) {
|
|
|
8153 |
if (field == null) {
|
|
|
8154 |
throw new IllegalArgumentException();
|
|
|
8155 |
}
|
|
|
8156 |
|
|
|
8157 |
switch (field) {
|
|
|
8158 |
case ITEM_ID:
|
|
|
8159 |
return isSetItemId();
|
|
|
8160 |
}
|
|
|
8161 |
throw new IllegalStateException();
|
|
|
8162 |
}
|
|
|
8163 |
|
|
|
8164 |
@Override
|
|
|
8165 |
public boolean equals(Object that) {
|
|
|
8166 |
if (that == null)
|
|
|
8167 |
return false;
|
|
|
8168 |
if (that instanceof getItemNumbers_args)
|
|
|
8169 |
return this.equals((getItemNumbers_args)that);
|
|
|
8170 |
return false;
|
|
|
8171 |
}
|
|
|
8172 |
|
|
|
8173 |
public boolean equals(getItemNumbers_args that) {
|
|
|
8174 |
if (that == null)
|
|
|
8175 |
return false;
|
|
|
8176 |
|
|
|
8177 |
boolean this_present_itemId = true;
|
|
|
8178 |
boolean that_present_itemId = true;
|
|
|
8179 |
if (this_present_itemId || that_present_itemId) {
|
|
|
8180 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
8181 |
return false;
|
|
|
8182 |
if (this.itemId != that.itemId)
|
|
|
8183 |
return false;
|
|
|
8184 |
}
|
|
|
8185 |
|
|
|
8186 |
return true;
|
|
|
8187 |
}
|
|
|
8188 |
|
|
|
8189 |
@Override
|
|
|
8190 |
public int hashCode() {
|
|
|
8191 |
return 0;
|
|
|
8192 |
}
|
|
|
8193 |
|
|
|
8194 |
public int compareTo(getItemNumbers_args other) {
|
|
|
8195 |
if (!getClass().equals(other.getClass())) {
|
|
|
8196 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8197 |
}
|
|
|
8198 |
|
|
|
8199 |
int lastComparison = 0;
|
|
|
8200 |
getItemNumbers_args typedOther = (getItemNumbers_args)other;
|
|
|
8201 |
|
|
|
8202 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
8203 |
if (lastComparison != 0) {
|
|
|
8204 |
return lastComparison;
|
|
|
8205 |
}
|
|
|
8206 |
if (isSetItemId()) {
|
|
|
8207 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
8208 |
if (lastComparison != 0) {
|
|
|
8209 |
return lastComparison;
|
|
|
8210 |
}
|
|
|
8211 |
}
|
|
|
8212 |
return 0;
|
|
|
8213 |
}
|
|
|
8214 |
|
|
|
8215 |
public _Fields fieldForId(int fieldId) {
|
|
|
8216 |
return _Fields.findByThriftId(fieldId);
|
|
|
8217 |
}
|
|
|
8218 |
|
|
|
8219 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8220 |
org.apache.thrift.protocol.TField field;
|
|
|
8221 |
iprot.readStructBegin();
|
|
|
8222 |
while (true)
|
|
|
8223 |
{
|
|
|
8224 |
field = iprot.readFieldBegin();
|
|
|
8225 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8226 |
break;
|
|
|
8227 |
}
|
|
|
8228 |
switch (field.id) {
|
|
|
8229 |
case 1: // ITEM_ID
|
|
|
8230 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
8231 |
this.itemId = iprot.readI64();
|
|
|
8232 |
setItemIdIsSet(true);
|
|
|
8233 |
} else {
|
|
|
8234 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8235 |
}
|
|
|
8236 |
break;
|
|
|
8237 |
default:
|
|
|
8238 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8239 |
}
|
|
|
8240 |
iprot.readFieldEnd();
|
|
|
8241 |
}
|
|
|
8242 |
iprot.readStructEnd();
|
|
|
8243 |
validate();
|
|
|
8244 |
}
|
|
|
8245 |
|
|
|
8246 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8247 |
validate();
|
|
|
8248 |
|
|
|
8249 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8250 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
8251 |
oprot.writeI64(this.itemId);
|
|
|
8252 |
oprot.writeFieldEnd();
|
|
|
8253 |
oprot.writeFieldStop();
|
|
|
8254 |
oprot.writeStructEnd();
|
|
|
8255 |
}
|
|
|
8256 |
|
|
|
8257 |
@Override
|
|
|
8258 |
public String toString() {
|
|
|
8259 |
StringBuilder sb = new StringBuilder("getItemNumbers_args(");
|
|
|
8260 |
boolean first = true;
|
|
|
8261 |
|
|
|
8262 |
sb.append("itemId:");
|
|
|
8263 |
sb.append(this.itemId);
|
|
|
8264 |
first = false;
|
|
|
8265 |
sb.append(")");
|
|
|
8266 |
return sb.toString();
|
|
|
8267 |
}
|
|
|
8268 |
|
|
|
8269 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8270 |
// check for required fields
|
|
|
8271 |
}
|
|
|
8272 |
|
|
|
8273 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8274 |
try {
|
|
|
8275 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8276 |
} catch (org.apache.thrift.TException te) {
|
|
|
8277 |
throw new java.io.IOException(te);
|
|
|
8278 |
}
|
|
|
8279 |
}
|
|
|
8280 |
|
|
|
8281 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8282 |
try {
|
|
|
8283 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
8284 |
__isset_bit_vector = new BitSet(1);
|
|
|
8285 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8286 |
} catch (org.apache.thrift.TException te) {
|
|
|
8287 |
throw new java.io.IOException(te);
|
|
|
8288 |
}
|
|
|
8289 |
}
|
|
|
8290 |
|
|
|
8291 |
}
|
|
|
8292 |
|
|
|
8293 |
public static class getItemNumbers_result implements org.apache.thrift.TBase<getItemNumbers_result, getItemNumbers_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8294 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_result");
|
|
|
8295 |
|
|
|
8296 |
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);
|
|
|
8297 |
|
|
|
8298 |
private List<String> success; // required
|
|
|
8299 |
|
|
|
8300 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8301 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8302 |
SUCCESS((short)0, "success");
|
|
|
8303 |
|
|
|
8304 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8305 |
|
|
|
8306 |
static {
|
|
|
8307 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8308 |
byName.put(field.getFieldName(), field);
|
|
|
8309 |
}
|
|
|
8310 |
}
|
|
|
8311 |
|
|
|
8312 |
/**
|
|
|
8313 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8314 |
*/
|
|
|
8315 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8316 |
switch(fieldId) {
|
|
|
8317 |
case 0: // SUCCESS
|
|
|
8318 |
return SUCCESS;
|
|
|
8319 |
default:
|
|
|
8320 |
return null;
|
|
|
8321 |
}
|
|
|
8322 |
}
|
|
|
8323 |
|
|
|
8324 |
/**
|
|
|
8325 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8326 |
* if it is not found.
|
|
|
8327 |
*/
|
|
|
8328 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8329 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8330 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8331 |
return fields;
|
|
|
8332 |
}
|
|
|
8333 |
|
|
|
8334 |
/**
|
|
|
8335 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8336 |
*/
|
|
|
8337 |
public static _Fields findByName(String name) {
|
|
|
8338 |
return byName.get(name);
|
|
|
8339 |
}
|
|
|
8340 |
|
|
|
8341 |
private final short _thriftId;
|
|
|
8342 |
private final String _fieldName;
|
|
|
8343 |
|
|
|
8344 |
_Fields(short thriftId, String fieldName) {
|
|
|
8345 |
_thriftId = thriftId;
|
|
|
8346 |
_fieldName = fieldName;
|
|
|
8347 |
}
|
|
|
8348 |
|
|
|
8349 |
public short getThriftFieldId() {
|
|
|
8350 |
return _thriftId;
|
|
|
8351 |
}
|
|
|
8352 |
|
|
|
8353 |
public String getFieldName() {
|
|
|
8354 |
return _fieldName;
|
|
|
8355 |
}
|
|
|
8356 |
}
|
|
|
8357 |
|
|
|
8358 |
// isset id assignments
|
|
|
8359 |
|
|
|
8360 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8361 |
static {
|
|
|
8362 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8363 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8364 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
8365 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
|
|
|
8366 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8367 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_result.class, metaDataMap);
|
|
|
8368 |
}
|
|
|
8369 |
|
|
|
8370 |
public getItemNumbers_result() {
|
|
|
8371 |
}
|
|
|
8372 |
|
|
|
8373 |
public getItemNumbers_result(
|
|
|
8374 |
List<String> success)
|
|
|
8375 |
{
|
|
|
8376 |
this();
|
|
|
8377 |
this.success = success;
|
|
|
8378 |
}
|
|
|
8379 |
|
|
|
8380 |
/**
|
|
|
8381 |
* Performs a deep copy on <i>other</i>.
|
|
|
8382 |
*/
|
|
|
8383 |
public getItemNumbers_result(getItemNumbers_result other) {
|
|
|
8384 |
if (other.isSetSuccess()) {
|
|
|
8385 |
List<String> __this__success = new ArrayList<String>();
|
|
|
8386 |
for (String other_element : other.success) {
|
|
|
8387 |
__this__success.add(other_element);
|
|
|
8388 |
}
|
|
|
8389 |
this.success = __this__success;
|
|
|
8390 |
}
|
|
|
8391 |
}
|
|
|
8392 |
|
|
|
8393 |
public getItemNumbers_result deepCopy() {
|
|
|
8394 |
return new getItemNumbers_result(this);
|
|
|
8395 |
}
|
|
|
8396 |
|
|
|
8397 |
@Override
|
|
|
8398 |
public void clear() {
|
|
|
8399 |
this.success = null;
|
|
|
8400 |
}
|
|
|
8401 |
|
|
|
8402 |
public int getSuccessSize() {
|
|
|
8403 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
8404 |
}
|
|
|
8405 |
|
|
|
8406 |
public java.util.Iterator<String> getSuccessIterator() {
|
|
|
8407 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
8408 |
}
|
|
|
8409 |
|
|
|
8410 |
public void addToSuccess(String elem) {
|
|
|
8411 |
if (this.success == null) {
|
|
|
8412 |
this.success = new ArrayList<String>();
|
|
|
8413 |
}
|
|
|
8414 |
this.success.add(elem);
|
|
|
8415 |
}
|
|
|
8416 |
|
|
|
8417 |
public List<String> getSuccess() {
|
|
|
8418 |
return this.success;
|
|
|
8419 |
}
|
|
|
8420 |
|
|
|
8421 |
public void setSuccess(List<String> success) {
|
|
|
8422 |
this.success = success;
|
|
|
8423 |
}
|
|
|
8424 |
|
|
|
8425 |
public void unsetSuccess() {
|
|
|
8426 |
this.success = null;
|
|
|
8427 |
}
|
|
|
8428 |
|
|
|
8429 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
8430 |
public boolean isSetSuccess() {
|
|
|
8431 |
return this.success != null;
|
|
|
8432 |
}
|
|
|
8433 |
|
|
|
8434 |
public void setSuccessIsSet(boolean value) {
|
|
|
8435 |
if (!value) {
|
|
|
8436 |
this.success = null;
|
|
|
8437 |
}
|
|
|
8438 |
}
|
|
|
8439 |
|
|
|
8440 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8441 |
switch (field) {
|
|
|
8442 |
case SUCCESS:
|
|
|
8443 |
if (value == null) {
|
|
|
8444 |
unsetSuccess();
|
|
|
8445 |
} else {
|
|
|
8446 |
setSuccess((List<String>)value);
|
|
|
8447 |
}
|
|
|
8448 |
break;
|
|
|
8449 |
|
|
|
8450 |
}
|
|
|
8451 |
}
|
|
|
8452 |
|
|
|
8453 |
public Object getFieldValue(_Fields field) {
|
|
|
8454 |
switch (field) {
|
|
|
8455 |
case SUCCESS:
|
|
|
8456 |
return getSuccess();
|
|
|
8457 |
|
|
|
8458 |
}
|
|
|
8459 |
throw new IllegalStateException();
|
|
|
8460 |
}
|
|
|
8461 |
|
|
|
8462 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8463 |
public boolean isSet(_Fields field) {
|
|
|
8464 |
if (field == null) {
|
|
|
8465 |
throw new IllegalArgumentException();
|
|
|
8466 |
}
|
|
|
8467 |
|
|
|
8468 |
switch (field) {
|
|
|
8469 |
case SUCCESS:
|
|
|
8470 |
return isSetSuccess();
|
|
|
8471 |
}
|
|
|
8472 |
throw new IllegalStateException();
|
|
|
8473 |
}
|
|
|
8474 |
|
|
|
8475 |
@Override
|
|
|
8476 |
public boolean equals(Object that) {
|
|
|
8477 |
if (that == null)
|
|
|
8478 |
return false;
|
|
|
8479 |
if (that instanceof getItemNumbers_result)
|
|
|
8480 |
return this.equals((getItemNumbers_result)that);
|
|
|
8481 |
return false;
|
|
|
8482 |
}
|
|
|
8483 |
|
|
|
8484 |
public boolean equals(getItemNumbers_result that) {
|
|
|
8485 |
if (that == null)
|
|
|
8486 |
return false;
|
|
|
8487 |
|
|
|
8488 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
8489 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
8490 |
if (this_present_success || that_present_success) {
|
|
|
8491 |
if (!(this_present_success && that_present_success))
|
|
|
8492 |
return false;
|
|
|
8493 |
if (!this.success.equals(that.success))
|
|
|
8494 |
return false;
|
|
|
8495 |
}
|
|
|
8496 |
|
|
|
8497 |
return true;
|
|
|
8498 |
}
|
|
|
8499 |
|
|
|
8500 |
@Override
|
|
|
8501 |
public int hashCode() {
|
|
|
8502 |
return 0;
|
|
|
8503 |
}
|
|
|
8504 |
|
|
|
8505 |
public int compareTo(getItemNumbers_result other) {
|
|
|
8506 |
if (!getClass().equals(other.getClass())) {
|
|
|
8507 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8508 |
}
|
|
|
8509 |
|
|
|
8510 |
int lastComparison = 0;
|
|
|
8511 |
getItemNumbers_result typedOther = (getItemNumbers_result)other;
|
|
|
8512 |
|
|
|
8513 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
8514 |
if (lastComparison != 0) {
|
|
|
8515 |
return lastComparison;
|
|
|
8516 |
}
|
|
|
8517 |
if (isSetSuccess()) {
|
|
|
8518 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
8519 |
if (lastComparison != 0) {
|
|
|
8520 |
return lastComparison;
|
|
|
8521 |
}
|
|
|
8522 |
}
|
|
|
8523 |
return 0;
|
|
|
8524 |
}
|
|
|
8525 |
|
|
|
8526 |
public _Fields fieldForId(int fieldId) {
|
|
|
8527 |
return _Fields.findByThriftId(fieldId);
|
|
|
8528 |
}
|
|
|
8529 |
|
|
|
8530 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8531 |
org.apache.thrift.protocol.TField field;
|
|
|
8532 |
iprot.readStructBegin();
|
|
|
8533 |
while (true)
|
|
|
8534 |
{
|
|
|
8535 |
field = iprot.readFieldBegin();
|
|
|
8536 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8537 |
break;
|
|
|
8538 |
}
|
|
|
8539 |
switch (field.id) {
|
|
|
8540 |
case 0: // SUCCESS
|
|
|
8541 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
8542 |
{
|
| 5361 |
mandeep.dh |
8543 |
org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
|
|
|
8544 |
this.success = new ArrayList<String>(_list0.size);
|
|
|
8545 |
for (int _i1 = 0; _i1 < _list0.size; ++_i1)
|
| 4622 |
amit.gupta |
8546 |
{
|
| 5361 |
mandeep.dh |
8547 |
String _elem2; // required
|
|
|
8548 |
_elem2 = iprot.readString();
|
|
|
8549 |
this.success.add(_elem2);
|
| 4622 |
amit.gupta |
8550 |
}
|
|
|
8551 |
iprot.readListEnd();
|
|
|
8552 |
}
|
|
|
8553 |
} else {
|
|
|
8554 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8555 |
}
|
|
|
8556 |
break;
|
|
|
8557 |
default:
|
|
|
8558 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8559 |
}
|
|
|
8560 |
iprot.readFieldEnd();
|
|
|
8561 |
}
|
|
|
8562 |
iprot.readStructEnd();
|
|
|
8563 |
validate();
|
|
|
8564 |
}
|
|
|
8565 |
|
|
|
8566 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8567 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8568 |
|
|
|
8569 |
if (this.isSetSuccess()) {
|
|
|
8570 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
8571 |
{
|
|
|
8572 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
|
| 5361 |
mandeep.dh |
8573 |
for (String _iter3 : this.success)
|
| 4622 |
amit.gupta |
8574 |
{
|
| 5361 |
mandeep.dh |
8575 |
oprot.writeString(_iter3);
|
| 4622 |
amit.gupta |
8576 |
}
|
|
|
8577 |
oprot.writeListEnd();
|
|
|
8578 |
}
|
|
|
8579 |
oprot.writeFieldEnd();
|
|
|
8580 |
}
|
|
|
8581 |
oprot.writeFieldStop();
|
|
|
8582 |
oprot.writeStructEnd();
|
|
|
8583 |
}
|
|
|
8584 |
|
|
|
8585 |
@Override
|
|
|
8586 |
public String toString() {
|
|
|
8587 |
StringBuilder sb = new StringBuilder("getItemNumbers_result(");
|
|
|
8588 |
boolean first = true;
|
|
|
8589 |
|
|
|
8590 |
sb.append("success:");
|
|
|
8591 |
if (this.success == null) {
|
|
|
8592 |
sb.append("null");
|
|
|
8593 |
} else {
|
|
|
8594 |
sb.append(this.success);
|
|
|
8595 |
}
|
|
|
8596 |
first = false;
|
|
|
8597 |
sb.append(")");
|
|
|
8598 |
return sb.toString();
|
|
|
8599 |
}
|
|
|
8600 |
|
|
|
8601 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8602 |
// check for required fields
|
|
|
8603 |
}
|
|
|
8604 |
|
|
|
8605 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8606 |
try {
|
|
|
8607 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8608 |
} catch (org.apache.thrift.TException te) {
|
|
|
8609 |
throw new java.io.IOException(te);
|
|
|
8610 |
}
|
|
|
8611 |
}
|
|
|
8612 |
|
|
|
8613 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8614 |
try {
|
|
|
8615 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8616 |
} catch (org.apache.thrift.TException te) {
|
|
|
8617 |
throw new java.io.IOException(te);
|
|
|
8618 |
}
|
|
|
8619 |
}
|
|
|
8620 |
|
|
|
8621 |
}
|
|
|
8622 |
|
| 5110 |
mandeep.dh |
8623 |
public static class getItemIds_args implements org.apache.thrift.TBase<getItemIds_args, getItemIds_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
8624 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_args");
|
|
|
8625 |
|
|
|
8626 |
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);
|
|
|
8627 |
|
|
|
8628 |
private String itemNumber; // required
|
|
|
8629 |
|
|
|
8630 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8631 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8632 |
ITEM_NUMBER((short)1, "itemNumber");
|
|
|
8633 |
|
|
|
8634 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8635 |
|
|
|
8636 |
static {
|
|
|
8637 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8638 |
byName.put(field.getFieldName(), field);
|
|
|
8639 |
}
|
|
|
8640 |
}
|
|
|
8641 |
|
|
|
8642 |
/**
|
|
|
8643 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8644 |
*/
|
|
|
8645 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8646 |
switch(fieldId) {
|
|
|
8647 |
case 1: // ITEM_NUMBER
|
|
|
8648 |
return ITEM_NUMBER;
|
|
|
8649 |
default:
|
|
|
8650 |
return null;
|
|
|
8651 |
}
|
|
|
8652 |
}
|
|
|
8653 |
|
|
|
8654 |
/**
|
|
|
8655 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8656 |
* if it is not found.
|
|
|
8657 |
*/
|
|
|
8658 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8659 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8660 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8661 |
return fields;
|
|
|
8662 |
}
|
|
|
8663 |
|
|
|
8664 |
/**
|
|
|
8665 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8666 |
*/
|
|
|
8667 |
public static _Fields findByName(String name) {
|
|
|
8668 |
return byName.get(name);
|
|
|
8669 |
}
|
|
|
8670 |
|
|
|
8671 |
private final short _thriftId;
|
|
|
8672 |
private final String _fieldName;
|
|
|
8673 |
|
|
|
8674 |
_Fields(short thriftId, String fieldName) {
|
|
|
8675 |
_thriftId = thriftId;
|
|
|
8676 |
_fieldName = fieldName;
|
|
|
8677 |
}
|
|
|
8678 |
|
|
|
8679 |
public short getThriftFieldId() {
|
|
|
8680 |
return _thriftId;
|
|
|
8681 |
}
|
|
|
8682 |
|
|
|
8683 |
public String getFieldName() {
|
|
|
8684 |
return _fieldName;
|
|
|
8685 |
}
|
|
|
8686 |
}
|
|
|
8687 |
|
|
|
8688 |
// isset id assignments
|
|
|
8689 |
|
|
|
8690 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8691 |
static {
|
|
|
8692 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8693 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8694 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
8695 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8696 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_args.class, metaDataMap);
|
|
|
8697 |
}
|
|
|
8698 |
|
|
|
8699 |
public getItemIds_args() {
|
|
|
8700 |
}
|
|
|
8701 |
|
|
|
8702 |
public getItemIds_args(
|
|
|
8703 |
String itemNumber)
|
|
|
8704 |
{
|
|
|
8705 |
this();
|
|
|
8706 |
this.itemNumber = itemNumber;
|
|
|
8707 |
}
|
|
|
8708 |
|
|
|
8709 |
/**
|
|
|
8710 |
* Performs a deep copy on <i>other</i>.
|
|
|
8711 |
*/
|
|
|
8712 |
public getItemIds_args(getItemIds_args other) {
|
|
|
8713 |
if (other.isSetItemNumber()) {
|
|
|
8714 |
this.itemNumber = other.itemNumber;
|
|
|
8715 |
}
|
|
|
8716 |
}
|
|
|
8717 |
|
|
|
8718 |
public getItemIds_args deepCopy() {
|
|
|
8719 |
return new getItemIds_args(this);
|
|
|
8720 |
}
|
|
|
8721 |
|
|
|
8722 |
@Override
|
|
|
8723 |
public void clear() {
|
|
|
8724 |
this.itemNumber = null;
|
|
|
8725 |
}
|
|
|
8726 |
|
|
|
8727 |
public String getItemNumber() {
|
|
|
8728 |
return this.itemNumber;
|
|
|
8729 |
}
|
|
|
8730 |
|
|
|
8731 |
public void setItemNumber(String itemNumber) {
|
|
|
8732 |
this.itemNumber = itemNumber;
|
|
|
8733 |
}
|
|
|
8734 |
|
|
|
8735 |
public void unsetItemNumber() {
|
|
|
8736 |
this.itemNumber = null;
|
|
|
8737 |
}
|
|
|
8738 |
|
|
|
8739 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
8740 |
public boolean isSetItemNumber() {
|
|
|
8741 |
return this.itemNumber != null;
|
|
|
8742 |
}
|
|
|
8743 |
|
|
|
8744 |
public void setItemNumberIsSet(boolean value) {
|
|
|
8745 |
if (!value) {
|
|
|
8746 |
this.itemNumber = null;
|
|
|
8747 |
}
|
|
|
8748 |
}
|
|
|
8749 |
|
|
|
8750 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8751 |
switch (field) {
|
|
|
8752 |
case ITEM_NUMBER:
|
|
|
8753 |
if (value == null) {
|
|
|
8754 |
unsetItemNumber();
|
|
|
8755 |
} else {
|
|
|
8756 |
setItemNumber((String)value);
|
|
|
8757 |
}
|
|
|
8758 |
break;
|
|
|
8759 |
|
|
|
8760 |
}
|
|
|
8761 |
}
|
|
|
8762 |
|
|
|
8763 |
public Object getFieldValue(_Fields field) {
|
|
|
8764 |
switch (field) {
|
|
|
8765 |
case ITEM_NUMBER:
|
|
|
8766 |
return getItemNumber();
|
|
|
8767 |
|
|
|
8768 |
}
|
|
|
8769 |
throw new IllegalStateException();
|
|
|
8770 |
}
|
|
|
8771 |
|
|
|
8772 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8773 |
public boolean isSet(_Fields field) {
|
|
|
8774 |
if (field == null) {
|
|
|
8775 |
throw new IllegalArgumentException();
|
|
|
8776 |
}
|
|
|
8777 |
|
|
|
8778 |
switch (field) {
|
|
|
8779 |
case ITEM_NUMBER:
|
|
|
8780 |
return isSetItemNumber();
|
|
|
8781 |
}
|
|
|
8782 |
throw new IllegalStateException();
|
|
|
8783 |
}
|
|
|
8784 |
|
|
|
8785 |
@Override
|
|
|
8786 |
public boolean equals(Object that) {
|
|
|
8787 |
if (that == null)
|
|
|
8788 |
return false;
|
|
|
8789 |
if (that instanceof getItemIds_args)
|
|
|
8790 |
return this.equals((getItemIds_args)that);
|
|
|
8791 |
return false;
|
|
|
8792 |
}
|
|
|
8793 |
|
|
|
8794 |
public boolean equals(getItemIds_args that) {
|
|
|
8795 |
if (that == null)
|
|
|
8796 |
return false;
|
|
|
8797 |
|
|
|
8798 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
8799 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
8800 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
8801 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
8802 |
return false;
|
|
|
8803 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
8804 |
return false;
|
|
|
8805 |
}
|
|
|
8806 |
|
|
|
8807 |
return true;
|
|
|
8808 |
}
|
|
|
8809 |
|
|
|
8810 |
@Override
|
|
|
8811 |
public int hashCode() {
|
|
|
8812 |
return 0;
|
|
|
8813 |
}
|
|
|
8814 |
|
|
|
8815 |
public int compareTo(getItemIds_args other) {
|
|
|
8816 |
if (!getClass().equals(other.getClass())) {
|
|
|
8817 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8818 |
}
|
|
|
8819 |
|
|
|
8820 |
int lastComparison = 0;
|
|
|
8821 |
getItemIds_args typedOther = (getItemIds_args)other;
|
|
|
8822 |
|
|
|
8823 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
8824 |
if (lastComparison != 0) {
|
|
|
8825 |
return lastComparison;
|
|
|
8826 |
}
|
|
|
8827 |
if (isSetItemNumber()) {
|
|
|
8828 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
8829 |
if (lastComparison != 0) {
|
|
|
8830 |
return lastComparison;
|
|
|
8831 |
}
|
|
|
8832 |
}
|
|
|
8833 |
return 0;
|
|
|
8834 |
}
|
|
|
8835 |
|
|
|
8836 |
public _Fields fieldForId(int fieldId) {
|
|
|
8837 |
return _Fields.findByThriftId(fieldId);
|
|
|
8838 |
}
|
|
|
8839 |
|
|
|
8840 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8841 |
org.apache.thrift.protocol.TField field;
|
|
|
8842 |
iprot.readStructBegin();
|
|
|
8843 |
while (true)
|
|
|
8844 |
{
|
|
|
8845 |
field = iprot.readFieldBegin();
|
|
|
8846 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8847 |
break;
|
|
|
8848 |
}
|
|
|
8849 |
switch (field.id) {
|
|
|
8850 |
case 1: // ITEM_NUMBER
|
|
|
8851 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
8852 |
this.itemNumber = iprot.readString();
|
|
|
8853 |
} else {
|
|
|
8854 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8855 |
}
|
|
|
8856 |
break;
|
|
|
8857 |
default:
|
|
|
8858 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8859 |
}
|
|
|
8860 |
iprot.readFieldEnd();
|
|
|
8861 |
}
|
|
|
8862 |
iprot.readStructEnd();
|
|
|
8863 |
validate();
|
|
|
8864 |
}
|
|
|
8865 |
|
|
|
8866 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8867 |
validate();
|
|
|
8868 |
|
|
|
8869 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8870 |
if (this.itemNumber != null) {
|
|
|
8871 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
8872 |
oprot.writeString(this.itemNumber);
|
|
|
8873 |
oprot.writeFieldEnd();
|
|
|
8874 |
}
|
|
|
8875 |
oprot.writeFieldStop();
|
|
|
8876 |
oprot.writeStructEnd();
|
|
|
8877 |
}
|
|
|
8878 |
|
|
|
8879 |
@Override
|
|
|
8880 |
public String toString() {
|
|
|
8881 |
StringBuilder sb = new StringBuilder("getItemIds_args(");
|
|
|
8882 |
boolean first = true;
|
|
|
8883 |
|
|
|
8884 |
sb.append("itemNumber:");
|
|
|
8885 |
if (this.itemNumber == null) {
|
|
|
8886 |
sb.append("null");
|
|
|
8887 |
} else {
|
|
|
8888 |
sb.append(this.itemNumber);
|
|
|
8889 |
}
|
|
|
8890 |
first = false;
|
|
|
8891 |
sb.append(")");
|
|
|
8892 |
return sb.toString();
|
|
|
8893 |
}
|
|
|
8894 |
|
|
|
8895 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8896 |
// check for required fields
|
|
|
8897 |
}
|
|
|
8898 |
|
|
|
8899 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8900 |
try {
|
|
|
8901 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8902 |
} catch (org.apache.thrift.TException te) {
|
|
|
8903 |
throw new java.io.IOException(te);
|
|
|
8904 |
}
|
|
|
8905 |
}
|
|
|
8906 |
|
|
|
8907 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8908 |
try {
|
|
|
8909 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8910 |
} catch (org.apache.thrift.TException te) {
|
|
|
8911 |
throw new java.io.IOException(te);
|
|
|
8912 |
}
|
|
|
8913 |
}
|
|
|
8914 |
|
|
|
8915 |
}
|
|
|
8916 |
|
|
|
8917 |
public static class getItemIds_result implements org.apache.thrift.TBase<getItemIds_result, getItemIds_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8918 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_result");
|
|
|
8919 |
|
|
|
8920 |
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);
|
|
|
8921 |
|
|
|
8922 |
private List<Long> success; // required
|
|
|
8923 |
|
|
|
8924 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8925 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8926 |
SUCCESS((short)0, "success");
|
|
|
8927 |
|
|
|
8928 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8929 |
|
|
|
8930 |
static {
|
|
|
8931 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8932 |
byName.put(field.getFieldName(), field);
|
|
|
8933 |
}
|
|
|
8934 |
}
|
|
|
8935 |
|
|
|
8936 |
/**
|
|
|
8937 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8938 |
*/
|
|
|
8939 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8940 |
switch(fieldId) {
|
|
|
8941 |
case 0: // SUCCESS
|
|
|
8942 |
return SUCCESS;
|
|
|
8943 |
default:
|
|
|
8944 |
return null;
|
|
|
8945 |
}
|
|
|
8946 |
}
|
|
|
8947 |
|
|
|
8948 |
/**
|
|
|
8949 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8950 |
* if it is not found.
|
|
|
8951 |
*/
|
|
|
8952 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8953 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8954 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8955 |
return fields;
|
|
|
8956 |
}
|
|
|
8957 |
|
|
|
8958 |
/**
|
|
|
8959 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8960 |
*/
|
|
|
8961 |
public static _Fields findByName(String name) {
|
|
|
8962 |
return byName.get(name);
|
|
|
8963 |
}
|
|
|
8964 |
|
|
|
8965 |
private final short _thriftId;
|
|
|
8966 |
private final String _fieldName;
|
|
|
8967 |
|
|
|
8968 |
_Fields(short thriftId, String fieldName) {
|
|
|
8969 |
_thriftId = thriftId;
|
|
|
8970 |
_fieldName = fieldName;
|
|
|
8971 |
}
|
|
|
8972 |
|
|
|
8973 |
public short getThriftFieldId() {
|
|
|
8974 |
return _thriftId;
|
|
|
8975 |
}
|
|
|
8976 |
|
|
|
8977 |
public String getFieldName() {
|
|
|
8978 |
return _fieldName;
|
|
|
8979 |
}
|
|
|
8980 |
}
|
|
|
8981 |
|
|
|
8982 |
// isset id assignments
|
|
|
8983 |
|
|
|
8984 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8985 |
static {
|
|
|
8986 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8987 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8988 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
8989 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
|
|
|
8990 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8991 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_result.class, metaDataMap);
|
|
|
8992 |
}
|
|
|
8993 |
|
|
|
8994 |
public getItemIds_result() {
|
|
|
8995 |
}
|
|
|
8996 |
|
|
|
8997 |
public getItemIds_result(
|
|
|
8998 |
List<Long> success)
|
|
|
8999 |
{
|
|
|
9000 |
this();
|
|
|
9001 |
this.success = success;
|
|
|
9002 |
}
|
|
|
9003 |
|
|
|
9004 |
/**
|
|
|
9005 |
* Performs a deep copy on <i>other</i>.
|
|
|
9006 |
*/
|
|
|
9007 |
public getItemIds_result(getItemIds_result other) {
|
|
|
9008 |
if (other.isSetSuccess()) {
|
|
|
9009 |
List<Long> __this__success = new ArrayList<Long>();
|
|
|
9010 |
for (Long other_element : other.success) {
|
|
|
9011 |
__this__success.add(other_element);
|
|
|
9012 |
}
|
|
|
9013 |
this.success = __this__success;
|
|
|
9014 |
}
|
|
|
9015 |
}
|
|
|
9016 |
|
|
|
9017 |
public getItemIds_result deepCopy() {
|
|
|
9018 |
return new getItemIds_result(this);
|
|
|
9019 |
}
|
|
|
9020 |
|
|
|
9021 |
@Override
|
|
|
9022 |
public void clear() {
|
|
|
9023 |
this.success = null;
|
|
|
9024 |
}
|
|
|
9025 |
|
|
|
9026 |
public int getSuccessSize() {
|
|
|
9027 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
9028 |
}
|
|
|
9029 |
|
|
|
9030 |
public java.util.Iterator<Long> getSuccessIterator() {
|
|
|
9031 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
9032 |
}
|
|
|
9033 |
|
|
|
9034 |
public void addToSuccess(long elem) {
|
|
|
9035 |
if (this.success == null) {
|
|
|
9036 |
this.success = new ArrayList<Long>();
|
|
|
9037 |
}
|
|
|
9038 |
this.success.add(elem);
|
|
|
9039 |
}
|
|
|
9040 |
|
|
|
9041 |
public List<Long> getSuccess() {
|
|
|
9042 |
return this.success;
|
|
|
9043 |
}
|
|
|
9044 |
|
|
|
9045 |
public void setSuccess(List<Long> success) {
|
|
|
9046 |
this.success = success;
|
|
|
9047 |
}
|
|
|
9048 |
|
|
|
9049 |
public void unsetSuccess() {
|
|
|
9050 |
this.success = null;
|
|
|
9051 |
}
|
|
|
9052 |
|
|
|
9053 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
9054 |
public boolean isSetSuccess() {
|
|
|
9055 |
return this.success != null;
|
|
|
9056 |
}
|
|
|
9057 |
|
|
|
9058 |
public void setSuccessIsSet(boolean value) {
|
|
|
9059 |
if (!value) {
|
|
|
9060 |
this.success = null;
|
|
|
9061 |
}
|
|
|
9062 |
}
|
|
|
9063 |
|
|
|
9064 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9065 |
switch (field) {
|
|
|
9066 |
case SUCCESS:
|
|
|
9067 |
if (value == null) {
|
|
|
9068 |
unsetSuccess();
|
|
|
9069 |
} else {
|
|
|
9070 |
setSuccess((List<Long>)value);
|
|
|
9071 |
}
|
|
|
9072 |
break;
|
|
|
9073 |
|
|
|
9074 |
}
|
|
|
9075 |
}
|
|
|
9076 |
|
|
|
9077 |
public Object getFieldValue(_Fields field) {
|
|
|
9078 |
switch (field) {
|
|
|
9079 |
case SUCCESS:
|
|
|
9080 |
return getSuccess();
|
|
|
9081 |
|
|
|
9082 |
}
|
|
|
9083 |
throw new IllegalStateException();
|
|
|
9084 |
}
|
|
|
9085 |
|
|
|
9086 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9087 |
public boolean isSet(_Fields field) {
|
|
|
9088 |
if (field == null) {
|
|
|
9089 |
throw new IllegalArgumentException();
|
|
|
9090 |
}
|
|
|
9091 |
|
|
|
9092 |
switch (field) {
|
|
|
9093 |
case SUCCESS:
|
|
|
9094 |
return isSetSuccess();
|
|
|
9095 |
}
|
|
|
9096 |
throw new IllegalStateException();
|
|
|
9097 |
}
|
|
|
9098 |
|
|
|
9099 |
@Override
|
|
|
9100 |
public boolean equals(Object that) {
|
|
|
9101 |
if (that == null)
|
|
|
9102 |
return false;
|
|
|
9103 |
if (that instanceof getItemIds_result)
|
|
|
9104 |
return this.equals((getItemIds_result)that);
|
|
|
9105 |
return false;
|
|
|
9106 |
}
|
|
|
9107 |
|
|
|
9108 |
public boolean equals(getItemIds_result that) {
|
|
|
9109 |
if (that == null)
|
|
|
9110 |
return false;
|
|
|
9111 |
|
|
|
9112 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
9113 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
9114 |
if (this_present_success || that_present_success) {
|
|
|
9115 |
if (!(this_present_success && that_present_success))
|
|
|
9116 |
return false;
|
|
|
9117 |
if (!this.success.equals(that.success))
|
|
|
9118 |
return false;
|
|
|
9119 |
}
|
|
|
9120 |
|
|
|
9121 |
return true;
|
|
|
9122 |
}
|
|
|
9123 |
|
|
|
9124 |
@Override
|
|
|
9125 |
public int hashCode() {
|
|
|
9126 |
return 0;
|
|
|
9127 |
}
|
|
|
9128 |
|
|
|
9129 |
public int compareTo(getItemIds_result other) {
|
|
|
9130 |
if (!getClass().equals(other.getClass())) {
|
|
|
9131 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9132 |
}
|
|
|
9133 |
|
|
|
9134 |
int lastComparison = 0;
|
|
|
9135 |
getItemIds_result typedOther = (getItemIds_result)other;
|
|
|
9136 |
|
|
|
9137 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
9138 |
if (lastComparison != 0) {
|
|
|
9139 |
return lastComparison;
|
|
|
9140 |
}
|
|
|
9141 |
if (isSetSuccess()) {
|
|
|
9142 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
9143 |
if (lastComparison != 0) {
|
|
|
9144 |
return lastComparison;
|
|
|
9145 |
}
|
|
|
9146 |
}
|
|
|
9147 |
return 0;
|
|
|
9148 |
}
|
|
|
9149 |
|
|
|
9150 |
public _Fields fieldForId(int fieldId) {
|
|
|
9151 |
return _Fields.findByThriftId(fieldId);
|
|
|
9152 |
}
|
|
|
9153 |
|
|
|
9154 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9155 |
org.apache.thrift.protocol.TField field;
|
|
|
9156 |
iprot.readStructBegin();
|
|
|
9157 |
while (true)
|
|
|
9158 |
{
|
|
|
9159 |
field = iprot.readFieldBegin();
|
|
|
9160 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9161 |
break;
|
|
|
9162 |
}
|
|
|
9163 |
switch (field.id) {
|
|
|
9164 |
case 0: // SUCCESS
|
|
|
9165 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
9166 |
{
|
| 5361 |
mandeep.dh |
9167 |
org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
|
|
|
9168 |
this.success = new ArrayList<Long>(_list4.size);
|
|
|
9169 |
for (int _i5 = 0; _i5 < _list4.size; ++_i5)
|
| 5110 |
mandeep.dh |
9170 |
{
|
| 5361 |
mandeep.dh |
9171 |
long _elem6; // required
|
|
|
9172 |
_elem6 = iprot.readI64();
|
|
|
9173 |
this.success.add(_elem6);
|
| 5110 |
mandeep.dh |
9174 |
}
|
|
|
9175 |
iprot.readListEnd();
|
|
|
9176 |
}
|
|
|
9177 |
} else {
|
|
|
9178 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9179 |
}
|
|
|
9180 |
break;
|
|
|
9181 |
default:
|
|
|
9182 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9183 |
}
|
|
|
9184 |
iprot.readFieldEnd();
|
|
|
9185 |
}
|
|
|
9186 |
iprot.readStructEnd();
|
|
|
9187 |
validate();
|
|
|
9188 |
}
|
|
|
9189 |
|
|
|
9190 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9191 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9192 |
|
|
|
9193 |
if (this.isSetSuccess()) {
|
|
|
9194 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
9195 |
{
|
|
|
9196 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
|
| 5361 |
mandeep.dh |
9197 |
for (long _iter7 : this.success)
|
| 5110 |
mandeep.dh |
9198 |
{
|
| 5361 |
mandeep.dh |
9199 |
oprot.writeI64(_iter7);
|
| 5110 |
mandeep.dh |
9200 |
}
|
|
|
9201 |
oprot.writeListEnd();
|
|
|
9202 |
}
|
|
|
9203 |
oprot.writeFieldEnd();
|
|
|
9204 |
}
|
|
|
9205 |
oprot.writeFieldStop();
|
|
|
9206 |
oprot.writeStructEnd();
|
|
|
9207 |
}
|
|
|
9208 |
|
|
|
9209 |
@Override
|
|
|
9210 |
public String toString() {
|
|
|
9211 |
StringBuilder sb = new StringBuilder("getItemIds_result(");
|
|
|
9212 |
boolean first = true;
|
|
|
9213 |
|
|
|
9214 |
sb.append("success:");
|
|
|
9215 |
if (this.success == null) {
|
|
|
9216 |
sb.append("null");
|
|
|
9217 |
} else {
|
|
|
9218 |
sb.append(this.success);
|
|
|
9219 |
}
|
|
|
9220 |
first = false;
|
|
|
9221 |
sb.append(")");
|
|
|
9222 |
return sb.toString();
|
|
|
9223 |
}
|
|
|
9224 |
|
|
|
9225 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9226 |
// check for required fields
|
|
|
9227 |
}
|
|
|
9228 |
|
|
|
9229 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9230 |
try {
|
|
|
9231 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9232 |
} catch (org.apache.thrift.TException te) {
|
|
|
9233 |
throw new java.io.IOException(te);
|
|
|
9234 |
}
|
|
|
9235 |
}
|
|
|
9236 |
|
|
|
9237 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9238 |
try {
|
|
|
9239 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9240 |
} catch (org.apache.thrift.TException te) {
|
|
|
9241 |
throw new java.io.IOException(te);
|
|
|
9242 |
}
|
|
|
9243 |
}
|
|
|
9244 |
|
|
|
9245 |
}
|
|
|
9246 |
|
| 5185 |
mandeep.dh |
9247 |
public static class getInventoryItemsFromLastScanType_args implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_args, getInventoryItemsFromLastScanType_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
9248 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_args");
|
|
|
9249 |
|
|
|
9250 |
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);
|
|
|
9251 |
|
|
|
9252 |
private ScanType lastScanType; // required
|
|
|
9253 |
|
|
|
9254 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9255 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9256 |
/**
|
|
|
9257 |
*
|
|
|
9258 |
* @see ScanType
|
|
|
9259 |
*/
|
|
|
9260 |
LAST_SCAN_TYPE((short)1, "lastScanType");
|
|
|
9261 |
|
|
|
9262 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9263 |
|
|
|
9264 |
static {
|
|
|
9265 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9266 |
byName.put(field.getFieldName(), field);
|
|
|
9267 |
}
|
|
|
9268 |
}
|
|
|
9269 |
|
|
|
9270 |
/**
|
|
|
9271 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9272 |
*/
|
|
|
9273 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9274 |
switch(fieldId) {
|
|
|
9275 |
case 1: // LAST_SCAN_TYPE
|
|
|
9276 |
return LAST_SCAN_TYPE;
|
|
|
9277 |
default:
|
|
|
9278 |
return null;
|
|
|
9279 |
}
|
|
|
9280 |
}
|
|
|
9281 |
|
|
|
9282 |
/**
|
|
|
9283 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9284 |
* if it is not found.
|
|
|
9285 |
*/
|
|
|
9286 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9287 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9288 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9289 |
return fields;
|
|
|
9290 |
}
|
|
|
9291 |
|
|
|
9292 |
/**
|
|
|
9293 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9294 |
*/
|
|
|
9295 |
public static _Fields findByName(String name) {
|
|
|
9296 |
return byName.get(name);
|
|
|
9297 |
}
|
|
|
9298 |
|
|
|
9299 |
private final short _thriftId;
|
|
|
9300 |
private final String _fieldName;
|
|
|
9301 |
|
|
|
9302 |
_Fields(short thriftId, String fieldName) {
|
|
|
9303 |
_thriftId = thriftId;
|
|
|
9304 |
_fieldName = fieldName;
|
|
|
9305 |
}
|
|
|
9306 |
|
|
|
9307 |
public short getThriftFieldId() {
|
|
|
9308 |
return _thriftId;
|
|
|
9309 |
}
|
|
|
9310 |
|
|
|
9311 |
public String getFieldName() {
|
|
|
9312 |
return _fieldName;
|
|
|
9313 |
}
|
|
|
9314 |
}
|
|
|
9315 |
|
|
|
9316 |
// isset id assignments
|
|
|
9317 |
|
|
|
9318 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9319 |
static {
|
|
|
9320 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9321 |
tmpMap.put(_Fields.LAST_SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("lastScanType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9322 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
9323 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9324 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_args.class, metaDataMap);
|
|
|
9325 |
}
|
|
|
9326 |
|
|
|
9327 |
public getInventoryItemsFromLastScanType_args() {
|
|
|
9328 |
}
|
|
|
9329 |
|
|
|
9330 |
public getInventoryItemsFromLastScanType_args(
|
|
|
9331 |
ScanType lastScanType)
|
|
|
9332 |
{
|
|
|
9333 |
this();
|
|
|
9334 |
this.lastScanType = lastScanType;
|
|
|
9335 |
}
|
|
|
9336 |
|
|
|
9337 |
/**
|
|
|
9338 |
* Performs a deep copy on <i>other</i>.
|
|
|
9339 |
*/
|
|
|
9340 |
public getInventoryItemsFromLastScanType_args(getInventoryItemsFromLastScanType_args other) {
|
|
|
9341 |
if (other.isSetLastScanType()) {
|
|
|
9342 |
this.lastScanType = other.lastScanType;
|
|
|
9343 |
}
|
|
|
9344 |
}
|
|
|
9345 |
|
|
|
9346 |
public getInventoryItemsFromLastScanType_args deepCopy() {
|
|
|
9347 |
return new getInventoryItemsFromLastScanType_args(this);
|
|
|
9348 |
}
|
|
|
9349 |
|
|
|
9350 |
@Override
|
|
|
9351 |
public void clear() {
|
|
|
9352 |
this.lastScanType = null;
|
|
|
9353 |
}
|
|
|
9354 |
|
|
|
9355 |
/**
|
|
|
9356 |
*
|
|
|
9357 |
* @see ScanType
|
|
|
9358 |
*/
|
|
|
9359 |
public ScanType getLastScanType() {
|
|
|
9360 |
return this.lastScanType;
|
|
|
9361 |
}
|
|
|
9362 |
|
|
|
9363 |
/**
|
|
|
9364 |
*
|
|
|
9365 |
* @see ScanType
|
|
|
9366 |
*/
|
|
|
9367 |
public void setLastScanType(ScanType lastScanType) {
|
|
|
9368 |
this.lastScanType = lastScanType;
|
|
|
9369 |
}
|
|
|
9370 |
|
|
|
9371 |
public void unsetLastScanType() {
|
|
|
9372 |
this.lastScanType = null;
|
|
|
9373 |
}
|
|
|
9374 |
|
|
|
9375 |
/** Returns true if field lastScanType is set (has been assigned a value) and false otherwise */
|
|
|
9376 |
public boolean isSetLastScanType() {
|
|
|
9377 |
return this.lastScanType != null;
|
|
|
9378 |
}
|
|
|
9379 |
|
|
|
9380 |
public void setLastScanTypeIsSet(boolean value) {
|
|
|
9381 |
if (!value) {
|
|
|
9382 |
this.lastScanType = null;
|
|
|
9383 |
}
|
|
|
9384 |
}
|
|
|
9385 |
|
|
|
9386 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9387 |
switch (field) {
|
|
|
9388 |
case LAST_SCAN_TYPE:
|
|
|
9389 |
if (value == null) {
|
|
|
9390 |
unsetLastScanType();
|
|
|
9391 |
} else {
|
|
|
9392 |
setLastScanType((ScanType)value);
|
|
|
9393 |
}
|
|
|
9394 |
break;
|
|
|
9395 |
|
|
|
9396 |
}
|
|
|
9397 |
}
|
|
|
9398 |
|
|
|
9399 |
public Object getFieldValue(_Fields field) {
|
|
|
9400 |
switch (field) {
|
|
|
9401 |
case LAST_SCAN_TYPE:
|
|
|
9402 |
return getLastScanType();
|
|
|
9403 |
|
|
|
9404 |
}
|
|
|
9405 |
throw new IllegalStateException();
|
|
|
9406 |
}
|
|
|
9407 |
|
|
|
9408 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9409 |
public boolean isSet(_Fields field) {
|
|
|
9410 |
if (field == null) {
|
|
|
9411 |
throw new IllegalArgumentException();
|
|
|
9412 |
}
|
|
|
9413 |
|
|
|
9414 |
switch (field) {
|
|
|
9415 |
case LAST_SCAN_TYPE:
|
|
|
9416 |
return isSetLastScanType();
|
|
|
9417 |
}
|
|
|
9418 |
throw new IllegalStateException();
|
|
|
9419 |
}
|
|
|
9420 |
|
|
|
9421 |
@Override
|
|
|
9422 |
public boolean equals(Object that) {
|
|
|
9423 |
if (that == null)
|
|
|
9424 |
return false;
|
|
|
9425 |
if (that instanceof getInventoryItemsFromLastScanType_args)
|
|
|
9426 |
return this.equals((getInventoryItemsFromLastScanType_args)that);
|
|
|
9427 |
return false;
|
|
|
9428 |
}
|
|
|
9429 |
|
|
|
9430 |
public boolean equals(getInventoryItemsFromLastScanType_args that) {
|
|
|
9431 |
if (that == null)
|
|
|
9432 |
return false;
|
|
|
9433 |
|
|
|
9434 |
boolean this_present_lastScanType = true && this.isSetLastScanType();
|
|
|
9435 |
boolean that_present_lastScanType = true && that.isSetLastScanType();
|
|
|
9436 |
if (this_present_lastScanType || that_present_lastScanType) {
|
|
|
9437 |
if (!(this_present_lastScanType && that_present_lastScanType))
|
|
|
9438 |
return false;
|
|
|
9439 |
if (!this.lastScanType.equals(that.lastScanType))
|
|
|
9440 |
return false;
|
|
|
9441 |
}
|
|
|
9442 |
|
|
|
9443 |
return true;
|
|
|
9444 |
}
|
|
|
9445 |
|
|
|
9446 |
@Override
|
|
|
9447 |
public int hashCode() {
|
|
|
9448 |
return 0;
|
|
|
9449 |
}
|
|
|
9450 |
|
|
|
9451 |
public int compareTo(getInventoryItemsFromLastScanType_args other) {
|
|
|
9452 |
if (!getClass().equals(other.getClass())) {
|
|
|
9453 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9454 |
}
|
|
|
9455 |
|
|
|
9456 |
int lastComparison = 0;
|
|
|
9457 |
getInventoryItemsFromLastScanType_args typedOther = (getInventoryItemsFromLastScanType_args)other;
|
|
|
9458 |
|
|
|
9459 |
lastComparison = Boolean.valueOf(isSetLastScanType()).compareTo(typedOther.isSetLastScanType());
|
|
|
9460 |
if (lastComparison != 0) {
|
|
|
9461 |
return lastComparison;
|
|
|
9462 |
}
|
|
|
9463 |
if (isSetLastScanType()) {
|
|
|
9464 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastScanType, typedOther.lastScanType);
|
|
|
9465 |
if (lastComparison != 0) {
|
|
|
9466 |
return lastComparison;
|
|
|
9467 |
}
|
|
|
9468 |
}
|
|
|
9469 |
return 0;
|
|
|
9470 |
}
|
|
|
9471 |
|
|
|
9472 |
public _Fields fieldForId(int fieldId) {
|
|
|
9473 |
return _Fields.findByThriftId(fieldId);
|
|
|
9474 |
}
|
|
|
9475 |
|
|
|
9476 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9477 |
org.apache.thrift.protocol.TField field;
|
|
|
9478 |
iprot.readStructBegin();
|
|
|
9479 |
while (true)
|
|
|
9480 |
{
|
|
|
9481 |
field = iprot.readFieldBegin();
|
|
|
9482 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9483 |
break;
|
|
|
9484 |
}
|
|
|
9485 |
switch (field.id) {
|
|
|
9486 |
case 1: // LAST_SCAN_TYPE
|
|
|
9487 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
9488 |
this.lastScanType = ScanType.findByValue(iprot.readI32());
|
|
|
9489 |
} else {
|
|
|
9490 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9491 |
}
|
|
|
9492 |
break;
|
|
|
9493 |
default:
|
|
|
9494 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9495 |
}
|
|
|
9496 |
iprot.readFieldEnd();
|
|
|
9497 |
}
|
|
|
9498 |
iprot.readStructEnd();
|
|
|
9499 |
validate();
|
|
|
9500 |
}
|
|
|
9501 |
|
|
|
9502 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9503 |
validate();
|
|
|
9504 |
|
|
|
9505 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9506 |
if (this.lastScanType != null) {
|
|
|
9507 |
oprot.writeFieldBegin(LAST_SCAN_TYPE_FIELD_DESC);
|
|
|
9508 |
oprot.writeI32(this.lastScanType.getValue());
|
|
|
9509 |
oprot.writeFieldEnd();
|
|
|
9510 |
}
|
|
|
9511 |
oprot.writeFieldStop();
|
|
|
9512 |
oprot.writeStructEnd();
|
|
|
9513 |
}
|
|
|
9514 |
|
|
|
9515 |
@Override
|
|
|
9516 |
public String toString() {
|
|
|
9517 |
StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_args(");
|
|
|
9518 |
boolean first = true;
|
|
|
9519 |
|
|
|
9520 |
sb.append("lastScanType:");
|
|
|
9521 |
if (this.lastScanType == null) {
|
|
|
9522 |
sb.append("null");
|
|
|
9523 |
} else {
|
|
|
9524 |
sb.append(this.lastScanType);
|
|
|
9525 |
}
|
|
|
9526 |
first = false;
|
|
|
9527 |
sb.append(")");
|
|
|
9528 |
return sb.toString();
|
|
|
9529 |
}
|
|
|
9530 |
|
|
|
9531 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9532 |
// check for required fields
|
|
|
9533 |
}
|
|
|
9534 |
|
|
|
9535 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9536 |
try {
|
|
|
9537 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9538 |
} catch (org.apache.thrift.TException te) {
|
|
|
9539 |
throw new java.io.IOException(te);
|
|
|
9540 |
}
|
|
|
9541 |
}
|
|
|
9542 |
|
|
|
9543 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9544 |
try {
|
|
|
9545 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9546 |
} catch (org.apache.thrift.TException te) {
|
|
|
9547 |
throw new java.io.IOException(te);
|
|
|
9548 |
}
|
|
|
9549 |
}
|
|
|
9550 |
|
|
|
9551 |
}
|
|
|
9552 |
|
|
|
9553 |
public static class getInventoryItemsFromLastScanType_result implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_result, getInventoryItemsFromLastScanType_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
9554 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_result");
|
|
|
9555 |
|
|
|
9556 |
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);
|
|
|
9557 |
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);
|
|
|
9558 |
|
|
|
9559 |
private List<InventoryItem> success; // required
|
|
|
9560 |
private WarehouseServiceException wex; // required
|
|
|
9561 |
|
|
|
9562 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9563 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9564 |
SUCCESS((short)0, "success"),
|
|
|
9565 |
WEX((short)1, "wex");
|
|
|
9566 |
|
|
|
9567 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9568 |
|
|
|
9569 |
static {
|
|
|
9570 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9571 |
byName.put(field.getFieldName(), field);
|
|
|
9572 |
}
|
|
|
9573 |
}
|
|
|
9574 |
|
|
|
9575 |
/**
|
|
|
9576 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9577 |
*/
|
|
|
9578 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9579 |
switch(fieldId) {
|
|
|
9580 |
case 0: // SUCCESS
|
|
|
9581 |
return SUCCESS;
|
|
|
9582 |
case 1: // WEX
|
|
|
9583 |
return WEX;
|
|
|
9584 |
default:
|
|
|
9585 |
return null;
|
|
|
9586 |
}
|
|
|
9587 |
}
|
|
|
9588 |
|
|
|
9589 |
/**
|
|
|
9590 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9591 |
* if it is not found.
|
|
|
9592 |
*/
|
|
|
9593 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9594 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9595 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9596 |
return fields;
|
|
|
9597 |
}
|
|
|
9598 |
|
|
|
9599 |
/**
|
|
|
9600 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9601 |
*/
|
|
|
9602 |
public static _Fields findByName(String name) {
|
|
|
9603 |
return byName.get(name);
|
|
|
9604 |
}
|
|
|
9605 |
|
|
|
9606 |
private final short _thriftId;
|
|
|
9607 |
private final String _fieldName;
|
|
|
9608 |
|
|
|
9609 |
_Fields(short thriftId, String fieldName) {
|
|
|
9610 |
_thriftId = thriftId;
|
|
|
9611 |
_fieldName = fieldName;
|
|
|
9612 |
}
|
|
|
9613 |
|
|
|
9614 |
public short getThriftFieldId() {
|
|
|
9615 |
return _thriftId;
|
|
|
9616 |
}
|
|
|
9617 |
|
|
|
9618 |
public String getFieldName() {
|
|
|
9619 |
return _fieldName;
|
|
|
9620 |
}
|
|
|
9621 |
}
|
|
|
9622 |
|
|
|
9623 |
// isset id assignments
|
|
|
9624 |
|
|
|
9625 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9626 |
static {
|
|
|
9627 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9628 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9629 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
9630 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
|
|
|
9631 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9632 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
9633 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9634 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_result.class, metaDataMap);
|
|
|
9635 |
}
|
|
|
9636 |
|
|
|
9637 |
public getInventoryItemsFromLastScanType_result() {
|
|
|
9638 |
}
|
|
|
9639 |
|
|
|
9640 |
public getInventoryItemsFromLastScanType_result(
|
|
|
9641 |
List<InventoryItem> success,
|
|
|
9642 |
WarehouseServiceException wex)
|
|
|
9643 |
{
|
|
|
9644 |
this();
|
|
|
9645 |
this.success = success;
|
|
|
9646 |
this.wex = wex;
|
|
|
9647 |
}
|
|
|
9648 |
|
|
|
9649 |
/**
|
|
|
9650 |
* Performs a deep copy on <i>other</i>.
|
|
|
9651 |
*/
|
|
|
9652 |
public getInventoryItemsFromLastScanType_result(getInventoryItemsFromLastScanType_result other) {
|
|
|
9653 |
if (other.isSetSuccess()) {
|
|
|
9654 |
List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
|
|
|
9655 |
for (InventoryItem other_element : other.success) {
|
|
|
9656 |
__this__success.add(new InventoryItem(other_element));
|
|
|
9657 |
}
|
|
|
9658 |
this.success = __this__success;
|
|
|
9659 |
}
|
|
|
9660 |
if (other.isSetWex()) {
|
|
|
9661 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
9662 |
}
|
|
|
9663 |
}
|
|
|
9664 |
|
|
|
9665 |
public getInventoryItemsFromLastScanType_result deepCopy() {
|
|
|
9666 |
return new getInventoryItemsFromLastScanType_result(this);
|
|
|
9667 |
}
|
|
|
9668 |
|
|
|
9669 |
@Override
|
|
|
9670 |
public void clear() {
|
|
|
9671 |
this.success = null;
|
|
|
9672 |
this.wex = null;
|
|
|
9673 |
}
|
|
|
9674 |
|
|
|
9675 |
public int getSuccessSize() {
|
|
|
9676 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
9677 |
}
|
|
|
9678 |
|
|
|
9679 |
public java.util.Iterator<InventoryItem> getSuccessIterator() {
|
|
|
9680 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
9681 |
}
|
|
|
9682 |
|
|
|
9683 |
public void addToSuccess(InventoryItem elem) {
|
|
|
9684 |
if (this.success == null) {
|
|
|
9685 |
this.success = new ArrayList<InventoryItem>();
|
|
|
9686 |
}
|
|
|
9687 |
this.success.add(elem);
|
|
|
9688 |
}
|
|
|
9689 |
|
|
|
9690 |
public List<InventoryItem> getSuccess() {
|
|
|
9691 |
return this.success;
|
|
|
9692 |
}
|
|
|
9693 |
|
|
|
9694 |
public void setSuccess(List<InventoryItem> success) {
|
|
|
9695 |
this.success = success;
|
|
|
9696 |
}
|
|
|
9697 |
|
|
|
9698 |
public void unsetSuccess() {
|
|
|
9699 |
this.success = null;
|
|
|
9700 |
}
|
|
|
9701 |
|
|
|
9702 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
9703 |
public boolean isSetSuccess() {
|
|
|
9704 |
return this.success != null;
|
|
|
9705 |
}
|
|
|
9706 |
|
|
|
9707 |
public void setSuccessIsSet(boolean value) {
|
|
|
9708 |
if (!value) {
|
|
|
9709 |
this.success = null;
|
|
|
9710 |
}
|
|
|
9711 |
}
|
|
|
9712 |
|
|
|
9713 |
public WarehouseServiceException getWex() {
|
|
|
9714 |
return this.wex;
|
|
|
9715 |
}
|
|
|
9716 |
|
|
|
9717 |
public void setWex(WarehouseServiceException wex) {
|
|
|
9718 |
this.wex = wex;
|
|
|
9719 |
}
|
|
|
9720 |
|
|
|
9721 |
public void unsetWex() {
|
|
|
9722 |
this.wex = null;
|
|
|
9723 |
}
|
|
|
9724 |
|
|
|
9725 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
9726 |
public boolean isSetWex() {
|
|
|
9727 |
return this.wex != null;
|
|
|
9728 |
}
|
|
|
9729 |
|
|
|
9730 |
public void setWexIsSet(boolean value) {
|
|
|
9731 |
if (!value) {
|
|
|
9732 |
this.wex = null;
|
|
|
9733 |
}
|
|
|
9734 |
}
|
|
|
9735 |
|
|
|
9736 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9737 |
switch (field) {
|
|
|
9738 |
case SUCCESS:
|
|
|
9739 |
if (value == null) {
|
|
|
9740 |
unsetSuccess();
|
|
|
9741 |
} else {
|
|
|
9742 |
setSuccess((List<InventoryItem>)value);
|
|
|
9743 |
}
|
|
|
9744 |
break;
|
|
|
9745 |
|
|
|
9746 |
case WEX:
|
|
|
9747 |
if (value == null) {
|
|
|
9748 |
unsetWex();
|
|
|
9749 |
} else {
|
|
|
9750 |
setWex((WarehouseServiceException)value);
|
|
|
9751 |
}
|
|
|
9752 |
break;
|
|
|
9753 |
|
|
|
9754 |
}
|
|
|
9755 |
}
|
|
|
9756 |
|
|
|
9757 |
public Object getFieldValue(_Fields field) {
|
|
|
9758 |
switch (field) {
|
|
|
9759 |
case SUCCESS:
|
|
|
9760 |
return getSuccess();
|
|
|
9761 |
|
|
|
9762 |
case WEX:
|
|
|
9763 |
return getWex();
|
|
|
9764 |
|
|
|
9765 |
}
|
|
|
9766 |
throw new IllegalStateException();
|
|
|
9767 |
}
|
|
|
9768 |
|
|
|
9769 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9770 |
public boolean isSet(_Fields field) {
|
|
|
9771 |
if (field == null) {
|
|
|
9772 |
throw new IllegalArgumentException();
|
|
|
9773 |
}
|
|
|
9774 |
|
|
|
9775 |
switch (field) {
|
|
|
9776 |
case SUCCESS:
|
|
|
9777 |
return isSetSuccess();
|
|
|
9778 |
case WEX:
|
|
|
9779 |
return isSetWex();
|
|
|
9780 |
}
|
|
|
9781 |
throw new IllegalStateException();
|
|
|
9782 |
}
|
|
|
9783 |
|
|
|
9784 |
@Override
|
|
|
9785 |
public boolean equals(Object that) {
|
|
|
9786 |
if (that == null)
|
|
|
9787 |
return false;
|
|
|
9788 |
if (that instanceof getInventoryItemsFromLastScanType_result)
|
|
|
9789 |
return this.equals((getInventoryItemsFromLastScanType_result)that);
|
|
|
9790 |
return false;
|
|
|
9791 |
}
|
|
|
9792 |
|
|
|
9793 |
public boolean equals(getInventoryItemsFromLastScanType_result that) {
|
|
|
9794 |
if (that == null)
|
|
|
9795 |
return false;
|
|
|
9796 |
|
|
|
9797 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
9798 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
9799 |
if (this_present_success || that_present_success) {
|
|
|
9800 |
if (!(this_present_success && that_present_success))
|
|
|
9801 |
return false;
|
|
|
9802 |
if (!this.success.equals(that.success))
|
|
|
9803 |
return false;
|
|
|
9804 |
}
|
|
|
9805 |
|
|
|
9806 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
9807 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
9808 |
if (this_present_wex || that_present_wex) {
|
|
|
9809 |
if (!(this_present_wex && that_present_wex))
|
|
|
9810 |
return false;
|
|
|
9811 |
if (!this.wex.equals(that.wex))
|
|
|
9812 |
return false;
|
|
|
9813 |
}
|
|
|
9814 |
|
|
|
9815 |
return true;
|
|
|
9816 |
}
|
|
|
9817 |
|
|
|
9818 |
@Override
|
|
|
9819 |
public int hashCode() {
|
|
|
9820 |
return 0;
|
|
|
9821 |
}
|
|
|
9822 |
|
|
|
9823 |
public int compareTo(getInventoryItemsFromLastScanType_result other) {
|
|
|
9824 |
if (!getClass().equals(other.getClass())) {
|
|
|
9825 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9826 |
}
|
|
|
9827 |
|
|
|
9828 |
int lastComparison = 0;
|
|
|
9829 |
getInventoryItemsFromLastScanType_result typedOther = (getInventoryItemsFromLastScanType_result)other;
|
|
|
9830 |
|
|
|
9831 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
9832 |
if (lastComparison != 0) {
|
|
|
9833 |
return lastComparison;
|
|
|
9834 |
}
|
|
|
9835 |
if (isSetSuccess()) {
|
|
|
9836 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
9837 |
if (lastComparison != 0) {
|
|
|
9838 |
return lastComparison;
|
|
|
9839 |
}
|
|
|
9840 |
}
|
|
|
9841 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
9842 |
if (lastComparison != 0) {
|
|
|
9843 |
return lastComparison;
|
|
|
9844 |
}
|
|
|
9845 |
if (isSetWex()) {
|
|
|
9846 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
9847 |
if (lastComparison != 0) {
|
|
|
9848 |
return lastComparison;
|
|
|
9849 |
}
|
|
|
9850 |
}
|
|
|
9851 |
return 0;
|
|
|
9852 |
}
|
|
|
9853 |
|
|
|
9854 |
public _Fields fieldForId(int fieldId) {
|
|
|
9855 |
return _Fields.findByThriftId(fieldId);
|
|
|
9856 |
}
|
|
|
9857 |
|
|
|
9858 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9859 |
org.apache.thrift.protocol.TField field;
|
|
|
9860 |
iprot.readStructBegin();
|
|
|
9861 |
while (true)
|
|
|
9862 |
{
|
|
|
9863 |
field = iprot.readFieldBegin();
|
|
|
9864 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9865 |
break;
|
|
|
9866 |
}
|
|
|
9867 |
switch (field.id) {
|
|
|
9868 |
case 0: // SUCCESS
|
|
|
9869 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
9870 |
{
|
| 5361 |
mandeep.dh |
9871 |
org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
|
|
|
9872 |
this.success = new ArrayList<InventoryItem>(_list8.size);
|
|
|
9873 |
for (int _i9 = 0; _i9 < _list8.size; ++_i9)
|
| 5185 |
mandeep.dh |
9874 |
{
|
| 5361 |
mandeep.dh |
9875 |
InventoryItem _elem10; // required
|
|
|
9876 |
_elem10 = new InventoryItem();
|
|
|
9877 |
_elem10.read(iprot);
|
|
|
9878 |
this.success.add(_elem10);
|
| 5185 |
mandeep.dh |
9879 |
}
|
|
|
9880 |
iprot.readListEnd();
|
|
|
9881 |
}
|
|
|
9882 |
} else {
|
|
|
9883 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9884 |
}
|
|
|
9885 |
break;
|
|
|
9886 |
case 1: // WEX
|
|
|
9887 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
9888 |
this.wex = new WarehouseServiceException();
|
|
|
9889 |
this.wex.read(iprot);
|
|
|
9890 |
} else {
|
|
|
9891 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9892 |
}
|
|
|
9893 |
break;
|
|
|
9894 |
default:
|
|
|
9895 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9896 |
}
|
|
|
9897 |
iprot.readFieldEnd();
|
|
|
9898 |
}
|
|
|
9899 |
iprot.readStructEnd();
|
|
|
9900 |
validate();
|
|
|
9901 |
}
|
|
|
9902 |
|
|
|
9903 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9904 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9905 |
|
|
|
9906 |
if (this.isSetSuccess()) {
|
|
|
9907 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
9908 |
{
|
|
|
9909 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 5361 |
mandeep.dh |
9910 |
for (InventoryItem _iter11 : this.success)
|
| 5185 |
mandeep.dh |
9911 |
{
|
| 5361 |
mandeep.dh |
9912 |
_iter11.write(oprot);
|
| 5185 |
mandeep.dh |
9913 |
}
|
|
|
9914 |
oprot.writeListEnd();
|
|
|
9915 |
}
|
|
|
9916 |
oprot.writeFieldEnd();
|
|
|
9917 |
} else if (this.isSetWex()) {
|
|
|
9918 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
9919 |
this.wex.write(oprot);
|
|
|
9920 |
oprot.writeFieldEnd();
|
|
|
9921 |
}
|
|
|
9922 |
oprot.writeFieldStop();
|
|
|
9923 |
oprot.writeStructEnd();
|
|
|
9924 |
}
|
|
|
9925 |
|
|
|
9926 |
@Override
|
|
|
9927 |
public String toString() {
|
|
|
9928 |
StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_result(");
|
|
|
9929 |
boolean first = true;
|
|
|
9930 |
|
|
|
9931 |
sb.append("success:");
|
|
|
9932 |
if (this.success == null) {
|
|
|
9933 |
sb.append("null");
|
|
|
9934 |
} else {
|
|
|
9935 |
sb.append(this.success);
|
|
|
9936 |
}
|
|
|
9937 |
first = false;
|
|
|
9938 |
if (!first) sb.append(", ");
|
|
|
9939 |
sb.append("wex:");
|
|
|
9940 |
if (this.wex == null) {
|
|
|
9941 |
sb.append("null");
|
|
|
9942 |
} else {
|
|
|
9943 |
sb.append(this.wex);
|
|
|
9944 |
}
|
|
|
9945 |
first = false;
|
|
|
9946 |
sb.append(")");
|
|
|
9947 |
return sb.toString();
|
|
|
9948 |
}
|
|
|
9949 |
|
|
|
9950 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9951 |
// check for required fields
|
|
|
9952 |
}
|
|
|
9953 |
|
|
|
9954 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9955 |
try {
|
|
|
9956 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9957 |
} catch (org.apache.thrift.TException te) {
|
|
|
9958 |
throw new java.io.IOException(te);
|
|
|
9959 |
}
|
|
|
9960 |
}
|
|
|
9961 |
|
|
|
9962 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9963 |
try {
|
|
|
9964 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9965 |
} catch (org.apache.thrift.TException te) {
|
|
|
9966 |
throw new java.io.IOException(te);
|
|
|
9967 |
}
|
|
|
9968 |
}
|
|
|
9969 |
|
|
|
9970 |
}
|
|
|
9971 |
|
|
|
9972 |
public static class getInventoryItemFromId_args implements org.apache.thrift.TBase<getInventoryItemFromId_args, getInventoryItemFromId_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
9973 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_args");
|
|
|
9974 |
|
|
|
9975 |
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);
|
|
|
9976 |
|
|
|
9977 |
private long inventoryItemId; // required
|
|
|
9978 |
|
|
|
9979 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9980 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9981 |
INVENTORY_ITEM_ID((short)1, "inventoryItemId");
|
|
|
9982 |
|
|
|
9983 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9984 |
|
|
|
9985 |
static {
|
|
|
9986 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9987 |
byName.put(field.getFieldName(), field);
|
|
|
9988 |
}
|
|
|
9989 |
}
|
|
|
9990 |
|
|
|
9991 |
/**
|
|
|
9992 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9993 |
*/
|
|
|
9994 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9995 |
switch(fieldId) {
|
|
|
9996 |
case 1: // INVENTORY_ITEM_ID
|
|
|
9997 |
return INVENTORY_ITEM_ID;
|
|
|
9998 |
default:
|
|
|
9999 |
return null;
|
|
|
10000 |
}
|
|
|
10001 |
}
|
|
|
10002 |
|
|
|
10003 |
/**
|
|
|
10004 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10005 |
* if it is not found.
|
|
|
10006 |
*/
|
|
|
10007 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10008 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10009 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10010 |
return fields;
|
|
|
10011 |
}
|
|
|
10012 |
|
|
|
10013 |
/**
|
|
|
10014 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10015 |
*/
|
|
|
10016 |
public static _Fields findByName(String name) {
|
|
|
10017 |
return byName.get(name);
|
|
|
10018 |
}
|
|
|
10019 |
|
|
|
10020 |
private final short _thriftId;
|
|
|
10021 |
private final String _fieldName;
|
|
|
10022 |
|
|
|
10023 |
_Fields(short thriftId, String fieldName) {
|
|
|
10024 |
_thriftId = thriftId;
|
|
|
10025 |
_fieldName = fieldName;
|
|
|
10026 |
}
|
|
|
10027 |
|
|
|
10028 |
public short getThriftFieldId() {
|
|
|
10029 |
return _thriftId;
|
|
|
10030 |
}
|
|
|
10031 |
|
|
|
10032 |
public String getFieldName() {
|
|
|
10033 |
return _fieldName;
|
|
|
10034 |
}
|
|
|
10035 |
}
|
|
|
10036 |
|
|
|
10037 |
// isset id assignments
|
|
|
10038 |
private static final int __INVENTORYITEMID_ISSET_ID = 0;
|
|
|
10039 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
10040 |
|
|
|
10041 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10042 |
static {
|
|
|
10043 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10044 |
tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10045 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
10046 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10047 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_args.class, metaDataMap);
|
|
|
10048 |
}
|
|
|
10049 |
|
|
|
10050 |
public getInventoryItemFromId_args() {
|
|
|
10051 |
}
|
|
|
10052 |
|
|
|
10053 |
public getInventoryItemFromId_args(
|
|
|
10054 |
long inventoryItemId)
|
|
|
10055 |
{
|
|
|
10056 |
this();
|
|
|
10057 |
this.inventoryItemId = inventoryItemId;
|
|
|
10058 |
setInventoryItemIdIsSet(true);
|
|
|
10059 |
}
|
|
|
10060 |
|
|
|
10061 |
/**
|
|
|
10062 |
* Performs a deep copy on <i>other</i>.
|
|
|
10063 |
*/
|
|
|
10064 |
public getInventoryItemFromId_args(getInventoryItemFromId_args other) {
|
|
|
10065 |
__isset_bit_vector.clear();
|
|
|
10066 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
10067 |
this.inventoryItemId = other.inventoryItemId;
|
|
|
10068 |
}
|
|
|
10069 |
|
|
|
10070 |
public getInventoryItemFromId_args deepCopy() {
|
|
|
10071 |
return new getInventoryItemFromId_args(this);
|
|
|
10072 |
}
|
|
|
10073 |
|
|
|
10074 |
@Override
|
|
|
10075 |
public void clear() {
|
|
|
10076 |
setInventoryItemIdIsSet(false);
|
|
|
10077 |
this.inventoryItemId = 0;
|
|
|
10078 |
}
|
|
|
10079 |
|
|
|
10080 |
public long getInventoryItemId() {
|
|
|
10081 |
return this.inventoryItemId;
|
|
|
10082 |
}
|
|
|
10083 |
|
|
|
10084 |
public void setInventoryItemId(long inventoryItemId) {
|
|
|
10085 |
this.inventoryItemId = inventoryItemId;
|
|
|
10086 |
setInventoryItemIdIsSet(true);
|
|
|
10087 |
}
|
|
|
10088 |
|
|
|
10089 |
public void unsetInventoryItemId() {
|
|
|
10090 |
__isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
|
|
|
10091 |
}
|
|
|
10092 |
|
|
|
10093 |
/** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
|
|
|
10094 |
public boolean isSetInventoryItemId() {
|
|
|
10095 |
return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
|
|
|
10096 |
}
|
|
|
10097 |
|
|
|
10098 |
public void setInventoryItemIdIsSet(boolean value) {
|
|
|
10099 |
__isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
|
|
|
10100 |
}
|
|
|
10101 |
|
|
|
10102 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10103 |
switch (field) {
|
|
|
10104 |
case INVENTORY_ITEM_ID:
|
|
|
10105 |
if (value == null) {
|
|
|
10106 |
unsetInventoryItemId();
|
|
|
10107 |
} else {
|
|
|
10108 |
setInventoryItemId((Long)value);
|
|
|
10109 |
}
|
|
|
10110 |
break;
|
|
|
10111 |
|
|
|
10112 |
}
|
|
|
10113 |
}
|
|
|
10114 |
|
|
|
10115 |
public Object getFieldValue(_Fields field) {
|
|
|
10116 |
switch (field) {
|
|
|
10117 |
case INVENTORY_ITEM_ID:
|
|
|
10118 |
return Long.valueOf(getInventoryItemId());
|
|
|
10119 |
|
|
|
10120 |
}
|
|
|
10121 |
throw new IllegalStateException();
|
|
|
10122 |
}
|
|
|
10123 |
|
|
|
10124 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10125 |
public boolean isSet(_Fields field) {
|
|
|
10126 |
if (field == null) {
|
|
|
10127 |
throw new IllegalArgumentException();
|
|
|
10128 |
}
|
|
|
10129 |
|
|
|
10130 |
switch (field) {
|
|
|
10131 |
case INVENTORY_ITEM_ID:
|
|
|
10132 |
return isSetInventoryItemId();
|
|
|
10133 |
}
|
|
|
10134 |
throw new IllegalStateException();
|
|
|
10135 |
}
|
|
|
10136 |
|
|
|
10137 |
@Override
|
|
|
10138 |
public boolean equals(Object that) {
|
|
|
10139 |
if (that == null)
|
|
|
10140 |
return false;
|
|
|
10141 |
if (that instanceof getInventoryItemFromId_args)
|
|
|
10142 |
return this.equals((getInventoryItemFromId_args)that);
|
|
|
10143 |
return false;
|
|
|
10144 |
}
|
|
|
10145 |
|
|
|
10146 |
public boolean equals(getInventoryItemFromId_args that) {
|
|
|
10147 |
if (that == null)
|
|
|
10148 |
return false;
|
|
|
10149 |
|
|
|
10150 |
boolean this_present_inventoryItemId = true;
|
|
|
10151 |
boolean that_present_inventoryItemId = true;
|
|
|
10152 |
if (this_present_inventoryItemId || that_present_inventoryItemId) {
|
|
|
10153 |
if (!(this_present_inventoryItemId && that_present_inventoryItemId))
|
|
|
10154 |
return false;
|
|
|
10155 |
if (this.inventoryItemId != that.inventoryItemId)
|
|
|
10156 |
return false;
|
|
|
10157 |
}
|
|
|
10158 |
|
|
|
10159 |
return true;
|
|
|
10160 |
}
|
|
|
10161 |
|
|
|
10162 |
@Override
|
|
|
10163 |
public int hashCode() {
|
|
|
10164 |
return 0;
|
|
|
10165 |
}
|
|
|
10166 |
|
|
|
10167 |
public int compareTo(getInventoryItemFromId_args other) {
|
|
|
10168 |
if (!getClass().equals(other.getClass())) {
|
|
|
10169 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10170 |
}
|
|
|
10171 |
|
|
|
10172 |
int lastComparison = 0;
|
|
|
10173 |
getInventoryItemFromId_args typedOther = (getInventoryItemFromId_args)other;
|
|
|
10174 |
|
|
|
10175 |
lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
|
|
|
10176 |
if (lastComparison != 0) {
|
|
|
10177 |
return lastComparison;
|
|
|
10178 |
}
|
|
|
10179 |
if (isSetInventoryItemId()) {
|
|
|
10180 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
|
|
|
10181 |
if (lastComparison != 0) {
|
|
|
10182 |
return lastComparison;
|
|
|
10183 |
}
|
|
|
10184 |
}
|
|
|
10185 |
return 0;
|
|
|
10186 |
}
|
|
|
10187 |
|
|
|
10188 |
public _Fields fieldForId(int fieldId) {
|
|
|
10189 |
return _Fields.findByThriftId(fieldId);
|
|
|
10190 |
}
|
|
|
10191 |
|
|
|
10192 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10193 |
org.apache.thrift.protocol.TField field;
|
|
|
10194 |
iprot.readStructBegin();
|
|
|
10195 |
while (true)
|
|
|
10196 |
{
|
|
|
10197 |
field = iprot.readFieldBegin();
|
|
|
10198 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10199 |
break;
|
|
|
10200 |
}
|
|
|
10201 |
switch (field.id) {
|
|
|
10202 |
case 1: // INVENTORY_ITEM_ID
|
|
|
10203 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10204 |
this.inventoryItemId = iprot.readI64();
|
|
|
10205 |
setInventoryItemIdIsSet(true);
|
|
|
10206 |
} else {
|
|
|
10207 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10208 |
}
|
|
|
10209 |
break;
|
|
|
10210 |
default:
|
|
|
10211 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10212 |
}
|
|
|
10213 |
iprot.readFieldEnd();
|
|
|
10214 |
}
|
|
|
10215 |
iprot.readStructEnd();
|
|
|
10216 |
validate();
|
|
|
10217 |
}
|
|
|
10218 |
|
|
|
10219 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10220 |
validate();
|
|
|
10221 |
|
|
|
10222 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10223 |
oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
|
|
|
10224 |
oprot.writeI64(this.inventoryItemId);
|
|
|
10225 |
oprot.writeFieldEnd();
|
|
|
10226 |
oprot.writeFieldStop();
|
|
|
10227 |
oprot.writeStructEnd();
|
|
|
10228 |
}
|
|
|
10229 |
|
|
|
10230 |
@Override
|
|
|
10231 |
public String toString() {
|
|
|
10232 |
StringBuilder sb = new StringBuilder("getInventoryItemFromId_args(");
|
|
|
10233 |
boolean first = true;
|
|
|
10234 |
|
|
|
10235 |
sb.append("inventoryItemId:");
|
|
|
10236 |
sb.append(this.inventoryItemId);
|
|
|
10237 |
first = false;
|
|
|
10238 |
sb.append(")");
|
|
|
10239 |
return sb.toString();
|
|
|
10240 |
}
|
|
|
10241 |
|
|
|
10242 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10243 |
// check for required fields
|
|
|
10244 |
}
|
|
|
10245 |
|
|
|
10246 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10247 |
try {
|
|
|
10248 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10249 |
} catch (org.apache.thrift.TException te) {
|
|
|
10250 |
throw new java.io.IOException(te);
|
|
|
10251 |
}
|
|
|
10252 |
}
|
|
|
10253 |
|
|
|
10254 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10255 |
try {
|
| 5372 |
mandeep.dh |
10256 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
10257 |
__isset_bit_vector = new BitSet(1);
|
| 5185 |
mandeep.dh |
10258 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10259 |
} catch (org.apache.thrift.TException te) {
|
|
|
10260 |
throw new java.io.IOException(te);
|
|
|
10261 |
}
|
|
|
10262 |
}
|
|
|
10263 |
|
|
|
10264 |
}
|
|
|
10265 |
|
|
|
10266 |
public static class getInventoryItemFromId_result implements org.apache.thrift.TBase<getInventoryItemFromId_result, getInventoryItemFromId_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
10267 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_result");
|
|
|
10268 |
|
|
|
10269 |
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);
|
|
|
10270 |
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);
|
|
|
10271 |
|
|
|
10272 |
private InventoryItem success; // required
|
|
|
10273 |
private WarehouseServiceException wex; // required
|
|
|
10274 |
|
|
|
10275 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10276 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10277 |
SUCCESS((short)0, "success"),
|
|
|
10278 |
WEX((short)1, "wex");
|
|
|
10279 |
|
|
|
10280 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10281 |
|
|
|
10282 |
static {
|
|
|
10283 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10284 |
byName.put(field.getFieldName(), field);
|
|
|
10285 |
}
|
|
|
10286 |
}
|
|
|
10287 |
|
|
|
10288 |
/**
|
|
|
10289 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10290 |
*/
|
|
|
10291 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10292 |
switch(fieldId) {
|
|
|
10293 |
case 0: // SUCCESS
|
|
|
10294 |
return SUCCESS;
|
|
|
10295 |
case 1: // WEX
|
|
|
10296 |
return WEX;
|
|
|
10297 |
default:
|
|
|
10298 |
return null;
|
|
|
10299 |
}
|
|
|
10300 |
}
|
|
|
10301 |
|
|
|
10302 |
/**
|
|
|
10303 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10304 |
* if it is not found.
|
|
|
10305 |
*/
|
|
|
10306 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10307 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10308 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10309 |
return fields;
|
|
|
10310 |
}
|
|
|
10311 |
|
|
|
10312 |
/**
|
|
|
10313 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10314 |
*/
|
|
|
10315 |
public static _Fields findByName(String name) {
|
|
|
10316 |
return byName.get(name);
|
|
|
10317 |
}
|
|
|
10318 |
|
|
|
10319 |
private final short _thriftId;
|
|
|
10320 |
private final String _fieldName;
|
|
|
10321 |
|
|
|
10322 |
_Fields(short thriftId, String fieldName) {
|
|
|
10323 |
_thriftId = thriftId;
|
|
|
10324 |
_fieldName = fieldName;
|
|
|
10325 |
}
|
|
|
10326 |
|
|
|
10327 |
public short getThriftFieldId() {
|
|
|
10328 |
return _thriftId;
|
|
|
10329 |
}
|
|
|
10330 |
|
|
|
10331 |
public String getFieldName() {
|
|
|
10332 |
return _fieldName;
|
|
|
10333 |
}
|
|
|
10334 |
}
|
|
|
10335 |
|
|
|
10336 |
// isset id assignments
|
|
|
10337 |
|
|
|
10338 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10339 |
static {
|
|
|
10340 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10341 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10342 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
10343 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10344 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
10345 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10346 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_result.class, metaDataMap);
|
|
|
10347 |
}
|
|
|
10348 |
|
|
|
10349 |
public getInventoryItemFromId_result() {
|
|
|
10350 |
}
|
|
|
10351 |
|
|
|
10352 |
public getInventoryItemFromId_result(
|
|
|
10353 |
InventoryItem success,
|
|
|
10354 |
WarehouseServiceException wex)
|
|
|
10355 |
{
|
|
|
10356 |
this();
|
|
|
10357 |
this.success = success;
|
|
|
10358 |
this.wex = wex;
|
|
|
10359 |
}
|
|
|
10360 |
|
|
|
10361 |
/**
|
|
|
10362 |
* Performs a deep copy on <i>other</i>.
|
|
|
10363 |
*/
|
|
|
10364 |
public getInventoryItemFromId_result(getInventoryItemFromId_result other) {
|
|
|
10365 |
if (other.isSetSuccess()) {
|
|
|
10366 |
this.success = new InventoryItem(other.success);
|
|
|
10367 |
}
|
|
|
10368 |
if (other.isSetWex()) {
|
|
|
10369 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
10370 |
}
|
|
|
10371 |
}
|
|
|
10372 |
|
|
|
10373 |
public getInventoryItemFromId_result deepCopy() {
|
|
|
10374 |
return new getInventoryItemFromId_result(this);
|
|
|
10375 |
}
|
|
|
10376 |
|
|
|
10377 |
@Override
|
|
|
10378 |
public void clear() {
|
|
|
10379 |
this.success = null;
|
|
|
10380 |
this.wex = null;
|
|
|
10381 |
}
|
|
|
10382 |
|
|
|
10383 |
public InventoryItem getSuccess() {
|
|
|
10384 |
return this.success;
|
|
|
10385 |
}
|
|
|
10386 |
|
|
|
10387 |
public void setSuccess(InventoryItem success) {
|
|
|
10388 |
this.success = success;
|
|
|
10389 |
}
|
|
|
10390 |
|
|
|
10391 |
public void unsetSuccess() {
|
|
|
10392 |
this.success = null;
|
|
|
10393 |
}
|
|
|
10394 |
|
|
|
10395 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
10396 |
public boolean isSetSuccess() {
|
|
|
10397 |
return this.success != null;
|
|
|
10398 |
}
|
|
|
10399 |
|
|
|
10400 |
public void setSuccessIsSet(boolean value) {
|
|
|
10401 |
if (!value) {
|
|
|
10402 |
this.success = null;
|
|
|
10403 |
}
|
|
|
10404 |
}
|
|
|
10405 |
|
|
|
10406 |
public WarehouseServiceException getWex() {
|
|
|
10407 |
return this.wex;
|
|
|
10408 |
}
|
|
|
10409 |
|
|
|
10410 |
public void setWex(WarehouseServiceException wex) {
|
|
|
10411 |
this.wex = wex;
|
|
|
10412 |
}
|
|
|
10413 |
|
|
|
10414 |
public void unsetWex() {
|
|
|
10415 |
this.wex = null;
|
|
|
10416 |
}
|
|
|
10417 |
|
|
|
10418 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
10419 |
public boolean isSetWex() {
|
|
|
10420 |
return this.wex != null;
|
|
|
10421 |
}
|
|
|
10422 |
|
|
|
10423 |
public void setWexIsSet(boolean value) {
|
|
|
10424 |
if (!value) {
|
|
|
10425 |
this.wex = null;
|
|
|
10426 |
}
|
|
|
10427 |
}
|
|
|
10428 |
|
|
|
10429 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10430 |
switch (field) {
|
|
|
10431 |
case SUCCESS:
|
|
|
10432 |
if (value == null) {
|
|
|
10433 |
unsetSuccess();
|
|
|
10434 |
} else {
|
|
|
10435 |
setSuccess((InventoryItem)value);
|
|
|
10436 |
}
|
|
|
10437 |
break;
|
|
|
10438 |
|
|
|
10439 |
case WEX:
|
|
|
10440 |
if (value == null) {
|
|
|
10441 |
unsetWex();
|
|
|
10442 |
} else {
|
|
|
10443 |
setWex((WarehouseServiceException)value);
|
|
|
10444 |
}
|
|
|
10445 |
break;
|
|
|
10446 |
|
|
|
10447 |
}
|
|
|
10448 |
}
|
|
|
10449 |
|
|
|
10450 |
public Object getFieldValue(_Fields field) {
|
|
|
10451 |
switch (field) {
|
|
|
10452 |
case SUCCESS:
|
|
|
10453 |
return getSuccess();
|
|
|
10454 |
|
|
|
10455 |
case WEX:
|
|
|
10456 |
return getWex();
|
|
|
10457 |
|
|
|
10458 |
}
|
|
|
10459 |
throw new IllegalStateException();
|
|
|
10460 |
}
|
|
|
10461 |
|
|
|
10462 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10463 |
public boolean isSet(_Fields field) {
|
|
|
10464 |
if (field == null) {
|
|
|
10465 |
throw new IllegalArgumentException();
|
|
|
10466 |
}
|
|
|
10467 |
|
|
|
10468 |
switch (field) {
|
|
|
10469 |
case SUCCESS:
|
|
|
10470 |
return isSetSuccess();
|
|
|
10471 |
case WEX:
|
|
|
10472 |
return isSetWex();
|
|
|
10473 |
}
|
|
|
10474 |
throw new IllegalStateException();
|
|
|
10475 |
}
|
|
|
10476 |
|
|
|
10477 |
@Override
|
|
|
10478 |
public boolean equals(Object that) {
|
|
|
10479 |
if (that == null)
|
|
|
10480 |
return false;
|
|
|
10481 |
if (that instanceof getInventoryItemFromId_result)
|
|
|
10482 |
return this.equals((getInventoryItemFromId_result)that);
|
|
|
10483 |
return false;
|
|
|
10484 |
}
|
|
|
10485 |
|
|
|
10486 |
public boolean equals(getInventoryItemFromId_result that) {
|
|
|
10487 |
if (that == null)
|
|
|
10488 |
return false;
|
|
|
10489 |
|
|
|
10490 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
10491 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
10492 |
if (this_present_success || that_present_success) {
|
|
|
10493 |
if (!(this_present_success && that_present_success))
|
|
|
10494 |
return false;
|
|
|
10495 |
if (!this.success.equals(that.success))
|
|
|
10496 |
return false;
|
|
|
10497 |
}
|
|
|
10498 |
|
|
|
10499 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
10500 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
10501 |
if (this_present_wex || that_present_wex) {
|
|
|
10502 |
if (!(this_present_wex && that_present_wex))
|
|
|
10503 |
return false;
|
|
|
10504 |
if (!this.wex.equals(that.wex))
|
|
|
10505 |
return false;
|
|
|
10506 |
}
|
|
|
10507 |
|
|
|
10508 |
return true;
|
|
|
10509 |
}
|
|
|
10510 |
|
|
|
10511 |
@Override
|
|
|
10512 |
public int hashCode() {
|
|
|
10513 |
return 0;
|
|
|
10514 |
}
|
|
|
10515 |
|
|
|
10516 |
public int compareTo(getInventoryItemFromId_result other) {
|
|
|
10517 |
if (!getClass().equals(other.getClass())) {
|
|
|
10518 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10519 |
}
|
|
|
10520 |
|
|
|
10521 |
int lastComparison = 0;
|
|
|
10522 |
getInventoryItemFromId_result typedOther = (getInventoryItemFromId_result)other;
|
|
|
10523 |
|
|
|
10524 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
10525 |
if (lastComparison != 0) {
|
|
|
10526 |
return lastComparison;
|
|
|
10527 |
}
|
|
|
10528 |
if (isSetSuccess()) {
|
|
|
10529 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
10530 |
if (lastComparison != 0) {
|
|
|
10531 |
return lastComparison;
|
|
|
10532 |
}
|
|
|
10533 |
}
|
|
|
10534 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
10535 |
if (lastComparison != 0) {
|
|
|
10536 |
return lastComparison;
|
|
|
10537 |
}
|
|
|
10538 |
if (isSetWex()) {
|
|
|
10539 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
10540 |
if (lastComparison != 0) {
|
|
|
10541 |
return lastComparison;
|
|
|
10542 |
}
|
|
|
10543 |
}
|
|
|
10544 |
return 0;
|
|
|
10545 |
}
|
|
|
10546 |
|
|
|
10547 |
public _Fields fieldForId(int fieldId) {
|
|
|
10548 |
return _Fields.findByThriftId(fieldId);
|
|
|
10549 |
}
|
|
|
10550 |
|
|
|
10551 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10552 |
org.apache.thrift.protocol.TField field;
|
|
|
10553 |
iprot.readStructBegin();
|
|
|
10554 |
while (true)
|
|
|
10555 |
{
|
|
|
10556 |
field = iprot.readFieldBegin();
|
|
|
10557 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10558 |
break;
|
|
|
10559 |
}
|
|
|
10560 |
switch (field.id) {
|
|
|
10561 |
case 0: // SUCCESS
|
|
|
10562 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
10563 |
this.success = new InventoryItem();
|
|
|
10564 |
this.success.read(iprot);
|
|
|
10565 |
} else {
|
|
|
10566 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10567 |
}
|
|
|
10568 |
break;
|
|
|
10569 |
case 1: // WEX
|
|
|
10570 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
10571 |
this.wex = new WarehouseServiceException();
|
|
|
10572 |
this.wex.read(iprot);
|
|
|
10573 |
} else {
|
|
|
10574 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10575 |
}
|
|
|
10576 |
break;
|
|
|
10577 |
default:
|
|
|
10578 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10579 |
}
|
|
|
10580 |
iprot.readFieldEnd();
|
|
|
10581 |
}
|
|
|
10582 |
iprot.readStructEnd();
|
|
|
10583 |
validate();
|
|
|
10584 |
}
|
|
|
10585 |
|
|
|
10586 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10587 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10588 |
|
|
|
10589 |
if (this.isSetSuccess()) {
|
|
|
10590 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
10591 |
this.success.write(oprot);
|
|
|
10592 |
oprot.writeFieldEnd();
|
|
|
10593 |
} else if (this.isSetWex()) {
|
|
|
10594 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
10595 |
this.wex.write(oprot);
|
|
|
10596 |
oprot.writeFieldEnd();
|
|
|
10597 |
}
|
|
|
10598 |
oprot.writeFieldStop();
|
|
|
10599 |
oprot.writeStructEnd();
|
|
|
10600 |
}
|
|
|
10601 |
|
|
|
10602 |
@Override
|
|
|
10603 |
public String toString() {
|
|
|
10604 |
StringBuilder sb = new StringBuilder("getInventoryItemFromId_result(");
|
|
|
10605 |
boolean first = true;
|
|
|
10606 |
|
|
|
10607 |
sb.append("success:");
|
|
|
10608 |
if (this.success == null) {
|
|
|
10609 |
sb.append("null");
|
|
|
10610 |
} else {
|
|
|
10611 |
sb.append(this.success);
|
|
|
10612 |
}
|
|
|
10613 |
first = false;
|
|
|
10614 |
if (!first) sb.append(", ");
|
|
|
10615 |
sb.append("wex:");
|
|
|
10616 |
if (this.wex == null) {
|
|
|
10617 |
sb.append("null");
|
|
|
10618 |
} else {
|
|
|
10619 |
sb.append(this.wex);
|
|
|
10620 |
}
|
|
|
10621 |
first = false;
|
|
|
10622 |
sb.append(")");
|
|
|
10623 |
return sb.toString();
|
|
|
10624 |
}
|
|
|
10625 |
|
|
|
10626 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10627 |
// check for required fields
|
|
|
10628 |
}
|
|
|
10629 |
|
|
|
10630 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10631 |
try {
|
|
|
10632 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10633 |
} catch (org.apache.thrift.TException te) {
|
|
|
10634 |
throw new java.io.IOException(te);
|
|
|
10635 |
}
|
|
|
10636 |
}
|
|
|
10637 |
|
|
|
10638 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10639 |
try {
|
|
|
10640 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10641 |
} catch (org.apache.thrift.TException te) {
|
|
|
10642 |
throw new java.io.IOException(te);
|
|
|
10643 |
}
|
|
|
10644 |
}
|
|
|
10645 |
|
|
|
10646 |
}
|
|
|
10647 |
|
| 5372 |
mandeep.dh |
10648 |
public static class getPurchaseScans_args implements org.apache.thrift.TBase<getPurchaseScans_args, getPurchaseScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
10649 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_args");
|
|
|
10650 |
|
|
|
10651 |
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);
|
|
|
10652 |
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);
|
|
|
10653 |
|
|
|
10654 |
private long startDate; // required
|
|
|
10655 |
private long endDate; // required
|
|
|
10656 |
|
|
|
10657 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10658 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10659 |
START_DATE((short)1, "startDate"),
|
|
|
10660 |
END_DATE((short)2, "endDate");
|
|
|
10661 |
|
|
|
10662 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10663 |
|
|
|
10664 |
static {
|
|
|
10665 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10666 |
byName.put(field.getFieldName(), field);
|
|
|
10667 |
}
|
|
|
10668 |
}
|
|
|
10669 |
|
|
|
10670 |
/**
|
|
|
10671 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10672 |
*/
|
|
|
10673 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10674 |
switch(fieldId) {
|
|
|
10675 |
case 1: // START_DATE
|
|
|
10676 |
return START_DATE;
|
|
|
10677 |
case 2: // END_DATE
|
|
|
10678 |
return END_DATE;
|
|
|
10679 |
default:
|
|
|
10680 |
return null;
|
|
|
10681 |
}
|
|
|
10682 |
}
|
|
|
10683 |
|
|
|
10684 |
/**
|
|
|
10685 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10686 |
* if it is not found.
|
|
|
10687 |
*/
|
|
|
10688 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10689 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10690 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10691 |
return fields;
|
|
|
10692 |
}
|
|
|
10693 |
|
|
|
10694 |
/**
|
|
|
10695 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10696 |
*/
|
|
|
10697 |
public static _Fields findByName(String name) {
|
|
|
10698 |
return byName.get(name);
|
|
|
10699 |
}
|
|
|
10700 |
|
|
|
10701 |
private final short _thriftId;
|
|
|
10702 |
private final String _fieldName;
|
|
|
10703 |
|
|
|
10704 |
_Fields(short thriftId, String fieldName) {
|
|
|
10705 |
_thriftId = thriftId;
|
|
|
10706 |
_fieldName = fieldName;
|
|
|
10707 |
}
|
|
|
10708 |
|
|
|
10709 |
public short getThriftFieldId() {
|
|
|
10710 |
return _thriftId;
|
|
|
10711 |
}
|
|
|
10712 |
|
|
|
10713 |
public String getFieldName() {
|
|
|
10714 |
return _fieldName;
|
|
|
10715 |
}
|
|
|
10716 |
}
|
|
|
10717 |
|
|
|
10718 |
// isset id assignments
|
|
|
10719 |
private static final int __STARTDATE_ISSET_ID = 0;
|
|
|
10720 |
private static final int __ENDDATE_ISSET_ID = 1;
|
|
|
10721 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
10722 |
|
|
|
10723 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10724 |
static {
|
|
|
10725 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10726 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10727 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
10728 |
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10729 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
10730 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10731 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_args.class, metaDataMap);
|
|
|
10732 |
}
|
|
|
10733 |
|
|
|
10734 |
public getPurchaseScans_args() {
|
|
|
10735 |
}
|
|
|
10736 |
|
|
|
10737 |
public getPurchaseScans_args(
|
|
|
10738 |
long startDate,
|
|
|
10739 |
long endDate)
|
|
|
10740 |
{
|
|
|
10741 |
this();
|
|
|
10742 |
this.startDate = startDate;
|
|
|
10743 |
setStartDateIsSet(true);
|
|
|
10744 |
this.endDate = endDate;
|
|
|
10745 |
setEndDateIsSet(true);
|
|
|
10746 |
}
|
|
|
10747 |
|
|
|
10748 |
/**
|
|
|
10749 |
* Performs a deep copy on <i>other</i>.
|
|
|
10750 |
*/
|
|
|
10751 |
public getPurchaseScans_args(getPurchaseScans_args other) {
|
|
|
10752 |
__isset_bit_vector.clear();
|
|
|
10753 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
10754 |
this.startDate = other.startDate;
|
|
|
10755 |
this.endDate = other.endDate;
|
|
|
10756 |
}
|
|
|
10757 |
|
|
|
10758 |
public getPurchaseScans_args deepCopy() {
|
|
|
10759 |
return new getPurchaseScans_args(this);
|
|
|
10760 |
}
|
|
|
10761 |
|
|
|
10762 |
@Override
|
|
|
10763 |
public void clear() {
|
|
|
10764 |
setStartDateIsSet(false);
|
|
|
10765 |
this.startDate = 0;
|
|
|
10766 |
setEndDateIsSet(false);
|
|
|
10767 |
this.endDate = 0;
|
|
|
10768 |
}
|
|
|
10769 |
|
|
|
10770 |
public long getStartDate() {
|
|
|
10771 |
return this.startDate;
|
|
|
10772 |
}
|
|
|
10773 |
|
|
|
10774 |
public void setStartDate(long startDate) {
|
|
|
10775 |
this.startDate = startDate;
|
|
|
10776 |
setStartDateIsSet(true);
|
|
|
10777 |
}
|
|
|
10778 |
|
|
|
10779 |
public void unsetStartDate() {
|
|
|
10780 |
__isset_bit_vector.clear(__STARTDATE_ISSET_ID);
|
|
|
10781 |
}
|
|
|
10782 |
|
|
|
10783 |
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
|
|
|
10784 |
public boolean isSetStartDate() {
|
|
|
10785 |
return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
|
|
|
10786 |
}
|
|
|
10787 |
|
|
|
10788 |
public void setStartDateIsSet(boolean value) {
|
|
|
10789 |
__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
|
|
|
10790 |
}
|
|
|
10791 |
|
|
|
10792 |
public long getEndDate() {
|
|
|
10793 |
return this.endDate;
|
|
|
10794 |
}
|
|
|
10795 |
|
|
|
10796 |
public void setEndDate(long endDate) {
|
|
|
10797 |
this.endDate = endDate;
|
|
|
10798 |
setEndDateIsSet(true);
|
|
|
10799 |
}
|
|
|
10800 |
|
|
|
10801 |
public void unsetEndDate() {
|
|
|
10802 |
__isset_bit_vector.clear(__ENDDATE_ISSET_ID);
|
|
|
10803 |
}
|
|
|
10804 |
|
|
|
10805 |
/** Returns true if field endDate is set (has been assigned a value) and false otherwise */
|
|
|
10806 |
public boolean isSetEndDate() {
|
|
|
10807 |
return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
|
|
|
10808 |
}
|
|
|
10809 |
|
|
|
10810 |
public void setEndDateIsSet(boolean value) {
|
|
|
10811 |
__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
|
|
|
10812 |
}
|
|
|
10813 |
|
|
|
10814 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10815 |
switch (field) {
|
|
|
10816 |
case START_DATE:
|
|
|
10817 |
if (value == null) {
|
|
|
10818 |
unsetStartDate();
|
|
|
10819 |
} else {
|
|
|
10820 |
setStartDate((Long)value);
|
|
|
10821 |
}
|
|
|
10822 |
break;
|
|
|
10823 |
|
|
|
10824 |
case END_DATE:
|
|
|
10825 |
if (value == null) {
|
|
|
10826 |
unsetEndDate();
|
|
|
10827 |
} else {
|
|
|
10828 |
setEndDate((Long)value);
|
|
|
10829 |
}
|
|
|
10830 |
break;
|
|
|
10831 |
|
|
|
10832 |
}
|
|
|
10833 |
}
|
|
|
10834 |
|
|
|
10835 |
public Object getFieldValue(_Fields field) {
|
|
|
10836 |
switch (field) {
|
|
|
10837 |
case START_DATE:
|
|
|
10838 |
return Long.valueOf(getStartDate());
|
|
|
10839 |
|
|
|
10840 |
case END_DATE:
|
|
|
10841 |
return Long.valueOf(getEndDate());
|
|
|
10842 |
|
|
|
10843 |
}
|
|
|
10844 |
throw new IllegalStateException();
|
|
|
10845 |
}
|
|
|
10846 |
|
|
|
10847 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10848 |
public boolean isSet(_Fields field) {
|
|
|
10849 |
if (field == null) {
|
|
|
10850 |
throw new IllegalArgumentException();
|
|
|
10851 |
}
|
|
|
10852 |
|
|
|
10853 |
switch (field) {
|
|
|
10854 |
case START_DATE:
|
|
|
10855 |
return isSetStartDate();
|
|
|
10856 |
case END_DATE:
|
|
|
10857 |
return isSetEndDate();
|
|
|
10858 |
}
|
|
|
10859 |
throw new IllegalStateException();
|
|
|
10860 |
}
|
|
|
10861 |
|
|
|
10862 |
@Override
|
|
|
10863 |
public boolean equals(Object that) {
|
|
|
10864 |
if (that == null)
|
|
|
10865 |
return false;
|
|
|
10866 |
if (that instanceof getPurchaseScans_args)
|
|
|
10867 |
return this.equals((getPurchaseScans_args)that);
|
|
|
10868 |
return false;
|
|
|
10869 |
}
|
|
|
10870 |
|
|
|
10871 |
public boolean equals(getPurchaseScans_args that) {
|
|
|
10872 |
if (that == null)
|
|
|
10873 |
return false;
|
|
|
10874 |
|
|
|
10875 |
boolean this_present_startDate = true;
|
|
|
10876 |
boolean that_present_startDate = true;
|
|
|
10877 |
if (this_present_startDate || that_present_startDate) {
|
|
|
10878 |
if (!(this_present_startDate && that_present_startDate))
|
|
|
10879 |
return false;
|
|
|
10880 |
if (this.startDate != that.startDate)
|
|
|
10881 |
return false;
|
|
|
10882 |
}
|
|
|
10883 |
|
|
|
10884 |
boolean this_present_endDate = true;
|
|
|
10885 |
boolean that_present_endDate = true;
|
|
|
10886 |
if (this_present_endDate || that_present_endDate) {
|
|
|
10887 |
if (!(this_present_endDate && that_present_endDate))
|
|
|
10888 |
return false;
|
|
|
10889 |
if (this.endDate != that.endDate)
|
|
|
10890 |
return false;
|
|
|
10891 |
}
|
|
|
10892 |
|
|
|
10893 |
return true;
|
|
|
10894 |
}
|
|
|
10895 |
|
|
|
10896 |
@Override
|
|
|
10897 |
public int hashCode() {
|
|
|
10898 |
return 0;
|
|
|
10899 |
}
|
|
|
10900 |
|
|
|
10901 |
public int compareTo(getPurchaseScans_args other) {
|
|
|
10902 |
if (!getClass().equals(other.getClass())) {
|
|
|
10903 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10904 |
}
|
|
|
10905 |
|
|
|
10906 |
int lastComparison = 0;
|
|
|
10907 |
getPurchaseScans_args typedOther = (getPurchaseScans_args)other;
|
|
|
10908 |
|
|
|
10909 |
lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
|
|
|
10910 |
if (lastComparison != 0) {
|
|
|
10911 |
return lastComparison;
|
|
|
10912 |
}
|
|
|
10913 |
if (isSetStartDate()) {
|
|
|
10914 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
|
|
|
10915 |
if (lastComparison != 0) {
|
|
|
10916 |
return lastComparison;
|
|
|
10917 |
}
|
|
|
10918 |
}
|
|
|
10919 |
lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
|
|
|
10920 |
if (lastComparison != 0) {
|
|
|
10921 |
return lastComparison;
|
|
|
10922 |
}
|
|
|
10923 |
if (isSetEndDate()) {
|
|
|
10924 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
|
|
|
10925 |
if (lastComparison != 0) {
|
|
|
10926 |
return lastComparison;
|
|
|
10927 |
}
|
|
|
10928 |
}
|
|
|
10929 |
return 0;
|
|
|
10930 |
}
|
|
|
10931 |
|
|
|
10932 |
public _Fields fieldForId(int fieldId) {
|
|
|
10933 |
return _Fields.findByThriftId(fieldId);
|
|
|
10934 |
}
|
|
|
10935 |
|
|
|
10936 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10937 |
org.apache.thrift.protocol.TField field;
|
|
|
10938 |
iprot.readStructBegin();
|
|
|
10939 |
while (true)
|
|
|
10940 |
{
|
|
|
10941 |
field = iprot.readFieldBegin();
|
|
|
10942 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10943 |
break;
|
|
|
10944 |
}
|
|
|
10945 |
switch (field.id) {
|
|
|
10946 |
case 1: // START_DATE
|
|
|
10947 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10948 |
this.startDate = iprot.readI64();
|
|
|
10949 |
setStartDateIsSet(true);
|
|
|
10950 |
} else {
|
|
|
10951 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10952 |
}
|
|
|
10953 |
break;
|
|
|
10954 |
case 2: // END_DATE
|
|
|
10955 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10956 |
this.endDate = iprot.readI64();
|
|
|
10957 |
setEndDateIsSet(true);
|
|
|
10958 |
} else {
|
|
|
10959 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10960 |
}
|
|
|
10961 |
break;
|
|
|
10962 |
default:
|
|
|
10963 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10964 |
}
|
|
|
10965 |
iprot.readFieldEnd();
|
|
|
10966 |
}
|
|
|
10967 |
iprot.readStructEnd();
|
|
|
10968 |
validate();
|
|
|
10969 |
}
|
|
|
10970 |
|
|
|
10971 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10972 |
validate();
|
|
|
10973 |
|
|
|
10974 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10975 |
oprot.writeFieldBegin(START_DATE_FIELD_DESC);
|
|
|
10976 |
oprot.writeI64(this.startDate);
|
|
|
10977 |
oprot.writeFieldEnd();
|
|
|
10978 |
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
|
|
|
10979 |
oprot.writeI64(this.endDate);
|
|
|
10980 |
oprot.writeFieldEnd();
|
|
|
10981 |
oprot.writeFieldStop();
|
|
|
10982 |
oprot.writeStructEnd();
|
|
|
10983 |
}
|
|
|
10984 |
|
|
|
10985 |
@Override
|
|
|
10986 |
public String toString() {
|
|
|
10987 |
StringBuilder sb = new StringBuilder("getPurchaseScans_args(");
|
|
|
10988 |
boolean first = true;
|
|
|
10989 |
|
|
|
10990 |
sb.append("startDate:");
|
|
|
10991 |
sb.append(this.startDate);
|
|
|
10992 |
first = false;
|
|
|
10993 |
if (!first) sb.append(", ");
|
|
|
10994 |
sb.append("endDate:");
|
|
|
10995 |
sb.append(this.endDate);
|
|
|
10996 |
first = false;
|
|
|
10997 |
sb.append(")");
|
|
|
10998 |
return sb.toString();
|
|
|
10999 |
}
|
|
|
11000 |
|
|
|
11001 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11002 |
// check for required fields
|
|
|
11003 |
}
|
|
|
11004 |
|
|
|
11005 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11006 |
try {
|
|
|
11007 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11008 |
} catch (org.apache.thrift.TException te) {
|
|
|
11009 |
throw new java.io.IOException(te);
|
|
|
11010 |
}
|
|
|
11011 |
}
|
|
|
11012 |
|
|
|
11013 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11014 |
try {
|
|
|
11015 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
11016 |
__isset_bit_vector = new BitSet(1);
|
|
|
11017 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11018 |
} catch (org.apache.thrift.TException te) {
|
|
|
11019 |
throw new java.io.IOException(te);
|
|
|
11020 |
}
|
|
|
11021 |
}
|
|
|
11022 |
|
|
|
11023 |
}
|
|
|
11024 |
|
|
|
11025 |
public static class getPurchaseScans_result implements org.apache.thrift.TBase<getPurchaseScans_result, getPurchaseScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
11026 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_result");
|
|
|
11027 |
|
|
|
11028 |
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);
|
|
|
11029 |
|
|
|
11030 |
private List<DetailedPurchaseScan> success; // required
|
|
|
11031 |
|
|
|
11032 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11033 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11034 |
SUCCESS((short)0, "success");
|
|
|
11035 |
|
|
|
11036 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11037 |
|
|
|
11038 |
static {
|
|
|
11039 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11040 |
byName.put(field.getFieldName(), field);
|
|
|
11041 |
}
|
|
|
11042 |
}
|
|
|
11043 |
|
|
|
11044 |
/**
|
|
|
11045 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11046 |
*/
|
|
|
11047 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11048 |
switch(fieldId) {
|
|
|
11049 |
case 0: // SUCCESS
|
|
|
11050 |
return SUCCESS;
|
|
|
11051 |
default:
|
|
|
11052 |
return null;
|
|
|
11053 |
}
|
|
|
11054 |
}
|
|
|
11055 |
|
|
|
11056 |
/**
|
|
|
11057 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11058 |
* if it is not found.
|
|
|
11059 |
*/
|
|
|
11060 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11061 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11062 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11063 |
return fields;
|
|
|
11064 |
}
|
|
|
11065 |
|
|
|
11066 |
/**
|
|
|
11067 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11068 |
*/
|
|
|
11069 |
public static _Fields findByName(String name) {
|
|
|
11070 |
return byName.get(name);
|
|
|
11071 |
}
|
|
|
11072 |
|
|
|
11073 |
private final short _thriftId;
|
|
|
11074 |
private final String _fieldName;
|
|
|
11075 |
|
|
|
11076 |
_Fields(short thriftId, String fieldName) {
|
|
|
11077 |
_thriftId = thriftId;
|
|
|
11078 |
_fieldName = fieldName;
|
|
|
11079 |
}
|
|
|
11080 |
|
|
|
11081 |
public short getThriftFieldId() {
|
|
|
11082 |
return _thriftId;
|
|
|
11083 |
}
|
|
|
11084 |
|
|
|
11085 |
public String getFieldName() {
|
|
|
11086 |
return _fieldName;
|
|
|
11087 |
}
|
|
|
11088 |
}
|
|
|
11089 |
|
|
|
11090 |
// isset id assignments
|
|
|
11091 |
|
|
|
11092 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11093 |
static {
|
|
|
11094 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11095 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11096 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
11097 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DetailedPurchaseScan.class))));
|
|
|
11098 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11099 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_result.class, metaDataMap);
|
|
|
11100 |
}
|
|
|
11101 |
|
|
|
11102 |
public getPurchaseScans_result() {
|
|
|
11103 |
}
|
|
|
11104 |
|
|
|
11105 |
public getPurchaseScans_result(
|
|
|
11106 |
List<DetailedPurchaseScan> success)
|
|
|
11107 |
{
|
|
|
11108 |
this();
|
|
|
11109 |
this.success = success;
|
|
|
11110 |
}
|
|
|
11111 |
|
|
|
11112 |
/**
|
|
|
11113 |
* Performs a deep copy on <i>other</i>.
|
|
|
11114 |
*/
|
|
|
11115 |
public getPurchaseScans_result(getPurchaseScans_result other) {
|
|
|
11116 |
if (other.isSetSuccess()) {
|
|
|
11117 |
List<DetailedPurchaseScan> __this__success = new ArrayList<DetailedPurchaseScan>();
|
|
|
11118 |
for (DetailedPurchaseScan other_element : other.success) {
|
|
|
11119 |
__this__success.add(new DetailedPurchaseScan(other_element));
|
|
|
11120 |
}
|
|
|
11121 |
this.success = __this__success;
|
|
|
11122 |
}
|
|
|
11123 |
}
|
|
|
11124 |
|
|
|
11125 |
public getPurchaseScans_result deepCopy() {
|
|
|
11126 |
return new getPurchaseScans_result(this);
|
|
|
11127 |
}
|
|
|
11128 |
|
|
|
11129 |
@Override
|
|
|
11130 |
public void clear() {
|
|
|
11131 |
this.success = null;
|
|
|
11132 |
}
|
|
|
11133 |
|
|
|
11134 |
public int getSuccessSize() {
|
|
|
11135 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
11136 |
}
|
|
|
11137 |
|
|
|
11138 |
public java.util.Iterator<DetailedPurchaseScan> getSuccessIterator() {
|
|
|
11139 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
11140 |
}
|
|
|
11141 |
|
|
|
11142 |
public void addToSuccess(DetailedPurchaseScan elem) {
|
|
|
11143 |
if (this.success == null) {
|
|
|
11144 |
this.success = new ArrayList<DetailedPurchaseScan>();
|
|
|
11145 |
}
|
|
|
11146 |
this.success.add(elem);
|
|
|
11147 |
}
|
|
|
11148 |
|
|
|
11149 |
public List<DetailedPurchaseScan> getSuccess() {
|
|
|
11150 |
return this.success;
|
|
|
11151 |
}
|
|
|
11152 |
|
|
|
11153 |
public void setSuccess(List<DetailedPurchaseScan> success) {
|
|
|
11154 |
this.success = success;
|
|
|
11155 |
}
|
|
|
11156 |
|
|
|
11157 |
public void unsetSuccess() {
|
|
|
11158 |
this.success = null;
|
|
|
11159 |
}
|
|
|
11160 |
|
|
|
11161 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
11162 |
public boolean isSetSuccess() {
|
|
|
11163 |
return this.success != null;
|
|
|
11164 |
}
|
|
|
11165 |
|
|
|
11166 |
public void setSuccessIsSet(boolean value) {
|
|
|
11167 |
if (!value) {
|
|
|
11168 |
this.success = null;
|
|
|
11169 |
}
|
|
|
11170 |
}
|
|
|
11171 |
|
|
|
11172 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11173 |
switch (field) {
|
|
|
11174 |
case SUCCESS:
|
|
|
11175 |
if (value == null) {
|
|
|
11176 |
unsetSuccess();
|
|
|
11177 |
} else {
|
|
|
11178 |
setSuccess((List<DetailedPurchaseScan>)value);
|
|
|
11179 |
}
|
|
|
11180 |
break;
|
|
|
11181 |
|
|
|
11182 |
}
|
|
|
11183 |
}
|
|
|
11184 |
|
|
|
11185 |
public Object getFieldValue(_Fields field) {
|
|
|
11186 |
switch (field) {
|
|
|
11187 |
case SUCCESS:
|
|
|
11188 |
return getSuccess();
|
|
|
11189 |
|
|
|
11190 |
}
|
|
|
11191 |
throw new IllegalStateException();
|
|
|
11192 |
}
|
|
|
11193 |
|
|
|
11194 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11195 |
public boolean isSet(_Fields field) {
|
|
|
11196 |
if (field == null) {
|
|
|
11197 |
throw new IllegalArgumentException();
|
|
|
11198 |
}
|
|
|
11199 |
|
|
|
11200 |
switch (field) {
|
|
|
11201 |
case SUCCESS:
|
|
|
11202 |
return isSetSuccess();
|
|
|
11203 |
}
|
|
|
11204 |
throw new IllegalStateException();
|
|
|
11205 |
}
|
|
|
11206 |
|
|
|
11207 |
@Override
|
|
|
11208 |
public boolean equals(Object that) {
|
|
|
11209 |
if (that == null)
|
|
|
11210 |
return false;
|
|
|
11211 |
if (that instanceof getPurchaseScans_result)
|
|
|
11212 |
return this.equals((getPurchaseScans_result)that);
|
|
|
11213 |
return false;
|
|
|
11214 |
}
|
|
|
11215 |
|
|
|
11216 |
public boolean equals(getPurchaseScans_result that) {
|
|
|
11217 |
if (that == null)
|
|
|
11218 |
return false;
|
|
|
11219 |
|
|
|
11220 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
11221 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
11222 |
if (this_present_success || that_present_success) {
|
|
|
11223 |
if (!(this_present_success && that_present_success))
|
|
|
11224 |
return false;
|
|
|
11225 |
if (!this.success.equals(that.success))
|
|
|
11226 |
return false;
|
|
|
11227 |
}
|
|
|
11228 |
|
|
|
11229 |
return true;
|
|
|
11230 |
}
|
|
|
11231 |
|
|
|
11232 |
@Override
|
|
|
11233 |
public int hashCode() {
|
|
|
11234 |
return 0;
|
|
|
11235 |
}
|
|
|
11236 |
|
|
|
11237 |
public int compareTo(getPurchaseScans_result other) {
|
|
|
11238 |
if (!getClass().equals(other.getClass())) {
|
|
|
11239 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11240 |
}
|
|
|
11241 |
|
|
|
11242 |
int lastComparison = 0;
|
|
|
11243 |
getPurchaseScans_result typedOther = (getPurchaseScans_result)other;
|
|
|
11244 |
|
|
|
11245 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
11246 |
if (lastComparison != 0) {
|
|
|
11247 |
return lastComparison;
|
|
|
11248 |
}
|
|
|
11249 |
if (isSetSuccess()) {
|
|
|
11250 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
11251 |
if (lastComparison != 0) {
|
|
|
11252 |
return lastComparison;
|
|
|
11253 |
}
|
|
|
11254 |
}
|
|
|
11255 |
return 0;
|
|
|
11256 |
}
|
|
|
11257 |
|
|
|
11258 |
public _Fields fieldForId(int fieldId) {
|
|
|
11259 |
return _Fields.findByThriftId(fieldId);
|
|
|
11260 |
}
|
|
|
11261 |
|
|
|
11262 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11263 |
org.apache.thrift.protocol.TField field;
|
|
|
11264 |
iprot.readStructBegin();
|
|
|
11265 |
while (true)
|
|
|
11266 |
{
|
|
|
11267 |
field = iprot.readFieldBegin();
|
|
|
11268 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11269 |
break;
|
|
|
11270 |
}
|
|
|
11271 |
switch (field.id) {
|
|
|
11272 |
case 0: // SUCCESS
|
|
|
11273 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
11274 |
{
|
|
|
11275 |
org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
|
|
|
11276 |
this.success = new ArrayList<DetailedPurchaseScan>(_list12.size);
|
|
|
11277 |
for (int _i13 = 0; _i13 < _list12.size; ++_i13)
|
|
|
11278 |
{
|
|
|
11279 |
DetailedPurchaseScan _elem14; // required
|
|
|
11280 |
_elem14 = new DetailedPurchaseScan();
|
|
|
11281 |
_elem14.read(iprot);
|
|
|
11282 |
this.success.add(_elem14);
|
|
|
11283 |
}
|
|
|
11284 |
iprot.readListEnd();
|
|
|
11285 |
}
|
|
|
11286 |
} else {
|
|
|
11287 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11288 |
}
|
|
|
11289 |
break;
|
|
|
11290 |
default:
|
|
|
11291 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11292 |
}
|
|
|
11293 |
iprot.readFieldEnd();
|
|
|
11294 |
}
|
|
|
11295 |
iprot.readStructEnd();
|
|
|
11296 |
validate();
|
|
|
11297 |
}
|
|
|
11298 |
|
|
|
11299 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11300 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11301 |
|
|
|
11302 |
if (this.isSetSuccess()) {
|
|
|
11303 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
11304 |
{
|
|
|
11305 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
11306 |
for (DetailedPurchaseScan _iter15 : this.success)
|
|
|
11307 |
{
|
|
|
11308 |
_iter15.write(oprot);
|
|
|
11309 |
}
|
|
|
11310 |
oprot.writeListEnd();
|
|
|
11311 |
}
|
|
|
11312 |
oprot.writeFieldEnd();
|
|
|
11313 |
}
|
|
|
11314 |
oprot.writeFieldStop();
|
|
|
11315 |
oprot.writeStructEnd();
|
|
|
11316 |
}
|
|
|
11317 |
|
|
|
11318 |
@Override
|
|
|
11319 |
public String toString() {
|
|
|
11320 |
StringBuilder sb = new StringBuilder("getPurchaseScans_result(");
|
|
|
11321 |
boolean first = true;
|
|
|
11322 |
|
|
|
11323 |
sb.append("success:");
|
|
|
11324 |
if (this.success == null) {
|
|
|
11325 |
sb.append("null");
|
|
|
11326 |
} else {
|
|
|
11327 |
sb.append(this.success);
|
|
|
11328 |
}
|
|
|
11329 |
first = false;
|
|
|
11330 |
sb.append(")");
|
|
|
11331 |
return sb.toString();
|
|
|
11332 |
}
|
|
|
11333 |
|
|
|
11334 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11335 |
// check for required fields
|
|
|
11336 |
}
|
|
|
11337 |
|
|
|
11338 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11339 |
try {
|
|
|
11340 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11341 |
} catch (org.apache.thrift.TException te) {
|
|
|
11342 |
throw new java.io.IOException(te);
|
|
|
11343 |
}
|
|
|
11344 |
}
|
|
|
11345 |
|
|
|
11346 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11347 |
try {
|
|
|
11348 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11349 |
} catch (org.apache.thrift.TException te) {
|
|
|
11350 |
throw new java.io.IOException(te);
|
|
|
11351 |
}
|
|
|
11352 |
}
|
|
|
11353 |
|
|
|
11354 |
}
|
|
|
11355 |
|
| 7210 |
amar.kumar |
11356 |
public static class getPurchaseScansByGrnDate_args implements org.apache.thrift.TBase<getPurchaseScansByGrnDate_args, getPurchaseScansByGrnDate_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
11357 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScansByGrnDate_args");
|
|
|
11358 |
|
|
|
11359 |
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);
|
|
|
11360 |
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);
|
|
|
11361 |
|
|
|
11362 |
private long startDate; // required
|
|
|
11363 |
private long endDate; // required
|
|
|
11364 |
|
|
|
11365 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11366 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11367 |
START_DATE((short)1, "startDate"),
|
|
|
11368 |
END_DATE((short)2, "endDate");
|
|
|
11369 |
|
|
|
11370 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11371 |
|
|
|
11372 |
static {
|
|
|
11373 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11374 |
byName.put(field.getFieldName(), field);
|
|
|
11375 |
}
|
|
|
11376 |
}
|
|
|
11377 |
|
|
|
11378 |
/**
|
|
|
11379 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11380 |
*/
|
|
|
11381 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11382 |
switch(fieldId) {
|
|
|
11383 |
case 1: // START_DATE
|
|
|
11384 |
return START_DATE;
|
|
|
11385 |
case 2: // END_DATE
|
|
|
11386 |
return END_DATE;
|
|
|
11387 |
default:
|
|
|
11388 |
return null;
|
|
|
11389 |
}
|
|
|
11390 |
}
|
|
|
11391 |
|
|
|
11392 |
/**
|
|
|
11393 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11394 |
* if it is not found.
|
|
|
11395 |
*/
|
|
|
11396 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11397 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11398 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11399 |
return fields;
|
|
|
11400 |
}
|
|
|
11401 |
|
|
|
11402 |
/**
|
|
|
11403 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11404 |
*/
|
|
|
11405 |
public static _Fields findByName(String name) {
|
|
|
11406 |
return byName.get(name);
|
|
|
11407 |
}
|
|
|
11408 |
|
|
|
11409 |
private final short _thriftId;
|
|
|
11410 |
private final String _fieldName;
|
|
|
11411 |
|
|
|
11412 |
_Fields(short thriftId, String fieldName) {
|
|
|
11413 |
_thriftId = thriftId;
|
|
|
11414 |
_fieldName = fieldName;
|
|
|
11415 |
}
|
|
|
11416 |
|
|
|
11417 |
public short getThriftFieldId() {
|
|
|
11418 |
return _thriftId;
|
|
|
11419 |
}
|
|
|
11420 |
|
|
|
11421 |
public String getFieldName() {
|
|
|
11422 |
return _fieldName;
|
|
|
11423 |
}
|
|
|
11424 |
}
|
|
|
11425 |
|
|
|
11426 |
// isset id assignments
|
|
|
11427 |
private static final int __STARTDATE_ISSET_ID = 0;
|
|
|
11428 |
private static final int __ENDDATE_ISSET_ID = 1;
|
|
|
11429 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
11430 |
|
|
|
11431 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11432 |
static {
|
|
|
11433 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11434 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11435 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
11436 |
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11437 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
11438 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11439 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScansByGrnDate_args.class, metaDataMap);
|
|
|
11440 |
}
|
|
|
11441 |
|
|
|
11442 |
public getPurchaseScansByGrnDate_args() {
|
|
|
11443 |
}
|
|
|
11444 |
|
|
|
11445 |
public getPurchaseScansByGrnDate_args(
|
|
|
11446 |
long startDate,
|
|
|
11447 |
long endDate)
|
|
|
11448 |
{
|
|
|
11449 |
this();
|
|
|
11450 |
this.startDate = startDate;
|
|
|
11451 |
setStartDateIsSet(true);
|
|
|
11452 |
this.endDate = endDate;
|
|
|
11453 |
setEndDateIsSet(true);
|
|
|
11454 |
}
|
|
|
11455 |
|
|
|
11456 |
/**
|
|
|
11457 |
* Performs a deep copy on <i>other</i>.
|
|
|
11458 |
*/
|
|
|
11459 |
public getPurchaseScansByGrnDate_args(getPurchaseScansByGrnDate_args other) {
|
|
|
11460 |
__isset_bit_vector.clear();
|
|
|
11461 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
11462 |
this.startDate = other.startDate;
|
|
|
11463 |
this.endDate = other.endDate;
|
|
|
11464 |
}
|
|
|
11465 |
|
|
|
11466 |
public getPurchaseScansByGrnDate_args deepCopy() {
|
|
|
11467 |
return new getPurchaseScansByGrnDate_args(this);
|
|
|
11468 |
}
|
|
|
11469 |
|
|
|
11470 |
@Override
|
|
|
11471 |
public void clear() {
|
|
|
11472 |
setStartDateIsSet(false);
|
|
|
11473 |
this.startDate = 0;
|
|
|
11474 |
setEndDateIsSet(false);
|
|
|
11475 |
this.endDate = 0;
|
|
|
11476 |
}
|
|
|
11477 |
|
|
|
11478 |
public long getStartDate() {
|
|
|
11479 |
return this.startDate;
|
|
|
11480 |
}
|
|
|
11481 |
|
|
|
11482 |
public void setStartDate(long startDate) {
|
|
|
11483 |
this.startDate = startDate;
|
|
|
11484 |
setStartDateIsSet(true);
|
|
|
11485 |
}
|
|
|
11486 |
|
|
|
11487 |
public void unsetStartDate() {
|
|
|
11488 |
__isset_bit_vector.clear(__STARTDATE_ISSET_ID);
|
|
|
11489 |
}
|
|
|
11490 |
|
|
|
11491 |
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
|
|
|
11492 |
public boolean isSetStartDate() {
|
|
|
11493 |
return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
|
|
|
11494 |
}
|
|
|
11495 |
|
|
|
11496 |
public void setStartDateIsSet(boolean value) {
|
|
|
11497 |
__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
|
|
|
11498 |
}
|
|
|
11499 |
|
|
|
11500 |
public long getEndDate() {
|
|
|
11501 |
return this.endDate;
|
|
|
11502 |
}
|
|
|
11503 |
|
|
|
11504 |
public void setEndDate(long endDate) {
|
|
|
11505 |
this.endDate = endDate;
|
|
|
11506 |
setEndDateIsSet(true);
|
|
|
11507 |
}
|
|
|
11508 |
|
|
|
11509 |
public void unsetEndDate() {
|
|
|
11510 |
__isset_bit_vector.clear(__ENDDATE_ISSET_ID);
|
|
|
11511 |
}
|
|
|
11512 |
|
|
|
11513 |
/** Returns true if field endDate is set (has been assigned a value) and false otherwise */
|
|
|
11514 |
public boolean isSetEndDate() {
|
|
|
11515 |
return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
|
|
|
11516 |
}
|
|
|
11517 |
|
|
|
11518 |
public void setEndDateIsSet(boolean value) {
|
|
|
11519 |
__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
|
|
|
11520 |
}
|
|
|
11521 |
|
|
|
11522 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11523 |
switch (field) {
|
|
|
11524 |
case START_DATE:
|
|
|
11525 |
if (value == null) {
|
|
|
11526 |
unsetStartDate();
|
|
|
11527 |
} else {
|
|
|
11528 |
setStartDate((Long)value);
|
|
|
11529 |
}
|
|
|
11530 |
break;
|
|
|
11531 |
|
|
|
11532 |
case END_DATE:
|
|
|
11533 |
if (value == null) {
|
|
|
11534 |
unsetEndDate();
|
|
|
11535 |
} else {
|
|
|
11536 |
setEndDate((Long)value);
|
|
|
11537 |
}
|
|
|
11538 |
break;
|
|
|
11539 |
|
|
|
11540 |
}
|
|
|
11541 |
}
|
|
|
11542 |
|
|
|
11543 |
public Object getFieldValue(_Fields field) {
|
|
|
11544 |
switch (field) {
|
|
|
11545 |
case START_DATE:
|
|
|
11546 |
return Long.valueOf(getStartDate());
|
|
|
11547 |
|
|
|
11548 |
case END_DATE:
|
|
|
11549 |
return Long.valueOf(getEndDate());
|
|
|
11550 |
|
|
|
11551 |
}
|
|
|
11552 |
throw new IllegalStateException();
|
|
|
11553 |
}
|
|
|
11554 |
|
|
|
11555 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11556 |
public boolean isSet(_Fields field) {
|
|
|
11557 |
if (field == null) {
|
|
|
11558 |
throw new IllegalArgumentException();
|
|
|
11559 |
}
|
|
|
11560 |
|
|
|
11561 |
switch (field) {
|
|
|
11562 |
case START_DATE:
|
|
|
11563 |
return isSetStartDate();
|
|
|
11564 |
case END_DATE:
|
|
|
11565 |
return isSetEndDate();
|
|
|
11566 |
}
|
|
|
11567 |
throw new IllegalStateException();
|
|
|
11568 |
}
|
|
|
11569 |
|
|
|
11570 |
@Override
|
|
|
11571 |
public boolean equals(Object that) {
|
|
|
11572 |
if (that == null)
|
|
|
11573 |
return false;
|
|
|
11574 |
if (that instanceof getPurchaseScansByGrnDate_args)
|
|
|
11575 |
return this.equals((getPurchaseScansByGrnDate_args)that);
|
|
|
11576 |
return false;
|
|
|
11577 |
}
|
|
|
11578 |
|
|
|
11579 |
public boolean equals(getPurchaseScansByGrnDate_args that) {
|
|
|
11580 |
if (that == null)
|
|
|
11581 |
return false;
|
|
|
11582 |
|
|
|
11583 |
boolean this_present_startDate = true;
|
|
|
11584 |
boolean that_present_startDate = true;
|
|
|
11585 |
if (this_present_startDate || that_present_startDate) {
|
|
|
11586 |
if (!(this_present_startDate && that_present_startDate))
|
|
|
11587 |
return false;
|
|
|
11588 |
if (this.startDate != that.startDate)
|
|
|
11589 |
return false;
|
|
|
11590 |
}
|
|
|
11591 |
|
|
|
11592 |
boolean this_present_endDate = true;
|
|
|
11593 |
boolean that_present_endDate = true;
|
|
|
11594 |
if (this_present_endDate || that_present_endDate) {
|
|
|
11595 |
if (!(this_present_endDate && that_present_endDate))
|
|
|
11596 |
return false;
|
|
|
11597 |
if (this.endDate != that.endDate)
|
|
|
11598 |
return false;
|
|
|
11599 |
}
|
|
|
11600 |
|
|
|
11601 |
return true;
|
|
|
11602 |
}
|
|
|
11603 |
|
|
|
11604 |
@Override
|
|
|
11605 |
public int hashCode() {
|
|
|
11606 |
return 0;
|
|
|
11607 |
}
|
|
|
11608 |
|
|
|
11609 |
public int compareTo(getPurchaseScansByGrnDate_args other) {
|
|
|
11610 |
if (!getClass().equals(other.getClass())) {
|
|
|
11611 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11612 |
}
|
|
|
11613 |
|
|
|
11614 |
int lastComparison = 0;
|
|
|
11615 |
getPurchaseScansByGrnDate_args typedOther = (getPurchaseScansByGrnDate_args)other;
|
|
|
11616 |
|
|
|
11617 |
lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
|
|
|
11618 |
if (lastComparison != 0) {
|
|
|
11619 |
return lastComparison;
|
|
|
11620 |
}
|
|
|
11621 |
if (isSetStartDate()) {
|
|
|
11622 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
|
|
|
11623 |
if (lastComparison != 0) {
|
|
|
11624 |
return lastComparison;
|
|
|
11625 |
}
|
|
|
11626 |
}
|
|
|
11627 |
lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
|
|
|
11628 |
if (lastComparison != 0) {
|
|
|
11629 |
return lastComparison;
|
|
|
11630 |
}
|
|
|
11631 |
if (isSetEndDate()) {
|
|
|
11632 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
|
|
|
11633 |
if (lastComparison != 0) {
|
|
|
11634 |
return lastComparison;
|
|
|
11635 |
}
|
|
|
11636 |
}
|
|
|
11637 |
return 0;
|
|
|
11638 |
}
|
|
|
11639 |
|
|
|
11640 |
public _Fields fieldForId(int fieldId) {
|
|
|
11641 |
return _Fields.findByThriftId(fieldId);
|
|
|
11642 |
}
|
|
|
11643 |
|
|
|
11644 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11645 |
org.apache.thrift.protocol.TField field;
|
|
|
11646 |
iprot.readStructBegin();
|
|
|
11647 |
while (true)
|
|
|
11648 |
{
|
|
|
11649 |
field = iprot.readFieldBegin();
|
|
|
11650 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11651 |
break;
|
|
|
11652 |
}
|
|
|
11653 |
switch (field.id) {
|
|
|
11654 |
case 1: // START_DATE
|
|
|
11655 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
11656 |
this.startDate = iprot.readI64();
|
|
|
11657 |
setStartDateIsSet(true);
|
|
|
11658 |
} else {
|
|
|
11659 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11660 |
}
|
|
|
11661 |
break;
|
|
|
11662 |
case 2: // END_DATE
|
|
|
11663 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
11664 |
this.endDate = iprot.readI64();
|
|
|
11665 |
setEndDateIsSet(true);
|
|
|
11666 |
} else {
|
|
|
11667 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11668 |
}
|
|
|
11669 |
break;
|
|
|
11670 |
default:
|
|
|
11671 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11672 |
}
|
|
|
11673 |
iprot.readFieldEnd();
|
|
|
11674 |
}
|
|
|
11675 |
iprot.readStructEnd();
|
|
|
11676 |
validate();
|
|
|
11677 |
}
|
|
|
11678 |
|
|
|
11679 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11680 |
validate();
|
|
|
11681 |
|
|
|
11682 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11683 |
oprot.writeFieldBegin(START_DATE_FIELD_DESC);
|
|
|
11684 |
oprot.writeI64(this.startDate);
|
|
|
11685 |
oprot.writeFieldEnd();
|
|
|
11686 |
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
|
|
|
11687 |
oprot.writeI64(this.endDate);
|
|
|
11688 |
oprot.writeFieldEnd();
|
|
|
11689 |
oprot.writeFieldStop();
|
|
|
11690 |
oprot.writeStructEnd();
|
|
|
11691 |
}
|
|
|
11692 |
|
|
|
11693 |
@Override
|
|
|
11694 |
public String toString() {
|
|
|
11695 |
StringBuilder sb = new StringBuilder("getPurchaseScansByGrnDate_args(");
|
|
|
11696 |
boolean first = true;
|
|
|
11697 |
|
|
|
11698 |
sb.append("startDate:");
|
|
|
11699 |
sb.append(this.startDate);
|
|
|
11700 |
first = false;
|
|
|
11701 |
if (!first) sb.append(", ");
|
|
|
11702 |
sb.append("endDate:");
|
|
|
11703 |
sb.append(this.endDate);
|
|
|
11704 |
first = false;
|
|
|
11705 |
sb.append(")");
|
|
|
11706 |
return sb.toString();
|
|
|
11707 |
}
|
|
|
11708 |
|
|
|
11709 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11710 |
// check for required fields
|
|
|
11711 |
}
|
|
|
11712 |
|
|
|
11713 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11714 |
try {
|
|
|
11715 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11716 |
} catch (org.apache.thrift.TException te) {
|
|
|
11717 |
throw new java.io.IOException(te);
|
|
|
11718 |
}
|
|
|
11719 |
}
|
|
|
11720 |
|
|
|
11721 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11722 |
try {
|
|
|
11723 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
11724 |
__isset_bit_vector = new BitSet(1);
|
|
|
11725 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11726 |
} catch (org.apache.thrift.TException te) {
|
|
|
11727 |
throw new java.io.IOException(te);
|
|
|
11728 |
}
|
|
|
11729 |
}
|
|
|
11730 |
|
|
|
11731 |
}
|
|
|
11732 |
|
|
|
11733 |
public static class getPurchaseScansByGrnDate_result implements org.apache.thrift.TBase<getPurchaseScansByGrnDate_result, getPurchaseScansByGrnDate_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
11734 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScansByGrnDate_result");
|
|
|
11735 |
|
|
|
11736 |
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);
|
|
|
11737 |
|
|
|
11738 |
private List<DetailedPurchaseScan> success; // required
|
|
|
11739 |
|
|
|
11740 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11741 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11742 |
SUCCESS((short)0, "success");
|
|
|
11743 |
|
|
|
11744 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11745 |
|
|
|
11746 |
static {
|
|
|
11747 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11748 |
byName.put(field.getFieldName(), field);
|
|
|
11749 |
}
|
|
|
11750 |
}
|
|
|
11751 |
|
|
|
11752 |
/**
|
|
|
11753 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11754 |
*/
|
|
|
11755 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11756 |
switch(fieldId) {
|
|
|
11757 |
case 0: // SUCCESS
|
|
|
11758 |
return SUCCESS;
|
|
|
11759 |
default:
|
|
|
11760 |
return null;
|
|
|
11761 |
}
|
|
|
11762 |
}
|
|
|
11763 |
|
|
|
11764 |
/**
|
|
|
11765 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11766 |
* if it is not found.
|
|
|
11767 |
*/
|
|
|
11768 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11769 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11770 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11771 |
return fields;
|
|
|
11772 |
}
|
|
|
11773 |
|
|
|
11774 |
/**
|
|
|
11775 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11776 |
*/
|
|
|
11777 |
public static _Fields findByName(String name) {
|
|
|
11778 |
return byName.get(name);
|
|
|
11779 |
}
|
|
|
11780 |
|
|
|
11781 |
private final short _thriftId;
|
|
|
11782 |
private final String _fieldName;
|
|
|
11783 |
|
|
|
11784 |
_Fields(short thriftId, String fieldName) {
|
|
|
11785 |
_thriftId = thriftId;
|
|
|
11786 |
_fieldName = fieldName;
|
|
|
11787 |
}
|
|
|
11788 |
|
|
|
11789 |
public short getThriftFieldId() {
|
|
|
11790 |
return _thriftId;
|
|
|
11791 |
}
|
|
|
11792 |
|
|
|
11793 |
public String getFieldName() {
|
|
|
11794 |
return _fieldName;
|
|
|
11795 |
}
|
|
|
11796 |
}
|
|
|
11797 |
|
|
|
11798 |
// isset id assignments
|
|
|
11799 |
|
|
|
11800 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11801 |
static {
|
|
|
11802 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11803 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11804 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
11805 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DetailedPurchaseScan.class))));
|
|
|
11806 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11807 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScansByGrnDate_result.class, metaDataMap);
|
|
|
11808 |
}
|
|
|
11809 |
|
|
|
11810 |
public getPurchaseScansByGrnDate_result() {
|
|
|
11811 |
}
|
|
|
11812 |
|
|
|
11813 |
public getPurchaseScansByGrnDate_result(
|
|
|
11814 |
List<DetailedPurchaseScan> success)
|
|
|
11815 |
{
|
|
|
11816 |
this();
|
|
|
11817 |
this.success = success;
|
|
|
11818 |
}
|
|
|
11819 |
|
|
|
11820 |
/**
|
|
|
11821 |
* Performs a deep copy on <i>other</i>.
|
|
|
11822 |
*/
|
|
|
11823 |
public getPurchaseScansByGrnDate_result(getPurchaseScansByGrnDate_result other) {
|
|
|
11824 |
if (other.isSetSuccess()) {
|
|
|
11825 |
List<DetailedPurchaseScan> __this__success = new ArrayList<DetailedPurchaseScan>();
|
|
|
11826 |
for (DetailedPurchaseScan other_element : other.success) {
|
|
|
11827 |
__this__success.add(new DetailedPurchaseScan(other_element));
|
|
|
11828 |
}
|
|
|
11829 |
this.success = __this__success;
|
|
|
11830 |
}
|
|
|
11831 |
}
|
|
|
11832 |
|
|
|
11833 |
public getPurchaseScansByGrnDate_result deepCopy() {
|
|
|
11834 |
return new getPurchaseScansByGrnDate_result(this);
|
|
|
11835 |
}
|
|
|
11836 |
|
|
|
11837 |
@Override
|
|
|
11838 |
public void clear() {
|
|
|
11839 |
this.success = null;
|
|
|
11840 |
}
|
|
|
11841 |
|
|
|
11842 |
public int getSuccessSize() {
|
|
|
11843 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
11844 |
}
|
|
|
11845 |
|
|
|
11846 |
public java.util.Iterator<DetailedPurchaseScan> getSuccessIterator() {
|
|
|
11847 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
11848 |
}
|
|
|
11849 |
|
|
|
11850 |
public void addToSuccess(DetailedPurchaseScan elem) {
|
|
|
11851 |
if (this.success == null) {
|
|
|
11852 |
this.success = new ArrayList<DetailedPurchaseScan>();
|
|
|
11853 |
}
|
|
|
11854 |
this.success.add(elem);
|
|
|
11855 |
}
|
|
|
11856 |
|
|
|
11857 |
public List<DetailedPurchaseScan> getSuccess() {
|
|
|
11858 |
return this.success;
|
|
|
11859 |
}
|
|
|
11860 |
|
|
|
11861 |
public void setSuccess(List<DetailedPurchaseScan> success) {
|
|
|
11862 |
this.success = success;
|
|
|
11863 |
}
|
|
|
11864 |
|
|
|
11865 |
public void unsetSuccess() {
|
|
|
11866 |
this.success = null;
|
|
|
11867 |
}
|
|
|
11868 |
|
|
|
11869 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
11870 |
public boolean isSetSuccess() {
|
|
|
11871 |
return this.success != null;
|
|
|
11872 |
}
|
|
|
11873 |
|
|
|
11874 |
public void setSuccessIsSet(boolean value) {
|
|
|
11875 |
if (!value) {
|
|
|
11876 |
this.success = null;
|
|
|
11877 |
}
|
|
|
11878 |
}
|
|
|
11879 |
|
|
|
11880 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11881 |
switch (field) {
|
|
|
11882 |
case SUCCESS:
|
|
|
11883 |
if (value == null) {
|
|
|
11884 |
unsetSuccess();
|
|
|
11885 |
} else {
|
|
|
11886 |
setSuccess((List<DetailedPurchaseScan>)value);
|
|
|
11887 |
}
|
|
|
11888 |
break;
|
|
|
11889 |
|
|
|
11890 |
}
|
|
|
11891 |
}
|
|
|
11892 |
|
|
|
11893 |
public Object getFieldValue(_Fields field) {
|
|
|
11894 |
switch (field) {
|
|
|
11895 |
case SUCCESS:
|
|
|
11896 |
return getSuccess();
|
|
|
11897 |
|
|
|
11898 |
}
|
|
|
11899 |
throw new IllegalStateException();
|
|
|
11900 |
}
|
|
|
11901 |
|
|
|
11902 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11903 |
public boolean isSet(_Fields field) {
|
|
|
11904 |
if (field == null) {
|
|
|
11905 |
throw new IllegalArgumentException();
|
|
|
11906 |
}
|
|
|
11907 |
|
|
|
11908 |
switch (field) {
|
|
|
11909 |
case SUCCESS:
|
|
|
11910 |
return isSetSuccess();
|
|
|
11911 |
}
|
|
|
11912 |
throw new IllegalStateException();
|
|
|
11913 |
}
|
|
|
11914 |
|
|
|
11915 |
@Override
|
|
|
11916 |
public boolean equals(Object that) {
|
|
|
11917 |
if (that == null)
|
|
|
11918 |
return false;
|
|
|
11919 |
if (that instanceof getPurchaseScansByGrnDate_result)
|
|
|
11920 |
return this.equals((getPurchaseScansByGrnDate_result)that);
|
|
|
11921 |
return false;
|
|
|
11922 |
}
|
|
|
11923 |
|
|
|
11924 |
public boolean equals(getPurchaseScansByGrnDate_result that) {
|
|
|
11925 |
if (that == null)
|
|
|
11926 |
return false;
|
|
|
11927 |
|
|
|
11928 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
11929 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
11930 |
if (this_present_success || that_present_success) {
|
|
|
11931 |
if (!(this_present_success && that_present_success))
|
|
|
11932 |
return false;
|
|
|
11933 |
if (!this.success.equals(that.success))
|
|
|
11934 |
return false;
|
|
|
11935 |
}
|
|
|
11936 |
|
|
|
11937 |
return true;
|
|
|
11938 |
}
|
|
|
11939 |
|
|
|
11940 |
@Override
|
|
|
11941 |
public int hashCode() {
|
|
|
11942 |
return 0;
|
|
|
11943 |
}
|
|
|
11944 |
|
|
|
11945 |
public int compareTo(getPurchaseScansByGrnDate_result other) {
|
|
|
11946 |
if (!getClass().equals(other.getClass())) {
|
|
|
11947 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11948 |
}
|
|
|
11949 |
|
|
|
11950 |
int lastComparison = 0;
|
|
|
11951 |
getPurchaseScansByGrnDate_result typedOther = (getPurchaseScansByGrnDate_result)other;
|
|
|
11952 |
|
|
|
11953 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
11954 |
if (lastComparison != 0) {
|
|
|
11955 |
return lastComparison;
|
|
|
11956 |
}
|
|
|
11957 |
if (isSetSuccess()) {
|
|
|
11958 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
11959 |
if (lastComparison != 0) {
|
|
|
11960 |
return lastComparison;
|
|
|
11961 |
}
|
|
|
11962 |
}
|
|
|
11963 |
return 0;
|
|
|
11964 |
}
|
|
|
11965 |
|
|
|
11966 |
public _Fields fieldForId(int fieldId) {
|
|
|
11967 |
return _Fields.findByThriftId(fieldId);
|
|
|
11968 |
}
|
|
|
11969 |
|
|
|
11970 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11971 |
org.apache.thrift.protocol.TField field;
|
|
|
11972 |
iprot.readStructBegin();
|
|
|
11973 |
while (true)
|
|
|
11974 |
{
|
|
|
11975 |
field = iprot.readFieldBegin();
|
|
|
11976 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11977 |
break;
|
|
|
11978 |
}
|
|
|
11979 |
switch (field.id) {
|
|
|
11980 |
case 0: // SUCCESS
|
|
|
11981 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
11982 |
{
|
|
|
11983 |
org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
|
|
|
11984 |
this.success = new ArrayList<DetailedPurchaseScan>(_list16.size);
|
|
|
11985 |
for (int _i17 = 0; _i17 < _list16.size; ++_i17)
|
|
|
11986 |
{
|
|
|
11987 |
DetailedPurchaseScan _elem18; // required
|
|
|
11988 |
_elem18 = new DetailedPurchaseScan();
|
|
|
11989 |
_elem18.read(iprot);
|
|
|
11990 |
this.success.add(_elem18);
|
|
|
11991 |
}
|
|
|
11992 |
iprot.readListEnd();
|
|
|
11993 |
}
|
|
|
11994 |
} else {
|
|
|
11995 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11996 |
}
|
|
|
11997 |
break;
|
|
|
11998 |
default:
|
|
|
11999 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12000 |
}
|
|
|
12001 |
iprot.readFieldEnd();
|
|
|
12002 |
}
|
|
|
12003 |
iprot.readStructEnd();
|
|
|
12004 |
validate();
|
|
|
12005 |
}
|
|
|
12006 |
|
|
|
12007 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12008 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12009 |
|
|
|
12010 |
if (this.isSetSuccess()) {
|
|
|
12011 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
12012 |
{
|
|
|
12013 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
12014 |
for (DetailedPurchaseScan _iter19 : this.success)
|
|
|
12015 |
{
|
|
|
12016 |
_iter19.write(oprot);
|
|
|
12017 |
}
|
|
|
12018 |
oprot.writeListEnd();
|
|
|
12019 |
}
|
|
|
12020 |
oprot.writeFieldEnd();
|
|
|
12021 |
}
|
|
|
12022 |
oprot.writeFieldStop();
|
|
|
12023 |
oprot.writeStructEnd();
|
|
|
12024 |
}
|
|
|
12025 |
|
|
|
12026 |
@Override
|
|
|
12027 |
public String toString() {
|
|
|
12028 |
StringBuilder sb = new StringBuilder("getPurchaseScansByGrnDate_result(");
|
|
|
12029 |
boolean first = true;
|
|
|
12030 |
|
|
|
12031 |
sb.append("success:");
|
|
|
12032 |
if (this.success == null) {
|
|
|
12033 |
sb.append("null");
|
|
|
12034 |
} else {
|
|
|
12035 |
sb.append(this.success);
|
|
|
12036 |
}
|
|
|
12037 |
first = false;
|
|
|
12038 |
sb.append(")");
|
|
|
12039 |
return sb.toString();
|
|
|
12040 |
}
|
|
|
12041 |
|
|
|
12042 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12043 |
// check for required fields
|
|
|
12044 |
}
|
|
|
12045 |
|
|
|
12046 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12047 |
try {
|
|
|
12048 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12049 |
} catch (org.apache.thrift.TException te) {
|
|
|
12050 |
throw new java.io.IOException(te);
|
|
|
12051 |
}
|
|
|
12052 |
}
|
|
|
12053 |
|
|
|
12054 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12055 |
try {
|
|
|
12056 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12057 |
} catch (org.apache.thrift.TException te) {
|
|
|
12058 |
throw new java.io.IOException(te);
|
|
|
12059 |
}
|
|
|
12060 |
}
|
|
|
12061 |
|
|
|
12062 |
}
|
|
|
12063 |
|
| 5496 |
mandeep.dh |
12064 |
public static class fetchScansPerInvoiceNumber_args implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_args, fetchScansPerInvoiceNumber_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
12065 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_args");
|
|
|
12066 |
|
|
|
12067 |
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);
|
|
|
12068 |
|
|
|
12069 |
private long date; // required
|
|
|
12070 |
|
|
|
12071 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12072 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12073 |
DATE((short)1, "date");
|
|
|
12074 |
|
|
|
12075 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12076 |
|
|
|
12077 |
static {
|
|
|
12078 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12079 |
byName.put(field.getFieldName(), field);
|
|
|
12080 |
}
|
|
|
12081 |
}
|
|
|
12082 |
|
|
|
12083 |
/**
|
|
|
12084 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12085 |
*/
|
|
|
12086 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12087 |
switch(fieldId) {
|
|
|
12088 |
case 1: // DATE
|
|
|
12089 |
return DATE;
|
|
|
12090 |
default:
|
|
|
12091 |
return null;
|
|
|
12092 |
}
|
|
|
12093 |
}
|
|
|
12094 |
|
|
|
12095 |
/**
|
|
|
12096 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12097 |
* if it is not found.
|
|
|
12098 |
*/
|
|
|
12099 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12100 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12101 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12102 |
return fields;
|
|
|
12103 |
}
|
|
|
12104 |
|
|
|
12105 |
/**
|
|
|
12106 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12107 |
*/
|
|
|
12108 |
public static _Fields findByName(String name) {
|
|
|
12109 |
return byName.get(name);
|
|
|
12110 |
}
|
|
|
12111 |
|
|
|
12112 |
private final short _thriftId;
|
|
|
12113 |
private final String _fieldName;
|
|
|
12114 |
|
|
|
12115 |
_Fields(short thriftId, String fieldName) {
|
|
|
12116 |
_thriftId = thriftId;
|
|
|
12117 |
_fieldName = fieldName;
|
|
|
12118 |
}
|
|
|
12119 |
|
|
|
12120 |
public short getThriftFieldId() {
|
|
|
12121 |
return _thriftId;
|
|
|
12122 |
}
|
|
|
12123 |
|
|
|
12124 |
public String getFieldName() {
|
|
|
12125 |
return _fieldName;
|
|
|
12126 |
}
|
|
|
12127 |
}
|
|
|
12128 |
|
|
|
12129 |
// isset id assignments
|
|
|
12130 |
private static final int __DATE_ISSET_ID = 0;
|
|
|
12131 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
12132 |
|
|
|
12133 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12134 |
static {
|
|
|
12135 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12136 |
tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12137 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
12138 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12139 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_args.class, metaDataMap);
|
|
|
12140 |
}
|
|
|
12141 |
|
|
|
12142 |
public fetchScansPerInvoiceNumber_args() {
|
|
|
12143 |
}
|
|
|
12144 |
|
|
|
12145 |
public fetchScansPerInvoiceNumber_args(
|
|
|
12146 |
long date)
|
|
|
12147 |
{
|
|
|
12148 |
this();
|
|
|
12149 |
this.date = date;
|
|
|
12150 |
setDateIsSet(true);
|
|
|
12151 |
}
|
|
|
12152 |
|
|
|
12153 |
/**
|
|
|
12154 |
* Performs a deep copy on <i>other</i>.
|
|
|
12155 |
*/
|
|
|
12156 |
public fetchScansPerInvoiceNumber_args(fetchScansPerInvoiceNumber_args other) {
|
|
|
12157 |
__isset_bit_vector.clear();
|
|
|
12158 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
12159 |
this.date = other.date;
|
|
|
12160 |
}
|
|
|
12161 |
|
|
|
12162 |
public fetchScansPerInvoiceNumber_args deepCopy() {
|
|
|
12163 |
return new fetchScansPerInvoiceNumber_args(this);
|
|
|
12164 |
}
|
|
|
12165 |
|
|
|
12166 |
@Override
|
|
|
12167 |
public void clear() {
|
|
|
12168 |
setDateIsSet(false);
|
|
|
12169 |
this.date = 0;
|
|
|
12170 |
}
|
|
|
12171 |
|
|
|
12172 |
public long getDate() {
|
|
|
12173 |
return this.date;
|
|
|
12174 |
}
|
|
|
12175 |
|
|
|
12176 |
public void setDate(long date) {
|
|
|
12177 |
this.date = date;
|
|
|
12178 |
setDateIsSet(true);
|
|
|
12179 |
}
|
|
|
12180 |
|
|
|
12181 |
public void unsetDate() {
|
|
|
12182 |
__isset_bit_vector.clear(__DATE_ISSET_ID);
|
|
|
12183 |
}
|
|
|
12184 |
|
|
|
12185 |
/** Returns true if field date is set (has been assigned a value) and false otherwise */
|
|
|
12186 |
public boolean isSetDate() {
|
|
|
12187 |
return __isset_bit_vector.get(__DATE_ISSET_ID);
|
|
|
12188 |
}
|
|
|
12189 |
|
|
|
12190 |
public void setDateIsSet(boolean value) {
|
|
|
12191 |
__isset_bit_vector.set(__DATE_ISSET_ID, value);
|
|
|
12192 |
}
|
|
|
12193 |
|
|
|
12194 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12195 |
switch (field) {
|
|
|
12196 |
case DATE:
|
|
|
12197 |
if (value == null) {
|
|
|
12198 |
unsetDate();
|
|
|
12199 |
} else {
|
|
|
12200 |
setDate((Long)value);
|
|
|
12201 |
}
|
|
|
12202 |
break;
|
|
|
12203 |
|
|
|
12204 |
}
|
|
|
12205 |
}
|
|
|
12206 |
|
|
|
12207 |
public Object getFieldValue(_Fields field) {
|
|
|
12208 |
switch (field) {
|
|
|
12209 |
case DATE:
|
|
|
12210 |
return Long.valueOf(getDate());
|
|
|
12211 |
|
|
|
12212 |
}
|
|
|
12213 |
throw new IllegalStateException();
|
|
|
12214 |
}
|
|
|
12215 |
|
|
|
12216 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12217 |
public boolean isSet(_Fields field) {
|
|
|
12218 |
if (field == null) {
|
|
|
12219 |
throw new IllegalArgumentException();
|
|
|
12220 |
}
|
|
|
12221 |
|
|
|
12222 |
switch (field) {
|
|
|
12223 |
case DATE:
|
|
|
12224 |
return isSetDate();
|
|
|
12225 |
}
|
|
|
12226 |
throw new IllegalStateException();
|
|
|
12227 |
}
|
|
|
12228 |
|
|
|
12229 |
@Override
|
|
|
12230 |
public boolean equals(Object that) {
|
|
|
12231 |
if (that == null)
|
|
|
12232 |
return false;
|
|
|
12233 |
if (that instanceof fetchScansPerInvoiceNumber_args)
|
|
|
12234 |
return this.equals((fetchScansPerInvoiceNumber_args)that);
|
|
|
12235 |
return false;
|
|
|
12236 |
}
|
|
|
12237 |
|
|
|
12238 |
public boolean equals(fetchScansPerInvoiceNumber_args that) {
|
|
|
12239 |
if (that == null)
|
|
|
12240 |
return false;
|
|
|
12241 |
|
|
|
12242 |
boolean this_present_date = true;
|
|
|
12243 |
boolean that_present_date = true;
|
|
|
12244 |
if (this_present_date || that_present_date) {
|
|
|
12245 |
if (!(this_present_date && that_present_date))
|
|
|
12246 |
return false;
|
|
|
12247 |
if (this.date != that.date)
|
|
|
12248 |
return false;
|
|
|
12249 |
}
|
|
|
12250 |
|
|
|
12251 |
return true;
|
|
|
12252 |
}
|
|
|
12253 |
|
|
|
12254 |
@Override
|
|
|
12255 |
public int hashCode() {
|
|
|
12256 |
return 0;
|
|
|
12257 |
}
|
|
|
12258 |
|
|
|
12259 |
public int compareTo(fetchScansPerInvoiceNumber_args other) {
|
|
|
12260 |
if (!getClass().equals(other.getClass())) {
|
|
|
12261 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12262 |
}
|
|
|
12263 |
|
|
|
12264 |
int lastComparison = 0;
|
|
|
12265 |
fetchScansPerInvoiceNumber_args typedOther = (fetchScansPerInvoiceNumber_args)other;
|
|
|
12266 |
|
|
|
12267 |
lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
|
|
|
12268 |
if (lastComparison != 0) {
|
|
|
12269 |
return lastComparison;
|
|
|
12270 |
}
|
|
|
12271 |
if (isSetDate()) {
|
|
|
12272 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
|
|
|
12273 |
if (lastComparison != 0) {
|
|
|
12274 |
return lastComparison;
|
|
|
12275 |
}
|
|
|
12276 |
}
|
|
|
12277 |
return 0;
|
|
|
12278 |
}
|
|
|
12279 |
|
|
|
12280 |
public _Fields fieldForId(int fieldId) {
|
|
|
12281 |
return _Fields.findByThriftId(fieldId);
|
|
|
12282 |
}
|
|
|
12283 |
|
|
|
12284 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12285 |
org.apache.thrift.protocol.TField field;
|
|
|
12286 |
iprot.readStructBegin();
|
|
|
12287 |
while (true)
|
|
|
12288 |
{
|
|
|
12289 |
field = iprot.readFieldBegin();
|
|
|
12290 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12291 |
break;
|
|
|
12292 |
}
|
|
|
12293 |
switch (field.id) {
|
|
|
12294 |
case 1: // DATE
|
|
|
12295 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
12296 |
this.date = iprot.readI64();
|
|
|
12297 |
setDateIsSet(true);
|
|
|
12298 |
} else {
|
|
|
12299 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12300 |
}
|
|
|
12301 |
break;
|
|
|
12302 |
default:
|
|
|
12303 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12304 |
}
|
|
|
12305 |
iprot.readFieldEnd();
|
|
|
12306 |
}
|
|
|
12307 |
iprot.readStructEnd();
|
|
|
12308 |
validate();
|
|
|
12309 |
}
|
|
|
12310 |
|
|
|
12311 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12312 |
validate();
|
|
|
12313 |
|
|
|
12314 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12315 |
oprot.writeFieldBegin(DATE_FIELD_DESC);
|
|
|
12316 |
oprot.writeI64(this.date);
|
|
|
12317 |
oprot.writeFieldEnd();
|
|
|
12318 |
oprot.writeFieldStop();
|
|
|
12319 |
oprot.writeStructEnd();
|
|
|
12320 |
}
|
|
|
12321 |
|
|
|
12322 |
@Override
|
|
|
12323 |
public String toString() {
|
|
|
12324 |
StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_args(");
|
|
|
12325 |
boolean first = true;
|
|
|
12326 |
|
|
|
12327 |
sb.append("date:");
|
|
|
12328 |
sb.append(this.date);
|
|
|
12329 |
first = false;
|
|
|
12330 |
sb.append(")");
|
|
|
12331 |
return sb.toString();
|
|
|
12332 |
}
|
|
|
12333 |
|
|
|
12334 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12335 |
// check for required fields
|
|
|
12336 |
}
|
|
|
12337 |
|
|
|
12338 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12339 |
try {
|
|
|
12340 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12341 |
} catch (org.apache.thrift.TException te) {
|
|
|
12342 |
throw new java.io.IOException(te);
|
|
|
12343 |
}
|
|
|
12344 |
}
|
|
|
12345 |
|
|
|
12346 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12347 |
try {
|
| 5711 |
mandeep.dh |
12348 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
12349 |
__isset_bit_vector = new BitSet(1);
|
| 5496 |
mandeep.dh |
12350 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12351 |
} catch (org.apache.thrift.TException te) {
|
|
|
12352 |
throw new java.io.IOException(te);
|
|
|
12353 |
}
|
|
|
12354 |
}
|
|
|
12355 |
|
|
|
12356 |
}
|
|
|
12357 |
|
|
|
12358 |
public static class fetchScansPerInvoiceNumber_result implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_result, fetchScansPerInvoiceNumber_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
12359 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_result");
|
|
|
12360 |
|
|
|
12361 |
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);
|
|
|
12362 |
|
|
|
12363 |
private List<InvoiceScan> success; // required
|
|
|
12364 |
|
|
|
12365 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12366 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12367 |
SUCCESS((short)0, "success");
|
|
|
12368 |
|
|
|
12369 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12370 |
|
|
|
12371 |
static {
|
|
|
12372 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12373 |
byName.put(field.getFieldName(), field);
|
|
|
12374 |
}
|
|
|
12375 |
}
|
|
|
12376 |
|
|
|
12377 |
/**
|
|
|
12378 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12379 |
*/
|
|
|
12380 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12381 |
switch(fieldId) {
|
|
|
12382 |
case 0: // SUCCESS
|
|
|
12383 |
return SUCCESS;
|
|
|
12384 |
default:
|
|
|
12385 |
return null;
|
|
|
12386 |
}
|
|
|
12387 |
}
|
|
|
12388 |
|
|
|
12389 |
/**
|
|
|
12390 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12391 |
* if it is not found.
|
|
|
12392 |
*/
|
|
|
12393 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12394 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12395 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12396 |
return fields;
|
|
|
12397 |
}
|
|
|
12398 |
|
|
|
12399 |
/**
|
|
|
12400 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12401 |
*/
|
|
|
12402 |
public static _Fields findByName(String name) {
|
|
|
12403 |
return byName.get(name);
|
|
|
12404 |
}
|
|
|
12405 |
|
|
|
12406 |
private final short _thriftId;
|
|
|
12407 |
private final String _fieldName;
|
|
|
12408 |
|
|
|
12409 |
_Fields(short thriftId, String fieldName) {
|
|
|
12410 |
_thriftId = thriftId;
|
|
|
12411 |
_fieldName = fieldName;
|
|
|
12412 |
}
|
|
|
12413 |
|
|
|
12414 |
public short getThriftFieldId() {
|
|
|
12415 |
return _thriftId;
|
|
|
12416 |
}
|
|
|
12417 |
|
|
|
12418 |
public String getFieldName() {
|
|
|
12419 |
return _fieldName;
|
|
|
12420 |
}
|
|
|
12421 |
}
|
|
|
12422 |
|
|
|
12423 |
// isset id assignments
|
|
|
12424 |
|
|
|
12425 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12426 |
static {
|
|
|
12427 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12428 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12429 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
12430 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InvoiceScan.class))));
|
|
|
12431 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12432 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_result.class, metaDataMap);
|
|
|
12433 |
}
|
|
|
12434 |
|
|
|
12435 |
public fetchScansPerInvoiceNumber_result() {
|
|
|
12436 |
}
|
|
|
12437 |
|
|
|
12438 |
public fetchScansPerInvoiceNumber_result(
|
|
|
12439 |
List<InvoiceScan> success)
|
|
|
12440 |
{
|
|
|
12441 |
this();
|
|
|
12442 |
this.success = success;
|
|
|
12443 |
}
|
|
|
12444 |
|
|
|
12445 |
/**
|
|
|
12446 |
* Performs a deep copy on <i>other</i>.
|
|
|
12447 |
*/
|
|
|
12448 |
public fetchScansPerInvoiceNumber_result(fetchScansPerInvoiceNumber_result other) {
|
|
|
12449 |
if (other.isSetSuccess()) {
|
|
|
12450 |
List<InvoiceScan> __this__success = new ArrayList<InvoiceScan>();
|
|
|
12451 |
for (InvoiceScan other_element : other.success) {
|
|
|
12452 |
__this__success.add(new InvoiceScan(other_element));
|
|
|
12453 |
}
|
|
|
12454 |
this.success = __this__success;
|
|
|
12455 |
}
|
|
|
12456 |
}
|
|
|
12457 |
|
|
|
12458 |
public fetchScansPerInvoiceNumber_result deepCopy() {
|
|
|
12459 |
return new fetchScansPerInvoiceNumber_result(this);
|
|
|
12460 |
}
|
|
|
12461 |
|
|
|
12462 |
@Override
|
|
|
12463 |
public void clear() {
|
|
|
12464 |
this.success = null;
|
|
|
12465 |
}
|
|
|
12466 |
|
|
|
12467 |
public int getSuccessSize() {
|
|
|
12468 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
12469 |
}
|
|
|
12470 |
|
|
|
12471 |
public java.util.Iterator<InvoiceScan> getSuccessIterator() {
|
|
|
12472 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
12473 |
}
|
|
|
12474 |
|
|
|
12475 |
public void addToSuccess(InvoiceScan elem) {
|
|
|
12476 |
if (this.success == null) {
|
|
|
12477 |
this.success = new ArrayList<InvoiceScan>();
|
|
|
12478 |
}
|
|
|
12479 |
this.success.add(elem);
|
|
|
12480 |
}
|
|
|
12481 |
|
|
|
12482 |
public List<InvoiceScan> getSuccess() {
|
|
|
12483 |
return this.success;
|
|
|
12484 |
}
|
|
|
12485 |
|
|
|
12486 |
public void setSuccess(List<InvoiceScan> success) {
|
|
|
12487 |
this.success = success;
|
|
|
12488 |
}
|
|
|
12489 |
|
|
|
12490 |
public void unsetSuccess() {
|
|
|
12491 |
this.success = null;
|
|
|
12492 |
}
|
|
|
12493 |
|
|
|
12494 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
12495 |
public boolean isSetSuccess() {
|
|
|
12496 |
return this.success != null;
|
|
|
12497 |
}
|
|
|
12498 |
|
|
|
12499 |
public void setSuccessIsSet(boolean value) {
|
|
|
12500 |
if (!value) {
|
|
|
12501 |
this.success = null;
|
|
|
12502 |
}
|
|
|
12503 |
}
|
|
|
12504 |
|
|
|
12505 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12506 |
switch (field) {
|
|
|
12507 |
case SUCCESS:
|
|
|
12508 |
if (value == null) {
|
|
|
12509 |
unsetSuccess();
|
|
|
12510 |
} else {
|
|
|
12511 |
setSuccess((List<InvoiceScan>)value);
|
|
|
12512 |
}
|
|
|
12513 |
break;
|
|
|
12514 |
|
|
|
12515 |
}
|
|
|
12516 |
}
|
|
|
12517 |
|
|
|
12518 |
public Object getFieldValue(_Fields field) {
|
|
|
12519 |
switch (field) {
|
|
|
12520 |
case SUCCESS:
|
|
|
12521 |
return getSuccess();
|
|
|
12522 |
|
|
|
12523 |
}
|
|
|
12524 |
throw new IllegalStateException();
|
|
|
12525 |
}
|
|
|
12526 |
|
|
|
12527 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12528 |
public boolean isSet(_Fields field) {
|
|
|
12529 |
if (field == null) {
|
|
|
12530 |
throw new IllegalArgumentException();
|
|
|
12531 |
}
|
|
|
12532 |
|
|
|
12533 |
switch (field) {
|
|
|
12534 |
case SUCCESS:
|
|
|
12535 |
return isSetSuccess();
|
|
|
12536 |
}
|
|
|
12537 |
throw new IllegalStateException();
|
|
|
12538 |
}
|
|
|
12539 |
|
|
|
12540 |
@Override
|
|
|
12541 |
public boolean equals(Object that) {
|
|
|
12542 |
if (that == null)
|
|
|
12543 |
return false;
|
|
|
12544 |
if (that instanceof fetchScansPerInvoiceNumber_result)
|
|
|
12545 |
return this.equals((fetchScansPerInvoiceNumber_result)that);
|
|
|
12546 |
return false;
|
|
|
12547 |
}
|
|
|
12548 |
|
|
|
12549 |
public boolean equals(fetchScansPerInvoiceNumber_result that) {
|
|
|
12550 |
if (that == null)
|
|
|
12551 |
return false;
|
|
|
12552 |
|
|
|
12553 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
12554 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
12555 |
if (this_present_success || that_present_success) {
|
|
|
12556 |
if (!(this_present_success && that_present_success))
|
|
|
12557 |
return false;
|
|
|
12558 |
if (!this.success.equals(that.success))
|
|
|
12559 |
return false;
|
|
|
12560 |
}
|
|
|
12561 |
|
|
|
12562 |
return true;
|
|
|
12563 |
}
|
|
|
12564 |
|
|
|
12565 |
@Override
|
|
|
12566 |
public int hashCode() {
|
|
|
12567 |
return 0;
|
|
|
12568 |
}
|
|
|
12569 |
|
|
|
12570 |
public int compareTo(fetchScansPerInvoiceNumber_result other) {
|
|
|
12571 |
if (!getClass().equals(other.getClass())) {
|
|
|
12572 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12573 |
}
|
|
|
12574 |
|
|
|
12575 |
int lastComparison = 0;
|
|
|
12576 |
fetchScansPerInvoiceNumber_result typedOther = (fetchScansPerInvoiceNumber_result)other;
|
|
|
12577 |
|
|
|
12578 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
12579 |
if (lastComparison != 0) {
|
|
|
12580 |
return lastComparison;
|
|
|
12581 |
}
|
|
|
12582 |
if (isSetSuccess()) {
|
|
|
12583 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
12584 |
if (lastComparison != 0) {
|
|
|
12585 |
return lastComparison;
|
|
|
12586 |
}
|
|
|
12587 |
}
|
|
|
12588 |
return 0;
|
|
|
12589 |
}
|
|
|
12590 |
|
|
|
12591 |
public _Fields fieldForId(int fieldId) {
|
|
|
12592 |
return _Fields.findByThriftId(fieldId);
|
|
|
12593 |
}
|
|
|
12594 |
|
|
|
12595 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12596 |
org.apache.thrift.protocol.TField field;
|
|
|
12597 |
iprot.readStructBegin();
|
|
|
12598 |
while (true)
|
|
|
12599 |
{
|
|
|
12600 |
field = iprot.readFieldBegin();
|
|
|
12601 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12602 |
break;
|
|
|
12603 |
}
|
|
|
12604 |
switch (field.id) {
|
|
|
12605 |
case 0: // SUCCESS
|
|
|
12606 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
12607 |
{
|
| 7210 |
amar.kumar |
12608 |
org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
|
|
|
12609 |
this.success = new ArrayList<InvoiceScan>(_list20.size);
|
|
|
12610 |
for (int _i21 = 0; _i21 < _list20.size; ++_i21)
|
| 5496 |
mandeep.dh |
12611 |
{
|
| 7210 |
amar.kumar |
12612 |
InvoiceScan _elem22; // required
|
|
|
12613 |
_elem22 = new InvoiceScan();
|
|
|
12614 |
_elem22.read(iprot);
|
|
|
12615 |
this.success.add(_elem22);
|
| 5496 |
mandeep.dh |
12616 |
}
|
|
|
12617 |
iprot.readListEnd();
|
|
|
12618 |
}
|
|
|
12619 |
} else {
|
|
|
12620 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12621 |
}
|
|
|
12622 |
break;
|
|
|
12623 |
default:
|
|
|
12624 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12625 |
}
|
|
|
12626 |
iprot.readFieldEnd();
|
|
|
12627 |
}
|
|
|
12628 |
iprot.readStructEnd();
|
|
|
12629 |
validate();
|
|
|
12630 |
}
|
|
|
12631 |
|
|
|
12632 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12633 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12634 |
|
|
|
12635 |
if (this.isSetSuccess()) {
|
|
|
12636 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
12637 |
{
|
|
|
12638 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 7210 |
amar.kumar |
12639 |
for (InvoiceScan _iter23 : this.success)
|
| 5496 |
mandeep.dh |
12640 |
{
|
| 7210 |
amar.kumar |
12641 |
_iter23.write(oprot);
|
| 5496 |
mandeep.dh |
12642 |
}
|
|
|
12643 |
oprot.writeListEnd();
|
|
|
12644 |
}
|
|
|
12645 |
oprot.writeFieldEnd();
|
|
|
12646 |
}
|
|
|
12647 |
oprot.writeFieldStop();
|
|
|
12648 |
oprot.writeStructEnd();
|
|
|
12649 |
}
|
|
|
12650 |
|
|
|
12651 |
@Override
|
|
|
12652 |
public String toString() {
|
|
|
12653 |
StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_result(");
|
|
|
12654 |
boolean first = true;
|
|
|
12655 |
|
|
|
12656 |
sb.append("success:");
|
|
|
12657 |
if (this.success == null) {
|
|
|
12658 |
sb.append("null");
|
|
|
12659 |
} else {
|
|
|
12660 |
sb.append(this.success);
|
|
|
12661 |
}
|
|
|
12662 |
first = false;
|
|
|
12663 |
sb.append(")");
|
|
|
12664 |
return sb.toString();
|
|
|
12665 |
}
|
|
|
12666 |
|
|
|
12667 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12668 |
// check for required fields
|
|
|
12669 |
}
|
|
|
12670 |
|
|
|
12671 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12672 |
try {
|
|
|
12673 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12674 |
} catch (org.apache.thrift.TException te) {
|
|
|
12675 |
throw new java.io.IOException(te);
|
|
|
12676 |
}
|
|
|
12677 |
}
|
|
|
12678 |
|
|
|
12679 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12680 |
try {
|
|
|
12681 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12682 |
} catch (org.apache.thrift.TException te) {
|
|
|
12683 |
throw new java.io.IOException(te);
|
|
|
12684 |
}
|
|
|
12685 |
}
|
|
|
12686 |
|
|
|
12687 |
}
|
|
|
12688 |
|
| 5620 |
mandeep.dh |
12689 |
public static class getInventoryItemFromOrder_args implements org.apache.thrift.TBase<getInventoryItemFromOrder_args, getInventoryItemFromOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
12690 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_args");
|
|
|
12691 |
|
|
|
12692 |
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);
|
|
|
12693 |
|
|
|
12694 |
private long orderId; // required
|
|
|
12695 |
|
|
|
12696 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12697 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12698 |
ORDER_ID((short)1, "orderId");
|
|
|
12699 |
|
|
|
12700 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12701 |
|
|
|
12702 |
static {
|
|
|
12703 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12704 |
byName.put(field.getFieldName(), field);
|
|
|
12705 |
}
|
|
|
12706 |
}
|
|
|
12707 |
|
|
|
12708 |
/**
|
|
|
12709 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12710 |
*/
|
|
|
12711 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12712 |
switch(fieldId) {
|
|
|
12713 |
case 1: // ORDER_ID
|
|
|
12714 |
return ORDER_ID;
|
|
|
12715 |
default:
|
|
|
12716 |
return null;
|
|
|
12717 |
}
|
|
|
12718 |
}
|
|
|
12719 |
|
|
|
12720 |
/**
|
|
|
12721 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12722 |
* if it is not found.
|
|
|
12723 |
*/
|
|
|
12724 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12725 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12726 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12727 |
return fields;
|
|
|
12728 |
}
|
|
|
12729 |
|
|
|
12730 |
/**
|
|
|
12731 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12732 |
*/
|
|
|
12733 |
public static _Fields findByName(String name) {
|
|
|
12734 |
return byName.get(name);
|
|
|
12735 |
}
|
|
|
12736 |
|
|
|
12737 |
private final short _thriftId;
|
|
|
12738 |
private final String _fieldName;
|
|
|
12739 |
|
|
|
12740 |
_Fields(short thriftId, String fieldName) {
|
|
|
12741 |
_thriftId = thriftId;
|
|
|
12742 |
_fieldName = fieldName;
|
|
|
12743 |
}
|
|
|
12744 |
|
|
|
12745 |
public short getThriftFieldId() {
|
|
|
12746 |
return _thriftId;
|
|
|
12747 |
}
|
|
|
12748 |
|
|
|
12749 |
public String getFieldName() {
|
|
|
12750 |
return _fieldName;
|
|
|
12751 |
}
|
|
|
12752 |
}
|
|
|
12753 |
|
|
|
12754 |
// isset id assignments
|
|
|
12755 |
private static final int __ORDERID_ISSET_ID = 0;
|
|
|
12756 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
12757 |
|
|
|
12758 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12759 |
static {
|
|
|
12760 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12761 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12762 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
12763 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12764 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_args.class, metaDataMap);
|
|
|
12765 |
}
|
|
|
12766 |
|
|
|
12767 |
public getInventoryItemFromOrder_args() {
|
|
|
12768 |
}
|
|
|
12769 |
|
|
|
12770 |
public getInventoryItemFromOrder_args(
|
|
|
12771 |
long orderId)
|
|
|
12772 |
{
|
|
|
12773 |
this();
|
|
|
12774 |
this.orderId = orderId;
|
|
|
12775 |
setOrderIdIsSet(true);
|
|
|
12776 |
}
|
|
|
12777 |
|
|
|
12778 |
/**
|
|
|
12779 |
* Performs a deep copy on <i>other</i>.
|
|
|
12780 |
*/
|
|
|
12781 |
public getInventoryItemFromOrder_args(getInventoryItemFromOrder_args other) {
|
|
|
12782 |
__isset_bit_vector.clear();
|
|
|
12783 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
12784 |
this.orderId = other.orderId;
|
|
|
12785 |
}
|
|
|
12786 |
|
|
|
12787 |
public getInventoryItemFromOrder_args deepCopy() {
|
|
|
12788 |
return new getInventoryItemFromOrder_args(this);
|
|
|
12789 |
}
|
|
|
12790 |
|
|
|
12791 |
@Override
|
|
|
12792 |
public void clear() {
|
|
|
12793 |
setOrderIdIsSet(false);
|
|
|
12794 |
this.orderId = 0;
|
|
|
12795 |
}
|
|
|
12796 |
|
|
|
12797 |
public long getOrderId() {
|
|
|
12798 |
return this.orderId;
|
|
|
12799 |
}
|
|
|
12800 |
|
|
|
12801 |
public void setOrderId(long orderId) {
|
|
|
12802 |
this.orderId = orderId;
|
|
|
12803 |
setOrderIdIsSet(true);
|
|
|
12804 |
}
|
|
|
12805 |
|
|
|
12806 |
public void unsetOrderId() {
|
|
|
12807 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
12808 |
}
|
|
|
12809 |
|
|
|
12810 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
12811 |
public boolean isSetOrderId() {
|
|
|
12812 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
12813 |
}
|
|
|
12814 |
|
|
|
12815 |
public void setOrderIdIsSet(boolean value) {
|
|
|
12816 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
12817 |
}
|
|
|
12818 |
|
|
|
12819 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12820 |
switch (field) {
|
|
|
12821 |
case ORDER_ID:
|
|
|
12822 |
if (value == null) {
|
|
|
12823 |
unsetOrderId();
|
|
|
12824 |
} else {
|
|
|
12825 |
setOrderId((Long)value);
|
|
|
12826 |
}
|
|
|
12827 |
break;
|
|
|
12828 |
|
|
|
12829 |
}
|
|
|
12830 |
}
|
|
|
12831 |
|
|
|
12832 |
public Object getFieldValue(_Fields field) {
|
|
|
12833 |
switch (field) {
|
|
|
12834 |
case ORDER_ID:
|
|
|
12835 |
return Long.valueOf(getOrderId());
|
|
|
12836 |
|
|
|
12837 |
}
|
|
|
12838 |
throw new IllegalStateException();
|
|
|
12839 |
}
|
|
|
12840 |
|
|
|
12841 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12842 |
public boolean isSet(_Fields field) {
|
|
|
12843 |
if (field == null) {
|
|
|
12844 |
throw new IllegalArgumentException();
|
|
|
12845 |
}
|
|
|
12846 |
|
|
|
12847 |
switch (field) {
|
|
|
12848 |
case ORDER_ID:
|
|
|
12849 |
return isSetOrderId();
|
|
|
12850 |
}
|
|
|
12851 |
throw new IllegalStateException();
|
|
|
12852 |
}
|
|
|
12853 |
|
|
|
12854 |
@Override
|
|
|
12855 |
public boolean equals(Object that) {
|
|
|
12856 |
if (that == null)
|
|
|
12857 |
return false;
|
|
|
12858 |
if (that instanceof getInventoryItemFromOrder_args)
|
|
|
12859 |
return this.equals((getInventoryItemFromOrder_args)that);
|
|
|
12860 |
return false;
|
|
|
12861 |
}
|
|
|
12862 |
|
|
|
12863 |
public boolean equals(getInventoryItemFromOrder_args that) {
|
|
|
12864 |
if (that == null)
|
|
|
12865 |
return false;
|
|
|
12866 |
|
|
|
12867 |
boolean this_present_orderId = true;
|
|
|
12868 |
boolean that_present_orderId = true;
|
|
|
12869 |
if (this_present_orderId || that_present_orderId) {
|
|
|
12870 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
12871 |
return false;
|
|
|
12872 |
if (this.orderId != that.orderId)
|
|
|
12873 |
return false;
|
|
|
12874 |
}
|
|
|
12875 |
|
|
|
12876 |
return true;
|
|
|
12877 |
}
|
|
|
12878 |
|
|
|
12879 |
@Override
|
|
|
12880 |
public int hashCode() {
|
|
|
12881 |
return 0;
|
|
|
12882 |
}
|
|
|
12883 |
|
|
|
12884 |
public int compareTo(getInventoryItemFromOrder_args other) {
|
|
|
12885 |
if (!getClass().equals(other.getClass())) {
|
|
|
12886 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12887 |
}
|
|
|
12888 |
|
|
|
12889 |
int lastComparison = 0;
|
|
|
12890 |
getInventoryItemFromOrder_args typedOther = (getInventoryItemFromOrder_args)other;
|
|
|
12891 |
|
|
|
12892 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
12893 |
if (lastComparison != 0) {
|
|
|
12894 |
return lastComparison;
|
|
|
12895 |
}
|
|
|
12896 |
if (isSetOrderId()) {
|
|
|
12897 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
12898 |
if (lastComparison != 0) {
|
|
|
12899 |
return lastComparison;
|
|
|
12900 |
}
|
|
|
12901 |
}
|
|
|
12902 |
return 0;
|
|
|
12903 |
}
|
|
|
12904 |
|
|
|
12905 |
public _Fields fieldForId(int fieldId) {
|
|
|
12906 |
return _Fields.findByThriftId(fieldId);
|
|
|
12907 |
}
|
|
|
12908 |
|
|
|
12909 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12910 |
org.apache.thrift.protocol.TField field;
|
|
|
12911 |
iprot.readStructBegin();
|
|
|
12912 |
while (true)
|
|
|
12913 |
{
|
|
|
12914 |
field = iprot.readFieldBegin();
|
|
|
12915 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12916 |
break;
|
|
|
12917 |
}
|
|
|
12918 |
switch (field.id) {
|
|
|
12919 |
case 1: // ORDER_ID
|
|
|
12920 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
12921 |
this.orderId = iprot.readI64();
|
|
|
12922 |
setOrderIdIsSet(true);
|
|
|
12923 |
} else {
|
|
|
12924 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12925 |
}
|
|
|
12926 |
break;
|
|
|
12927 |
default:
|
|
|
12928 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12929 |
}
|
|
|
12930 |
iprot.readFieldEnd();
|
|
|
12931 |
}
|
|
|
12932 |
iprot.readStructEnd();
|
|
|
12933 |
validate();
|
|
|
12934 |
}
|
|
|
12935 |
|
|
|
12936 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12937 |
validate();
|
|
|
12938 |
|
|
|
12939 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12940 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
12941 |
oprot.writeI64(this.orderId);
|
|
|
12942 |
oprot.writeFieldEnd();
|
|
|
12943 |
oprot.writeFieldStop();
|
|
|
12944 |
oprot.writeStructEnd();
|
|
|
12945 |
}
|
|
|
12946 |
|
|
|
12947 |
@Override
|
|
|
12948 |
public String toString() {
|
|
|
12949 |
StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_args(");
|
|
|
12950 |
boolean first = true;
|
|
|
12951 |
|
|
|
12952 |
sb.append("orderId:");
|
|
|
12953 |
sb.append(this.orderId);
|
|
|
12954 |
first = false;
|
|
|
12955 |
sb.append(")");
|
|
|
12956 |
return sb.toString();
|
|
|
12957 |
}
|
|
|
12958 |
|
|
|
12959 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12960 |
// check for required fields
|
|
|
12961 |
}
|
|
|
12962 |
|
|
|
12963 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12964 |
try {
|
|
|
12965 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12966 |
} catch (org.apache.thrift.TException te) {
|
|
|
12967 |
throw new java.io.IOException(te);
|
|
|
12968 |
}
|
|
|
12969 |
}
|
|
|
12970 |
|
|
|
12971 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12972 |
try {
|
|
|
12973 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
12974 |
__isset_bit_vector = new BitSet(1);
|
|
|
12975 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12976 |
} catch (org.apache.thrift.TException te) {
|
|
|
12977 |
throw new java.io.IOException(te);
|
|
|
12978 |
}
|
|
|
12979 |
}
|
|
|
12980 |
|
|
|
12981 |
}
|
|
|
12982 |
|
|
|
12983 |
public static class getInventoryItemFromOrder_result implements org.apache.thrift.TBase<getInventoryItemFromOrder_result, getInventoryItemFromOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
12984 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_result");
|
|
|
12985 |
|
|
|
12986 |
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);
|
|
|
12987 |
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);
|
|
|
12988 |
|
|
|
12989 |
private InventoryItem success; // required
|
|
|
12990 |
private WarehouseServiceException we; // required
|
|
|
12991 |
|
|
|
12992 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12993 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12994 |
SUCCESS((short)0, "success"),
|
|
|
12995 |
WE((short)1, "we");
|
|
|
12996 |
|
|
|
12997 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12998 |
|
|
|
12999 |
static {
|
|
|
13000 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13001 |
byName.put(field.getFieldName(), field);
|
|
|
13002 |
}
|
|
|
13003 |
}
|
|
|
13004 |
|
|
|
13005 |
/**
|
|
|
13006 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13007 |
*/
|
|
|
13008 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13009 |
switch(fieldId) {
|
|
|
13010 |
case 0: // SUCCESS
|
|
|
13011 |
return SUCCESS;
|
|
|
13012 |
case 1: // WE
|
|
|
13013 |
return WE;
|
|
|
13014 |
default:
|
|
|
13015 |
return null;
|
|
|
13016 |
}
|
|
|
13017 |
}
|
|
|
13018 |
|
|
|
13019 |
/**
|
|
|
13020 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13021 |
* if it is not found.
|
|
|
13022 |
*/
|
|
|
13023 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13024 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13025 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13026 |
return fields;
|
|
|
13027 |
}
|
|
|
13028 |
|
|
|
13029 |
/**
|
|
|
13030 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13031 |
*/
|
|
|
13032 |
public static _Fields findByName(String name) {
|
|
|
13033 |
return byName.get(name);
|
|
|
13034 |
}
|
|
|
13035 |
|
|
|
13036 |
private final short _thriftId;
|
|
|
13037 |
private final String _fieldName;
|
|
|
13038 |
|
|
|
13039 |
_Fields(short thriftId, String fieldName) {
|
|
|
13040 |
_thriftId = thriftId;
|
|
|
13041 |
_fieldName = fieldName;
|
|
|
13042 |
}
|
|
|
13043 |
|
|
|
13044 |
public short getThriftFieldId() {
|
|
|
13045 |
return _thriftId;
|
|
|
13046 |
}
|
|
|
13047 |
|
|
|
13048 |
public String getFieldName() {
|
|
|
13049 |
return _fieldName;
|
|
|
13050 |
}
|
|
|
13051 |
}
|
|
|
13052 |
|
|
|
13053 |
// isset id assignments
|
|
|
13054 |
|
|
|
13055 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13056 |
static {
|
|
|
13057 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13058 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13059 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
13060 |
tmpMap.put(_Fields.WE, new org.apache.thrift.meta_data.FieldMetaData("we", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13061 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
13062 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13063 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_result.class, metaDataMap);
|
|
|
13064 |
}
|
|
|
13065 |
|
|
|
13066 |
public getInventoryItemFromOrder_result() {
|
|
|
13067 |
}
|
|
|
13068 |
|
|
|
13069 |
public getInventoryItemFromOrder_result(
|
|
|
13070 |
InventoryItem success,
|
|
|
13071 |
WarehouseServiceException we)
|
|
|
13072 |
{
|
|
|
13073 |
this();
|
|
|
13074 |
this.success = success;
|
|
|
13075 |
this.we = we;
|
|
|
13076 |
}
|
|
|
13077 |
|
|
|
13078 |
/**
|
|
|
13079 |
* Performs a deep copy on <i>other</i>.
|
|
|
13080 |
*/
|
|
|
13081 |
public getInventoryItemFromOrder_result(getInventoryItemFromOrder_result other) {
|
|
|
13082 |
if (other.isSetSuccess()) {
|
|
|
13083 |
this.success = new InventoryItem(other.success);
|
|
|
13084 |
}
|
|
|
13085 |
if (other.isSetWe()) {
|
|
|
13086 |
this.we = new WarehouseServiceException(other.we);
|
|
|
13087 |
}
|
|
|
13088 |
}
|
|
|
13089 |
|
|
|
13090 |
public getInventoryItemFromOrder_result deepCopy() {
|
|
|
13091 |
return new getInventoryItemFromOrder_result(this);
|
|
|
13092 |
}
|
|
|
13093 |
|
|
|
13094 |
@Override
|
|
|
13095 |
public void clear() {
|
|
|
13096 |
this.success = null;
|
|
|
13097 |
this.we = null;
|
|
|
13098 |
}
|
|
|
13099 |
|
|
|
13100 |
public InventoryItem getSuccess() {
|
|
|
13101 |
return this.success;
|
|
|
13102 |
}
|
|
|
13103 |
|
|
|
13104 |
public void setSuccess(InventoryItem success) {
|
|
|
13105 |
this.success = success;
|
|
|
13106 |
}
|
|
|
13107 |
|
|
|
13108 |
public void unsetSuccess() {
|
|
|
13109 |
this.success = null;
|
|
|
13110 |
}
|
|
|
13111 |
|
|
|
13112 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
13113 |
public boolean isSetSuccess() {
|
|
|
13114 |
return this.success != null;
|
|
|
13115 |
}
|
|
|
13116 |
|
|
|
13117 |
public void setSuccessIsSet(boolean value) {
|
|
|
13118 |
if (!value) {
|
|
|
13119 |
this.success = null;
|
|
|
13120 |
}
|
|
|
13121 |
}
|
|
|
13122 |
|
|
|
13123 |
public WarehouseServiceException getWe() {
|
|
|
13124 |
return this.we;
|
|
|
13125 |
}
|
|
|
13126 |
|
|
|
13127 |
public void setWe(WarehouseServiceException we) {
|
|
|
13128 |
this.we = we;
|
|
|
13129 |
}
|
|
|
13130 |
|
|
|
13131 |
public void unsetWe() {
|
|
|
13132 |
this.we = null;
|
|
|
13133 |
}
|
|
|
13134 |
|
|
|
13135 |
/** Returns true if field we is set (has been assigned a value) and false otherwise */
|
|
|
13136 |
public boolean isSetWe() {
|
|
|
13137 |
return this.we != null;
|
|
|
13138 |
}
|
|
|
13139 |
|
|
|
13140 |
public void setWeIsSet(boolean value) {
|
|
|
13141 |
if (!value) {
|
|
|
13142 |
this.we = null;
|
|
|
13143 |
}
|
|
|
13144 |
}
|
|
|
13145 |
|
|
|
13146 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13147 |
switch (field) {
|
|
|
13148 |
case SUCCESS:
|
|
|
13149 |
if (value == null) {
|
|
|
13150 |
unsetSuccess();
|
|
|
13151 |
} else {
|
|
|
13152 |
setSuccess((InventoryItem)value);
|
|
|
13153 |
}
|
|
|
13154 |
break;
|
|
|
13155 |
|
|
|
13156 |
case WE:
|
|
|
13157 |
if (value == null) {
|
|
|
13158 |
unsetWe();
|
|
|
13159 |
} else {
|
|
|
13160 |
setWe((WarehouseServiceException)value);
|
|
|
13161 |
}
|
|
|
13162 |
break;
|
|
|
13163 |
|
|
|
13164 |
}
|
|
|
13165 |
}
|
|
|
13166 |
|
|
|
13167 |
public Object getFieldValue(_Fields field) {
|
|
|
13168 |
switch (field) {
|
|
|
13169 |
case SUCCESS:
|
|
|
13170 |
return getSuccess();
|
|
|
13171 |
|
|
|
13172 |
case WE:
|
|
|
13173 |
return getWe();
|
|
|
13174 |
|
|
|
13175 |
}
|
|
|
13176 |
throw new IllegalStateException();
|
|
|
13177 |
}
|
|
|
13178 |
|
|
|
13179 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13180 |
public boolean isSet(_Fields field) {
|
|
|
13181 |
if (field == null) {
|
|
|
13182 |
throw new IllegalArgumentException();
|
|
|
13183 |
}
|
|
|
13184 |
|
|
|
13185 |
switch (field) {
|
|
|
13186 |
case SUCCESS:
|
|
|
13187 |
return isSetSuccess();
|
|
|
13188 |
case WE:
|
|
|
13189 |
return isSetWe();
|
|
|
13190 |
}
|
|
|
13191 |
throw new IllegalStateException();
|
|
|
13192 |
}
|
|
|
13193 |
|
|
|
13194 |
@Override
|
|
|
13195 |
public boolean equals(Object that) {
|
|
|
13196 |
if (that == null)
|
|
|
13197 |
return false;
|
|
|
13198 |
if (that instanceof getInventoryItemFromOrder_result)
|
|
|
13199 |
return this.equals((getInventoryItemFromOrder_result)that);
|
|
|
13200 |
return false;
|
|
|
13201 |
}
|
|
|
13202 |
|
|
|
13203 |
public boolean equals(getInventoryItemFromOrder_result that) {
|
|
|
13204 |
if (that == null)
|
|
|
13205 |
return false;
|
|
|
13206 |
|
|
|
13207 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
13208 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
13209 |
if (this_present_success || that_present_success) {
|
|
|
13210 |
if (!(this_present_success && that_present_success))
|
|
|
13211 |
return false;
|
|
|
13212 |
if (!this.success.equals(that.success))
|
|
|
13213 |
return false;
|
|
|
13214 |
}
|
|
|
13215 |
|
|
|
13216 |
boolean this_present_we = true && this.isSetWe();
|
|
|
13217 |
boolean that_present_we = true && that.isSetWe();
|
|
|
13218 |
if (this_present_we || that_present_we) {
|
|
|
13219 |
if (!(this_present_we && that_present_we))
|
|
|
13220 |
return false;
|
|
|
13221 |
if (!this.we.equals(that.we))
|
|
|
13222 |
return false;
|
|
|
13223 |
}
|
|
|
13224 |
|
|
|
13225 |
return true;
|
|
|
13226 |
}
|
|
|
13227 |
|
|
|
13228 |
@Override
|
|
|
13229 |
public int hashCode() {
|
|
|
13230 |
return 0;
|
|
|
13231 |
}
|
|
|
13232 |
|
|
|
13233 |
public int compareTo(getInventoryItemFromOrder_result other) {
|
|
|
13234 |
if (!getClass().equals(other.getClass())) {
|
|
|
13235 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13236 |
}
|
|
|
13237 |
|
|
|
13238 |
int lastComparison = 0;
|
|
|
13239 |
getInventoryItemFromOrder_result typedOther = (getInventoryItemFromOrder_result)other;
|
|
|
13240 |
|
|
|
13241 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
13242 |
if (lastComparison != 0) {
|
|
|
13243 |
return lastComparison;
|
|
|
13244 |
}
|
|
|
13245 |
if (isSetSuccess()) {
|
|
|
13246 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
13247 |
if (lastComparison != 0) {
|
|
|
13248 |
return lastComparison;
|
|
|
13249 |
}
|
|
|
13250 |
}
|
|
|
13251 |
lastComparison = Boolean.valueOf(isSetWe()).compareTo(typedOther.isSetWe());
|
|
|
13252 |
if (lastComparison != 0) {
|
|
|
13253 |
return lastComparison;
|
|
|
13254 |
}
|
|
|
13255 |
if (isSetWe()) {
|
|
|
13256 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.we, typedOther.we);
|
|
|
13257 |
if (lastComparison != 0) {
|
|
|
13258 |
return lastComparison;
|
|
|
13259 |
}
|
|
|
13260 |
}
|
|
|
13261 |
return 0;
|
|
|
13262 |
}
|
|
|
13263 |
|
|
|
13264 |
public _Fields fieldForId(int fieldId) {
|
|
|
13265 |
return _Fields.findByThriftId(fieldId);
|
|
|
13266 |
}
|
|
|
13267 |
|
|
|
13268 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13269 |
org.apache.thrift.protocol.TField field;
|
|
|
13270 |
iprot.readStructBegin();
|
|
|
13271 |
while (true)
|
|
|
13272 |
{
|
|
|
13273 |
field = iprot.readFieldBegin();
|
|
|
13274 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13275 |
break;
|
|
|
13276 |
}
|
|
|
13277 |
switch (field.id) {
|
|
|
13278 |
case 0: // SUCCESS
|
|
|
13279 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
13280 |
this.success = new InventoryItem();
|
|
|
13281 |
this.success.read(iprot);
|
|
|
13282 |
} else {
|
|
|
13283 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13284 |
}
|
|
|
13285 |
break;
|
|
|
13286 |
case 1: // WE
|
|
|
13287 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
13288 |
this.we = new WarehouseServiceException();
|
|
|
13289 |
this.we.read(iprot);
|
|
|
13290 |
} else {
|
|
|
13291 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13292 |
}
|
|
|
13293 |
break;
|
|
|
13294 |
default:
|
|
|
13295 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13296 |
}
|
|
|
13297 |
iprot.readFieldEnd();
|
|
|
13298 |
}
|
|
|
13299 |
iprot.readStructEnd();
|
|
|
13300 |
validate();
|
|
|
13301 |
}
|
|
|
13302 |
|
|
|
13303 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13304 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13305 |
|
|
|
13306 |
if (this.isSetSuccess()) {
|
|
|
13307 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
13308 |
this.success.write(oprot);
|
|
|
13309 |
oprot.writeFieldEnd();
|
|
|
13310 |
} else if (this.isSetWe()) {
|
|
|
13311 |
oprot.writeFieldBegin(WE_FIELD_DESC);
|
|
|
13312 |
this.we.write(oprot);
|
|
|
13313 |
oprot.writeFieldEnd();
|
|
|
13314 |
}
|
|
|
13315 |
oprot.writeFieldStop();
|
|
|
13316 |
oprot.writeStructEnd();
|
|
|
13317 |
}
|
|
|
13318 |
|
|
|
13319 |
@Override
|
|
|
13320 |
public String toString() {
|
|
|
13321 |
StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_result(");
|
|
|
13322 |
boolean first = true;
|
|
|
13323 |
|
|
|
13324 |
sb.append("success:");
|
|
|
13325 |
if (this.success == null) {
|
|
|
13326 |
sb.append("null");
|
|
|
13327 |
} else {
|
|
|
13328 |
sb.append(this.success);
|
|
|
13329 |
}
|
|
|
13330 |
first = false;
|
|
|
13331 |
if (!first) sb.append(", ");
|
|
|
13332 |
sb.append("we:");
|
|
|
13333 |
if (this.we == null) {
|
|
|
13334 |
sb.append("null");
|
|
|
13335 |
} else {
|
|
|
13336 |
sb.append(this.we);
|
|
|
13337 |
}
|
|
|
13338 |
first = false;
|
|
|
13339 |
sb.append(")");
|
|
|
13340 |
return sb.toString();
|
|
|
13341 |
}
|
|
|
13342 |
|
|
|
13343 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13344 |
// check for required fields
|
|
|
13345 |
}
|
|
|
13346 |
|
|
|
13347 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13348 |
try {
|
|
|
13349 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13350 |
} catch (org.apache.thrift.TException te) {
|
|
|
13351 |
throw new java.io.IOException(te);
|
|
|
13352 |
}
|
|
|
13353 |
}
|
|
|
13354 |
|
|
|
13355 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13356 |
try {
|
|
|
13357 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13358 |
} catch (org.apache.thrift.TException te) {
|
|
|
13359 |
throw new java.io.IOException(te);
|
|
|
13360 |
}
|
|
|
13361 |
}
|
|
|
13362 |
|
|
|
13363 |
}
|
|
|
13364 |
|
| 5711 |
mandeep.dh |
13365 |
public static class getInventoryAge_args implements org.apache.thrift.TBase<getInventoryAge_args, getInventoryAge_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
13366 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAge_args");
|
|
|
13367 |
|
|
|
13368 |
|
|
|
13369 |
|
|
|
13370 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13371 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13372 |
;
|
|
|
13373 |
|
|
|
13374 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13375 |
|
|
|
13376 |
static {
|
|
|
13377 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13378 |
byName.put(field.getFieldName(), field);
|
|
|
13379 |
}
|
|
|
13380 |
}
|
|
|
13381 |
|
|
|
13382 |
/**
|
|
|
13383 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13384 |
*/
|
|
|
13385 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13386 |
switch(fieldId) {
|
|
|
13387 |
default:
|
|
|
13388 |
return null;
|
|
|
13389 |
}
|
|
|
13390 |
}
|
|
|
13391 |
|
|
|
13392 |
/**
|
|
|
13393 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13394 |
* if it is not found.
|
|
|
13395 |
*/
|
|
|
13396 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13397 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13398 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13399 |
return fields;
|
|
|
13400 |
}
|
|
|
13401 |
|
|
|
13402 |
/**
|
|
|
13403 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13404 |
*/
|
|
|
13405 |
public static _Fields findByName(String name) {
|
|
|
13406 |
return byName.get(name);
|
|
|
13407 |
}
|
|
|
13408 |
|
|
|
13409 |
private final short _thriftId;
|
|
|
13410 |
private final String _fieldName;
|
|
|
13411 |
|
|
|
13412 |
_Fields(short thriftId, String fieldName) {
|
|
|
13413 |
_thriftId = thriftId;
|
|
|
13414 |
_fieldName = fieldName;
|
|
|
13415 |
}
|
|
|
13416 |
|
|
|
13417 |
public short getThriftFieldId() {
|
|
|
13418 |
return _thriftId;
|
|
|
13419 |
}
|
|
|
13420 |
|
|
|
13421 |
public String getFieldName() {
|
|
|
13422 |
return _fieldName;
|
|
|
13423 |
}
|
|
|
13424 |
}
|
|
|
13425 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13426 |
static {
|
|
|
13427 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13428 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13429 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAge_args.class, metaDataMap);
|
|
|
13430 |
}
|
|
|
13431 |
|
|
|
13432 |
public getInventoryAge_args() {
|
|
|
13433 |
}
|
|
|
13434 |
|
|
|
13435 |
/**
|
|
|
13436 |
* Performs a deep copy on <i>other</i>.
|
|
|
13437 |
*/
|
|
|
13438 |
public getInventoryAge_args(getInventoryAge_args other) {
|
|
|
13439 |
}
|
|
|
13440 |
|
|
|
13441 |
public getInventoryAge_args deepCopy() {
|
|
|
13442 |
return new getInventoryAge_args(this);
|
|
|
13443 |
}
|
|
|
13444 |
|
|
|
13445 |
@Override
|
|
|
13446 |
public void clear() {
|
|
|
13447 |
}
|
|
|
13448 |
|
|
|
13449 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13450 |
switch (field) {
|
|
|
13451 |
}
|
|
|
13452 |
}
|
|
|
13453 |
|
|
|
13454 |
public Object getFieldValue(_Fields field) {
|
|
|
13455 |
switch (field) {
|
|
|
13456 |
}
|
|
|
13457 |
throw new IllegalStateException();
|
|
|
13458 |
}
|
|
|
13459 |
|
|
|
13460 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13461 |
public boolean isSet(_Fields field) {
|
|
|
13462 |
if (field == null) {
|
|
|
13463 |
throw new IllegalArgumentException();
|
|
|
13464 |
}
|
|
|
13465 |
|
|
|
13466 |
switch (field) {
|
|
|
13467 |
}
|
|
|
13468 |
throw new IllegalStateException();
|
|
|
13469 |
}
|
|
|
13470 |
|
|
|
13471 |
@Override
|
|
|
13472 |
public boolean equals(Object that) {
|
|
|
13473 |
if (that == null)
|
|
|
13474 |
return false;
|
|
|
13475 |
if (that instanceof getInventoryAge_args)
|
|
|
13476 |
return this.equals((getInventoryAge_args)that);
|
|
|
13477 |
return false;
|
|
|
13478 |
}
|
|
|
13479 |
|
|
|
13480 |
public boolean equals(getInventoryAge_args that) {
|
|
|
13481 |
if (that == null)
|
|
|
13482 |
return false;
|
|
|
13483 |
|
|
|
13484 |
return true;
|
|
|
13485 |
}
|
|
|
13486 |
|
|
|
13487 |
@Override
|
|
|
13488 |
public int hashCode() {
|
|
|
13489 |
return 0;
|
|
|
13490 |
}
|
|
|
13491 |
|
|
|
13492 |
public int compareTo(getInventoryAge_args other) {
|
|
|
13493 |
if (!getClass().equals(other.getClass())) {
|
|
|
13494 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13495 |
}
|
|
|
13496 |
|
|
|
13497 |
int lastComparison = 0;
|
|
|
13498 |
getInventoryAge_args typedOther = (getInventoryAge_args)other;
|
|
|
13499 |
|
|
|
13500 |
return 0;
|
|
|
13501 |
}
|
|
|
13502 |
|
|
|
13503 |
public _Fields fieldForId(int fieldId) {
|
|
|
13504 |
return _Fields.findByThriftId(fieldId);
|
|
|
13505 |
}
|
|
|
13506 |
|
|
|
13507 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13508 |
org.apache.thrift.protocol.TField field;
|
|
|
13509 |
iprot.readStructBegin();
|
|
|
13510 |
while (true)
|
|
|
13511 |
{
|
|
|
13512 |
field = iprot.readFieldBegin();
|
|
|
13513 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13514 |
break;
|
|
|
13515 |
}
|
|
|
13516 |
switch (field.id) {
|
|
|
13517 |
default:
|
|
|
13518 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13519 |
}
|
|
|
13520 |
iprot.readFieldEnd();
|
|
|
13521 |
}
|
|
|
13522 |
iprot.readStructEnd();
|
|
|
13523 |
validate();
|
|
|
13524 |
}
|
|
|
13525 |
|
|
|
13526 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13527 |
validate();
|
|
|
13528 |
|
|
|
13529 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13530 |
oprot.writeFieldStop();
|
|
|
13531 |
oprot.writeStructEnd();
|
|
|
13532 |
}
|
|
|
13533 |
|
|
|
13534 |
@Override
|
|
|
13535 |
public String toString() {
|
|
|
13536 |
StringBuilder sb = new StringBuilder("getInventoryAge_args(");
|
|
|
13537 |
boolean first = true;
|
|
|
13538 |
|
|
|
13539 |
sb.append(")");
|
|
|
13540 |
return sb.toString();
|
|
|
13541 |
}
|
|
|
13542 |
|
|
|
13543 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13544 |
// check for required fields
|
|
|
13545 |
}
|
|
|
13546 |
|
|
|
13547 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13548 |
try {
|
|
|
13549 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13550 |
} catch (org.apache.thrift.TException te) {
|
|
|
13551 |
throw new java.io.IOException(te);
|
|
|
13552 |
}
|
|
|
13553 |
}
|
|
|
13554 |
|
|
|
13555 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13556 |
try {
|
|
|
13557 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13558 |
} catch (org.apache.thrift.TException te) {
|
|
|
13559 |
throw new java.io.IOException(te);
|
|
|
13560 |
}
|
|
|
13561 |
}
|
|
|
13562 |
|
|
|
13563 |
}
|
|
|
13564 |
|
|
|
13565 |
public static class getInventoryAge_result implements org.apache.thrift.TBase<getInventoryAge_result, getInventoryAge_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
13566 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAge_result");
|
|
|
13567 |
|
|
|
13568 |
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);
|
|
|
13569 |
|
|
|
13570 |
private List<InventoryAge> success; // required
|
|
|
13571 |
|
|
|
13572 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13573 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13574 |
SUCCESS((short)0, "success");
|
|
|
13575 |
|
|
|
13576 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13577 |
|
|
|
13578 |
static {
|
|
|
13579 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13580 |
byName.put(field.getFieldName(), field);
|
|
|
13581 |
}
|
|
|
13582 |
}
|
|
|
13583 |
|
|
|
13584 |
/**
|
|
|
13585 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13586 |
*/
|
|
|
13587 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13588 |
switch(fieldId) {
|
|
|
13589 |
case 0: // SUCCESS
|
|
|
13590 |
return SUCCESS;
|
|
|
13591 |
default:
|
|
|
13592 |
return null;
|
|
|
13593 |
}
|
|
|
13594 |
}
|
|
|
13595 |
|
|
|
13596 |
/**
|
|
|
13597 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13598 |
* if it is not found.
|
|
|
13599 |
*/
|
|
|
13600 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13601 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13602 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13603 |
return fields;
|
|
|
13604 |
}
|
|
|
13605 |
|
|
|
13606 |
/**
|
|
|
13607 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13608 |
*/
|
|
|
13609 |
public static _Fields findByName(String name) {
|
|
|
13610 |
return byName.get(name);
|
|
|
13611 |
}
|
|
|
13612 |
|
|
|
13613 |
private final short _thriftId;
|
|
|
13614 |
private final String _fieldName;
|
|
|
13615 |
|
|
|
13616 |
_Fields(short thriftId, String fieldName) {
|
|
|
13617 |
_thriftId = thriftId;
|
|
|
13618 |
_fieldName = fieldName;
|
|
|
13619 |
}
|
|
|
13620 |
|
|
|
13621 |
public short getThriftFieldId() {
|
|
|
13622 |
return _thriftId;
|
|
|
13623 |
}
|
|
|
13624 |
|
|
|
13625 |
public String getFieldName() {
|
|
|
13626 |
return _fieldName;
|
|
|
13627 |
}
|
|
|
13628 |
}
|
|
|
13629 |
|
|
|
13630 |
// isset id assignments
|
|
|
13631 |
|
|
|
13632 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13633 |
static {
|
|
|
13634 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13635 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13636 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
13637 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAge.class))));
|
|
|
13638 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13639 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAge_result.class, metaDataMap);
|
|
|
13640 |
}
|
|
|
13641 |
|
|
|
13642 |
public getInventoryAge_result() {
|
|
|
13643 |
}
|
|
|
13644 |
|
|
|
13645 |
public getInventoryAge_result(
|
|
|
13646 |
List<InventoryAge> success)
|
|
|
13647 |
{
|
|
|
13648 |
this();
|
|
|
13649 |
this.success = success;
|
|
|
13650 |
}
|
|
|
13651 |
|
|
|
13652 |
/**
|
|
|
13653 |
* Performs a deep copy on <i>other</i>.
|
|
|
13654 |
*/
|
|
|
13655 |
public getInventoryAge_result(getInventoryAge_result other) {
|
|
|
13656 |
if (other.isSetSuccess()) {
|
|
|
13657 |
List<InventoryAge> __this__success = new ArrayList<InventoryAge>();
|
|
|
13658 |
for (InventoryAge other_element : other.success) {
|
|
|
13659 |
__this__success.add(new InventoryAge(other_element));
|
|
|
13660 |
}
|
|
|
13661 |
this.success = __this__success;
|
|
|
13662 |
}
|
|
|
13663 |
}
|
|
|
13664 |
|
|
|
13665 |
public getInventoryAge_result deepCopy() {
|
|
|
13666 |
return new getInventoryAge_result(this);
|
|
|
13667 |
}
|
|
|
13668 |
|
|
|
13669 |
@Override
|
|
|
13670 |
public void clear() {
|
|
|
13671 |
this.success = null;
|
|
|
13672 |
}
|
|
|
13673 |
|
|
|
13674 |
public int getSuccessSize() {
|
|
|
13675 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
13676 |
}
|
|
|
13677 |
|
|
|
13678 |
public java.util.Iterator<InventoryAge> getSuccessIterator() {
|
|
|
13679 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
13680 |
}
|
|
|
13681 |
|
|
|
13682 |
public void addToSuccess(InventoryAge elem) {
|
|
|
13683 |
if (this.success == null) {
|
|
|
13684 |
this.success = new ArrayList<InventoryAge>();
|
|
|
13685 |
}
|
|
|
13686 |
this.success.add(elem);
|
|
|
13687 |
}
|
|
|
13688 |
|
|
|
13689 |
public List<InventoryAge> getSuccess() {
|
|
|
13690 |
return this.success;
|
|
|
13691 |
}
|
|
|
13692 |
|
|
|
13693 |
public void setSuccess(List<InventoryAge> success) {
|
|
|
13694 |
this.success = success;
|
|
|
13695 |
}
|
|
|
13696 |
|
|
|
13697 |
public void unsetSuccess() {
|
|
|
13698 |
this.success = null;
|
|
|
13699 |
}
|
|
|
13700 |
|
|
|
13701 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
13702 |
public boolean isSetSuccess() {
|
|
|
13703 |
return this.success != null;
|
|
|
13704 |
}
|
|
|
13705 |
|
|
|
13706 |
public void setSuccessIsSet(boolean value) {
|
|
|
13707 |
if (!value) {
|
|
|
13708 |
this.success = null;
|
|
|
13709 |
}
|
|
|
13710 |
}
|
|
|
13711 |
|
|
|
13712 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13713 |
switch (field) {
|
|
|
13714 |
case SUCCESS:
|
|
|
13715 |
if (value == null) {
|
|
|
13716 |
unsetSuccess();
|
|
|
13717 |
} else {
|
|
|
13718 |
setSuccess((List<InventoryAge>)value);
|
|
|
13719 |
}
|
|
|
13720 |
break;
|
|
|
13721 |
|
|
|
13722 |
}
|
|
|
13723 |
}
|
|
|
13724 |
|
|
|
13725 |
public Object getFieldValue(_Fields field) {
|
|
|
13726 |
switch (field) {
|
|
|
13727 |
case SUCCESS:
|
|
|
13728 |
return getSuccess();
|
|
|
13729 |
|
|
|
13730 |
}
|
|
|
13731 |
throw new IllegalStateException();
|
|
|
13732 |
}
|
|
|
13733 |
|
|
|
13734 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13735 |
public boolean isSet(_Fields field) {
|
|
|
13736 |
if (field == null) {
|
|
|
13737 |
throw new IllegalArgumentException();
|
|
|
13738 |
}
|
|
|
13739 |
|
|
|
13740 |
switch (field) {
|
|
|
13741 |
case SUCCESS:
|
|
|
13742 |
return isSetSuccess();
|
|
|
13743 |
}
|
|
|
13744 |
throw new IllegalStateException();
|
|
|
13745 |
}
|
|
|
13746 |
|
|
|
13747 |
@Override
|
|
|
13748 |
public boolean equals(Object that) {
|
|
|
13749 |
if (that == null)
|
|
|
13750 |
return false;
|
|
|
13751 |
if (that instanceof getInventoryAge_result)
|
|
|
13752 |
return this.equals((getInventoryAge_result)that);
|
|
|
13753 |
return false;
|
|
|
13754 |
}
|
|
|
13755 |
|
|
|
13756 |
public boolean equals(getInventoryAge_result that) {
|
|
|
13757 |
if (that == null)
|
|
|
13758 |
return false;
|
|
|
13759 |
|
|
|
13760 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
13761 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
13762 |
if (this_present_success || that_present_success) {
|
|
|
13763 |
if (!(this_present_success && that_present_success))
|
|
|
13764 |
return false;
|
|
|
13765 |
if (!this.success.equals(that.success))
|
|
|
13766 |
return false;
|
|
|
13767 |
}
|
|
|
13768 |
|
|
|
13769 |
return true;
|
|
|
13770 |
}
|
|
|
13771 |
|
|
|
13772 |
@Override
|
|
|
13773 |
public int hashCode() {
|
|
|
13774 |
return 0;
|
|
|
13775 |
}
|
|
|
13776 |
|
|
|
13777 |
public int compareTo(getInventoryAge_result other) {
|
|
|
13778 |
if (!getClass().equals(other.getClass())) {
|
|
|
13779 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13780 |
}
|
|
|
13781 |
|
|
|
13782 |
int lastComparison = 0;
|
|
|
13783 |
getInventoryAge_result typedOther = (getInventoryAge_result)other;
|
|
|
13784 |
|
|
|
13785 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
13786 |
if (lastComparison != 0) {
|
|
|
13787 |
return lastComparison;
|
|
|
13788 |
}
|
|
|
13789 |
if (isSetSuccess()) {
|
|
|
13790 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
13791 |
if (lastComparison != 0) {
|
|
|
13792 |
return lastComparison;
|
|
|
13793 |
}
|
|
|
13794 |
}
|
|
|
13795 |
return 0;
|
|
|
13796 |
}
|
|
|
13797 |
|
|
|
13798 |
public _Fields fieldForId(int fieldId) {
|
|
|
13799 |
return _Fields.findByThriftId(fieldId);
|
|
|
13800 |
}
|
|
|
13801 |
|
|
|
13802 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13803 |
org.apache.thrift.protocol.TField field;
|
|
|
13804 |
iprot.readStructBegin();
|
|
|
13805 |
while (true)
|
|
|
13806 |
{
|
|
|
13807 |
field = iprot.readFieldBegin();
|
|
|
13808 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13809 |
break;
|
|
|
13810 |
}
|
|
|
13811 |
switch (field.id) {
|
|
|
13812 |
case 0: // SUCCESS
|
|
|
13813 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
13814 |
{
|
| 7210 |
amar.kumar |
13815 |
org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
|
|
|
13816 |
this.success = new ArrayList<InventoryAge>(_list24.size);
|
|
|
13817 |
for (int _i25 = 0; _i25 < _list24.size; ++_i25)
|
| 5711 |
mandeep.dh |
13818 |
{
|
| 7210 |
amar.kumar |
13819 |
InventoryAge _elem26; // required
|
|
|
13820 |
_elem26 = new InventoryAge();
|
|
|
13821 |
_elem26.read(iprot);
|
|
|
13822 |
this.success.add(_elem26);
|
| 5711 |
mandeep.dh |
13823 |
}
|
|
|
13824 |
iprot.readListEnd();
|
|
|
13825 |
}
|
|
|
13826 |
} else {
|
|
|
13827 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13828 |
}
|
|
|
13829 |
break;
|
|
|
13830 |
default:
|
|
|
13831 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13832 |
}
|
|
|
13833 |
iprot.readFieldEnd();
|
|
|
13834 |
}
|
|
|
13835 |
iprot.readStructEnd();
|
|
|
13836 |
validate();
|
|
|
13837 |
}
|
|
|
13838 |
|
|
|
13839 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13840 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13841 |
|
|
|
13842 |
if (this.isSetSuccess()) {
|
|
|
13843 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
13844 |
{
|
|
|
13845 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 7210 |
amar.kumar |
13846 |
for (InventoryAge _iter27 : this.success)
|
| 5711 |
mandeep.dh |
13847 |
{
|
| 7210 |
amar.kumar |
13848 |
_iter27.write(oprot);
|
| 5711 |
mandeep.dh |
13849 |
}
|
|
|
13850 |
oprot.writeListEnd();
|
|
|
13851 |
}
|
|
|
13852 |
oprot.writeFieldEnd();
|
|
|
13853 |
}
|
|
|
13854 |
oprot.writeFieldStop();
|
|
|
13855 |
oprot.writeStructEnd();
|
|
|
13856 |
}
|
|
|
13857 |
|
|
|
13858 |
@Override
|
|
|
13859 |
public String toString() {
|
|
|
13860 |
StringBuilder sb = new StringBuilder("getInventoryAge_result(");
|
|
|
13861 |
boolean first = true;
|
|
|
13862 |
|
|
|
13863 |
sb.append("success:");
|
|
|
13864 |
if (this.success == null) {
|
|
|
13865 |
sb.append("null");
|
|
|
13866 |
} else {
|
|
|
13867 |
sb.append(this.success);
|
|
|
13868 |
}
|
|
|
13869 |
first = false;
|
|
|
13870 |
sb.append(")");
|
|
|
13871 |
return sb.toString();
|
|
|
13872 |
}
|
|
|
13873 |
|
|
|
13874 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13875 |
// check for required fields
|
|
|
13876 |
}
|
|
|
13877 |
|
|
|
13878 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13879 |
try {
|
|
|
13880 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13881 |
} catch (org.apache.thrift.TException te) {
|
|
|
13882 |
throw new java.io.IOException(te);
|
|
|
13883 |
}
|
|
|
13884 |
}
|
|
|
13885 |
|
|
|
13886 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13887 |
try {
|
|
|
13888 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13889 |
} catch (org.apache.thrift.TException te) {
|
|
|
13890 |
throw new java.io.IOException(te);
|
|
|
13891 |
}
|
|
|
13892 |
}
|
|
|
13893 |
|
|
|
13894 |
}
|
|
|
13895 |
|
| 6322 |
amar.kumar |
13896 |
public static class getInventoryScansForItem_args implements org.apache.thrift.TBase<getInventoryScansForItem_args, getInventoryScansForItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
13897 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_args");
|
|
|
13898 |
|
|
|
13899 |
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);
|
|
|
13900 |
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);
|
|
|
13901 |
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);
|
|
|
13902 |
|
|
|
13903 |
private long itemId; // required
|
|
|
13904 |
private long fromDate; // required
|
|
|
13905 |
private long toDate; // required
|
|
|
13906 |
|
|
|
13907 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13908 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13909 |
ITEM_ID((short)1, "itemId"),
|
|
|
13910 |
FROM_DATE((short)2, "fromDate"),
|
|
|
13911 |
TO_DATE((short)3, "toDate");
|
|
|
13912 |
|
|
|
13913 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13914 |
|
|
|
13915 |
static {
|
|
|
13916 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13917 |
byName.put(field.getFieldName(), field);
|
|
|
13918 |
}
|
|
|
13919 |
}
|
|
|
13920 |
|
|
|
13921 |
/**
|
|
|
13922 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13923 |
*/
|
|
|
13924 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13925 |
switch(fieldId) {
|
|
|
13926 |
case 1: // ITEM_ID
|
|
|
13927 |
return ITEM_ID;
|
|
|
13928 |
case 2: // FROM_DATE
|
|
|
13929 |
return FROM_DATE;
|
|
|
13930 |
case 3: // TO_DATE
|
|
|
13931 |
return TO_DATE;
|
|
|
13932 |
default:
|
|
|
13933 |
return null;
|
|
|
13934 |
}
|
|
|
13935 |
}
|
|
|
13936 |
|
|
|
13937 |
/**
|
|
|
13938 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13939 |
* if it is not found.
|
|
|
13940 |
*/
|
|
|
13941 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13942 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13943 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13944 |
return fields;
|
|
|
13945 |
}
|
|
|
13946 |
|
|
|
13947 |
/**
|
|
|
13948 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13949 |
*/
|
|
|
13950 |
public static _Fields findByName(String name) {
|
|
|
13951 |
return byName.get(name);
|
|
|
13952 |
}
|
|
|
13953 |
|
|
|
13954 |
private final short _thriftId;
|
|
|
13955 |
private final String _fieldName;
|
|
|
13956 |
|
|
|
13957 |
_Fields(short thriftId, String fieldName) {
|
|
|
13958 |
_thriftId = thriftId;
|
|
|
13959 |
_fieldName = fieldName;
|
|
|
13960 |
}
|
|
|
13961 |
|
|
|
13962 |
public short getThriftFieldId() {
|
|
|
13963 |
return _thriftId;
|
|
|
13964 |
}
|
|
|
13965 |
|
|
|
13966 |
public String getFieldName() {
|
|
|
13967 |
return _fieldName;
|
|
|
13968 |
}
|
|
|
13969 |
}
|
|
|
13970 |
|
|
|
13971 |
// isset id assignments
|
|
|
13972 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
13973 |
private static final int __FROMDATE_ISSET_ID = 1;
|
|
|
13974 |
private static final int __TODATE_ISSET_ID = 2;
|
|
|
13975 |
private BitSet __isset_bit_vector = new BitSet(3);
|
|
|
13976 |
|
|
|
13977 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13978 |
static {
|
|
|
13979 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13980 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13981 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
13982 |
tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13983 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
13984 |
tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13985 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
13986 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13987 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_args.class, metaDataMap);
|
|
|
13988 |
}
|
|
|
13989 |
|
|
|
13990 |
public getInventoryScansForItem_args() {
|
|
|
13991 |
}
|
|
|
13992 |
|
|
|
13993 |
public getInventoryScansForItem_args(
|
|
|
13994 |
long itemId,
|
|
|
13995 |
long fromDate,
|
|
|
13996 |
long toDate)
|
|
|
13997 |
{
|
|
|
13998 |
this();
|
|
|
13999 |
this.itemId = itemId;
|
|
|
14000 |
setItemIdIsSet(true);
|
|
|
14001 |
this.fromDate = fromDate;
|
|
|
14002 |
setFromDateIsSet(true);
|
|
|
14003 |
this.toDate = toDate;
|
|
|
14004 |
setToDateIsSet(true);
|
|
|
14005 |
}
|
|
|
14006 |
|
|
|
14007 |
/**
|
|
|
14008 |
* Performs a deep copy on <i>other</i>.
|
|
|
14009 |
*/
|
|
|
14010 |
public getInventoryScansForItem_args(getInventoryScansForItem_args other) {
|
|
|
14011 |
__isset_bit_vector.clear();
|
|
|
14012 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
14013 |
this.itemId = other.itemId;
|
|
|
14014 |
this.fromDate = other.fromDate;
|
|
|
14015 |
this.toDate = other.toDate;
|
|
|
14016 |
}
|
|
|
14017 |
|
|
|
14018 |
public getInventoryScansForItem_args deepCopy() {
|
|
|
14019 |
return new getInventoryScansForItem_args(this);
|
|
|
14020 |
}
|
|
|
14021 |
|
|
|
14022 |
@Override
|
|
|
14023 |
public void clear() {
|
|
|
14024 |
setItemIdIsSet(false);
|
|
|
14025 |
this.itemId = 0;
|
|
|
14026 |
setFromDateIsSet(false);
|
|
|
14027 |
this.fromDate = 0;
|
|
|
14028 |
setToDateIsSet(false);
|
|
|
14029 |
this.toDate = 0;
|
|
|
14030 |
}
|
|
|
14031 |
|
|
|
14032 |
public long getItemId() {
|
|
|
14033 |
return this.itemId;
|
|
|
14034 |
}
|
|
|
14035 |
|
|
|
14036 |
public void setItemId(long itemId) {
|
|
|
14037 |
this.itemId = itemId;
|
|
|
14038 |
setItemIdIsSet(true);
|
|
|
14039 |
}
|
|
|
14040 |
|
|
|
14041 |
public void unsetItemId() {
|
|
|
14042 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
14043 |
}
|
|
|
14044 |
|
|
|
14045 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
14046 |
public boolean isSetItemId() {
|
|
|
14047 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
14048 |
}
|
|
|
14049 |
|
|
|
14050 |
public void setItemIdIsSet(boolean value) {
|
|
|
14051 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
14052 |
}
|
|
|
14053 |
|
|
|
14054 |
public long getFromDate() {
|
|
|
14055 |
return this.fromDate;
|
|
|
14056 |
}
|
|
|
14057 |
|
|
|
14058 |
public void setFromDate(long fromDate) {
|
|
|
14059 |
this.fromDate = fromDate;
|
|
|
14060 |
setFromDateIsSet(true);
|
|
|
14061 |
}
|
|
|
14062 |
|
|
|
14063 |
public void unsetFromDate() {
|
|
|
14064 |
__isset_bit_vector.clear(__FROMDATE_ISSET_ID);
|
|
|
14065 |
}
|
|
|
14066 |
|
|
|
14067 |
/** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
|
|
|
14068 |
public boolean isSetFromDate() {
|
|
|
14069 |
return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
|
|
|
14070 |
}
|
|
|
14071 |
|
|
|
14072 |
public void setFromDateIsSet(boolean value) {
|
|
|
14073 |
__isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
|
|
|
14074 |
}
|
|
|
14075 |
|
|
|
14076 |
public long getToDate() {
|
|
|
14077 |
return this.toDate;
|
|
|
14078 |
}
|
|
|
14079 |
|
|
|
14080 |
public void setToDate(long toDate) {
|
|
|
14081 |
this.toDate = toDate;
|
|
|
14082 |
setToDateIsSet(true);
|
|
|
14083 |
}
|
|
|
14084 |
|
|
|
14085 |
public void unsetToDate() {
|
|
|
14086 |
__isset_bit_vector.clear(__TODATE_ISSET_ID);
|
|
|
14087 |
}
|
|
|
14088 |
|
|
|
14089 |
/** Returns true if field toDate is set (has been assigned a value) and false otherwise */
|
|
|
14090 |
public boolean isSetToDate() {
|
|
|
14091 |
return __isset_bit_vector.get(__TODATE_ISSET_ID);
|
|
|
14092 |
}
|
|
|
14093 |
|
|
|
14094 |
public void setToDateIsSet(boolean value) {
|
|
|
14095 |
__isset_bit_vector.set(__TODATE_ISSET_ID, value);
|
|
|
14096 |
}
|
|
|
14097 |
|
|
|
14098 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
14099 |
switch (field) {
|
|
|
14100 |
case ITEM_ID:
|
|
|
14101 |
if (value == null) {
|
|
|
14102 |
unsetItemId();
|
|
|
14103 |
} else {
|
|
|
14104 |
setItemId((Long)value);
|
|
|
14105 |
}
|
|
|
14106 |
break;
|
|
|
14107 |
|
|
|
14108 |
case FROM_DATE:
|
|
|
14109 |
if (value == null) {
|
|
|
14110 |
unsetFromDate();
|
|
|
14111 |
} else {
|
|
|
14112 |
setFromDate((Long)value);
|
|
|
14113 |
}
|
|
|
14114 |
break;
|
|
|
14115 |
|
|
|
14116 |
case TO_DATE:
|
|
|
14117 |
if (value == null) {
|
|
|
14118 |
unsetToDate();
|
|
|
14119 |
} else {
|
|
|
14120 |
setToDate((Long)value);
|
|
|
14121 |
}
|
|
|
14122 |
break;
|
|
|
14123 |
|
|
|
14124 |
}
|
|
|
14125 |
}
|
|
|
14126 |
|
|
|
14127 |
public Object getFieldValue(_Fields field) {
|
|
|
14128 |
switch (field) {
|
|
|
14129 |
case ITEM_ID:
|
|
|
14130 |
return Long.valueOf(getItemId());
|
|
|
14131 |
|
|
|
14132 |
case FROM_DATE:
|
|
|
14133 |
return Long.valueOf(getFromDate());
|
|
|
14134 |
|
|
|
14135 |
case TO_DATE:
|
|
|
14136 |
return Long.valueOf(getToDate());
|
|
|
14137 |
|
|
|
14138 |
}
|
|
|
14139 |
throw new IllegalStateException();
|
|
|
14140 |
}
|
|
|
14141 |
|
|
|
14142 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14143 |
public boolean isSet(_Fields field) {
|
|
|
14144 |
if (field == null) {
|
|
|
14145 |
throw new IllegalArgumentException();
|
|
|
14146 |
}
|
|
|
14147 |
|
|
|
14148 |
switch (field) {
|
|
|
14149 |
case ITEM_ID:
|
|
|
14150 |
return isSetItemId();
|
|
|
14151 |
case FROM_DATE:
|
|
|
14152 |
return isSetFromDate();
|
|
|
14153 |
case TO_DATE:
|
|
|
14154 |
return isSetToDate();
|
|
|
14155 |
}
|
|
|
14156 |
throw new IllegalStateException();
|
|
|
14157 |
}
|
|
|
14158 |
|
|
|
14159 |
@Override
|
|
|
14160 |
public boolean equals(Object that) {
|
|
|
14161 |
if (that == null)
|
|
|
14162 |
return false;
|
|
|
14163 |
if (that instanceof getInventoryScansForItem_args)
|
|
|
14164 |
return this.equals((getInventoryScansForItem_args)that);
|
|
|
14165 |
return false;
|
|
|
14166 |
}
|
|
|
14167 |
|
|
|
14168 |
public boolean equals(getInventoryScansForItem_args that) {
|
|
|
14169 |
if (that == null)
|
|
|
14170 |
return false;
|
|
|
14171 |
|
|
|
14172 |
boolean this_present_itemId = true;
|
|
|
14173 |
boolean that_present_itemId = true;
|
|
|
14174 |
if (this_present_itemId || that_present_itemId) {
|
|
|
14175 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
14176 |
return false;
|
|
|
14177 |
if (this.itemId != that.itemId)
|
|
|
14178 |
return false;
|
|
|
14179 |
}
|
|
|
14180 |
|
|
|
14181 |
boolean this_present_fromDate = true;
|
|
|
14182 |
boolean that_present_fromDate = true;
|
|
|
14183 |
if (this_present_fromDate || that_present_fromDate) {
|
|
|
14184 |
if (!(this_present_fromDate && that_present_fromDate))
|
|
|
14185 |
return false;
|
|
|
14186 |
if (this.fromDate != that.fromDate)
|
|
|
14187 |
return false;
|
|
|
14188 |
}
|
|
|
14189 |
|
|
|
14190 |
boolean this_present_toDate = true;
|
|
|
14191 |
boolean that_present_toDate = true;
|
|
|
14192 |
if (this_present_toDate || that_present_toDate) {
|
|
|
14193 |
if (!(this_present_toDate && that_present_toDate))
|
|
|
14194 |
return false;
|
|
|
14195 |
if (this.toDate != that.toDate)
|
|
|
14196 |
return false;
|
|
|
14197 |
}
|
|
|
14198 |
|
|
|
14199 |
return true;
|
|
|
14200 |
}
|
|
|
14201 |
|
|
|
14202 |
@Override
|
|
|
14203 |
public int hashCode() {
|
|
|
14204 |
return 0;
|
|
|
14205 |
}
|
|
|
14206 |
|
|
|
14207 |
public int compareTo(getInventoryScansForItem_args other) {
|
|
|
14208 |
if (!getClass().equals(other.getClass())) {
|
|
|
14209 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14210 |
}
|
|
|
14211 |
|
|
|
14212 |
int lastComparison = 0;
|
|
|
14213 |
getInventoryScansForItem_args typedOther = (getInventoryScansForItem_args)other;
|
|
|
14214 |
|
|
|
14215 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
14216 |
if (lastComparison != 0) {
|
|
|
14217 |
return lastComparison;
|
|
|
14218 |
}
|
|
|
14219 |
if (isSetItemId()) {
|
|
|
14220 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
14221 |
if (lastComparison != 0) {
|
|
|
14222 |
return lastComparison;
|
|
|
14223 |
}
|
|
|
14224 |
}
|
|
|
14225 |
lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
|
|
|
14226 |
if (lastComparison != 0) {
|
|
|
14227 |
return lastComparison;
|
|
|
14228 |
}
|
|
|
14229 |
if (isSetFromDate()) {
|
|
|
14230 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
|
|
|
14231 |
if (lastComparison != 0) {
|
|
|
14232 |
return lastComparison;
|
|
|
14233 |
}
|
|
|
14234 |
}
|
|
|
14235 |
lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
|
|
|
14236 |
if (lastComparison != 0) {
|
|
|
14237 |
return lastComparison;
|
|
|
14238 |
}
|
|
|
14239 |
if (isSetToDate()) {
|
|
|
14240 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
|
|
|
14241 |
if (lastComparison != 0) {
|
|
|
14242 |
return lastComparison;
|
|
|
14243 |
}
|
|
|
14244 |
}
|
|
|
14245 |
return 0;
|
|
|
14246 |
}
|
|
|
14247 |
|
|
|
14248 |
public _Fields fieldForId(int fieldId) {
|
|
|
14249 |
return _Fields.findByThriftId(fieldId);
|
|
|
14250 |
}
|
|
|
14251 |
|
|
|
14252 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14253 |
org.apache.thrift.protocol.TField field;
|
|
|
14254 |
iprot.readStructBegin();
|
|
|
14255 |
while (true)
|
|
|
14256 |
{
|
|
|
14257 |
field = iprot.readFieldBegin();
|
|
|
14258 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
14259 |
break;
|
|
|
14260 |
}
|
|
|
14261 |
switch (field.id) {
|
|
|
14262 |
case 1: // ITEM_ID
|
|
|
14263 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
14264 |
this.itemId = iprot.readI64();
|
|
|
14265 |
setItemIdIsSet(true);
|
|
|
14266 |
} else {
|
|
|
14267 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14268 |
}
|
|
|
14269 |
break;
|
|
|
14270 |
case 2: // FROM_DATE
|
|
|
14271 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
14272 |
this.fromDate = iprot.readI64();
|
|
|
14273 |
setFromDateIsSet(true);
|
|
|
14274 |
} else {
|
|
|
14275 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14276 |
}
|
|
|
14277 |
break;
|
|
|
14278 |
case 3: // TO_DATE
|
|
|
14279 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
14280 |
this.toDate = iprot.readI64();
|
|
|
14281 |
setToDateIsSet(true);
|
|
|
14282 |
} else {
|
|
|
14283 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14284 |
}
|
|
|
14285 |
break;
|
|
|
14286 |
default:
|
|
|
14287 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14288 |
}
|
|
|
14289 |
iprot.readFieldEnd();
|
|
|
14290 |
}
|
|
|
14291 |
iprot.readStructEnd();
|
|
|
14292 |
validate();
|
|
|
14293 |
}
|
|
|
14294 |
|
|
|
14295 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
14296 |
validate();
|
|
|
14297 |
|
|
|
14298 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
14299 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
14300 |
oprot.writeI64(this.itemId);
|
|
|
14301 |
oprot.writeFieldEnd();
|
|
|
14302 |
oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
|
|
|
14303 |
oprot.writeI64(this.fromDate);
|
|
|
14304 |
oprot.writeFieldEnd();
|
|
|
14305 |
oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
|
|
|
14306 |
oprot.writeI64(this.toDate);
|
|
|
14307 |
oprot.writeFieldEnd();
|
|
|
14308 |
oprot.writeFieldStop();
|
|
|
14309 |
oprot.writeStructEnd();
|
|
|
14310 |
}
|
|
|
14311 |
|
|
|
14312 |
@Override
|
|
|
14313 |
public String toString() {
|
|
|
14314 |
StringBuilder sb = new StringBuilder("getInventoryScansForItem_args(");
|
|
|
14315 |
boolean first = true;
|
|
|
14316 |
|
|
|
14317 |
sb.append("itemId:");
|
|
|
14318 |
sb.append(this.itemId);
|
|
|
14319 |
first = false;
|
|
|
14320 |
if (!first) sb.append(", ");
|
|
|
14321 |
sb.append("fromDate:");
|
|
|
14322 |
sb.append(this.fromDate);
|
|
|
14323 |
first = false;
|
|
|
14324 |
if (!first) sb.append(", ");
|
|
|
14325 |
sb.append("toDate:");
|
|
|
14326 |
sb.append(this.toDate);
|
|
|
14327 |
first = false;
|
|
|
14328 |
sb.append(")");
|
|
|
14329 |
return sb.toString();
|
|
|
14330 |
}
|
|
|
14331 |
|
|
|
14332 |
public void validate() throws org.apache.thrift.TException {
|
|
|
14333 |
// check for required fields
|
|
|
14334 |
}
|
|
|
14335 |
|
|
|
14336 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14337 |
try {
|
|
|
14338 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14339 |
} catch (org.apache.thrift.TException te) {
|
|
|
14340 |
throw new java.io.IOException(te);
|
|
|
14341 |
}
|
|
|
14342 |
}
|
|
|
14343 |
|
|
|
14344 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14345 |
try {
|
|
|
14346 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14347 |
} catch (org.apache.thrift.TException te) {
|
|
|
14348 |
throw new java.io.IOException(te);
|
|
|
14349 |
}
|
|
|
14350 |
}
|
|
|
14351 |
|
|
|
14352 |
}
|
|
|
14353 |
|
|
|
14354 |
public static class getInventoryScansForItem_result implements org.apache.thrift.TBase<getInventoryScansForItem_result, getInventoryScansForItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
14355 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_result");
|
|
|
14356 |
|
|
|
14357 |
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);
|
|
|
14358 |
|
|
|
14359 |
private List<Scan> success; // required
|
|
|
14360 |
|
|
|
14361 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
14362 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
14363 |
SUCCESS((short)0, "success");
|
|
|
14364 |
|
|
|
14365 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
14366 |
|
|
|
14367 |
static {
|
|
|
14368 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
14369 |
byName.put(field.getFieldName(), field);
|
|
|
14370 |
}
|
|
|
14371 |
}
|
|
|
14372 |
|
|
|
14373 |
/**
|
|
|
14374 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
14375 |
*/
|
|
|
14376 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
14377 |
switch(fieldId) {
|
|
|
14378 |
case 0: // SUCCESS
|
|
|
14379 |
return SUCCESS;
|
|
|
14380 |
default:
|
|
|
14381 |
return null;
|
|
|
14382 |
}
|
|
|
14383 |
}
|
|
|
14384 |
|
|
|
14385 |
/**
|
|
|
14386 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
14387 |
* if it is not found.
|
|
|
14388 |
*/
|
|
|
14389 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
14390 |
_Fields fields = findByThriftId(fieldId);
|
|
|
14391 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
14392 |
return fields;
|
|
|
14393 |
}
|
|
|
14394 |
|
|
|
14395 |
/**
|
|
|
14396 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
14397 |
*/
|
|
|
14398 |
public static _Fields findByName(String name) {
|
|
|
14399 |
return byName.get(name);
|
|
|
14400 |
}
|
|
|
14401 |
|
|
|
14402 |
private final short _thriftId;
|
|
|
14403 |
private final String _fieldName;
|
|
|
14404 |
|
|
|
14405 |
_Fields(short thriftId, String fieldName) {
|
|
|
14406 |
_thriftId = thriftId;
|
|
|
14407 |
_fieldName = fieldName;
|
|
|
14408 |
}
|
|
|
14409 |
|
|
|
14410 |
public short getThriftFieldId() {
|
|
|
14411 |
return _thriftId;
|
|
|
14412 |
}
|
|
|
14413 |
|
|
|
14414 |
public String getFieldName() {
|
|
|
14415 |
return _fieldName;
|
|
|
14416 |
}
|
|
|
14417 |
}
|
|
|
14418 |
|
|
|
14419 |
// isset id assignments
|
|
|
14420 |
|
|
|
14421 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
14422 |
static {
|
|
|
14423 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
14424 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14425 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
14426 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
|
|
|
14427 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
14428 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_result.class, metaDataMap);
|
|
|
14429 |
}
|
|
|
14430 |
|
|
|
14431 |
public getInventoryScansForItem_result() {
|
|
|
14432 |
}
|
|
|
14433 |
|
|
|
14434 |
public getInventoryScansForItem_result(
|
|
|
14435 |
List<Scan> success)
|
|
|
14436 |
{
|
|
|
14437 |
this();
|
|
|
14438 |
this.success = success;
|
|
|
14439 |
}
|
|
|
14440 |
|
|
|
14441 |
/**
|
|
|
14442 |
* Performs a deep copy on <i>other</i>.
|
|
|
14443 |
*/
|
|
|
14444 |
public getInventoryScansForItem_result(getInventoryScansForItem_result other) {
|
|
|
14445 |
if (other.isSetSuccess()) {
|
|
|
14446 |
List<Scan> __this__success = new ArrayList<Scan>();
|
|
|
14447 |
for (Scan other_element : other.success) {
|
|
|
14448 |
__this__success.add(new Scan(other_element));
|
|
|
14449 |
}
|
|
|
14450 |
this.success = __this__success;
|
|
|
14451 |
}
|
|
|
14452 |
}
|
|
|
14453 |
|
|
|
14454 |
public getInventoryScansForItem_result deepCopy() {
|
|
|
14455 |
return new getInventoryScansForItem_result(this);
|
|
|
14456 |
}
|
|
|
14457 |
|
|
|
14458 |
@Override
|
|
|
14459 |
public void clear() {
|
|
|
14460 |
this.success = null;
|
|
|
14461 |
}
|
|
|
14462 |
|
|
|
14463 |
public int getSuccessSize() {
|
|
|
14464 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
14465 |
}
|
|
|
14466 |
|
|
|
14467 |
public java.util.Iterator<Scan> getSuccessIterator() {
|
|
|
14468 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
14469 |
}
|
|
|
14470 |
|
|
|
14471 |
public void addToSuccess(Scan elem) {
|
|
|
14472 |
if (this.success == null) {
|
|
|
14473 |
this.success = new ArrayList<Scan>();
|
|
|
14474 |
}
|
|
|
14475 |
this.success.add(elem);
|
|
|
14476 |
}
|
|
|
14477 |
|
|
|
14478 |
public List<Scan> getSuccess() {
|
|
|
14479 |
return this.success;
|
|
|
14480 |
}
|
|
|
14481 |
|
|
|
14482 |
public void setSuccess(List<Scan> success) {
|
|
|
14483 |
this.success = success;
|
|
|
14484 |
}
|
|
|
14485 |
|
|
|
14486 |
public void unsetSuccess() {
|
|
|
14487 |
this.success = null;
|
|
|
14488 |
}
|
|
|
14489 |
|
|
|
14490 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
14491 |
public boolean isSetSuccess() {
|
|
|
14492 |
return this.success != null;
|
|
|
14493 |
}
|
|
|
14494 |
|
|
|
14495 |
public void setSuccessIsSet(boolean value) {
|
|
|
14496 |
if (!value) {
|
|
|
14497 |
this.success = null;
|
|
|
14498 |
}
|
|
|
14499 |
}
|
|
|
14500 |
|
|
|
14501 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
14502 |
switch (field) {
|
|
|
14503 |
case SUCCESS:
|
|
|
14504 |
if (value == null) {
|
|
|
14505 |
unsetSuccess();
|
|
|
14506 |
} else {
|
|
|
14507 |
setSuccess((List<Scan>)value);
|
|
|
14508 |
}
|
|
|
14509 |
break;
|
|
|
14510 |
|
|
|
14511 |
}
|
|
|
14512 |
}
|
|
|
14513 |
|
|
|
14514 |
public Object getFieldValue(_Fields field) {
|
|
|
14515 |
switch (field) {
|
|
|
14516 |
case SUCCESS:
|
|
|
14517 |
return getSuccess();
|
|
|
14518 |
|
|
|
14519 |
}
|
|
|
14520 |
throw new IllegalStateException();
|
|
|
14521 |
}
|
|
|
14522 |
|
|
|
14523 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14524 |
public boolean isSet(_Fields field) {
|
|
|
14525 |
if (field == null) {
|
|
|
14526 |
throw new IllegalArgumentException();
|
|
|
14527 |
}
|
|
|
14528 |
|
|
|
14529 |
switch (field) {
|
|
|
14530 |
case SUCCESS:
|
|
|
14531 |
return isSetSuccess();
|
|
|
14532 |
}
|
|
|
14533 |
throw new IllegalStateException();
|
|
|
14534 |
}
|
|
|
14535 |
|
|
|
14536 |
@Override
|
|
|
14537 |
public boolean equals(Object that) {
|
|
|
14538 |
if (that == null)
|
|
|
14539 |
return false;
|
|
|
14540 |
if (that instanceof getInventoryScansForItem_result)
|
|
|
14541 |
return this.equals((getInventoryScansForItem_result)that);
|
|
|
14542 |
return false;
|
|
|
14543 |
}
|
|
|
14544 |
|
|
|
14545 |
public boolean equals(getInventoryScansForItem_result that) {
|
|
|
14546 |
if (that == null)
|
|
|
14547 |
return false;
|
|
|
14548 |
|
|
|
14549 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
14550 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
14551 |
if (this_present_success || that_present_success) {
|
|
|
14552 |
if (!(this_present_success && that_present_success))
|
|
|
14553 |
return false;
|
|
|
14554 |
if (!this.success.equals(that.success))
|
|
|
14555 |
return false;
|
|
|
14556 |
}
|
|
|
14557 |
|
|
|
14558 |
return true;
|
|
|
14559 |
}
|
|
|
14560 |
|
|
|
14561 |
@Override
|
|
|
14562 |
public int hashCode() {
|
|
|
14563 |
return 0;
|
|
|
14564 |
}
|
|
|
14565 |
|
|
|
14566 |
public int compareTo(getInventoryScansForItem_result other) {
|
|
|
14567 |
if (!getClass().equals(other.getClass())) {
|
|
|
14568 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14569 |
}
|
|
|
14570 |
|
|
|
14571 |
int lastComparison = 0;
|
|
|
14572 |
getInventoryScansForItem_result typedOther = (getInventoryScansForItem_result)other;
|
|
|
14573 |
|
|
|
14574 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
14575 |
if (lastComparison != 0) {
|
|
|
14576 |
return lastComparison;
|
|
|
14577 |
}
|
|
|
14578 |
if (isSetSuccess()) {
|
|
|
14579 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
14580 |
if (lastComparison != 0) {
|
|
|
14581 |
return lastComparison;
|
|
|
14582 |
}
|
|
|
14583 |
}
|
|
|
14584 |
return 0;
|
|
|
14585 |
}
|
|
|
14586 |
|
|
|
14587 |
public _Fields fieldForId(int fieldId) {
|
|
|
14588 |
return _Fields.findByThriftId(fieldId);
|
|
|
14589 |
}
|
|
|
14590 |
|
|
|
14591 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14592 |
org.apache.thrift.protocol.TField field;
|
|
|
14593 |
iprot.readStructBegin();
|
|
|
14594 |
while (true)
|
|
|
14595 |
{
|
|
|
14596 |
field = iprot.readFieldBegin();
|
|
|
14597 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
14598 |
break;
|
|
|
14599 |
}
|
|
|
14600 |
switch (field.id) {
|
|
|
14601 |
case 0: // SUCCESS
|
|
|
14602 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
14603 |
{
|
| 7210 |
amar.kumar |
14604 |
org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
|
|
|
14605 |
this.success = new ArrayList<Scan>(_list28.size);
|
|
|
14606 |
for (int _i29 = 0; _i29 < _list28.size; ++_i29)
|
| 6322 |
amar.kumar |
14607 |
{
|
| 7210 |
amar.kumar |
14608 |
Scan _elem30; // required
|
|
|
14609 |
_elem30 = new Scan();
|
|
|
14610 |
_elem30.read(iprot);
|
|
|
14611 |
this.success.add(_elem30);
|
| 6322 |
amar.kumar |
14612 |
}
|
|
|
14613 |
iprot.readListEnd();
|
|
|
14614 |
}
|
|
|
14615 |
} else {
|
|
|
14616 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14617 |
}
|
|
|
14618 |
break;
|
|
|
14619 |
default:
|
|
|
14620 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14621 |
}
|
|
|
14622 |
iprot.readFieldEnd();
|
|
|
14623 |
}
|
|
|
14624 |
iprot.readStructEnd();
|
|
|
14625 |
validate();
|
|
|
14626 |
}
|
|
|
14627 |
|
|
|
14628 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
14629 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
14630 |
|
|
|
14631 |
if (this.isSetSuccess()) {
|
|
|
14632 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
14633 |
{
|
|
|
14634 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 7210 |
amar.kumar |
14635 |
for (Scan _iter31 : this.success)
|
| 6322 |
amar.kumar |
14636 |
{
|
| 7210 |
amar.kumar |
14637 |
_iter31.write(oprot);
|
| 6322 |
amar.kumar |
14638 |
}
|
|
|
14639 |
oprot.writeListEnd();
|
|
|
14640 |
}
|
|
|
14641 |
oprot.writeFieldEnd();
|
|
|
14642 |
}
|
|
|
14643 |
oprot.writeFieldStop();
|
|
|
14644 |
oprot.writeStructEnd();
|
|
|
14645 |
}
|
|
|
14646 |
|
|
|
14647 |
@Override
|
|
|
14648 |
public String toString() {
|
|
|
14649 |
StringBuilder sb = new StringBuilder("getInventoryScansForItem_result(");
|
|
|
14650 |
boolean first = true;
|
|
|
14651 |
|
|
|
14652 |
sb.append("success:");
|
|
|
14653 |
if (this.success == null) {
|
|
|
14654 |
sb.append("null");
|
|
|
14655 |
} else {
|
|
|
14656 |
sb.append(this.success);
|
|
|
14657 |
}
|
|
|
14658 |
first = false;
|
|
|
14659 |
sb.append(")");
|
|
|
14660 |
return sb.toString();
|
|
|
14661 |
}
|
|
|
14662 |
|
|
|
14663 |
public void validate() throws org.apache.thrift.TException {
|
|
|
14664 |
// check for required fields
|
|
|
14665 |
}
|
|
|
14666 |
|
|
|
14667 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14668 |
try {
|
|
|
14669 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14670 |
} catch (org.apache.thrift.TException te) {
|
|
|
14671 |
throw new java.io.IOException(te);
|
|
|
14672 |
}
|
|
|
14673 |
}
|
|
|
14674 |
|
|
|
14675 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14676 |
try {
|
|
|
14677 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14678 |
} catch (org.apache.thrift.TException te) {
|
|
|
14679 |
throw new java.io.IOException(te);
|
|
|
14680 |
}
|
|
|
14681 |
}
|
|
|
14682 |
|
|
|
14683 |
}
|
|
|
14684 |
|
|
|
14685 |
public static class getScanRecordsForSerialNumber_args implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_args, getScanRecordsForSerialNumber_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
14686 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_args");
|
|
|
14687 |
|
|
|
14688 |
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);
|
|
|
14689 |
|
|
|
14690 |
private long serialNumber; // required
|
|
|
14691 |
|
|
|
14692 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
14693 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
14694 |
SERIAL_NUMBER((short)1, "serialNumber");
|
|
|
14695 |
|
|
|
14696 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
14697 |
|
|
|
14698 |
static {
|
|
|
14699 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
14700 |
byName.put(field.getFieldName(), field);
|
|
|
14701 |
}
|
|
|
14702 |
}
|
|
|
14703 |
|
|
|
14704 |
/**
|
|
|
14705 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
14706 |
*/
|
|
|
14707 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
14708 |
switch(fieldId) {
|
|
|
14709 |
case 1: // SERIAL_NUMBER
|
|
|
14710 |
return SERIAL_NUMBER;
|
|
|
14711 |
default:
|
|
|
14712 |
return null;
|
|
|
14713 |
}
|
|
|
14714 |
}
|
|
|
14715 |
|
|
|
14716 |
/**
|
|
|
14717 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
14718 |
* if it is not found.
|
|
|
14719 |
*/
|
|
|
14720 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
14721 |
_Fields fields = findByThriftId(fieldId);
|
|
|
14722 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
14723 |
return fields;
|
|
|
14724 |
}
|
|
|
14725 |
|
|
|
14726 |
/**
|
|
|
14727 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
14728 |
*/
|
|
|
14729 |
public static _Fields findByName(String name) {
|
|
|
14730 |
return byName.get(name);
|
|
|
14731 |
}
|
|
|
14732 |
|
|
|
14733 |
private final short _thriftId;
|
|
|
14734 |
private final String _fieldName;
|
|
|
14735 |
|
|
|
14736 |
_Fields(short thriftId, String fieldName) {
|
|
|
14737 |
_thriftId = thriftId;
|
|
|
14738 |
_fieldName = fieldName;
|
|
|
14739 |
}
|
|
|
14740 |
|
|
|
14741 |
public short getThriftFieldId() {
|
|
|
14742 |
return _thriftId;
|
|
|
14743 |
}
|
|
|
14744 |
|
|
|
14745 |
public String getFieldName() {
|
|
|
14746 |
return _fieldName;
|
|
|
14747 |
}
|
|
|
14748 |
}
|
|
|
14749 |
|
|
|
14750 |
// isset id assignments
|
|
|
14751 |
private static final int __SERIALNUMBER_ISSET_ID = 0;
|
|
|
14752 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
14753 |
|
|
|
14754 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
14755 |
static {
|
|
|
14756 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
14757 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14758 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
14759 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
14760 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_args.class, metaDataMap);
|
|
|
14761 |
}
|
|
|
14762 |
|
|
|
14763 |
public getScanRecordsForSerialNumber_args() {
|
|
|
14764 |
}
|
|
|
14765 |
|
|
|
14766 |
public getScanRecordsForSerialNumber_args(
|
|
|
14767 |
long serialNumber)
|
|
|
14768 |
{
|
|
|
14769 |
this();
|
|
|
14770 |
this.serialNumber = serialNumber;
|
|
|
14771 |
setSerialNumberIsSet(true);
|
|
|
14772 |
}
|
|
|
14773 |
|
|
|
14774 |
/**
|
|
|
14775 |
* Performs a deep copy on <i>other</i>.
|
|
|
14776 |
*/
|
|
|
14777 |
public getScanRecordsForSerialNumber_args(getScanRecordsForSerialNumber_args other) {
|
|
|
14778 |
__isset_bit_vector.clear();
|
|
|
14779 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
14780 |
this.serialNumber = other.serialNumber;
|
|
|
14781 |
}
|
|
|
14782 |
|
|
|
14783 |
public getScanRecordsForSerialNumber_args deepCopy() {
|
|
|
14784 |
return new getScanRecordsForSerialNumber_args(this);
|
|
|
14785 |
}
|
|
|
14786 |
|
|
|
14787 |
@Override
|
|
|
14788 |
public void clear() {
|
|
|
14789 |
setSerialNumberIsSet(false);
|
|
|
14790 |
this.serialNumber = 0;
|
|
|
14791 |
}
|
|
|
14792 |
|
|
|
14793 |
public long getSerialNumber() {
|
|
|
14794 |
return this.serialNumber;
|
|
|
14795 |
}
|
|
|
14796 |
|
|
|
14797 |
public void setSerialNumber(long serialNumber) {
|
|
|
14798 |
this.serialNumber = serialNumber;
|
|
|
14799 |
setSerialNumberIsSet(true);
|
|
|
14800 |
}
|
|
|
14801 |
|
|
|
14802 |
public void unsetSerialNumber() {
|
|
|
14803 |
__isset_bit_vector.clear(__SERIALNUMBER_ISSET_ID);
|
|
|
14804 |
}
|
|
|
14805 |
|
|
|
14806 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
14807 |
public boolean isSetSerialNumber() {
|
|
|
14808 |
return __isset_bit_vector.get(__SERIALNUMBER_ISSET_ID);
|
|
|
14809 |
}
|
|
|
14810 |
|
|
|
14811 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
14812 |
__isset_bit_vector.set(__SERIALNUMBER_ISSET_ID, value);
|
|
|
14813 |
}
|
|
|
14814 |
|
|
|
14815 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
14816 |
switch (field) {
|
|
|
14817 |
case SERIAL_NUMBER:
|
|
|
14818 |
if (value == null) {
|
|
|
14819 |
unsetSerialNumber();
|
|
|
14820 |
} else {
|
|
|
14821 |
setSerialNumber((Long)value);
|
|
|
14822 |
}
|
|
|
14823 |
break;
|
|
|
14824 |
|
|
|
14825 |
}
|
|
|
14826 |
}
|
|
|
14827 |
|
|
|
14828 |
public Object getFieldValue(_Fields field) {
|
|
|
14829 |
switch (field) {
|
|
|
14830 |
case SERIAL_NUMBER:
|
|
|
14831 |
return Long.valueOf(getSerialNumber());
|
|
|
14832 |
|
|
|
14833 |
}
|
|
|
14834 |
throw new IllegalStateException();
|
|
|
14835 |
}
|
|
|
14836 |
|
|
|
14837 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14838 |
public boolean isSet(_Fields field) {
|
|
|
14839 |
if (field == null) {
|
|
|
14840 |
throw new IllegalArgumentException();
|
|
|
14841 |
}
|
|
|
14842 |
|
|
|
14843 |
switch (field) {
|
|
|
14844 |
case SERIAL_NUMBER:
|
|
|
14845 |
return isSetSerialNumber();
|
|
|
14846 |
}
|
|
|
14847 |
throw new IllegalStateException();
|
|
|
14848 |
}
|
|
|
14849 |
|
|
|
14850 |
@Override
|
|
|
14851 |
public boolean equals(Object that) {
|
|
|
14852 |
if (that == null)
|
|
|
14853 |
return false;
|
|
|
14854 |
if (that instanceof getScanRecordsForSerialNumber_args)
|
|
|
14855 |
return this.equals((getScanRecordsForSerialNumber_args)that);
|
|
|
14856 |
return false;
|
|
|
14857 |
}
|
|
|
14858 |
|
|
|
14859 |
public boolean equals(getScanRecordsForSerialNumber_args that) {
|
|
|
14860 |
if (that == null)
|
|
|
14861 |
return false;
|
|
|
14862 |
|
|
|
14863 |
boolean this_present_serialNumber = true;
|
|
|
14864 |
boolean that_present_serialNumber = true;
|
|
|
14865 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
14866 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
|
|
14867 |
return false;
|
|
|
14868 |
if (this.serialNumber != that.serialNumber)
|
|
|
14869 |
return false;
|
|
|
14870 |
}
|
|
|
14871 |
|
|
|
14872 |
return true;
|
|
|
14873 |
}
|
|
|
14874 |
|
|
|
14875 |
@Override
|
|
|
14876 |
public int hashCode() {
|
|
|
14877 |
return 0;
|
|
|
14878 |
}
|
|
|
14879 |
|
|
|
14880 |
public int compareTo(getScanRecordsForSerialNumber_args other) {
|
|
|
14881 |
if (!getClass().equals(other.getClass())) {
|
|
|
14882 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14883 |
}
|
|
|
14884 |
|
|
|
14885 |
int lastComparison = 0;
|
|
|
14886 |
getScanRecordsForSerialNumber_args typedOther = (getScanRecordsForSerialNumber_args)other;
|
|
|
14887 |
|
|
|
14888 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
|
|
14889 |
if (lastComparison != 0) {
|
|
|
14890 |
return lastComparison;
|
|
|
14891 |
}
|
|
|
14892 |
if (isSetSerialNumber()) {
|
|
|
14893 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
|
|
14894 |
if (lastComparison != 0) {
|
|
|
14895 |
return lastComparison;
|
|
|
14896 |
}
|
|
|
14897 |
}
|
|
|
14898 |
return 0;
|
|
|
14899 |
}
|
|
|
14900 |
|
|
|
14901 |
public _Fields fieldForId(int fieldId) {
|
|
|
14902 |
return _Fields.findByThriftId(fieldId);
|
|
|
14903 |
}
|
|
|
14904 |
|
|
|
14905 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14906 |
org.apache.thrift.protocol.TField field;
|
|
|
14907 |
iprot.readStructBegin();
|
|
|
14908 |
while (true)
|
|
|
14909 |
{
|
|
|
14910 |
field = iprot.readFieldBegin();
|
|
|
14911 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
14912 |
break;
|
|
|
14913 |
}
|
|
|
14914 |
switch (field.id) {
|
|
|
14915 |
case 1: // SERIAL_NUMBER
|
|
|
14916 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
14917 |
this.serialNumber = iprot.readI64();
|
|
|
14918 |
setSerialNumberIsSet(true);
|
|
|
14919 |
} else {
|
|
|
14920 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14921 |
}
|
|
|
14922 |
break;
|
|
|
14923 |
default:
|
|
|
14924 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14925 |
}
|
|
|
14926 |
iprot.readFieldEnd();
|
|
|
14927 |
}
|
|
|
14928 |
iprot.readStructEnd();
|
|
|
14929 |
validate();
|
|
|
14930 |
}
|
|
|
14931 |
|
|
|
14932 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
14933 |
validate();
|
|
|
14934 |
|
|
|
14935 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
14936 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
14937 |
oprot.writeI64(this.serialNumber);
|
|
|
14938 |
oprot.writeFieldEnd();
|
|
|
14939 |
oprot.writeFieldStop();
|
|
|
14940 |
oprot.writeStructEnd();
|
|
|
14941 |
}
|
|
|
14942 |
|
|
|
14943 |
@Override
|
|
|
14944 |
public String toString() {
|
|
|
14945 |
StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_args(");
|
|
|
14946 |
boolean first = true;
|
|
|
14947 |
|
|
|
14948 |
sb.append("serialNumber:");
|
|
|
14949 |
sb.append(this.serialNumber);
|
|
|
14950 |
first = false;
|
|
|
14951 |
sb.append(")");
|
|
|
14952 |
return sb.toString();
|
|
|
14953 |
}
|
|
|
14954 |
|
|
|
14955 |
public void validate() throws org.apache.thrift.TException {
|
|
|
14956 |
// check for required fields
|
|
|
14957 |
}
|
|
|
14958 |
|
|
|
14959 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14960 |
try {
|
|
|
14961 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14962 |
} catch (org.apache.thrift.TException te) {
|
|
|
14963 |
throw new java.io.IOException(te);
|
|
|
14964 |
}
|
|
|
14965 |
}
|
|
|
14966 |
|
|
|
14967 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14968 |
try {
|
|
|
14969 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
14970 |
__isset_bit_vector = new BitSet(1);
|
|
|
14971 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14972 |
} catch (org.apache.thrift.TException te) {
|
|
|
14973 |
throw new java.io.IOException(te);
|
|
|
14974 |
}
|
|
|
14975 |
}
|
|
|
14976 |
|
|
|
14977 |
}
|
|
|
14978 |
|
|
|
14979 |
public static class getScanRecordsForSerialNumber_result implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_result, getScanRecordsForSerialNumber_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
14980 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_result");
|
|
|
14981 |
|
|
|
14982 |
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);
|
|
|
14983 |
|
|
|
14984 |
private List<Scan> success; // required
|
|
|
14985 |
|
|
|
14986 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
14987 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
14988 |
SUCCESS((short)0, "success");
|
|
|
14989 |
|
|
|
14990 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
14991 |
|
|
|
14992 |
static {
|
|
|
14993 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
14994 |
byName.put(field.getFieldName(), field);
|
|
|
14995 |
}
|
|
|
14996 |
}
|
|
|
14997 |
|
|
|
14998 |
/**
|
|
|
14999 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
15000 |
*/
|
|
|
15001 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
15002 |
switch(fieldId) {
|
|
|
15003 |
case 0: // SUCCESS
|
|
|
15004 |
return SUCCESS;
|
|
|
15005 |
default:
|
|
|
15006 |
return null;
|
|
|
15007 |
}
|
|
|
15008 |
}
|
|
|
15009 |
|
|
|
15010 |
/**
|
|
|
15011 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
15012 |
* if it is not found.
|
|
|
15013 |
*/
|
|
|
15014 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
15015 |
_Fields fields = findByThriftId(fieldId);
|
|
|
15016 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
15017 |
return fields;
|
|
|
15018 |
}
|
|
|
15019 |
|
|
|
15020 |
/**
|
|
|
15021 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
15022 |
*/
|
|
|
15023 |
public static _Fields findByName(String name) {
|
|
|
15024 |
return byName.get(name);
|
|
|
15025 |
}
|
|
|
15026 |
|
|
|
15027 |
private final short _thriftId;
|
|
|
15028 |
private final String _fieldName;
|
|
|
15029 |
|
|
|
15030 |
_Fields(short thriftId, String fieldName) {
|
|
|
15031 |
_thriftId = thriftId;
|
|
|
15032 |
_fieldName = fieldName;
|
|
|
15033 |
}
|
|
|
15034 |
|
|
|
15035 |
public short getThriftFieldId() {
|
|
|
15036 |
return _thriftId;
|
|
|
15037 |
}
|
|
|
15038 |
|
|
|
15039 |
public String getFieldName() {
|
|
|
15040 |
return _fieldName;
|
|
|
15041 |
}
|
|
|
15042 |
}
|
|
|
15043 |
|
|
|
15044 |
// isset id assignments
|
|
|
15045 |
|
|
|
15046 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
15047 |
static {
|
|
|
15048 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
15049 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15050 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
15051 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
|
|
|
15052 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
15053 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_result.class, metaDataMap);
|
|
|
15054 |
}
|
|
|
15055 |
|
|
|
15056 |
public getScanRecordsForSerialNumber_result() {
|
|
|
15057 |
}
|
|
|
15058 |
|
|
|
15059 |
public getScanRecordsForSerialNumber_result(
|
|
|
15060 |
List<Scan> success)
|
|
|
15061 |
{
|
|
|
15062 |
this();
|
|
|
15063 |
this.success = success;
|
|
|
15064 |
}
|
|
|
15065 |
|
|
|
15066 |
/**
|
|
|
15067 |
* Performs a deep copy on <i>other</i>.
|
|
|
15068 |
*/
|
|
|
15069 |
public getScanRecordsForSerialNumber_result(getScanRecordsForSerialNumber_result other) {
|
|
|
15070 |
if (other.isSetSuccess()) {
|
|
|
15071 |
List<Scan> __this__success = new ArrayList<Scan>();
|
|
|
15072 |
for (Scan other_element : other.success) {
|
|
|
15073 |
__this__success.add(new Scan(other_element));
|
|
|
15074 |
}
|
|
|
15075 |
this.success = __this__success;
|
|
|
15076 |
}
|
|
|
15077 |
}
|
|
|
15078 |
|
|
|
15079 |
public getScanRecordsForSerialNumber_result deepCopy() {
|
|
|
15080 |
return new getScanRecordsForSerialNumber_result(this);
|
|
|
15081 |
}
|
|
|
15082 |
|
|
|
15083 |
@Override
|
|
|
15084 |
public void clear() {
|
|
|
15085 |
this.success = null;
|
|
|
15086 |
}
|
|
|
15087 |
|
|
|
15088 |
public int getSuccessSize() {
|
|
|
15089 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
15090 |
}
|
|
|
15091 |
|
|
|
15092 |
public java.util.Iterator<Scan> getSuccessIterator() {
|
|
|
15093 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
15094 |
}
|
|
|
15095 |
|
|
|
15096 |
public void addToSuccess(Scan elem) {
|
|
|
15097 |
if (this.success == null) {
|
|
|
15098 |
this.success = new ArrayList<Scan>();
|
|
|
15099 |
}
|
|
|
15100 |
this.success.add(elem);
|
|
|
15101 |
}
|
|
|
15102 |
|
|
|
15103 |
public List<Scan> getSuccess() {
|
|
|
15104 |
return this.success;
|
|
|
15105 |
}
|
|
|
15106 |
|
|
|
15107 |
public void setSuccess(List<Scan> success) {
|
|
|
15108 |
this.success = success;
|
|
|
15109 |
}
|
|
|
15110 |
|
|
|
15111 |
public void unsetSuccess() {
|
|
|
15112 |
this.success = null;
|
|
|
15113 |
}
|
|
|
15114 |
|
|
|
15115 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
15116 |
public boolean isSetSuccess() {
|
|
|
15117 |
return this.success != null;
|
|
|
15118 |
}
|
|
|
15119 |
|
|
|
15120 |
public void setSuccessIsSet(boolean value) {
|
|
|
15121 |
if (!value) {
|
|
|
15122 |
this.success = null;
|
|
|
15123 |
}
|
|
|
15124 |
}
|
|
|
15125 |
|
|
|
15126 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15127 |
switch (field) {
|
|
|
15128 |
case SUCCESS:
|
|
|
15129 |
if (value == null) {
|
|
|
15130 |
unsetSuccess();
|
|
|
15131 |
} else {
|
|
|
15132 |
setSuccess((List<Scan>)value);
|
|
|
15133 |
}
|
|
|
15134 |
break;
|
|
|
15135 |
|
|
|
15136 |
}
|
|
|
15137 |
}
|
|
|
15138 |
|
|
|
15139 |
public Object getFieldValue(_Fields field) {
|
|
|
15140 |
switch (field) {
|
|
|
15141 |
case SUCCESS:
|
|
|
15142 |
return getSuccess();
|
|
|
15143 |
|
|
|
15144 |
}
|
|
|
15145 |
throw new IllegalStateException();
|
|
|
15146 |
}
|
|
|
15147 |
|
|
|
15148 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15149 |
public boolean isSet(_Fields field) {
|
|
|
15150 |
if (field == null) {
|
|
|
15151 |
throw new IllegalArgumentException();
|
|
|
15152 |
}
|
|
|
15153 |
|
|
|
15154 |
switch (field) {
|
|
|
15155 |
case SUCCESS:
|
|
|
15156 |
return isSetSuccess();
|
|
|
15157 |
}
|
|
|
15158 |
throw new IllegalStateException();
|
|
|
15159 |
}
|
|
|
15160 |
|
|
|
15161 |
@Override
|
|
|
15162 |
public boolean equals(Object that) {
|
|
|
15163 |
if (that == null)
|
|
|
15164 |
return false;
|
|
|
15165 |
if (that instanceof getScanRecordsForSerialNumber_result)
|
|
|
15166 |
return this.equals((getScanRecordsForSerialNumber_result)that);
|
|
|
15167 |
return false;
|
|
|
15168 |
}
|
|
|
15169 |
|
|
|
15170 |
public boolean equals(getScanRecordsForSerialNumber_result that) {
|
|
|
15171 |
if (that == null)
|
|
|
15172 |
return false;
|
|
|
15173 |
|
|
|
15174 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
15175 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
15176 |
if (this_present_success || that_present_success) {
|
|
|
15177 |
if (!(this_present_success && that_present_success))
|
|
|
15178 |
return false;
|
|
|
15179 |
if (!this.success.equals(that.success))
|
|
|
15180 |
return false;
|
|
|
15181 |
}
|
|
|
15182 |
|
|
|
15183 |
return true;
|
|
|
15184 |
}
|
|
|
15185 |
|
|
|
15186 |
@Override
|
|
|
15187 |
public int hashCode() {
|
|
|
15188 |
return 0;
|
|
|
15189 |
}
|
|
|
15190 |
|
|
|
15191 |
public int compareTo(getScanRecordsForSerialNumber_result other) {
|
|
|
15192 |
if (!getClass().equals(other.getClass())) {
|
|
|
15193 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
15194 |
}
|
|
|
15195 |
|
|
|
15196 |
int lastComparison = 0;
|
|
|
15197 |
getScanRecordsForSerialNumber_result typedOther = (getScanRecordsForSerialNumber_result)other;
|
|
|
15198 |
|
|
|
15199 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
15200 |
if (lastComparison != 0) {
|
|
|
15201 |
return lastComparison;
|
|
|
15202 |
}
|
|
|
15203 |
if (isSetSuccess()) {
|
|
|
15204 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
15205 |
if (lastComparison != 0) {
|
|
|
15206 |
return lastComparison;
|
|
|
15207 |
}
|
|
|
15208 |
}
|
|
|
15209 |
return 0;
|
|
|
15210 |
}
|
|
|
15211 |
|
|
|
15212 |
public _Fields fieldForId(int fieldId) {
|
|
|
15213 |
return _Fields.findByThriftId(fieldId);
|
|
|
15214 |
}
|
|
|
15215 |
|
|
|
15216 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
15217 |
org.apache.thrift.protocol.TField field;
|
|
|
15218 |
iprot.readStructBegin();
|
|
|
15219 |
while (true)
|
|
|
15220 |
{
|
|
|
15221 |
field = iprot.readFieldBegin();
|
|
|
15222 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
15223 |
break;
|
|
|
15224 |
}
|
|
|
15225 |
switch (field.id) {
|
|
|
15226 |
case 0: // SUCCESS
|
|
|
15227 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
15228 |
{
|
| 7210 |
amar.kumar |
15229 |
org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
|
|
|
15230 |
this.success = new ArrayList<Scan>(_list32.size);
|
|
|
15231 |
for (int _i33 = 0; _i33 < _list32.size; ++_i33)
|
| 6322 |
amar.kumar |
15232 |
{
|
| 7210 |
amar.kumar |
15233 |
Scan _elem34; // required
|
|
|
15234 |
_elem34 = new Scan();
|
|
|
15235 |
_elem34.read(iprot);
|
|
|
15236 |
this.success.add(_elem34);
|
| 6322 |
amar.kumar |
15237 |
}
|
|
|
15238 |
iprot.readListEnd();
|
|
|
15239 |
}
|
|
|
15240 |
} else {
|
|
|
15241 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15242 |
}
|
|
|
15243 |
break;
|
|
|
15244 |
default:
|
|
|
15245 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15246 |
}
|
|
|
15247 |
iprot.readFieldEnd();
|
|
|
15248 |
}
|
|
|
15249 |
iprot.readStructEnd();
|
|
|
15250 |
validate();
|
|
|
15251 |
}
|
|
|
15252 |
|
|
|
15253 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
15254 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
15255 |
|
|
|
15256 |
if (this.isSetSuccess()) {
|
|
|
15257 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
15258 |
{
|
|
|
15259 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 7210 |
amar.kumar |
15260 |
for (Scan _iter35 : this.success)
|
| 6322 |
amar.kumar |
15261 |
{
|
| 7210 |
amar.kumar |
15262 |
_iter35.write(oprot);
|
| 6322 |
amar.kumar |
15263 |
}
|
|
|
15264 |
oprot.writeListEnd();
|
|
|
15265 |
}
|
|
|
15266 |
oprot.writeFieldEnd();
|
|
|
15267 |
}
|
|
|
15268 |
oprot.writeFieldStop();
|
|
|
15269 |
oprot.writeStructEnd();
|
|
|
15270 |
}
|
|
|
15271 |
|
|
|
15272 |
@Override
|
|
|
15273 |
public String toString() {
|
|
|
15274 |
StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_result(");
|
|
|
15275 |
boolean first = true;
|
|
|
15276 |
|
|
|
15277 |
sb.append("success:");
|
|
|
15278 |
if (this.success == null) {
|
|
|
15279 |
sb.append("null");
|
|
|
15280 |
} else {
|
|
|
15281 |
sb.append(this.success);
|
|
|
15282 |
}
|
|
|
15283 |
first = false;
|
|
|
15284 |
sb.append(")");
|
|
|
15285 |
return sb.toString();
|
|
|
15286 |
}
|
|
|
15287 |
|
|
|
15288 |
public void validate() throws org.apache.thrift.TException {
|
|
|
15289 |
// check for required fields
|
|
|
15290 |
}
|
|
|
15291 |
|
|
|
15292 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
15293 |
try {
|
|
|
15294 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
15295 |
} catch (org.apache.thrift.TException te) {
|
|
|
15296 |
throw new java.io.IOException(te);
|
|
|
15297 |
}
|
|
|
15298 |
}
|
|
|
15299 |
|
|
|
15300 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
15301 |
try {
|
|
|
15302 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
15303 |
} catch (org.apache.thrift.TException te) {
|
|
|
15304 |
throw new java.io.IOException(te);
|
|
|
15305 |
}
|
|
|
15306 |
}
|
|
|
15307 |
|
|
|
15308 |
}
|
|
|
15309 |
|
| 6467 |
amar.kumar |
15310 |
public static class scanForPurchaseReturn_args implements org.apache.thrift.TBase<scanForPurchaseReturn_args, scanForPurchaseReturn_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
15311 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_args");
|
|
|
15312 |
|
|
|
15313 |
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);
|
|
|
15314 |
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);
|
|
|
15315 |
|
|
|
15316 |
private List<InventoryItem> saleReturnItems; // required
|
|
|
15317 |
private long vendorId; // required
|
|
|
15318 |
|
|
|
15319 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
15320 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
15321 |
SALE_RETURN_ITEMS((short)1, "saleReturnItems"),
|
|
|
15322 |
VENDOR_ID((short)2, "vendorId");
|
|
|
15323 |
|
|
|
15324 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
15325 |
|
|
|
15326 |
static {
|
|
|
15327 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
15328 |
byName.put(field.getFieldName(), field);
|
|
|
15329 |
}
|
|
|
15330 |
}
|
|
|
15331 |
|
|
|
15332 |
/**
|
|
|
15333 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
15334 |
*/
|
|
|
15335 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
15336 |
switch(fieldId) {
|
|
|
15337 |
case 1: // SALE_RETURN_ITEMS
|
|
|
15338 |
return SALE_RETURN_ITEMS;
|
|
|
15339 |
case 2: // VENDOR_ID
|
|
|
15340 |
return VENDOR_ID;
|
|
|
15341 |
default:
|
|
|
15342 |
return null;
|
|
|
15343 |
}
|
|
|
15344 |
}
|
|
|
15345 |
|
|
|
15346 |
/**
|
|
|
15347 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
15348 |
* if it is not found.
|
|
|
15349 |
*/
|
|
|
15350 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
15351 |
_Fields fields = findByThriftId(fieldId);
|
|
|
15352 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
15353 |
return fields;
|
|
|
15354 |
}
|
|
|
15355 |
|
|
|
15356 |
/**
|
|
|
15357 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
15358 |
*/
|
|
|
15359 |
public static _Fields findByName(String name) {
|
|
|
15360 |
return byName.get(name);
|
|
|
15361 |
}
|
|
|
15362 |
|
|
|
15363 |
private final short _thriftId;
|
|
|
15364 |
private final String _fieldName;
|
|
|
15365 |
|
|
|
15366 |
_Fields(short thriftId, String fieldName) {
|
|
|
15367 |
_thriftId = thriftId;
|
|
|
15368 |
_fieldName = fieldName;
|
|
|
15369 |
}
|
|
|
15370 |
|
|
|
15371 |
public short getThriftFieldId() {
|
|
|
15372 |
return _thriftId;
|
|
|
15373 |
}
|
|
|
15374 |
|
|
|
15375 |
public String getFieldName() {
|
|
|
15376 |
return _fieldName;
|
|
|
15377 |
}
|
|
|
15378 |
}
|
|
|
15379 |
|
|
|
15380 |
// isset id assignments
|
|
|
15381 |
private static final int __VENDORID_ISSET_ID = 0;
|
|
|
15382 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
15383 |
|
|
|
15384 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
15385 |
static {
|
|
|
15386 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
15387 |
tmpMap.put(_Fields.SALE_RETURN_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("saleReturnItems", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15388 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
15389 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
|
|
|
15390 |
tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15391 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
15392 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
15393 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_args.class, metaDataMap);
|
|
|
15394 |
}
|
|
|
15395 |
|
|
|
15396 |
public scanForPurchaseReturn_args() {
|
|
|
15397 |
}
|
|
|
15398 |
|
|
|
15399 |
public scanForPurchaseReturn_args(
|
|
|
15400 |
List<InventoryItem> saleReturnItems,
|
|
|
15401 |
long vendorId)
|
|
|
15402 |
{
|
|
|
15403 |
this();
|
|
|
15404 |
this.saleReturnItems = saleReturnItems;
|
|
|
15405 |
this.vendorId = vendorId;
|
|
|
15406 |
setVendorIdIsSet(true);
|
|
|
15407 |
}
|
|
|
15408 |
|
|
|
15409 |
/**
|
|
|
15410 |
* Performs a deep copy on <i>other</i>.
|
|
|
15411 |
*/
|
|
|
15412 |
public scanForPurchaseReturn_args(scanForPurchaseReturn_args other) {
|
|
|
15413 |
__isset_bit_vector.clear();
|
|
|
15414 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
15415 |
if (other.isSetSaleReturnItems()) {
|
|
|
15416 |
List<InventoryItem> __this__saleReturnItems = new ArrayList<InventoryItem>();
|
|
|
15417 |
for (InventoryItem other_element : other.saleReturnItems) {
|
|
|
15418 |
__this__saleReturnItems.add(new InventoryItem(other_element));
|
|
|
15419 |
}
|
|
|
15420 |
this.saleReturnItems = __this__saleReturnItems;
|
|
|
15421 |
}
|
|
|
15422 |
this.vendorId = other.vendorId;
|
|
|
15423 |
}
|
|
|
15424 |
|
|
|
15425 |
public scanForPurchaseReturn_args deepCopy() {
|
|
|
15426 |
return new scanForPurchaseReturn_args(this);
|
|
|
15427 |
}
|
|
|
15428 |
|
|
|
15429 |
@Override
|
|
|
15430 |
public void clear() {
|
|
|
15431 |
this.saleReturnItems = null;
|
|
|
15432 |
setVendorIdIsSet(false);
|
|
|
15433 |
this.vendorId = 0;
|
|
|
15434 |
}
|
|
|
15435 |
|
|
|
15436 |
public int getSaleReturnItemsSize() {
|
|
|
15437 |
return (this.saleReturnItems == null) ? 0 : this.saleReturnItems.size();
|
|
|
15438 |
}
|
|
|
15439 |
|
|
|
15440 |
public java.util.Iterator<InventoryItem> getSaleReturnItemsIterator() {
|
|
|
15441 |
return (this.saleReturnItems == null) ? null : this.saleReturnItems.iterator();
|
|
|
15442 |
}
|
|
|
15443 |
|
|
|
15444 |
public void addToSaleReturnItems(InventoryItem elem) {
|
|
|
15445 |
if (this.saleReturnItems == null) {
|
|
|
15446 |
this.saleReturnItems = new ArrayList<InventoryItem>();
|
|
|
15447 |
}
|
|
|
15448 |
this.saleReturnItems.add(elem);
|
|
|
15449 |
}
|
|
|
15450 |
|
|
|
15451 |
public List<InventoryItem> getSaleReturnItems() {
|
|
|
15452 |
return this.saleReturnItems;
|
|
|
15453 |
}
|
|
|
15454 |
|
|
|
15455 |
public void setSaleReturnItems(List<InventoryItem> saleReturnItems) {
|
|
|
15456 |
this.saleReturnItems = saleReturnItems;
|
|
|
15457 |
}
|
|
|
15458 |
|
|
|
15459 |
public void unsetSaleReturnItems() {
|
|
|
15460 |
this.saleReturnItems = null;
|
|
|
15461 |
}
|
|
|
15462 |
|
|
|
15463 |
/** Returns true if field saleReturnItems is set (has been assigned a value) and false otherwise */
|
|
|
15464 |
public boolean isSetSaleReturnItems() {
|
|
|
15465 |
return this.saleReturnItems != null;
|
|
|
15466 |
}
|
|
|
15467 |
|
|
|
15468 |
public void setSaleReturnItemsIsSet(boolean value) {
|
|
|
15469 |
if (!value) {
|
|
|
15470 |
this.saleReturnItems = null;
|
|
|
15471 |
}
|
|
|
15472 |
}
|
|
|
15473 |
|
|
|
15474 |
public long getVendorId() {
|
|
|
15475 |
return this.vendorId;
|
|
|
15476 |
}
|
|
|
15477 |
|
|
|
15478 |
public void setVendorId(long vendorId) {
|
|
|
15479 |
this.vendorId = vendorId;
|
|
|
15480 |
setVendorIdIsSet(true);
|
|
|
15481 |
}
|
|
|
15482 |
|
|
|
15483 |
public void unsetVendorId() {
|
|
|
15484 |
__isset_bit_vector.clear(__VENDORID_ISSET_ID);
|
|
|
15485 |
}
|
|
|
15486 |
|
|
|
15487 |
/** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
|
|
|
15488 |
public boolean isSetVendorId() {
|
|
|
15489 |
return __isset_bit_vector.get(__VENDORID_ISSET_ID);
|
|
|
15490 |
}
|
|
|
15491 |
|
|
|
15492 |
public void setVendorIdIsSet(boolean value) {
|
|
|
15493 |
__isset_bit_vector.set(__VENDORID_ISSET_ID, value);
|
|
|
15494 |
}
|
|
|
15495 |
|
|
|
15496 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15497 |
switch (field) {
|
|
|
15498 |
case SALE_RETURN_ITEMS:
|
|
|
15499 |
if (value == null) {
|
|
|
15500 |
unsetSaleReturnItems();
|
|
|
15501 |
} else {
|
|
|
15502 |
setSaleReturnItems((List<InventoryItem>)value);
|
|
|
15503 |
}
|
|
|
15504 |
break;
|
|
|
15505 |
|
|
|
15506 |
case VENDOR_ID:
|
|
|
15507 |
if (value == null) {
|
|
|
15508 |
unsetVendorId();
|
|
|
15509 |
} else {
|
|
|
15510 |
setVendorId((Long)value);
|
|
|
15511 |
}
|
|
|
15512 |
break;
|
|
|
15513 |
|
|
|
15514 |
}
|
|
|
15515 |
}
|
|
|
15516 |
|
|
|
15517 |
public Object getFieldValue(_Fields field) {
|
|
|
15518 |
switch (field) {
|
|
|
15519 |
case SALE_RETURN_ITEMS:
|
|
|
15520 |
return getSaleReturnItems();
|
|
|
15521 |
|
|
|
15522 |
case VENDOR_ID:
|
|
|
15523 |
return Long.valueOf(getVendorId());
|
|
|
15524 |
|
|
|
15525 |
}
|
|
|
15526 |
throw new IllegalStateException();
|
|
|
15527 |
}
|
|
|
15528 |
|
|
|
15529 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15530 |
public boolean isSet(_Fields field) {
|
|
|
15531 |
if (field == null) {
|
|
|
15532 |
throw new IllegalArgumentException();
|
|
|
15533 |
}
|
|
|
15534 |
|
|
|
15535 |
switch (field) {
|
|
|
15536 |
case SALE_RETURN_ITEMS:
|
|
|
15537 |
return isSetSaleReturnItems();
|
|
|
15538 |
case VENDOR_ID:
|
|
|
15539 |
return isSetVendorId();
|
|
|
15540 |
}
|
|
|
15541 |
throw new IllegalStateException();
|
|
|
15542 |
}
|
|
|
15543 |
|
|
|
15544 |
@Override
|
|
|
15545 |
public boolean equals(Object that) {
|
|
|
15546 |
if (that == null)
|
|
|
15547 |
return false;
|
|
|
15548 |
if (that instanceof scanForPurchaseReturn_args)
|
|
|
15549 |
return this.equals((scanForPurchaseReturn_args)that);
|
|
|
15550 |
return false;
|
|
|
15551 |
}
|
|
|
15552 |
|
|
|
15553 |
public boolean equals(scanForPurchaseReturn_args that) {
|
|
|
15554 |
if (that == null)
|
|
|
15555 |
return false;
|
|
|
15556 |
|
|
|
15557 |
boolean this_present_saleReturnItems = true && this.isSetSaleReturnItems();
|
|
|
15558 |
boolean that_present_saleReturnItems = true && that.isSetSaleReturnItems();
|
|
|
15559 |
if (this_present_saleReturnItems || that_present_saleReturnItems) {
|
|
|
15560 |
if (!(this_present_saleReturnItems && that_present_saleReturnItems))
|
|
|
15561 |
return false;
|
|
|
15562 |
if (!this.saleReturnItems.equals(that.saleReturnItems))
|
|
|
15563 |
return false;
|
|
|
15564 |
}
|
|
|
15565 |
|
|
|
15566 |
boolean this_present_vendorId = true;
|
|
|
15567 |
boolean that_present_vendorId = true;
|
|
|
15568 |
if (this_present_vendorId || that_present_vendorId) {
|
|
|
15569 |
if (!(this_present_vendorId && that_present_vendorId))
|
|
|
15570 |
return false;
|
|
|
15571 |
if (this.vendorId != that.vendorId)
|
|
|
15572 |
return false;
|
|
|
15573 |
}
|
|
|
15574 |
|
|
|
15575 |
return true;
|
|
|
15576 |
}
|
|
|
15577 |
|
|
|
15578 |
@Override
|
|
|
15579 |
public int hashCode() {
|
|
|
15580 |
return 0;
|
|
|
15581 |
}
|
|
|
15582 |
|
|
|
15583 |
public int compareTo(scanForPurchaseReturn_args other) {
|
|
|
15584 |
if (!getClass().equals(other.getClass())) {
|
|
|
15585 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
15586 |
}
|
|
|
15587 |
|
|
|
15588 |
int lastComparison = 0;
|
|
|
15589 |
scanForPurchaseReturn_args typedOther = (scanForPurchaseReturn_args)other;
|
|
|
15590 |
|
|
|
15591 |
lastComparison = Boolean.valueOf(isSetSaleReturnItems()).compareTo(typedOther.isSetSaleReturnItems());
|
|
|
15592 |
if (lastComparison != 0) {
|
|
|
15593 |
return lastComparison;
|
|
|
15594 |
}
|
|
|
15595 |
if (isSetSaleReturnItems()) {
|
|
|
15596 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.saleReturnItems, typedOther.saleReturnItems);
|
|
|
15597 |
if (lastComparison != 0) {
|
|
|
15598 |
return lastComparison;
|
|
|
15599 |
}
|
|
|
15600 |
}
|
|
|
15601 |
lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
|
|
|
15602 |
if (lastComparison != 0) {
|
|
|
15603 |
return lastComparison;
|
|
|
15604 |
}
|
|
|
15605 |
if (isSetVendorId()) {
|
|
|
15606 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
|
|
|
15607 |
if (lastComparison != 0) {
|
|
|
15608 |
return lastComparison;
|
|
|
15609 |
}
|
|
|
15610 |
}
|
|
|
15611 |
return 0;
|
|
|
15612 |
}
|
|
|
15613 |
|
|
|
15614 |
public _Fields fieldForId(int fieldId) {
|
|
|
15615 |
return _Fields.findByThriftId(fieldId);
|
|
|
15616 |
}
|
|
|
15617 |
|
|
|
15618 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
15619 |
org.apache.thrift.protocol.TField field;
|
|
|
15620 |
iprot.readStructBegin();
|
|
|
15621 |
while (true)
|
|
|
15622 |
{
|
|
|
15623 |
field = iprot.readFieldBegin();
|
|
|
15624 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
15625 |
break;
|
|
|
15626 |
}
|
|
|
15627 |
switch (field.id) {
|
|
|
15628 |
case 1: // SALE_RETURN_ITEMS
|
|
|
15629 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
15630 |
{
|
| 7210 |
amar.kumar |
15631 |
org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
|
|
|
15632 |
this.saleReturnItems = new ArrayList<InventoryItem>(_list36.size);
|
|
|
15633 |
for (int _i37 = 0; _i37 < _list36.size; ++_i37)
|
| 6467 |
amar.kumar |
15634 |
{
|
| 7210 |
amar.kumar |
15635 |
InventoryItem _elem38; // required
|
|
|
15636 |
_elem38 = new InventoryItem();
|
|
|
15637 |
_elem38.read(iprot);
|
|
|
15638 |
this.saleReturnItems.add(_elem38);
|
| 6467 |
amar.kumar |
15639 |
}
|
|
|
15640 |
iprot.readListEnd();
|
|
|
15641 |
}
|
|
|
15642 |
} else {
|
|
|
15643 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15644 |
}
|
|
|
15645 |
break;
|
|
|
15646 |
case 2: // VENDOR_ID
|
|
|
15647 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
15648 |
this.vendorId = iprot.readI64();
|
|
|
15649 |
setVendorIdIsSet(true);
|
|
|
15650 |
} else {
|
|
|
15651 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15652 |
}
|
|
|
15653 |
break;
|
|
|
15654 |
default:
|
|
|
15655 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15656 |
}
|
|
|
15657 |
iprot.readFieldEnd();
|
|
|
15658 |
}
|
|
|
15659 |
iprot.readStructEnd();
|
|
|
15660 |
validate();
|
|
|
15661 |
}
|
|
|
15662 |
|
|
|
15663 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
15664 |
validate();
|
|
|
15665 |
|
|
|
15666 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
15667 |
if (this.saleReturnItems != null) {
|
|
|
15668 |
oprot.writeFieldBegin(SALE_RETURN_ITEMS_FIELD_DESC);
|
|
|
15669 |
{
|
|
|
15670 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.saleReturnItems.size()));
|
| 7210 |
amar.kumar |
15671 |
for (InventoryItem _iter39 : this.saleReturnItems)
|
| 6467 |
amar.kumar |
15672 |
{
|
| 7210 |
amar.kumar |
15673 |
_iter39.write(oprot);
|
| 6467 |
amar.kumar |
15674 |
}
|
|
|
15675 |
oprot.writeListEnd();
|
|
|
15676 |
}
|
|
|
15677 |
oprot.writeFieldEnd();
|
|
|
15678 |
}
|
|
|
15679 |
oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
|
|
|
15680 |
oprot.writeI64(this.vendorId);
|
|
|
15681 |
oprot.writeFieldEnd();
|
|
|
15682 |
oprot.writeFieldStop();
|
|
|
15683 |
oprot.writeStructEnd();
|
|
|
15684 |
}
|
|
|
15685 |
|
|
|
15686 |
@Override
|
|
|
15687 |
public String toString() {
|
|
|
15688 |
StringBuilder sb = new StringBuilder("scanForPurchaseReturn_args(");
|
|
|
15689 |
boolean first = true;
|
|
|
15690 |
|
|
|
15691 |
sb.append("saleReturnItems:");
|
|
|
15692 |
if (this.saleReturnItems == null) {
|
|
|
15693 |
sb.append("null");
|
|
|
15694 |
} else {
|
|
|
15695 |
sb.append(this.saleReturnItems);
|
|
|
15696 |
}
|
|
|
15697 |
first = false;
|
|
|
15698 |
if (!first) sb.append(", ");
|
|
|
15699 |
sb.append("vendorId:");
|
|
|
15700 |
sb.append(this.vendorId);
|
|
|
15701 |
first = false;
|
|
|
15702 |
sb.append(")");
|
|
|
15703 |
return sb.toString();
|
|
|
15704 |
}
|
|
|
15705 |
|
|
|
15706 |
public void validate() throws org.apache.thrift.TException {
|
|
|
15707 |
// check for required fields
|
|
|
15708 |
}
|
|
|
15709 |
|
|
|
15710 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
15711 |
try {
|
|
|
15712 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
15713 |
} catch (org.apache.thrift.TException te) {
|
|
|
15714 |
throw new java.io.IOException(te);
|
|
|
15715 |
}
|
|
|
15716 |
}
|
|
|
15717 |
|
|
|
15718 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
15719 |
try {
|
|
|
15720 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
15721 |
} catch (org.apache.thrift.TException te) {
|
|
|
15722 |
throw new java.io.IOException(te);
|
|
|
15723 |
}
|
|
|
15724 |
}
|
|
|
15725 |
|
|
|
15726 |
}
|
|
|
15727 |
|
|
|
15728 |
public static class scanForPurchaseReturn_result implements org.apache.thrift.TBase<scanForPurchaseReturn_result, scanForPurchaseReturn_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
15729 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_result");
|
|
|
15730 |
|
|
|
15731 |
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);
|
|
|
15732 |
|
|
|
15733 |
private WarehouseServiceException ex; // required
|
|
|
15734 |
|
|
|
15735 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
15736 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
15737 |
EX((short)1, "ex");
|
|
|
15738 |
|
|
|
15739 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
15740 |
|
|
|
15741 |
static {
|
|
|
15742 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
15743 |
byName.put(field.getFieldName(), field);
|
|
|
15744 |
}
|
|
|
15745 |
}
|
|
|
15746 |
|
|
|
15747 |
/**
|
|
|
15748 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
15749 |
*/
|
|
|
15750 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
15751 |
switch(fieldId) {
|
|
|
15752 |
case 1: // EX
|
|
|
15753 |
return EX;
|
|
|
15754 |
default:
|
|
|
15755 |
return null;
|
|
|
15756 |
}
|
|
|
15757 |
}
|
|
|
15758 |
|
|
|
15759 |
/**
|
|
|
15760 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
15761 |
* if it is not found.
|
|
|
15762 |
*/
|
|
|
15763 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
15764 |
_Fields fields = findByThriftId(fieldId);
|
|
|
15765 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
15766 |
return fields;
|
|
|
15767 |
}
|
|
|
15768 |
|
|
|
15769 |
/**
|
|
|
15770 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
15771 |
*/
|
|
|
15772 |
public static _Fields findByName(String name) {
|
|
|
15773 |
return byName.get(name);
|
|
|
15774 |
}
|
|
|
15775 |
|
|
|
15776 |
private final short _thriftId;
|
|
|
15777 |
private final String _fieldName;
|
|
|
15778 |
|
|
|
15779 |
_Fields(short thriftId, String fieldName) {
|
|
|
15780 |
_thriftId = thriftId;
|
|
|
15781 |
_fieldName = fieldName;
|
|
|
15782 |
}
|
|
|
15783 |
|
|
|
15784 |
public short getThriftFieldId() {
|
|
|
15785 |
return _thriftId;
|
|
|
15786 |
}
|
|
|
15787 |
|
|
|
15788 |
public String getFieldName() {
|
|
|
15789 |
return _fieldName;
|
|
|
15790 |
}
|
|
|
15791 |
}
|
|
|
15792 |
|
|
|
15793 |
// isset id assignments
|
|
|
15794 |
|
|
|
15795 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
15796 |
static {
|
|
|
15797 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
15798 |
tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15799 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
15800 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
15801 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_result.class, metaDataMap);
|
|
|
15802 |
}
|
|
|
15803 |
|
|
|
15804 |
public scanForPurchaseReturn_result() {
|
|
|
15805 |
}
|
|
|
15806 |
|
|
|
15807 |
public scanForPurchaseReturn_result(
|
|
|
15808 |
WarehouseServiceException ex)
|
|
|
15809 |
{
|
|
|
15810 |
this();
|
|
|
15811 |
this.ex = ex;
|
|
|
15812 |
}
|
|
|
15813 |
|
|
|
15814 |
/**
|
|
|
15815 |
* Performs a deep copy on <i>other</i>.
|
|
|
15816 |
*/
|
|
|
15817 |
public scanForPurchaseReturn_result(scanForPurchaseReturn_result other) {
|
|
|
15818 |
if (other.isSetEx()) {
|
|
|
15819 |
this.ex = new WarehouseServiceException(other.ex);
|
|
|
15820 |
}
|
|
|
15821 |
}
|
|
|
15822 |
|
|
|
15823 |
public scanForPurchaseReturn_result deepCopy() {
|
|
|
15824 |
return new scanForPurchaseReturn_result(this);
|
|
|
15825 |
}
|
|
|
15826 |
|
|
|
15827 |
@Override
|
|
|
15828 |
public void clear() {
|
|
|
15829 |
this.ex = null;
|
|
|
15830 |
}
|
|
|
15831 |
|
|
|
15832 |
public WarehouseServiceException getEx() {
|
|
|
15833 |
return this.ex;
|
|
|
15834 |
}
|
|
|
15835 |
|
|
|
15836 |
public void setEx(WarehouseServiceException ex) {
|
|
|
15837 |
this.ex = ex;
|
|
|
15838 |
}
|
|
|
15839 |
|
|
|
15840 |
public void unsetEx() {
|
|
|
15841 |
this.ex = null;
|
|
|
15842 |
}
|
|
|
15843 |
|
|
|
15844 |
/** Returns true if field ex is set (has been assigned a value) and false otherwise */
|
|
|
15845 |
public boolean isSetEx() {
|
|
|
15846 |
return this.ex != null;
|
|
|
15847 |
}
|
|
|
15848 |
|
|
|
15849 |
public void setExIsSet(boolean value) {
|
|
|
15850 |
if (!value) {
|
|
|
15851 |
this.ex = null;
|
|
|
15852 |
}
|
|
|
15853 |
}
|
|
|
15854 |
|
|
|
15855 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15856 |
switch (field) {
|
|
|
15857 |
case EX:
|
|
|
15858 |
if (value == null) {
|
|
|
15859 |
unsetEx();
|
|
|
15860 |
} else {
|
|
|
15861 |
setEx((WarehouseServiceException)value);
|
|
|
15862 |
}
|
|
|
15863 |
break;
|
|
|
15864 |
|
|
|
15865 |
}
|
|
|
15866 |
}
|
|
|
15867 |
|
|
|
15868 |
public Object getFieldValue(_Fields field) {
|
|
|
15869 |
switch (field) {
|
|
|
15870 |
case EX:
|
|
|
15871 |
return getEx();
|
|
|
15872 |
|
|
|
15873 |
}
|
|
|
15874 |
throw new IllegalStateException();
|
|
|
15875 |
}
|
|
|
15876 |
|
|
|
15877 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15878 |
public boolean isSet(_Fields field) {
|
|
|
15879 |
if (field == null) {
|
|
|
15880 |
throw new IllegalArgumentException();
|
|
|
15881 |
}
|
|
|
15882 |
|
|
|
15883 |
switch (field) {
|
|
|
15884 |
case EX:
|
|
|
15885 |
return isSetEx();
|
|
|
15886 |
}
|
|
|
15887 |
throw new IllegalStateException();
|
|
|
15888 |
}
|
|
|
15889 |
|
|
|
15890 |
@Override
|
|
|
15891 |
public boolean equals(Object that) {
|
|
|
15892 |
if (that == null)
|
|
|
15893 |
return false;
|
|
|
15894 |
if (that instanceof scanForPurchaseReturn_result)
|
|
|
15895 |
return this.equals((scanForPurchaseReturn_result)that);
|
|
|
15896 |
return false;
|
|
|
15897 |
}
|
|
|
15898 |
|
|
|
15899 |
public boolean equals(scanForPurchaseReturn_result that) {
|
|
|
15900 |
if (that == null)
|
|
|
15901 |
return false;
|
|
|
15902 |
|
|
|
15903 |
boolean this_present_ex = true && this.isSetEx();
|
|
|
15904 |
boolean that_present_ex = true && that.isSetEx();
|
|
|
15905 |
if (this_present_ex || that_present_ex) {
|
|
|
15906 |
if (!(this_present_ex && that_present_ex))
|
|
|
15907 |
return false;
|
|
|
15908 |
if (!this.ex.equals(that.ex))
|
|
|
15909 |
return false;
|
|
|
15910 |
}
|
|
|
15911 |
|
|
|
15912 |
return true;
|
|
|
15913 |
}
|
|
|
15914 |
|
|
|
15915 |
@Override
|
|
|
15916 |
public int hashCode() {
|
|
|
15917 |
return 0;
|
|
|
15918 |
}
|
|
|
15919 |
|
|
|
15920 |
public int compareTo(scanForPurchaseReturn_result other) {
|
|
|
15921 |
if (!getClass().equals(other.getClass())) {
|
|
|
15922 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
15923 |
}
|
|
|
15924 |
|
|
|
15925 |
int lastComparison = 0;
|
|
|
15926 |
scanForPurchaseReturn_result typedOther = (scanForPurchaseReturn_result)other;
|
|
|
15927 |
|
|
|
15928 |
lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
|
|
|
15929 |
if (lastComparison != 0) {
|
|
|
15930 |
return lastComparison;
|
|
|
15931 |
}
|
|
|
15932 |
if (isSetEx()) {
|
|
|
15933 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
|
|
|
15934 |
if (lastComparison != 0) {
|
|
|
15935 |
return lastComparison;
|
|
|
15936 |
}
|
|
|
15937 |
}
|
|
|
15938 |
return 0;
|
|
|
15939 |
}
|
|
|
15940 |
|
|
|
15941 |
public _Fields fieldForId(int fieldId) {
|
|
|
15942 |
return _Fields.findByThriftId(fieldId);
|
|
|
15943 |
}
|
|
|
15944 |
|
|
|
15945 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
15946 |
org.apache.thrift.protocol.TField field;
|
|
|
15947 |
iprot.readStructBegin();
|
|
|
15948 |
while (true)
|
|
|
15949 |
{
|
|
|
15950 |
field = iprot.readFieldBegin();
|
|
|
15951 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
15952 |
break;
|
|
|
15953 |
}
|
|
|
15954 |
switch (field.id) {
|
|
|
15955 |
case 1: // EX
|
|
|
15956 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
15957 |
this.ex = new WarehouseServiceException();
|
|
|
15958 |
this.ex.read(iprot);
|
|
|
15959 |
} else {
|
|
|
15960 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15961 |
}
|
|
|
15962 |
break;
|
|
|
15963 |
default:
|
|
|
15964 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15965 |
}
|
|
|
15966 |
iprot.readFieldEnd();
|
|
|
15967 |
}
|
|
|
15968 |
iprot.readStructEnd();
|
|
|
15969 |
validate();
|
|
|
15970 |
}
|
|
|
15971 |
|
|
|
15972 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
15973 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
15974 |
|
|
|
15975 |
if (this.isSetEx()) {
|
|
|
15976 |
oprot.writeFieldBegin(EX_FIELD_DESC);
|
|
|
15977 |
this.ex.write(oprot);
|
|
|
15978 |
oprot.writeFieldEnd();
|
|
|
15979 |
}
|
|
|
15980 |
oprot.writeFieldStop();
|
|
|
15981 |
oprot.writeStructEnd();
|
|
|
15982 |
}
|
|
|
15983 |
|
|
|
15984 |
@Override
|
|
|
15985 |
public String toString() {
|
|
|
15986 |
StringBuilder sb = new StringBuilder("scanForPurchaseReturn_result(");
|
|
|
15987 |
boolean first = true;
|
|
|
15988 |
|
|
|
15989 |
sb.append("ex:");
|
|
|
15990 |
if (this.ex == null) {
|
|
|
15991 |
sb.append("null");
|
|
|
15992 |
} else {
|
|
|
15993 |
sb.append(this.ex);
|
|
|
15994 |
}
|
|
|
15995 |
first = false;
|
|
|
15996 |
sb.append(")");
|
|
|
15997 |
return sb.toString();
|
|
|
15998 |
}
|
|
|
15999 |
|
|
|
16000 |
public void validate() throws org.apache.thrift.TException {
|
|
|
16001 |
// check for required fields
|
|
|
16002 |
}
|
|
|
16003 |
|
|
|
16004 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
16005 |
try {
|
|
|
16006 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
16007 |
} catch (org.apache.thrift.TException te) {
|
|
|
16008 |
throw new java.io.IOException(te);
|
|
|
16009 |
}
|
|
|
16010 |
}
|
|
|
16011 |
|
|
|
16012 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
16013 |
try {
|
|
|
16014 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
16015 |
} catch (org.apache.thrift.TException te) {
|
|
|
16016 |
throw new java.io.IOException(te);
|
|
|
16017 |
}
|
|
|
16018 |
}
|
|
|
16019 |
|
|
|
16020 |
}
|
|
|
16021 |
|
| 6548 |
amar.kumar |
16022 |
public static class scanForLostItem_args implements org.apache.thrift.TBase<scanForLostItem_args, scanForLostItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
16023 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_args");
|
|
|
16024 |
|
|
|
16025 |
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);
|
|
|
16026 |
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);
|
|
|
16027 |
|
|
|
16028 |
private List<InventoryItem> lostItems; // required
|
|
|
16029 |
private long vendorId; // required
|
|
|
16030 |
|
|
|
16031 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
16032 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
16033 |
LOST_ITEMS((short)1, "lostItems"),
|
|
|
16034 |
VENDOR_ID((short)2, "vendorId");
|
|
|
16035 |
|
|
|
16036 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
16037 |
|
|
|
16038 |
static {
|
|
|
16039 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
16040 |
byName.put(field.getFieldName(), field);
|
|
|
16041 |
}
|
|
|
16042 |
}
|
|
|
16043 |
|
|
|
16044 |
/**
|
|
|
16045 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
16046 |
*/
|
|
|
16047 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
16048 |
switch(fieldId) {
|
|
|
16049 |
case 1: // LOST_ITEMS
|
|
|
16050 |
return LOST_ITEMS;
|
|
|
16051 |
case 2: // VENDOR_ID
|
|
|
16052 |
return VENDOR_ID;
|
|
|
16053 |
default:
|
|
|
16054 |
return null;
|
|
|
16055 |
}
|
|
|
16056 |
}
|
|
|
16057 |
|
|
|
16058 |
/**
|
|
|
16059 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
16060 |
* if it is not found.
|
|
|
16061 |
*/
|
|
|
16062 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
16063 |
_Fields fields = findByThriftId(fieldId);
|
|
|
16064 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
16065 |
return fields;
|
|
|
16066 |
}
|
|
|
16067 |
|
|
|
16068 |
/**
|
|
|
16069 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
16070 |
*/
|
|
|
16071 |
public static _Fields findByName(String name) {
|
|
|
16072 |
return byName.get(name);
|
|
|
16073 |
}
|
|
|
16074 |
|
|
|
16075 |
private final short _thriftId;
|
|
|
16076 |
private final String _fieldName;
|
|
|
16077 |
|
|
|
16078 |
_Fields(short thriftId, String fieldName) {
|
|
|
16079 |
_thriftId = thriftId;
|
|
|
16080 |
_fieldName = fieldName;
|
|
|
16081 |
}
|
|
|
16082 |
|
|
|
16083 |
public short getThriftFieldId() {
|
|
|
16084 |
return _thriftId;
|
|
|
16085 |
}
|
|
|
16086 |
|
|
|
16087 |
public String getFieldName() {
|
|
|
16088 |
return _fieldName;
|
|
|
16089 |
}
|
|
|
16090 |
}
|
|
|
16091 |
|
|
|
16092 |
// isset id assignments
|
|
|
16093 |
private static final int __VENDORID_ISSET_ID = 0;
|
|
|
16094 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
16095 |
|
|
|
16096 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
16097 |
static {
|
|
|
16098 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
16099 |
tmpMap.put(_Fields.LOST_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("lostItems", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
16100 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
16101 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
|
|
|
16102 |
tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
16103 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
16104 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
16105 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_args.class, metaDataMap);
|
|
|
16106 |
}
|
|
|
16107 |
|
|
|
16108 |
public scanForLostItem_args() {
|
|
|
16109 |
}
|
|
|
16110 |
|
|
|
16111 |
public scanForLostItem_args(
|
|
|
16112 |
List<InventoryItem> lostItems,
|
|
|
16113 |
long vendorId)
|
|
|
16114 |
{
|
|
|
16115 |
this();
|
|
|
16116 |
this.lostItems = lostItems;
|
|
|
16117 |
this.vendorId = vendorId;
|
|
|
16118 |
setVendorIdIsSet(true);
|
|
|
16119 |
}
|
|
|
16120 |
|
|
|
16121 |
/**
|
|
|
16122 |
* Performs a deep copy on <i>other</i>.
|
|
|
16123 |
*/
|
|
|
16124 |
public scanForLostItem_args(scanForLostItem_args other) {
|
|
|
16125 |
__isset_bit_vector.clear();
|
|
|
16126 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
16127 |
if (other.isSetLostItems()) {
|
|
|
16128 |
List<InventoryItem> __this__lostItems = new ArrayList<InventoryItem>();
|
|
|
16129 |
for (InventoryItem other_element : other.lostItems) {
|
|
|
16130 |
__this__lostItems.add(new InventoryItem(other_element));
|
|
|
16131 |
}
|
|
|
16132 |
this.lostItems = __this__lostItems;
|
|
|
16133 |
}
|
|
|
16134 |
this.vendorId = other.vendorId;
|
|
|
16135 |
}
|
|
|
16136 |
|
|
|
16137 |
public scanForLostItem_args deepCopy() {
|
|
|
16138 |
return new scanForLostItem_args(this);
|
|
|
16139 |
}
|
|
|
16140 |
|
|
|
16141 |
@Override
|
|
|
16142 |
public void clear() {
|
|
|
16143 |
this.lostItems = null;
|
|
|
16144 |
setVendorIdIsSet(false);
|
|
|
16145 |
this.vendorId = 0;
|
|
|
16146 |
}
|
|
|
16147 |
|
|
|
16148 |
public int getLostItemsSize() {
|
|
|
16149 |
return (this.lostItems == null) ? 0 : this.lostItems.size();
|
|
|
16150 |
}
|
|
|
16151 |
|
|
|
16152 |
public java.util.Iterator<InventoryItem> getLostItemsIterator() {
|
|
|
16153 |
return (this.lostItems == null) ? null : this.lostItems.iterator();
|
|
|
16154 |
}
|
|
|
16155 |
|
|
|
16156 |
public void addToLostItems(InventoryItem elem) {
|
|
|
16157 |
if (this.lostItems == null) {
|
|
|
16158 |
this.lostItems = new ArrayList<InventoryItem>();
|
|
|
16159 |
}
|
|
|
16160 |
this.lostItems.add(elem);
|
|
|
16161 |
}
|
|
|
16162 |
|
|
|
16163 |
public List<InventoryItem> getLostItems() {
|
|
|
16164 |
return this.lostItems;
|
|
|
16165 |
}
|
|
|
16166 |
|
|
|
16167 |
public void setLostItems(List<InventoryItem> lostItems) {
|
|
|
16168 |
this.lostItems = lostItems;
|
|
|
16169 |
}
|
|
|
16170 |
|
|
|
16171 |
public void unsetLostItems() {
|
|
|
16172 |
this.lostItems = null;
|
|
|
16173 |
}
|
|
|
16174 |
|
|
|
16175 |
/** Returns true if field lostItems is set (has been assigned a value) and false otherwise */
|
|
|
16176 |
public boolean isSetLostItems() {
|
|
|
16177 |
return this.lostItems != null;
|
|
|
16178 |
}
|
|
|
16179 |
|
|
|
16180 |
public void setLostItemsIsSet(boolean value) {
|
|
|
16181 |
if (!value) {
|
|
|
16182 |
this.lostItems = null;
|
|
|
16183 |
}
|
|
|
16184 |
}
|
|
|
16185 |
|
|
|
16186 |
public long getVendorId() {
|
|
|
16187 |
return this.vendorId;
|
|
|
16188 |
}
|
|
|
16189 |
|
|
|
16190 |
public void setVendorId(long vendorId) {
|
|
|
16191 |
this.vendorId = vendorId;
|
|
|
16192 |
setVendorIdIsSet(true);
|
|
|
16193 |
}
|
|
|
16194 |
|
|
|
16195 |
public void unsetVendorId() {
|
|
|
16196 |
__isset_bit_vector.clear(__VENDORID_ISSET_ID);
|
|
|
16197 |
}
|
|
|
16198 |
|
|
|
16199 |
/** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
|
|
|
16200 |
public boolean isSetVendorId() {
|
|
|
16201 |
return __isset_bit_vector.get(__VENDORID_ISSET_ID);
|
|
|
16202 |
}
|
|
|
16203 |
|
|
|
16204 |
public void setVendorIdIsSet(boolean value) {
|
|
|
16205 |
__isset_bit_vector.set(__VENDORID_ISSET_ID, value);
|
|
|
16206 |
}
|
|
|
16207 |
|
|
|
16208 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
16209 |
switch (field) {
|
|
|
16210 |
case LOST_ITEMS:
|
|
|
16211 |
if (value == null) {
|
|
|
16212 |
unsetLostItems();
|
|
|
16213 |
} else {
|
|
|
16214 |
setLostItems((List<InventoryItem>)value);
|
|
|
16215 |
}
|
|
|
16216 |
break;
|
|
|
16217 |
|
|
|
16218 |
case VENDOR_ID:
|
|
|
16219 |
if (value == null) {
|
|
|
16220 |
unsetVendorId();
|
|
|
16221 |
} else {
|
|
|
16222 |
setVendorId((Long)value);
|
|
|
16223 |
}
|
|
|
16224 |
break;
|
|
|
16225 |
|
|
|
16226 |
}
|
|
|
16227 |
}
|
|
|
16228 |
|
|
|
16229 |
public Object getFieldValue(_Fields field) {
|
|
|
16230 |
switch (field) {
|
|
|
16231 |
case LOST_ITEMS:
|
|
|
16232 |
return getLostItems();
|
|
|
16233 |
|
|
|
16234 |
case VENDOR_ID:
|
|
|
16235 |
return Long.valueOf(getVendorId());
|
|
|
16236 |
|
|
|
16237 |
}
|
|
|
16238 |
throw new IllegalStateException();
|
|
|
16239 |
}
|
|
|
16240 |
|
|
|
16241 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
16242 |
public boolean isSet(_Fields field) {
|
|
|
16243 |
if (field == null) {
|
|
|
16244 |
throw new IllegalArgumentException();
|
|
|
16245 |
}
|
|
|
16246 |
|
|
|
16247 |
switch (field) {
|
|
|
16248 |
case LOST_ITEMS:
|
|
|
16249 |
return isSetLostItems();
|
|
|
16250 |
case VENDOR_ID:
|
|
|
16251 |
return isSetVendorId();
|
|
|
16252 |
}
|
|
|
16253 |
throw new IllegalStateException();
|
|
|
16254 |
}
|
|
|
16255 |
|
|
|
16256 |
@Override
|
|
|
16257 |
public boolean equals(Object that) {
|
|
|
16258 |
if (that == null)
|
|
|
16259 |
return false;
|
|
|
16260 |
if (that instanceof scanForLostItem_args)
|
|
|
16261 |
return this.equals((scanForLostItem_args)that);
|
|
|
16262 |
return false;
|
|
|
16263 |
}
|
|
|
16264 |
|
|
|
16265 |
public boolean equals(scanForLostItem_args that) {
|
|
|
16266 |
if (that == null)
|
|
|
16267 |
return false;
|
|
|
16268 |
|
|
|
16269 |
boolean this_present_lostItems = true && this.isSetLostItems();
|
|
|
16270 |
boolean that_present_lostItems = true && that.isSetLostItems();
|
|
|
16271 |
if (this_present_lostItems || that_present_lostItems) {
|
|
|
16272 |
if (!(this_present_lostItems && that_present_lostItems))
|
|
|
16273 |
return false;
|
|
|
16274 |
if (!this.lostItems.equals(that.lostItems))
|
|
|
16275 |
return false;
|
|
|
16276 |
}
|
|
|
16277 |
|
|
|
16278 |
boolean this_present_vendorId = true;
|
|
|
16279 |
boolean that_present_vendorId = true;
|
|
|
16280 |
if (this_present_vendorId || that_present_vendorId) {
|
|
|
16281 |
if (!(this_present_vendorId && that_present_vendorId))
|
|
|
16282 |
return false;
|
|
|
16283 |
if (this.vendorId != that.vendorId)
|
|
|
16284 |
return false;
|
|
|
16285 |
}
|
|
|
16286 |
|
|
|
16287 |
return true;
|
|
|
16288 |
}
|
|
|
16289 |
|
|
|
16290 |
@Override
|
|
|
16291 |
public int hashCode() {
|
|
|
16292 |
return 0;
|
|
|
16293 |
}
|
|
|
16294 |
|
|
|
16295 |
public int compareTo(scanForLostItem_args other) {
|
|
|
16296 |
if (!getClass().equals(other.getClass())) {
|
|
|
16297 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
16298 |
}
|
|
|
16299 |
|
|
|
16300 |
int lastComparison = 0;
|
|
|
16301 |
scanForLostItem_args typedOther = (scanForLostItem_args)other;
|
|
|
16302 |
|
|
|
16303 |
lastComparison = Boolean.valueOf(isSetLostItems()).compareTo(typedOther.isSetLostItems());
|
|
|
16304 |
if (lastComparison != 0) {
|
|
|
16305 |
return lastComparison;
|
|
|
16306 |
}
|
|
|
16307 |
if (isSetLostItems()) {
|
|
|
16308 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lostItems, typedOther.lostItems);
|
|
|
16309 |
if (lastComparison != 0) {
|
|
|
16310 |
return lastComparison;
|
|
|
16311 |
}
|
|
|
16312 |
}
|
|
|
16313 |
lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
|
|
|
16314 |
if (lastComparison != 0) {
|
|
|
16315 |
return lastComparison;
|
|
|
16316 |
}
|
|
|
16317 |
if (isSetVendorId()) {
|
|
|
16318 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
|
|
|
16319 |
if (lastComparison != 0) {
|
|
|
16320 |
return lastComparison;
|
|
|
16321 |
}
|
|
|
16322 |
}
|
|
|
16323 |
return 0;
|
|
|
16324 |
}
|
|
|
16325 |
|
|
|
16326 |
public _Fields fieldForId(int fieldId) {
|
|
|
16327 |
return _Fields.findByThriftId(fieldId);
|
|
|
16328 |
}
|
|
|
16329 |
|
|
|
16330 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
16331 |
org.apache.thrift.protocol.TField field;
|
|
|
16332 |
iprot.readStructBegin();
|
|
|
16333 |
while (true)
|
|
|
16334 |
{
|
|
|
16335 |
field = iprot.readFieldBegin();
|
|
|
16336 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
16337 |
break;
|
|
|
16338 |
}
|
|
|
16339 |
switch (field.id) {
|
|
|
16340 |
case 1: // LOST_ITEMS
|
|
|
16341 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
16342 |
{
|
| 7210 |
amar.kumar |
16343 |
org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
|
|
|
16344 |
this.lostItems = new ArrayList<InventoryItem>(_list40.size);
|
|
|
16345 |
for (int _i41 = 0; _i41 < _list40.size; ++_i41)
|
| 6548 |
amar.kumar |
16346 |
{
|
| 7210 |
amar.kumar |
16347 |
InventoryItem _elem42; // required
|
|
|
16348 |
_elem42 = new InventoryItem();
|
|
|
16349 |
_elem42.read(iprot);
|
|
|
16350 |
this.lostItems.add(_elem42);
|
| 6548 |
amar.kumar |
16351 |
}
|
|
|
16352 |
iprot.readListEnd();
|
|
|
16353 |
}
|
|
|
16354 |
} else {
|
|
|
16355 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16356 |
}
|
|
|
16357 |
break;
|
|
|
16358 |
case 2: // VENDOR_ID
|
|
|
16359 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
16360 |
this.vendorId = iprot.readI64();
|
|
|
16361 |
setVendorIdIsSet(true);
|
|
|
16362 |
} else {
|
|
|
16363 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16364 |
}
|
|
|
16365 |
break;
|
|
|
16366 |
default:
|
|
|
16367 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16368 |
}
|
|
|
16369 |
iprot.readFieldEnd();
|
|
|
16370 |
}
|
|
|
16371 |
iprot.readStructEnd();
|
|
|
16372 |
validate();
|
|
|
16373 |
}
|
|
|
16374 |
|
|
|
16375 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
16376 |
validate();
|
|
|
16377 |
|
|
|
16378 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
16379 |
if (this.lostItems != null) {
|
|
|
16380 |
oprot.writeFieldBegin(LOST_ITEMS_FIELD_DESC);
|
|
|
16381 |
{
|
|
|
16382 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lostItems.size()));
|
| 7210 |
amar.kumar |
16383 |
for (InventoryItem _iter43 : this.lostItems)
|
| 6548 |
amar.kumar |
16384 |
{
|
| 7210 |
amar.kumar |
16385 |
_iter43.write(oprot);
|
| 6548 |
amar.kumar |
16386 |
}
|
|
|
16387 |
oprot.writeListEnd();
|
|
|
16388 |
}
|
|
|
16389 |
oprot.writeFieldEnd();
|
|
|
16390 |
}
|
|
|
16391 |
oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
|
|
|
16392 |
oprot.writeI64(this.vendorId);
|
|
|
16393 |
oprot.writeFieldEnd();
|
|
|
16394 |
oprot.writeFieldStop();
|
|
|
16395 |
oprot.writeStructEnd();
|
|
|
16396 |
}
|
|
|
16397 |
|
|
|
16398 |
@Override
|
|
|
16399 |
public String toString() {
|
|
|
16400 |
StringBuilder sb = new StringBuilder("scanForLostItem_args(");
|
|
|
16401 |
boolean first = true;
|
|
|
16402 |
|
|
|
16403 |
sb.append("lostItems:");
|
|
|
16404 |
if (this.lostItems == null) {
|
|
|
16405 |
sb.append("null");
|
|
|
16406 |
} else {
|
|
|
16407 |
sb.append(this.lostItems);
|
|
|
16408 |
}
|
|
|
16409 |
first = false;
|
|
|
16410 |
if (!first) sb.append(", ");
|
|
|
16411 |
sb.append("vendorId:");
|
|
|
16412 |
sb.append(this.vendorId);
|
|
|
16413 |
first = false;
|
|
|
16414 |
sb.append(")");
|
|
|
16415 |
return sb.toString();
|
|
|
16416 |
}
|
|
|
16417 |
|
|
|
16418 |
public void validate() throws org.apache.thrift.TException {
|
|
|
16419 |
// check for required fields
|
|
|
16420 |
}
|
|
|
16421 |
|
|
|
16422 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
16423 |
try {
|
|
|
16424 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
16425 |
} catch (org.apache.thrift.TException te) {
|
|
|
16426 |
throw new java.io.IOException(te);
|
|
|
16427 |
}
|
|
|
16428 |
}
|
|
|
16429 |
|
|
|
16430 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
16431 |
try {
|
|
|
16432 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
16433 |
} catch (org.apache.thrift.TException te) {
|
|
|
16434 |
throw new java.io.IOException(te);
|
|
|
16435 |
}
|
|
|
16436 |
}
|
|
|
16437 |
|
|
|
16438 |
}
|
|
|
16439 |
|
|
|
16440 |
public static class scanForLostItem_result implements org.apache.thrift.TBase<scanForLostItem_result, scanForLostItem_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
16441 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_result");
|
|
|
16442 |
|
|
|
16443 |
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);
|
|
|
16444 |
|
|
|
16445 |
private WarehouseServiceException ex; // required
|
|
|
16446 |
|
|
|
16447 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
16448 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
16449 |
EX((short)1, "ex");
|
|
|
16450 |
|
|
|
16451 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
16452 |
|
|
|
16453 |
static {
|
|
|
16454 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
16455 |
byName.put(field.getFieldName(), field);
|
|
|
16456 |
}
|
|
|
16457 |
}
|
|
|
16458 |
|
|
|
16459 |
/**
|
|
|
16460 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
16461 |
*/
|
|
|
16462 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
16463 |
switch(fieldId) {
|
|
|
16464 |
case 1: // EX
|
|
|
16465 |
return EX;
|
|
|
16466 |
default:
|
|
|
16467 |
return null;
|
|
|
16468 |
}
|
|
|
16469 |
}
|
|
|
16470 |
|
|
|
16471 |
/**
|
|
|
16472 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
16473 |
* if it is not found.
|
|
|
16474 |
*/
|
|
|
16475 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
16476 |
_Fields fields = findByThriftId(fieldId);
|
|
|
16477 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
16478 |
return fields;
|
|
|
16479 |
}
|
|
|
16480 |
|
|
|
16481 |
/**
|
|
|
16482 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
16483 |
*/
|
|
|
16484 |
public static _Fields findByName(String name) {
|
|
|
16485 |
return byName.get(name);
|
|
|
16486 |
}
|
|
|
16487 |
|
|
|
16488 |
private final short _thriftId;
|
|
|
16489 |
private final String _fieldName;
|
|
|
16490 |
|
|
|
16491 |
_Fields(short thriftId, String fieldName) {
|
|
|
16492 |
_thriftId = thriftId;
|
|
|
16493 |
_fieldName = fieldName;
|
|
|
16494 |
}
|
|
|
16495 |
|
|
|
16496 |
public short getThriftFieldId() {
|
|
|
16497 |
return _thriftId;
|
|
|
16498 |
}
|
|
|
16499 |
|
|
|
16500 |
public String getFieldName() {
|
|
|
16501 |
return _fieldName;
|
|
|
16502 |
}
|
|
|
16503 |
}
|
|
|
16504 |
|
|
|
16505 |
// isset id assignments
|
|
|
16506 |
|
|
|
16507 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
16508 |
static {
|
|
|
16509 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
16510 |
tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
16511 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
16512 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
16513 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_result.class, metaDataMap);
|
|
|
16514 |
}
|
|
|
16515 |
|
|
|
16516 |
public scanForLostItem_result() {
|
|
|
16517 |
}
|
|
|
16518 |
|
|
|
16519 |
public scanForLostItem_result(
|
|
|
16520 |
WarehouseServiceException ex)
|
|
|
16521 |
{
|
|
|
16522 |
this();
|
|
|
16523 |
this.ex = ex;
|
|
|
16524 |
}
|
|
|
16525 |
|
|
|
16526 |
/**
|
|
|
16527 |
* Performs a deep copy on <i>other</i>.
|
|
|
16528 |
*/
|
|
|
16529 |
public scanForLostItem_result(scanForLostItem_result other) {
|
|
|
16530 |
if (other.isSetEx()) {
|
|
|
16531 |
this.ex = new WarehouseServiceException(other.ex);
|
|
|
16532 |
}
|
|
|
16533 |
}
|
|
|
16534 |
|
|
|
16535 |
public scanForLostItem_result deepCopy() {
|
|
|
16536 |
return new scanForLostItem_result(this);
|
|
|
16537 |
}
|
|
|
16538 |
|
|
|
16539 |
@Override
|
|
|
16540 |
public void clear() {
|
|
|
16541 |
this.ex = null;
|
|
|
16542 |
}
|
|
|
16543 |
|
|
|
16544 |
public WarehouseServiceException getEx() {
|
|
|
16545 |
return this.ex;
|
|
|
16546 |
}
|
|
|
16547 |
|
|
|
16548 |
public void setEx(WarehouseServiceException ex) {
|
|
|
16549 |
this.ex = ex;
|
|
|
16550 |
}
|
|
|
16551 |
|
|
|
16552 |
public void unsetEx() {
|
|
|
16553 |
this.ex = null;
|
|
|
16554 |
}
|
|
|
16555 |
|
|
|
16556 |
/** Returns true if field ex is set (has been assigned a value) and false otherwise */
|
|
|
16557 |
public boolean isSetEx() {
|
|
|
16558 |
return this.ex != null;
|
|
|
16559 |
}
|
|
|
16560 |
|
|
|
16561 |
public void setExIsSet(boolean value) {
|
|
|
16562 |
if (!value) {
|
|
|
16563 |
this.ex = null;
|
|
|
16564 |
}
|
|
|
16565 |
}
|
|
|
16566 |
|
|
|
16567 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
16568 |
switch (field) {
|
|
|
16569 |
case EX:
|
|
|
16570 |
if (value == null) {
|
|
|
16571 |
unsetEx();
|
|
|
16572 |
} else {
|
|
|
16573 |
setEx((WarehouseServiceException)value);
|
|
|
16574 |
}
|
|
|
16575 |
break;
|
|
|
16576 |
|
|
|
16577 |
}
|
|
|
16578 |
}
|
|
|
16579 |
|
|
|
16580 |
public Object getFieldValue(_Fields field) {
|
|
|
16581 |
switch (field) {
|
|
|
16582 |
case EX:
|
|
|
16583 |
return getEx();
|
|
|
16584 |
|
|
|
16585 |
}
|
|
|
16586 |
throw new IllegalStateException();
|
|
|
16587 |
}
|
|
|
16588 |
|
|
|
16589 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
16590 |
public boolean isSet(_Fields field) {
|
|
|
16591 |
if (field == null) {
|
|
|
16592 |
throw new IllegalArgumentException();
|
|
|
16593 |
}
|
|
|
16594 |
|
|
|
16595 |
switch (field) {
|
|
|
16596 |
case EX:
|
|
|
16597 |
return isSetEx();
|
|
|
16598 |
}
|
|
|
16599 |
throw new IllegalStateException();
|
|
|
16600 |
}
|
|
|
16601 |
|
|
|
16602 |
@Override
|
|
|
16603 |
public boolean equals(Object that) {
|
|
|
16604 |
if (that == null)
|
|
|
16605 |
return false;
|
|
|
16606 |
if (that instanceof scanForLostItem_result)
|
|
|
16607 |
return this.equals((scanForLostItem_result)that);
|
|
|
16608 |
return false;
|
|
|
16609 |
}
|
|
|
16610 |
|
|
|
16611 |
public boolean equals(scanForLostItem_result that) {
|
|
|
16612 |
if (that == null)
|
|
|
16613 |
return false;
|
|
|
16614 |
|
|
|
16615 |
boolean this_present_ex = true && this.isSetEx();
|
|
|
16616 |
boolean that_present_ex = true && that.isSetEx();
|
|
|
16617 |
if (this_present_ex || that_present_ex) {
|
|
|
16618 |
if (!(this_present_ex && that_present_ex))
|
|
|
16619 |
return false;
|
|
|
16620 |
if (!this.ex.equals(that.ex))
|
|
|
16621 |
return false;
|
|
|
16622 |
}
|
|
|
16623 |
|
|
|
16624 |
return true;
|
|
|
16625 |
}
|
|
|
16626 |
|
|
|
16627 |
@Override
|
|
|
16628 |
public int hashCode() {
|
|
|
16629 |
return 0;
|
|
|
16630 |
}
|
|
|
16631 |
|
|
|
16632 |
public int compareTo(scanForLostItem_result other) {
|
|
|
16633 |
if (!getClass().equals(other.getClass())) {
|
|
|
16634 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
16635 |
}
|
|
|
16636 |
|
|
|
16637 |
int lastComparison = 0;
|
|
|
16638 |
scanForLostItem_result typedOther = (scanForLostItem_result)other;
|
|
|
16639 |
|
|
|
16640 |
lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
|
|
|
16641 |
if (lastComparison != 0) {
|
|
|
16642 |
return lastComparison;
|
|
|
16643 |
}
|
|
|
16644 |
if (isSetEx()) {
|
|
|
16645 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
|
|
|
16646 |
if (lastComparison != 0) {
|
|
|
16647 |
return lastComparison;
|
|
|
16648 |
}
|
|
|
16649 |
}
|
|
|
16650 |
return 0;
|
|
|
16651 |
}
|
|
|
16652 |
|
|
|
16653 |
public _Fields fieldForId(int fieldId) {
|
|
|
16654 |
return _Fields.findByThriftId(fieldId);
|
|
|
16655 |
}
|
|
|
16656 |
|
|
|
16657 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
16658 |
org.apache.thrift.protocol.TField field;
|
|
|
16659 |
iprot.readStructBegin();
|
|
|
16660 |
while (true)
|
|
|
16661 |
{
|
|
|
16662 |
field = iprot.readFieldBegin();
|
|
|
16663 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
16664 |
break;
|
|
|
16665 |
}
|
|
|
16666 |
switch (field.id) {
|
|
|
16667 |
case 1: // EX
|
|
|
16668 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
16669 |
this.ex = new WarehouseServiceException();
|
|
|
16670 |
this.ex.read(iprot);
|
|
|
16671 |
} else {
|
|
|
16672 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16673 |
}
|
|
|
16674 |
break;
|
|
|
16675 |
default:
|
|
|
16676 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16677 |
}
|
|
|
16678 |
iprot.readFieldEnd();
|
|
|
16679 |
}
|
|
|
16680 |
iprot.readStructEnd();
|
|
|
16681 |
validate();
|
|
|
16682 |
}
|
|
|
16683 |
|
|
|
16684 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
16685 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
16686 |
|
|
|
16687 |
if (this.isSetEx()) {
|
|
|
16688 |
oprot.writeFieldBegin(EX_FIELD_DESC);
|
|
|
16689 |
this.ex.write(oprot);
|
|
|
16690 |
oprot.writeFieldEnd();
|
|
|
16691 |
}
|
|
|
16692 |
oprot.writeFieldStop();
|
|
|
16693 |
oprot.writeStructEnd();
|
|
|
16694 |
}
|
|
|
16695 |
|
|
|
16696 |
@Override
|
|
|
16697 |
public String toString() {
|
|
|
16698 |
StringBuilder sb = new StringBuilder("scanForLostItem_result(");
|
|
|
16699 |
boolean first = true;
|
|
|
16700 |
|
|
|
16701 |
sb.append("ex:");
|
|
|
16702 |
if (this.ex == null) {
|
|
|
16703 |
sb.append("null");
|
|
|
16704 |
} else {
|
|
|
16705 |
sb.append(this.ex);
|
|
|
16706 |
}
|
|
|
16707 |
first = false;
|
|
|
16708 |
sb.append(")");
|
|
|
16709 |
return sb.toString();
|
|
|
16710 |
}
|
|
|
16711 |
|
|
|
16712 |
public void validate() throws org.apache.thrift.TException {
|
|
|
16713 |
// check for required fields
|
|
|
16714 |
}
|
|
|
16715 |
|
|
|
16716 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
16717 |
try {
|
|
|
16718 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
16719 |
} catch (org.apache.thrift.TException te) {
|
|
|
16720 |
throw new java.io.IOException(te);
|
|
|
16721 |
}
|
|
|
16722 |
}
|
|
|
16723 |
|
|
|
16724 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
16725 |
try {
|
|
|
16726 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
16727 |
} catch (org.apache.thrift.TException te) {
|
|
|
16728 |
throw new java.io.IOException(te);
|
|
|
16729 |
}
|
|
|
16730 |
}
|
|
|
16731 |
|
|
|
16732 |
}
|
|
|
16733 |
|
|
|
16734 |
public static class getCurrentSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_args, getCurrentSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
16735 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_args");
|
|
|
16736 |
|
|
|
16737 |
|
|
|
16738 |
|
|
|
16739 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
16740 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
16741 |
;
|
|
|
16742 |
|
|
|
16743 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
16744 |
|
|
|
16745 |
static {
|
|
|
16746 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
16747 |
byName.put(field.getFieldName(), field);
|
|
|
16748 |
}
|
|
|
16749 |
}
|
|
|
16750 |
|
|
|
16751 |
/**
|
|
|
16752 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
16753 |
*/
|
|
|
16754 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
16755 |
switch(fieldId) {
|
|
|
16756 |
default:
|
|
|
16757 |
return null;
|
|
|
16758 |
}
|
|
|
16759 |
}
|
|
|
16760 |
|
|
|
16761 |
/**
|
|
|
16762 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
16763 |
* if it is not found.
|
|
|
16764 |
*/
|
|
|
16765 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
16766 |
_Fields fields = findByThriftId(fieldId);
|
|
|
16767 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
16768 |
return fields;
|
|
|
16769 |
}
|
|
|
16770 |
|
|
|
16771 |
/**
|
|
|
16772 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
16773 |
*/
|
|
|
16774 |
public static _Fields findByName(String name) {
|
|
|
16775 |
return byName.get(name);
|
|
|
16776 |
}
|
|
|
16777 |
|
|
|
16778 |
private final short _thriftId;
|
|
|
16779 |
private final String _fieldName;
|
|
|
16780 |
|
|
|
16781 |
_Fields(short thriftId, String fieldName) {
|
|
|
16782 |
_thriftId = thriftId;
|
|
|
16783 |
_fieldName = fieldName;
|
|
|
16784 |
}
|
|
|
16785 |
|
|
|
16786 |
public short getThriftFieldId() {
|
|
|
16787 |
return _thriftId;
|
|
|
16788 |
}
|
|
|
16789 |
|
|
|
16790 |
public String getFieldName() {
|
|
|
16791 |
return _fieldName;
|
|
|
16792 |
}
|
|
|
16793 |
}
|
|
|
16794 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
16795 |
static {
|
|
|
16796 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
16797 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
16798 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
16799 |
}
|
|
|
16800 |
|
|
|
16801 |
public getCurrentSerializedInventoryByScans_args() {
|
|
|
16802 |
}
|
|
|
16803 |
|
|
|
16804 |
/**
|
|
|
16805 |
* Performs a deep copy on <i>other</i>.
|
|
|
16806 |
*/
|
|
|
16807 |
public getCurrentSerializedInventoryByScans_args(getCurrentSerializedInventoryByScans_args other) {
|
|
|
16808 |
}
|
|
|
16809 |
|
|
|
16810 |
public getCurrentSerializedInventoryByScans_args deepCopy() {
|
|
|
16811 |
return new getCurrentSerializedInventoryByScans_args(this);
|
|
|
16812 |
}
|
|
|
16813 |
|
|
|
16814 |
@Override
|
|
|
16815 |
public void clear() {
|
|
|
16816 |
}
|
|
|
16817 |
|
|
|
16818 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
16819 |
switch (field) {
|
|
|
16820 |
}
|
|
|
16821 |
}
|
|
|
16822 |
|
|
|
16823 |
public Object getFieldValue(_Fields field) {
|
|
|
16824 |
switch (field) {
|
|
|
16825 |
}
|
|
|
16826 |
throw new IllegalStateException();
|
|
|
16827 |
}
|
|
|
16828 |
|
|
|
16829 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
16830 |
public boolean isSet(_Fields field) {
|
|
|
16831 |
if (field == null) {
|
|
|
16832 |
throw new IllegalArgumentException();
|
|
|
16833 |
}
|
|
|
16834 |
|
|
|
16835 |
switch (field) {
|
|
|
16836 |
}
|
|
|
16837 |
throw new IllegalStateException();
|
|
|
16838 |
}
|
|
|
16839 |
|
|
|
16840 |
@Override
|
|
|
16841 |
public boolean equals(Object that) {
|
|
|
16842 |
if (that == null)
|
|
|
16843 |
return false;
|
|
|
16844 |
if (that instanceof getCurrentSerializedInventoryByScans_args)
|
|
|
16845 |
return this.equals((getCurrentSerializedInventoryByScans_args)that);
|
|
|
16846 |
return false;
|
|
|
16847 |
}
|
|
|
16848 |
|
|
|
16849 |
public boolean equals(getCurrentSerializedInventoryByScans_args that) {
|
|
|
16850 |
if (that == null)
|
|
|
16851 |
return false;
|
|
|
16852 |
|
|
|
16853 |
return true;
|
|
|
16854 |
}
|
|
|
16855 |
|
|
|
16856 |
@Override
|
|
|
16857 |
public int hashCode() {
|
|
|
16858 |
return 0;
|
|
|
16859 |
}
|
|
|
16860 |
|
|
|
16861 |
public int compareTo(getCurrentSerializedInventoryByScans_args other) {
|
|
|
16862 |
if (!getClass().equals(other.getClass())) {
|
|
|
16863 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
16864 |
}
|
|
|
16865 |
|
|
|
16866 |
int lastComparison = 0;
|
|
|
16867 |
getCurrentSerializedInventoryByScans_args typedOther = (getCurrentSerializedInventoryByScans_args)other;
|
|
|
16868 |
|
|
|
16869 |
return 0;
|
|
|
16870 |
}
|
|
|
16871 |
|
|
|
16872 |
public _Fields fieldForId(int fieldId) {
|
|
|
16873 |
return _Fields.findByThriftId(fieldId);
|
|
|
16874 |
}
|
|
|
16875 |
|
|
|
16876 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
16877 |
org.apache.thrift.protocol.TField field;
|
|
|
16878 |
iprot.readStructBegin();
|
|
|
16879 |
while (true)
|
|
|
16880 |
{
|
|
|
16881 |
field = iprot.readFieldBegin();
|
|
|
16882 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
16883 |
break;
|
|
|
16884 |
}
|
|
|
16885 |
switch (field.id) {
|
|
|
16886 |
default:
|
|
|
16887 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16888 |
}
|
|
|
16889 |
iprot.readFieldEnd();
|
|
|
16890 |
}
|
|
|
16891 |
iprot.readStructEnd();
|
|
|
16892 |
validate();
|
|
|
16893 |
}
|
|
|
16894 |
|
|
|
16895 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
16896 |
validate();
|
|
|
16897 |
|
|
|
16898 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
16899 |
oprot.writeFieldStop();
|
|
|
16900 |
oprot.writeStructEnd();
|
|
|
16901 |
}
|
|
|
16902 |
|
|
|
16903 |
@Override
|
|
|
16904 |
public String toString() {
|
|
|
16905 |
StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_args(");
|
|
|
16906 |
boolean first = true;
|
|
|
16907 |
|
|
|
16908 |
sb.append(")");
|
|
|
16909 |
return sb.toString();
|
|
|
16910 |
}
|
|
|
16911 |
|
|
|
16912 |
public void validate() throws org.apache.thrift.TException {
|
|
|
16913 |
// check for required fields
|
|
|
16914 |
}
|
|
|
16915 |
|
|
|
16916 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
16917 |
try {
|
|
|
16918 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
16919 |
} catch (org.apache.thrift.TException te) {
|
|
|
16920 |
throw new java.io.IOException(te);
|
|
|
16921 |
}
|
|
|
16922 |
}
|
|
|
16923 |
|
|
|
16924 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
16925 |
try {
|
|
|
16926 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
16927 |
} catch (org.apache.thrift.TException te) {
|
|
|
16928 |
throw new java.io.IOException(te);
|
|
|
16929 |
}
|
|
|
16930 |
}
|
|
|
16931 |
|
|
|
16932 |
}
|
|
|
16933 |
|
|
|
16934 |
public static class getCurrentSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_result, getCurrentSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
16935 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_result");
|
|
|
16936 |
|
|
|
16937 |
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);
|
|
|
16938 |
|
|
|
16939 |
private List<InventoryAvailability> success; // required
|
|
|
16940 |
|
|
|
16941 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
16942 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
16943 |
SUCCESS((short)0, "success");
|
|
|
16944 |
|
|
|
16945 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
16946 |
|
|
|
16947 |
static {
|
|
|
16948 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
16949 |
byName.put(field.getFieldName(), field);
|
|
|
16950 |
}
|
|
|
16951 |
}
|
|
|
16952 |
|
|
|
16953 |
/**
|
|
|
16954 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
16955 |
*/
|
|
|
16956 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
16957 |
switch(fieldId) {
|
|
|
16958 |
case 0: // SUCCESS
|
|
|
16959 |
return SUCCESS;
|
|
|
16960 |
default:
|
|
|
16961 |
return null;
|
|
|
16962 |
}
|
|
|
16963 |
}
|
|
|
16964 |
|
|
|
16965 |
/**
|
|
|
16966 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
16967 |
* if it is not found.
|
|
|
16968 |
*/
|
|
|
16969 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
16970 |
_Fields fields = findByThriftId(fieldId);
|
|
|
16971 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
16972 |
return fields;
|
|
|
16973 |
}
|
|
|
16974 |
|
|
|
16975 |
/**
|
|
|
16976 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
16977 |
*/
|
|
|
16978 |
public static _Fields findByName(String name) {
|
|
|
16979 |
return byName.get(name);
|
|
|
16980 |
}
|
|
|
16981 |
|
|
|
16982 |
private final short _thriftId;
|
|
|
16983 |
private final String _fieldName;
|
|
|
16984 |
|
|
|
16985 |
_Fields(short thriftId, String fieldName) {
|
|
|
16986 |
_thriftId = thriftId;
|
|
|
16987 |
_fieldName = fieldName;
|
|
|
16988 |
}
|
|
|
16989 |
|
|
|
16990 |
public short getThriftFieldId() {
|
|
|
16991 |
return _thriftId;
|
|
|
16992 |
}
|
|
|
16993 |
|
|
|
16994 |
public String getFieldName() {
|
|
|
16995 |
return _fieldName;
|
|
|
16996 |
}
|
|
|
16997 |
}
|
|
|
16998 |
|
|
|
16999 |
// isset id assignments
|
|
|
17000 |
|
|
|
17001 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
17002 |
static {
|
|
|
17003 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
17004 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
17005 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
17006 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
|
|
|
17007 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
17008 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
17009 |
}
|
|
|
17010 |
|
|
|
17011 |
public getCurrentSerializedInventoryByScans_result() {
|
|
|
17012 |
}
|
|
|
17013 |
|
|
|
17014 |
public getCurrentSerializedInventoryByScans_result(
|
|
|
17015 |
List<InventoryAvailability> success)
|
|
|
17016 |
{
|
|
|
17017 |
this();
|
|
|
17018 |
this.success = success;
|
|
|
17019 |
}
|
|
|
17020 |
|
|
|
17021 |
/**
|
|
|
17022 |
* Performs a deep copy on <i>other</i>.
|
|
|
17023 |
*/
|
|
|
17024 |
public getCurrentSerializedInventoryByScans_result(getCurrentSerializedInventoryByScans_result other) {
|
|
|
17025 |
if (other.isSetSuccess()) {
|
|
|
17026 |
List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
|
|
|
17027 |
for (InventoryAvailability other_element : other.success) {
|
|
|
17028 |
__this__success.add(new InventoryAvailability(other_element));
|
|
|
17029 |
}
|
|
|
17030 |
this.success = __this__success;
|
|
|
17031 |
}
|
|
|
17032 |
}
|
|
|
17033 |
|
|
|
17034 |
public getCurrentSerializedInventoryByScans_result deepCopy() {
|
|
|
17035 |
return new getCurrentSerializedInventoryByScans_result(this);
|
|
|
17036 |
}
|
|
|
17037 |
|
|
|
17038 |
@Override
|
|
|
17039 |
public void clear() {
|
|
|
17040 |
this.success = null;
|
|
|
17041 |
}
|
|
|
17042 |
|
|
|
17043 |
public int getSuccessSize() {
|
|
|
17044 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
17045 |
}
|
|
|
17046 |
|
|
|
17047 |
public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
|
|
|
17048 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
17049 |
}
|
|
|
17050 |
|
|
|
17051 |
public void addToSuccess(InventoryAvailability elem) {
|
|
|
17052 |
if (this.success == null) {
|
|
|
17053 |
this.success = new ArrayList<InventoryAvailability>();
|
|
|
17054 |
}
|
|
|
17055 |
this.success.add(elem);
|
|
|
17056 |
}
|
|
|
17057 |
|
|
|
17058 |
public List<InventoryAvailability> getSuccess() {
|
|
|
17059 |
return this.success;
|
|
|
17060 |
}
|
|
|
17061 |
|
|
|
17062 |
public void setSuccess(List<InventoryAvailability> success) {
|
|
|
17063 |
this.success = success;
|
|
|
17064 |
}
|
|
|
17065 |
|
|
|
17066 |
public void unsetSuccess() {
|
|
|
17067 |
this.success = null;
|
|
|
17068 |
}
|
|
|
17069 |
|
|
|
17070 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
17071 |
public boolean isSetSuccess() {
|
|
|
17072 |
return this.success != null;
|
|
|
17073 |
}
|
|
|
17074 |
|
|
|
17075 |
public void setSuccessIsSet(boolean value) {
|
|
|
17076 |
if (!value) {
|
|
|
17077 |
this.success = null;
|
|
|
17078 |
}
|
|
|
17079 |
}
|
|
|
17080 |
|
|
|
17081 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
17082 |
switch (field) {
|
|
|
17083 |
case SUCCESS:
|
|
|
17084 |
if (value == null) {
|
|
|
17085 |
unsetSuccess();
|
|
|
17086 |
} else {
|
|
|
17087 |
setSuccess((List<InventoryAvailability>)value);
|
|
|
17088 |
}
|
|
|
17089 |
break;
|
|
|
17090 |
|
|
|
17091 |
}
|
|
|
17092 |
}
|
|
|
17093 |
|
|
|
17094 |
public Object getFieldValue(_Fields field) {
|
|
|
17095 |
switch (field) {
|
|
|
17096 |
case SUCCESS:
|
|
|
17097 |
return getSuccess();
|
|
|
17098 |
|
|
|
17099 |
}
|
|
|
17100 |
throw new IllegalStateException();
|
|
|
17101 |
}
|
|
|
17102 |
|
|
|
17103 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
17104 |
public boolean isSet(_Fields field) {
|
|
|
17105 |
if (field == null) {
|
|
|
17106 |
throw new IllegalArgumentException();
|
|
|
17107 |
}
|
|
|
17108 |
|
|
|
17109 |
switch (field) {
|
|
|
17110 |
case SUCCESS:
|
|
|
17111 |
return isSetSuccess();
|
|
|
17112 |
}
|
|
|
17113 |
throw new IllegalStateException();
|
|
|
17114 |
}
|
|
|
17115 |
|
|
|
17116 |
@Override
|
|
|
17117 |
public boolean equals(Object that) {
|
|
|
17118 |
if (that == null)
|
|
|
17119 |
return false;
|
|
|
17120 |
if (that instanceof getCurrentSerializedInventoryByScans_result)
|
|
|
17121 |
return this.equals((getCurrentSerializedInventoryByScans_result)that);
|
|
|
17122 |
return false;
|
|
|
17123 |
}
|
|
|
17124 |
|
|
|
17125 |
public boolean equals(getCurrentSerializedInventoryByScans_result that) {
|
|
|
17126 |
if (that == null)
|
|
|
17127 |
return false;
|
|
|
17128 |
|
|
|
17129 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
17130 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
17131 |
if (this_present_success || that_present_success) {
|
|
|
17132 |
if (!(this_present_success && that_present_success))
|
|
|
17133 |
return false;
|
|
|
17134 |
if (!this.success.equals(that.success))
|
|
|
17135 |
return false;
|
|
|
17136 |
}
|
|
|
17137 |
|
|
|
17138 |
return true;
|
|
|
17139 |
}
|
|
|
17140 |
|
|
|
17141 |
@Override
|
|
|
17142 |
public int hashCode() {
|
|
|
17143 |
return 0;
|
|
|
17144 |
}
|
|
|
17145 |
|
|
|
17146 |
public int compareTo(getCurrentSerializedInventoryByScans_result other) {
|
|
|
17147 |
if (!getClass().equals(other.getClass())) {
|
|
|
17148 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
17149 |
}
|
|
|
17150 |
|
|
|
17151 |
int lastComparison = 0;
|
|
|
17152 |
getCurrentSerializedInventoryByScans_result typedOther = (getCurrentSerializedInventoryByScans_result)other;
|
|
|
17153 |
|
|
|
17154 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
17155 |
if (lastComparison != 0) {
|
|
|
17156 |
return lastComparison;
|
|
|
17157 |
}
|
|
|
17158 |
if (isSetSuccess()) {
|
|
|
17159 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
17160 |
if (lastComparison != 0) {
|
|
|
17161 |
return lastComparison;
|
|
|
17162 |
}
|
|
|
17163 |
}
|
|
|
17164 |
return 0;
|
|
|
17165 |
}
|
|
|
17166 |
|
|
|
17167 |
public _Fields fieldForId(int fieldId) {
|
|
|
17168 |
return _Fields.findByThriftId(fieldId);
|
|
|
17169 |
}
|
|
|
17170 |
|
|
|
17171 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
17172 |
org.apache.thrift.protocol.TField field;
|
|
|
17173 |
iprot.readStructBegin();
|
|
|
17174 |
while (true)
|
|
|
17175 |
{
|
|
|
17176 |
field = iprot.readFieldBegin();
|
|
|
17177 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
17178 |
break;
|
|
|
17179 |
}
|
|
|
17180 |
switch (field.id) {
|
|
|
17181 |
case 0: // SUCCESS
|
|
|
17182 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
17183 |
{
|
| 7210 |
amar.kumar |
17184 |
org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
|
|
|
17185 |
this.success = new ArrayList<InventoryAvailability>(_list44.size);
|
|
|
17186 |
for (int _i45 = 0; _i45 < _list44.size; ++_i45)
|
| 6548 |
amar.kumar |
17187 |
{
|
| 7210 |
amar.kumar |
17188 |
InventoryAvailability _elem46; // required
|
|
|
17189 |
_elem46 = new InventoryAvailability();
|
|
|
17190 |
_elem46.read(iprot);
|
|
|
17191 |
this.success.add(_elem46);
|
| 6548 |
amar.kumar |
17192 |
}
|
|
|
17193 |
iprot.readListEnd();
|
|
|
17194 |
}
|
|
|
17195 |
} else {
|
|
|
17196 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17197 |
}
|
|
|
17198 |
break;
|
|
|
17199 |
default:
|
|
|
17200 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17201 |
}
|
|
|
17202 |
iprot.readFieldEnd();
|
|
|
17203 |
}
|
|
|
17204 |
iprot.readStructEnd();
|
|
|
17205 |
validate();
|
|
|
17206 |
}
|
|
|
17207 |
|
|
|
17208 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
17209 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
17210 |
|
|
|
17211 |
if (this.isSetSuccess()) {
|
|
|
17212 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
17213 |
{
|
|
|
17214 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 7210 |
amar.kumar |
17215 |
for (InventoryAvailability _iter47 : this.success)
|
| 6548 |
amar.kumar |
17216 |
{
|
| 7210 |
amar.kumar |
17217 |
_iter47.write(oprot);
|
| 6548 |
amar.kumar |
17218 |
}
|
|
|
17219 |
oprot.writeListEnd();
|
|
|
17220 |
}
|
|
|
17221 |
oprot.writeFieldEnd();
|
|
|
17222 |
}
|
|
|
17223 |
oprot.writeFieldStop();
|
|
|
17224 |
oprot.writeStructEnd();
|
|
|
17225 |
}
|
|
|
17226 |
|
|
|
17227 |
@Override
|
|
|
17228 |
public String toString() {
|
|
|
17229 |
StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_result(");
|
|
|
17230 |
boolean first = true;
|
|
|
17231 |
|
|
|
17232 |
sb.append("success:");
|
|
|
17233 |
if (this.success == null) {
|
|
|
17234 |
sb.append("null");
|
|
|
17235 |
} else {
|
|
|
17236 |
sb.append(this.success);
|
|
|
17237 |
}
|
|
|
17238 |
first = false;
|
|
|
17239 |
sb.append(")");
|
|
|
17240 |
return sb.toString();
|
|
|
17241 |
}
|
|
|
17242 |
|
|
|
17243 |
public void validate() throws org.apache.thrift.TException {
|
|
|
17244 |
// check for required fields
|
|
|
17245 |
}
|
|
|
17246 |
|
|
|
17247 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
17248 |
try {
|
|
|
17249 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
17250 |
} catch (org.apache.thrift.TException te) {
|
|
|
17251 |
throw new java.io.IOException(te);
|
|
|
17252 |
}
|
|
|
17253 |
}
|
|
|
17254 |
|
|
|
17255 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
17256 |
try {
|
|
|
17257 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
17258 |
} catch (org.apache.thrift.TException te) {
|
|
|
17259 |
throw new java.io.IOException(te);
|
|
|
17260 |
}
|
|
|
17261 |
}
|
|
|
17262 |
|
|
|
17263 |
}
|
|
|
17264 |
|
| 6630 |
amar.kumar |
17265 |
public static class getCurrentNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_args, getCurrentNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
17266 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_args");
|
|
|
17267 |
|
|
|
17268 |
|
|
|
17269 |
|
|
|
17270 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
17271 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
17272 |
;
|
|
|
17273 |
|
|
|
17274 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
17275 |
|
|
|
17276 |
static {
|
|
|
17277 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
17278 |
byName.put(field.getFieldName(), field);
|
|
|
17279 |
}
|
|
|
17280 |
}
|
|
|
17281 |
|
|
|
17282 |
/**
|
|
|
17283 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
17284 |
*/
|
|
|
17285 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
17286 |
switch(fieldId) {
|
|
|
17287 |
default:
|
|
|
17288 |
return null;
|
|
|
17289 |
}
|
|
|
17290 |
}
|
|
|
17291 |
|
|
|
17292 |
/**
|
|
|
17293 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
17294 |
* if it is not found.
|
|
|
17295 |
*/
|
|
|
17296 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
17297 |
_Fields fields = findByThriftId(fieldId);
|
|
|
17298 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
17299 |
return fields;
|
|
|
17300 |
}
|
|
|
17301 |
|
|
|
17302 |
/**
|
|
|
17303 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
17304 |
*/
|
|
|
17305 |
public static _Fields findByName(String name) {
|
|
|
17306 |
return byName.get(name);
|
|
|
17307 |
}
|
|
|
17308 |
|
|
|
17309 |
private final short _thriftId;
|
|
|
17310 |
private final String _fieldName;
|
|
|
17311 |
|
|
|
17312 |
_Fields(short thriftId, String fieldName) {
|
|
|
17313 |
_thriftId = thriftId;
|
|
|
17314 |
_fieldName = fieldName;
|
|
|
17315 |
}
|
|
|
17316 |
|
|
|
17317 |
public short getThriftFieldId() {
|
|
|
17318 |
return _thriftId;
|
|
|
17319 |
}
|
|
|
17320 |
|
|
|
17321 |
public String getFieldName() {
|
|
|
17322 |
return _fieldName;
|
|
|
17323 |
}
|
|
|
17324 |
}
|
|
|
17325 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
17326 |
static {
|
|
|
17327 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
17328 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
17329 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
17330 |
}
|
|
|
17331 |
|
|
|
17332 |
public getCurrentNonSerializedInventoryByScans_args() {
|
|
|
17333 |
}
|
|
|
17334 |
|
|
|
17335 |
/**
|
|
|
17336 |
* Performs a deep copy on <i>other</i>.
|
|
|
17337 |
*/
|
|
|
17338 |
public getCurrentNonSerializedInventoryByScans_args(getCurrentNonSerializedInventoryByScans_args other) {
|
|
|
17339 |
}
|
|
|
17340 |
|
|
|
17341 |
public getCurrentNonSerializedInventoryByScans_args deepCopy() {
|
|
|
17342 |
return new getCurrentNonSerializedInventoryByScans_args(this);
|
|
|
17343 |
}
|
|
|
17344 |
|
|
|
17345 |
@Override
|
|
|
17346 |
public void clear() {
|
|
|
17347 |
}
|
|
|
17348 |
|
|
|
17349 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
17350 |
switch (field) {
|
|
|
17351 |
}
|
|
|
17352 |
}
|
|
|
17353 |
|
|
|
17354 |
public Object getFieldValue(_Fields field) {
|
|
|
17355 |
switch (field) {
|
|
|
17356 |
}
|
|
|
17357 |
throw new IllegalStateException();
|
|
|
17358 |
}
|
|
|
17359 |
|
|
|
17360 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
17361 |
public boolean isSet(_Fields field) {
|
|
|
17362 |
if (field == null) {
|
|
|
17363 |
throw new IllegalArgumentException();
|
|
|
17364 |
}
|
|
|
17365 |
|
|
|
17366 |
switch (field) {
|
|
|
17367 |
}
|
|
|
17368 |
throw new IllegalStateException();
|
|
|
17369 |
}
|
|
|
17370 |
|
|
|
17371 |
@Override
|
|
|
17372 |
public boolean equals(Object that) {
|
|
|
17373 |
if (that == null)
|
|
|
17374 |
return false;
|
|
|
17375 |
if (that instanceof getCurrentNonSerializedInventoryByScans_args)
|
|
|
17376 |
return this.equals((getCurrentNonSerializedInventoryByScans_args)that);
|
|
|
17377 |
return false;
|
|
|
17378 |
}
|
|
|
17379 |
|
|
|
17380 |
public boolean equals(getCurrentNonSerializedInventoryByScans_args that) {
|
|
|
17381 |
if (that == null)
|
|
|
17382 |
return false;
|
|
|
17383 |
|
|
|
17384 |
return true;
|
|
|
17385 |
}
|
|
|
17386 |
|
|
|
17387 |
@Override
|
|
|
17388 |
public int hashCode() {
|
|
|
17389 |
return 0;
|
|
|
17390 |
}
|
|
|
17391 |
|
|
|
17392 |
public int compareTo(getCurrentNonSerializedInventoryByScans_args other) {
|
|
|
17393 |
if (!getClass().equals(other.getClass())) {
|
|
|
17394 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
17395 |
}
|
|
|
17396 |
|
|
|
17397 |
int lastComparison = 0;
|
|
|
17398 |
getCurrentNonSerializedInventoryByScans_args typedOther = (getCurrentNonSerializedInventoryByScans_args)other;
|
|
|
17399 |
|
|
|
17400 |
return 0;
|
|
|
17401 |
}
|
|
|
17402 |
|
|
|
17403 |
public _Fields fieldForId(int fieldId) {
|
|
|
17404 |
return _Fields.findByThriftId(fieldId);
|
|
|
17405 |
}
|
|
|
17406 |
|
|
|
17407 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
17408 |
org.apache.thrift.protocol.TField field;
|
|
|
17409 |
iprot.readStructBegin();
|
|
|
17410 |
while (true)
|
|
|
17411 |
{
|
|
|
17412 |
field = iprot.readFieldBegin();
|
|
|
17413 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
17414 |
break;
|
|
|
17415 |
}
|
|
|
17416 |
switch (field.id) {
|
|
|
17417 |
default:
|
|
|
17418 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17419 |
}
|
|
|
17420 |
iprot.readFieldEnd();
|
|
|
17421 |
}
|
|
|
17422 |
iprot.readStructEnd();
|
|
|
17423 |
validate();
|
|
|
17424 |
}
|
|
|
17425 |
|
|
|
17426 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
17427 |
validate();
|
|
|
17428 |
|
|
|
17429 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
17430 |
oprot.writeFieldStop();
|
|
|
17431 |
oprot.writeStructEnd();
|
|
|
17432 |
}
|
|
|
17433 |
|
|
|
17434 |
@Override
|
|
|
17435 |
public String toString() {
|
|
|
17436 |
StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_args(");
|
|
|
17437 |
boolean first = true;
|
|
|
17438 |
|
|
|
17439 |
sb.append(")");
|
|
|
17440 |
return sb.toString();
|
|
|
17441 |
}
|
|
|
17442 |
|
|
|
17443 |
public void validate() throws org.apache.thrift.TException {
|
|
|
17444 |
// check for required fields
|
|
|
17445 |
}
|
|
|
17446 |
|
|
|
17447 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
17448 |
try {
|
|
|
17449 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
17450 |
} catch (org.apache.thrift.TException te) {
|
|
|
17451 |
throw new java.io.IOException(te);
|
|
|
17452 |
}
|
|
|
17453 |
}
|
|
|
17454 |
|
|
|
17455 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
17456 |
try {
|
|
|
17457 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
17458 |
} catch (org.apache.thrift.TException te) {
|
|
|
17459 |
throw new java.io.IOException(te);
|
|
|
17460 |
}
|
|
|
17461 |
}
|
|
|
17462 |
|
|
|
17463 |
}
|
|
|
17464 |
|
|
|
17465 |
public static class getCurrentNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_result, getCurrentNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
17466 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_result");
|
|
|
17467 |
|
|
|
17468 |
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);
|
|
|
17469 |
|
|
|
17470 |
private List<InventoryAvailability> success; // required
|
|
|
17471 |
|
|
|
17472 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
17473 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
17474 |
SUCCESS((short)0, "success");
|
|
|
17475 |
|
|
|
17476 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
17477 |
|
|
|
17478 |
static {
|
|
|
17479 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
17480 |
byName.put(field.getFieldName(), field);
|
|
|
17481 |
}
|
|
|
17482 |
}
|
|
|
17483 |
|
|
|
17484 |
/**
|
|
|
17485 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
17486 |
*/
|
|
|
17487 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
17488 |
switch(fieldId) {
|
|
|
17489 |
case 0: // SUCCESS
|
|
|
17490 |
return SUCCESS;
|
|
|
17491 |
default:
|
|
|
17492 |
return null;
|
|
|
17493 |
}
|
|
|
17494 |
}
|
|
|
17495 |
|
|
|
17496 |
/**
|
|
|
17497 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
17498 |
* if it is not found.
|
|
|
17499 |
*/
|
|
|
17500 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
17501 |
_Fields fields = findByThriftId(fieldId);
|
|
|
17502 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
17503 |
return fields;
|
|
|
17504 |
}
|
|
|
17505 |
|
|
|
17506 |
/**
|
|
|
17507 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
17508 |
*/
|
|
|
17509 |
public static _Fields findByName(String name) {
|
|
|
17510 |
return byName.get(name);
|
|
|
17511 |
}
|
|
|
17512 |
|
|
|
17513 |
private final short _thriftId;
|
|
|
17514 |
private final String _fieldName;
|
|
|
17515 |
|
|
|
17516 |
_Fields(short thriftId, String fieldName) {
|
|
|
17517 |
_thriftId = thriftId;
|
|
|
17518 |
_fieldName = fieldName;
|
|
|
17519 |
}
|
|
|
17520 |
|
|
|
17521 |
public short getThriftFieldId() {
|
|
|
17522 |
return _thriftId;
|
|
|
17523 |
}
|
|
|
17524 |
|
|
|
17525 |
public String getFieldName() {
|
|
|
17526 |
return _fieldName;
|
|
|
17527 |
}
|
|
|
17528 |
}
|
|
|
17529 |
|
|
|
17530 |
// isset id assignments
|
|
|
17531 |
|
|
|
17532 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
17533 |
static {
|
|
|
17534 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
17535 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
17536 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
17537 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
|
|
|
17538 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
17539 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
17540 |
}
|
|
|
17541 |
|
|
|
17542 |
public getCurrentNonSerializedInventoryByScans_result() {
|
|
|
17543 |
}
|
|
|
17544 |
|
|
|
17545 |
public getCurrentNonSerializedInventoryByScans_result(
|
|
|
17546 |
List<InventoryAvailability> success)
|
|
|
17547 |
{
|
|
|
17548 |
this();
|
|
|
17549 |
this.success = success;
|
|
|
17550 |
}
|
|
|
17551 |
|
|
|
17552 |
/**
|
|
|
17553 |
* Performs a deep copy on <i>other</i>.
|
|
|
17554 |
*/
|
|
|
17555 |
public getCurrentNonSerializedInventoryByScans_result(getCurrentNonSerializedInventoryByScans_result other) {
|
|
|
17556 |
if (other.isSetSuccess()) {
|
|
|
17557 |
List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
|
|
|
17558 |
for (InventoryAvailability other_element : other.success) {
|
|
|
17559 |
__this__success.add(new InventoryAvailability(other_element));
|
|
|
17560 |
}
|
|
|
17561 |
this.success = __this__success;
|
|
|
17562 |
}
|
|
|
17563 |
}
|
|
|
17564 |
|
|
|
17565 |
public getCurrentNonSerializedInventoryByScans_result deepCopy() {
|
|
|
17566 |
return new getCurrentNonSerializedInventoryByScans_result(this);
|
|
|
17567 |
}
|
|
|
17568 |
|
|
|
17569 |
@Override
|
|
|
17570 |
public void clear() {
|
|
|
17571 |
this.success = null;
|
|
|
17572 |
}
|
|
|
17573 |
|
|
|
17574 |
public int getSuccessSize() {
|
|
|
17575 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
17576 |
}
|
|
|
17577 |
|
|
|
17578 |
public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
|
|
|
17579 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
17580 |
}
|
|
|
17581 |
|
|
|
17582 |
public void addToSuccess(InventoryAvailability elem) {
|
|
|
17583 |
if (this.success == null) {
|
|
|
17584 |
this.success = new ArrayList<InventoryAvailability>();
|
|
|
17585 |
}
|
|
|
17586 |
this.success.add(elem);
|
|
|
17587 |
}
|
|
|
17588 |
|
|
|
17589 |
public List<InventoryAvailability> getSuccess() {
|
|
|
17590 |
return this.success;
|
|
|
17591 |
}
|
|
|
17592 |
|
|
|
17593 |
public void setSuccess(List<InventoryAvailability> success) {
|
|
|
17594 |
this.success = success;
|
|
|
17595 |
}
|
|
|
17596 |
|
|
|
17597 |
public void unsetSuccess() {
|
|
|
17598 |
this.success = null;
|
|
|
17599 |
}
|
|
|
17600 |
|
|
|
17601 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
17602 |
public boolean isSetSuccess() {
|
|
|
17603 |
return this.success != null;
|
|
|
17604 |
}
|
|
|
17605 |
|
|
|
17606 |
public void setSuccessIsSet(boolean value) {
|
|
|
17607 |
if (!value) {
|
|
|
17608 |
this.success = null;
|
|
|
17609 |
}
|
|
|
17610 |
}
|
|
|
17611 |
|
|
|
17612 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
17613 |
switch (field) {
|
|
|
17614 |
case SUCCESS:
|
|
|
17615 |
if (value == null) {
|
|
|
17616 |
unsetSuccess();
|
|
|
17617 |
} else {
|
|
|
17618 |
setSuccess((List<InventoryAvailability>)value);
|
|
|
17619 |
}
|
|
|
17620 |
break;
|
|
|
17621 |
|
|
|
17622 |
}
|
|
|
17623 |
}
|
|
|
17624 |
|
|
|
17625 |
public Object getFieldValue(_Fields field) {
|
|
|
17626 |
switch (field) {
|
|
|
17627 |
case SUCCESS:
|
|
|
17628 |
return getSuccess();
|
|
|
17629 |
|
|
|
17630 |
}
|
|
|
17631 |
throw new IllegalStateException();
|
|
|
17632 |
}
|
|
|
17633 |
|
|
|
17634 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
17635 |
public boolean isSet(_Fields field) {
|
|
|
17636 |
if (field == null) {
|
|
|
17637 |
throw new IllegalArgumentException();
|
|
|
17638 |
}
|
|
|
17639 |
|
|
|
17640 |
switch (field) {
|
|
|
17641 |
case SUCCESS:
|
|
|
17642 |
return isSetSuccess();
|
|
|
17643 |
}
|
|
|
17644 |
throw new IllegalStateException();
|
|
|
17645 |
}
|
|
|
17646 |
|
|
|
17647 |
@Override
|
|
|
17648 |
public boolean equals(Object that) {
|
|
|
17649 |
if (that == null)
|
|
|
17650 |
return false;
|
|
|
17651 |
if (that instanceof getCurrentNonSerializedInventoryByScans_result)
|
|
|
17652 |
return this.equals((getCurrentNonSerializedInventoryByScans_result)that);
|
|
|
17653 |
return false;
|
|
|
17654 |
}
|
|
|
17655 |
|
|
|
17656 |
public boolean equals(getCurrentNonSerializedInventoryByScans_result that) {
|
|
|
17657 |
if (that == null)
|
|
|
17658 |
return false;
|
|
|
17659 |
|
|
|
17660 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
17661 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
17662 |
if (this_present_success || that_present_success) {
|
|
|
17663 |
if (!(this_present_success && that_present_success))
|
|
|
17664 |
return false;
|
|
|
17665 |
if (!this.success.equals(that.success))
|
|
|
17666 |
return false;
|
|
|
17667 |
}
|
|
|
17668 |
|
|
|
17669 |
return true;
|
|
|
17670 |
}
|
|
|
17671 |
|
|
|
17672 |
@Override
|
|
|
17673 |
public int hashCode() {
|
|
|
17674 |
return 0;
|
|
|
17675 |
}
|
|
|
17676 |
|
|
|
17677 |
public int compareTo(getCurrentNonSerializedInventoryByScans_result other) {
|
|
|
17678 |
if (!getClass().equals(other.getClass())) {
|
|
|
17679 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
17680 |
}
|
|
|
17681 |
|
|
|
17682 |
int lastComparison = 0;
|
|
|
17683 |
getCurrentNonSerializedInventoryByScans_result typedOther = (getCurrentNonSerializedInventoryByScans_result)other;
|
|
|
17684 |
|
|
|
17685 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
17686 |
if (lastComparison != 0) {
|
|
|
17687 |
return lastComparison;
|
|
|
17688 |
}
|
|
|
17689 |
if (isSetSuccess()) {
|
|
|
17690 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
17691 |
if (lastComparison != 0) {
|
|
|
17692 |
return lastComparison;
|
|
|
17693 |
}
|
|
|
17694 |
}
|
|
|
17695 |
return 0;
|
|
|
17696 |
}
|
|
|
17697 |
|
|
|
17698 |
public _Fields fieldForId(int fieldId) {
|
|
|
17699 |
return _Fields.findByThriftId(fieldId);
|
|
|
17700 |
}
|
|
|
17701 |
|
|
|
17702 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
17703 |
org.apache.thrift.protocol.TField field;
|
|
|
17704 |
iprot.readStructBegin();
|
|
|
17705 |
while (true)
|
|
|
17706 |
{
|
|
|
17707 |
field = iprot.readFieldBegin();
|
|
|
17708 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
17709 |
break;
|
|
|
17710 |
}
|
|
|
17711 |
switch (field.id) {
|
|
|
17712 |
case 0: // SUCCESS
|
|
|
17713 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
17714 |
{
|
| 7210 |
amar.kumar |
17715 |
org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
|
|
|
17716 |
this.success = new ArrayList<InventoryAvailability>(_list48.size);
|
|
|
17717 |
for (int _i49 = 0; _i49 < _list48.size; ++_i49)
|
| 6630 |
amar.kumar |
17718 |
{
|
| 7210 |
amar.kumar |
17719 |
InventoryAvailability _elem50; // required
|
|
|
17720 |
_elem50 = new InventoryAvailability();
|
|
|
17721 |
_elem50.read(iprot);
|
|
|
17722 |
this.success.add(_elem50);
|
| 6630 |
amar.kumar |
17723 |
}
|
|
|
17724 |
iprot.readListEnd();
|
|
|
17725 |
}
|
|
|
17726 |
} else {
|
|
|
17727 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17728 |
}
|
|
|
17729 |
break;
|
|
|
17730 |
default:
|
|
|
17731 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17732 |
}
|
|
|
17733 |
iprot.readFieldEnd();
|
|
|
17734 |
}
|
|
|
17735 |
iprot.readStructEnd();
|
|
|
17736 |
validate();
|
|
|
17737 |
}
|
|
|
17738 |
|
|
|
17739 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
17740 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
17741 |
|
|
|
17742 |
if (this.isSetSuccess()) {
|
|
|
17743 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
17744 |
{
|
|
|
17745 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 7210 |
amar.kumar |
17746 |
for (InventoryAvailability _iter51 : this.success)
|
| 6630 |
amar.kumar |
17747 |
{
|
| 7210 |
amar.kumar |
17748 |
_iter51.write(oprot);
|
| 6630 |
amar.kumar |
17749 |
}
|
|
|
17750 |
oprot.writeListEnd();
|
|
|
17751 |
}
|
|
|
17752 |
oprot.writeFieldEnd();
|
|
|
17753 |
}
|
|
|
17754 |
oprot.writeFieldStop();
|
|
|
17755 |
oprot.writeStructEnd();
|
|
|
17756 |
}
|
|
|
17757 |
|
|
|
17758 |
@Override
|
|
|
17759 |
public String toString() {
|
|
|
17760 |
StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_result(");
|
|
|
17761 |
boolean first = true;
|
|
|
17762 |
|
|
|
17763 |
sb.append("success:");
|
|
|
17764 |
if (this.success == null) {
|
|
|
17765 |
sb.append("null");
|
|
|
17766 |
} else {
|
|
|
17767 |
sb.append(this.success);
|
|
|
17768 |
}
|
|
|
17769 |
first = false;
|
|
|
17770 |
sb.append(")");
|
|
|
17771 |
return sb.toString();
|
|
|
17772 |
}
|
|
|
17773 |
|
|
|
17774 |
public void validate() throws org.apache.thrift.TException {
|
|
|
17775 |
// check for required fields
|
|
|
17776 |
}
|
|
|
17777 |
|
|
|
17778 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
17779 |
try {
|
|
|
17780 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
17781 |
} catch (org.apache.thrift.TException te) {
|
|
|
17782 |
throw new java.io.IOException(te);
|
|
|
17783 |
}
|
|
|
17784 |
}
|
|
|
17785 |
|
|
|
17786 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
17787 |
try {
|
|
|
17788 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
17789 |
} catch (org.apache.thrift.TException te) {
|
|
|
17790 |
throw new java.io.IOException(te);
|
|
|
17791 |
}
|
|
|
17792 |
}
|
|
|
17793 |
|
|
|
17794 |
}
|
|
|
17795 |
|
| 6762 |
amar.kumar |
17796 |
public static class getHistoricSerializedInventoryByScans_args implements org.apache.thrift.TBase<getHistoricSerializedInventoryByScans_args, getHistoricSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
17797 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricSerializedInventoryByScans_args");
|
|
|
17798 |
|
|
|
17799 |
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);
|
|
|
17800 |
|
|
|
17801 |
private long date; // required
|
|
|
17802 |
|
|
|
17803 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
17804 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
17805 |
DATE((short)1, "date");
|
|
|
17806 |
|
|
|
17807 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
17808 |
|
|
|
17809 |
static {
|
|
|
17810 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
17811 |
byName.put(field.getFieldName(), field);
|
|
|
17812 |
}
|
|
|
17813 |
}
|
|
|
17814 |
|
|
|
17815 |
/**
|
|
|
17816 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
17817 |
*/
|
|
|
17818 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
17819 |
switch(fieldId) {
|
|
|
17820 |
case 1: // DATE
|
|
|
17821 |
return DATE;
|
|
|
17822 |
default:
|
|
|
17823 |
return null;
|
|
|
17824 |
}
|
|
|
17825 |
}
|
|
|
17826 |
|
|
|
17827 |
/**
|
|
|
17828 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
17829 |
* if it is not found.
|
|
|
17830 |
*/
|
|
|
17831 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
17832 |
_Fields fields = findByThriftId(fieldId);
|
|
|
17833 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
17834 |
return fields;
|
|
|
17835 |
}
|
|
|
17836 |
|
|
|
17837 |
/**
|
|
|
17838 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
17839 |
*/
|
|
|
17840 |
public static _Fields findByName(String name) {
|
|
|
17841 |
return byName.get(name);
|
|
|
17842 |
}
|
|
|
17843 |
|
|
|
17844 |
private final short _thriftId;
|
|
|
17845 |
private final String _fieldName;
|
|
|
17846 |
|
|
|
17847 |
_Fields(short thriftId, String fieldName) {
|
|
|
17848 |
_thriftId = thriftId;
|
|
|
17849 |
_fieldName = fieldName;
|
|
|
17850 |
}
|
|
|
17851 |
|
|
|
17852 |
public short getThriftFieldId() {
|
|
|
17853 |
return _thriftId;
|
|
|
17854 |
}
|
|
|
17855 |
|
|
|
17856 |
public String getFieldName() {
|
|
|
17857 |
return _fieldName;
|
|
|
17858 |
}
|
|
|
17859 |
}
|
|
|
17860 |
|
|
|
17861 |
// isset id assignments
|
|
|
17862 |
private static final int __DATE_ISSET_ID = 0;
|
|
|
17863 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
17864 |
|
|
|
17865 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
17866 |
static {
|
|
|
17867 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
17868 |
tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
17869 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
17870 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
17871 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
17872 |
}
|
|
|
17873 |
|
|
|
17874 |
public getHistoricSerializedInventoryByScans_args() {
|
|
|
17875 |
}
|
|
|
17876 |
|
|
|
17877 |
public getHistoricSerializedInventoryByScans_args(
|
|
|
17878 |
long date)
|
|
|
17879 |
{
|
|
|
17880 |
this();
|
|
|
17881 |
this.date = date;
|
|
|
17882 |
setDateIsSet(true);
|
|
|
17883 |
}
|
|
|
17884 |
|
|
|
17885 |
/**
|
|
|
17886 |
* Performs a deep copy on <i>other</i>.
|
|
|
17887 |
*/
|
|
|
17888 |
public getHistoricSerializedInventoryByScans_args(getHistoricSerializedInventoryByScans_args other) {
|
|
|
17889 |
__isset_bit_vector.clear();
|
|
|
17890 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
17891 |
this.date = other.date;
|
|
|
17892 |
}
|
|
|
17893 |
|
|
|
17894 |
public getHistoricSerializedInventoryByScans_args deepCopy() {
|
|
|
17895 |
return new getHistoricSerializedInventoryByScans_args(this);
|
|
|
17896 |
}
|
|
|
17897 |
|
|
|
17898 |
@Override
|
|
|
17899 |
public void clear() {
|
|
|
17900 |
setDateIsSet(false);
|
|
|
17901 |
this.date = 0;
|
|
|
17902 |
}
|
|
|
17903 |
|
|
|
17904 |
public long getDate() {
|
|
|
17905 |
return this.date;
|
|
|
17906 |
}
|
|
|
17907 |
|
|
|
17908 |
public void setDate(long date) {
|
|
|
17909 |
this.date = date;
|
|
|
17910 |
setDateIsSet(true);
|
|
|
17911 |
}
|
|
|
17912 |
|
|
|
17913 |
public void unsetDate() {
|
|
|
17914 |
__isset_bit_vector.clear(__DATE_ISSET_ID);
|
|
|
17915 |
}
|
|
|
17916 |
|
|
|
17917 |
/** Returns true if field date is set (has been assigned a value) and false otherwise */
|
|
|
17918 |
public boolean isSetDate() {
|
|
|
17919 |
return __isset_bit_vector.get(__DATE_ISSET_ID);
|
|
|
17920 |
}
|
|
|
17921 |
|
|
|
17922 |
public void setDateIsSet(boolean value) {
|
|
|
17923 |
__isset_bit_vector.set(__DATE_ISSET_ID, value);
|
|
|
17924 |
}
|
|
|
17925 |
|
|
|
17926 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
17927 |
switch (field) {
|
|
|
17928 |
case DATE:
|
|
|
17929 |
if (value == null) {
|
|
|
17930 |
unsetDate();
|
|
|
17931 |
} else {
|
|
|
17932 |
setDate((Long)value);
|
|
|
17933 |
}
|
|
|
17934 |
break;
|
|
|
17935 |
|
|
|
17936 |
}
|
|
|
17937 |
}
|
|
|
17938 |
|
|
|
17939 |
public Object getFieldValue(_Fields field) {
|
|
|
17940 |
switch (field) {
|
|
|
17941 |
case DATE:
|
|
|
17942 |
return Long.valueOf(getDate());
|
|
|
17943 |
|
|
|
17944 |
}
|
|
|
17945 |
throw new IllegalStateException();
|
|
|
17946 |
}
|
|
|
17947 |
|
|
|
17948 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
17949 |
public boolean isSet(_Fields field) {
|
|
|
17950 |
if (field == null) {
|
|
|
17951 |
throw new IllegalArgumentException();
|
|
|
17952 |
}
|
|
|
17953 |
|
|
|
17954 |
switch (field) {
|
|
|
17955 |
case DATE:
|
|
|
17956 |
return isSetDate();
|
|
|
17957 |
}
|
|
|
17958 |
throw new IllegalStateException();
|
|
|
17959 |
}
|
|
|
17960 |
|
|
|
17961 |
@Override
|
|
|
17962 |
public boolean equals(Object that) {
|
|
|
17963 |
if (that == null)
|
|
|
17964 |
return false;
|
|
|
17965 |
if (that instanceof getHistoricSerializedInventoryByScans_args)
|
|
|
17966 |
return this.equals((getHistoricSerializedInventoryByScans_args)that);
|
|
|
17967 |
return false;
|
|
|
17968 |
}
|
|
|
17969 |
|
|
|
17970 |
public boolean equals(getHistoricSerializedInventoryByScans_args that) {
|
|
|
17971 |
if (that == null)
|
|
|
17972 |
return false;
|
|
|
17973 |
|
|
|
17974 |
boolean this_present_date = true;
|
|
|
17975 |
boolean that_present_date = true;
|
|
|
17976 |
if (this_present_date || that_present_date) {
|
|
|
17977 |
if (!(this_present_date && that_present_date))
|
|
|
17978 |
return false;
|
|
|
17979 |
if (this.date != that.date)
|
|
|
17980 |
return false;
|
|
|
17981 |
}
|
|
|
17982 |
|
|
|
17983 |
return true;
|
|
|
17984 |
}
|
|
|
17985 |
|
|
|
17986 |
@Override
|
|
|
17987 |
public int hashCode() {
|
|
|
17988 |
return 0;
|
|
|
17989 |
}
|
|
|
17990 |
|
|
|
17991 |
public int compareTo(getHistoricSerializedInventoryByScans_args other) {
|
|
|
17992 |
if (!getClass().equals(other.getClass())) {
|
|
|
17993 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
17994 |
}
|
|
|
17995 |
|
|
|
17996 |
int lastComparison = 0;
|
|
|
17997 |
getHistoricSerializedInventoryByScans_args typedOther = (getHistoricSerializedInventoryByScans_args)other;
|
|
|
17998 |
|
|
|
17999 |
lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
|
|
|
18000 |
if (lastComparison != 0) {
|
|
|
18001 |
return lastComparison;
|
|
|
18002 |
}
|
|
|
18003 |
if (isSetDate()) {
|
|
|
18004 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
|
|
|
18005 |
if (lastComparison != 0) {
|
|
|
18006 |
return lastComparison;
|
|
|
18007 |
}
|
|
|
18008 |
}
|
|
|
18009 |
return 0;
|
|
|
18010 |
}
|
|
|
18011 |
|
|
|
18012 |
public _Fields fieldForId(int fieldId) {
|
|
|
18013 |
return _Fields.findByThriftId(fieldId);
|
|
|
18014 |
}
|
|
|
18015 |
|
|
|
18016 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
18017 |
org.apache.thrift.protocol.TField field;
|
|
|
18018 |
iprot.readStructBegin();
|
|
|
18019 |
while (true)
|
|
|
18020 |
{
|
|
|
18021 |
field = iprot.readFieldBegin();
|
|
|
18022 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
18023 |
break;
|
|
|
18024 |
}
|
|
|
18025 |
switch (field.id) {
|
|
|
18026 |
case 1: // DATE
|
|
|
18027 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
18028 |
this.date = iprot.readI64();
|
|
|
18029 |
setDateIsSet(true);
|
|
|
18030 |
} else {
|
|
|
18031 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18032 |
}
|
|
|
18033 |
break;
|
|
|
18034 |
default:
|
|
|
18035 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18036 |
}
|
|
|
18037 |
iprot.readFieldEnd();
|
|
|
18038 |
}
|
|
|
18039 |
iprot.readStructEnd();
|
|
|
18040 |
validate();
|
|
|
18041 |
}
|
|
|
18042 |
|
|
|
18043 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
18044 |
validate();
|
|
|
18045 |
|
|
|
18046 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
18047 |
oprot.writeFieldBegin(DATE_FIELD_DESC);
|
|
|
18048 |
oprot.writeI64(this.date);
|
|
|
18049 |
oprot.writeFieldEnd();
|
|
|
18050 |
oprot.writeFieldStop();
|
|
|
18051 |
oprot.writeStructEnd();
|
|
|
18052 |
}
|
|
|
18053 |
|
|
|
18054 |
@Override
|
|
|
18055 |
public String toString() {
|
|
|
18056 |
StringBuilder sb = new StringBuilder("getHistoricSerializedInventoryByScans_args(");
|
|
|
18057 |
boolean first = true;
|
|
|
18058 |
|
|
|
18059 |
sb.append("date:");
|
|
|
18060 |
sb.append(this.date);
|
|
|
18061 |
first = false;
|
|
|
18062 |
sb.append(")");
|
|
|
18063 |
return sb.toString();
|
|
|
18064 |
}
|
|
|
18065 |
|
|
|
18066 |
public void validate() throws org.apache.thrift.TException {
|
|
|
18067 |
// check for required fields
|
|
|
18068 |
}
|
|
|
18069 |
|
|
|
18070 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
18071 |
try {
|
|
|
18072 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
18073 |
} catch (org.apache.thrift.TException te) {
|
|
|
18074 |
throw new java.io.IOException(te);
|
|
|
18075 |
}
|
|
|
18076 |
}
|
|
|
18077 |
|
|
|
18078 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
18079 |
try {
|
|
|
18080 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
18081 |
} catch (org.apache.thrift.TException te) {
|
|
|
18082 |
throw new java.io.IOException(te);
|
|
|
18083 |
}
|
|
|
18084 |
}
|
|
|
18085 |
|
|
|
18086 |
}
|
|
|
18087 |
|
|
|
18088 |
public static class getHistoricSerializedInventoryByScans_result implements org.apache.thrift.TBase<getHistoricSerializedInventoryByScans_result, getHistoricSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
18089 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricSerializedInventoryByScans_result");
|
|
|
18090 |
|
|
|
18091 |
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);
|
|
|
18092 |
|
|
|
18093 |
private List<InventoryAvailability> success; // required
|
|
|
18094 |
|
|
|
18095 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
18096 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
18097 |
SUCCESS((short)0, "success");
|
|
|
18098 |
|
|
|
18099 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
18100 |
|
|
|
18101 |
static {
|
|
|
18102 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
18103 |
byName.put(field.getFieldName(), field);
|
|
|
18104 |
}
|
|
|
18105 |
}
|
|
|
18106 |
|
|
|
18107 |
/**
|
|
|
18108 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
18109 |
*/
|
|
|
18110 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
18111 |
switch(fieldId) {
|
|
|
18112 |
case 0: // SUCCESS
|
|
|
18113 |
return SUCCESS;
|
|
|
18114 |
default:
|
|
|
18115 |
return null;
|
|
|
18116 |
}
|
|
|
18117 |
}
|
|
|
18118 |
|
|
|
18119 |
/**
|
|
|
18120 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
18121 |
* if it is not found.
|
|
|
18122 |
*/
|
|
|
18123 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
18124 |
_Fields fields = findByThriftId(fieldId);
|
|
|
18125 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
18126 |
return fields;
|
|
|
18127 |
}
|
|
|
18128 |
|
|
|
18129 |
/**
|
|
|
18130 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
18131 |
*/
|
|
|
18132 |
public static _Fields findByName(String name) {
|
|
|
18133 |
return byName.get(name);
|
|
|
18134 |
}
|
|
|
18135 |
|
|
|
18136 |
private final short _thriftId;
|
|
|
18137 |
private final String _fieldName;
|
|
|
18138 |
|
|
|
18139 |
_Fields(short thriftId, String fieldName) {
|
|
|
18140 |
_thriftId = thriftId;
|
|
|
18141 |
_fieldName = fieldName;
|
|
|
18142 |
}
|
|
|
18143 |
|
|
|
18144 |
public short getThriftFieldId() {
|
|
|
18145 |
return _thriftId;
|
|
|
18146 |
}
|
|
|
18147 |
|
|
|
18148 |
public String getFieldName() {
|
|
|
18149 |
return _fieldName;
|
|
|
18150 |
}
|
|
|
18151 |
}
|
|
|
18152 |
|
|
|
18153 |
// isset id assignments
|
|
|
18154 |
|
|
|
18155 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
18156 |
static {
|
|
|
18157 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
18158 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
18159 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
18160 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
|
|
|
18161 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
18162 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
18163 |
}
|
|
|
18164 |
|
|
|
18165 |
public getHistoricSerializedInventoryByScans_result() {
|
|
|
18166 |
}
|
|
|
18167 |
|
|
|
18168 |
public getHistoricSerializedInventoryByScans_result(
|
|
|
18169 |
List<InventoryAvailability> success)
|
|
|
18170 |
{
|
|
|
18171 |
this();
|
|
|
18172 |
this.success = success;
|
|
|
18173 |
}
|
|
|
18174 |
|
|
|
18175 |
/**
|
|
|
18176 |
* Performs a deep copy on <i>other</i>.
|
|
|
18177 |
*/
|
|
|
18178 |
public getHistoricSerializedInventoryByScans_result(getHistoricSerializedInventoryByScans_result other) {
|
|
|
18179 |
if (other.isSetSuccess()) {
|
|
|
18180 |
List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
|
|
|
18181 |
for (InventoryAvailability other_element : other.success) {
|
|
|
18182 |
__this__success.add(new InventoryAvailability(other_element));
|
|
|
18183 |
}
|
|
|
18184 |
this.success = __this__success;
|
|
|
18185 |
}
|
|
|
18186 |
}
|
|
|
18187 |
|
|
|
18188 |
public getHistoricSerializedInventoryByScans_result deepCopy() {
|
|
|
18189 |
return new getHistoricSerializedInventoryByScans_result(this);
|
|
|
18190 |
}
|
|
|
18191 |
|
|
|
18192 |
@Override
|
|
|
18193 |
public void clear() {
|
|
|
18194 |
this.success = null;
|
|
|
18195 |
}
|
|
|
18196 |
|
|
|
18197 |
public int getSuccessSize() {
|
|
|
18198 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
18199 |
}
|
|
|
18200 |
|
|
|
18201 |
public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
|
|
|
18202 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
18203 |
}
|
|
|
18204 |
|
|
|
18205 |
public void addToSuccess(InventoryAvailability elem) {
|
|
|
18206 |
if (this.success == null) {
|
|
|
18207 |
this.success = new ArrayList<InventoryAvailability>();
|
|
|
18208 |
}
|
|
|
18209 |
this.success.add(elem);
|
|
|
18210 |
}
|
|
|
18211 |
|
|
|
18212 |
public List<InventoryAvailability> getSuccess() {
|
|
|
18213 |
return this.success;
|
|
|
18214 |
}
|
|
|
18215 |
|
|
|
18216 |
public void setSuccess(List<InventoryAvailability> success) {
|
|
|
18217 |
this.success = success;
|
|
|
18218 |
}
|
|
|
18219 |
|
|
|
18220 |
public void unsetSuccess() {
|
|
|
18221 |
this.success = null;
|
|
|
18222 |
}
|
|
|
18223 |
|
|
|
18224 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
18225 |
public boolean isSetSuccess() {
|
|
|
18226 |
return this.success != null;
|
|
|
18227 |
}
|
|
|
18228 |
|
|
|
18229 |
public void setSuccessIsSet(boolean value) {
|
|
|
18230 |
if (!value) {
|
|
|
18231 |
this.success = null;
|
|
|
18232 |
}
|
|
|
18233 |
}
|
|
|
18234 |
|
|
|
18235 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
18236 |
switch (field) {
|
|
|
18237 |
case SUCCESS:
|
|
|
18238 |
if (value == null) {
|
|
|
18239 |
unsetSuccess();
|
|
|
18240 |
} else {
|
|
|
18241 |
setSuccess((List<InventoryAvailability>)value);
|
|
|
18242 |
}
|
|
|
18243 |
break;
|
|
|
18244 |
|
|
|
18245 |
}
|
|
|
18246 |
}
|
|
|
18247 |
|
|
|
18248 |
public Object getFieldValue(_Fields field) {
|
|
|
18249 |
switch (field) {
|
|
|
18250 |
case SUCCESS:
|
|
|
18251 |
return getSuccess();
|
|
|
18252 |
|
|
|
18253 |
}
|
|
|
18254 |
throw new IllegalStateException();
|
|
|
18255 |
}
|
|
|
18256 |
|
|
|
18257 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
18258 |
public boolean isSet(_Fields field) {
|
|
|
18259 |
if (field == null) {
|
|
|
18260 |
throw new IllegalArgumentException();
|
|
|
18261 |
}
|
|
|
18262 |
|
|
|
18263 |
switch (field) {
|
|
|
18264 |
case SUCCESS:
|
|
|
18265 |
return isSetSuccess();
|
|
|
18266 |
}
|
|
|
18267 |
throw new IllegalStateException();
|
|
|
18268 |
}
|
|
|
18269 |
|
|
|
18270 |
@Override
|
|
|
18271 |
public boolean equals(Object that) {
|
|
|
18272 |
if (that == null)
|
|
|
18273 |
return false;
|
|
|
18274 |
if (that instanceof getHistoricSerializedInventoryByScans_result)
|
|
|
18275 |
return this.equals((getHistoricSerializedInventoryByScans_result)that);
|
|
|
18276 |
return false;
|
|
|
18277 |
}
|
|
|
18278 |
|
|
|
18279 |
public boolean equals(getHistoricSerializedInventoryByScans_result that) {
|
|
|
18280 |
if (that == null)
|
|
|
18281 |
return false;
|
|
|
18282 |
|
|
|
18283 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
18284 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
18285 |
if (this_present_success || that_present_success) {
|
|
|
18286 |
if (!(this_present_success && that_present_success))
|
|
|
18287 |
return false;
|
|
|
18288 |
if (!this.success.equals(that.success))
|
|
|
18289 |
return false;
|
|
|
18290 |
}
|
|
|
18291 |
|
|
|
18292 |
return true;
|
|
|
18293 |
}
|
|
|
18294 |
|
|
|
18295 |
@Override
|
|
|
18296 |
public int hashCode() {
|
|
|
18297 |
return 0;
|
|
|
18298 |
}
|
|
|
18299 |
|
|
|
18300 |
public int compareTo(getHistoricSerializedInventoryByScans_result other) {
|
|
|
18301 |
if (!getClass().equals(other.getClass())) {
|
|
|
18302 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
18303 |
}
|
|
|
18304 |
|
|
|
18305 |
int lastComparison = 0;
|
|
|
18306 |
getHistoricSerializedInventoryByScans_result typedOther = (getHistoricSerializedInventoryByScans_result)other;
|
|
|
18307 |
|
|
|
18308 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
18309 |
if (lastComparison != 0) {
|
|
|
18310 |
return lastComparison;
|
|
|
18311 |
}
|
|
|
18312 |
if (isSetSuccess()) {
|
|
|
18313 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
18314 |
if (lastComparison != 0) {
|
|
|
18315 |
return lastComparison;
|
|
|
18316 |
}
|
|
|
18317 |
}
|
|
|
18318 |
return 0;
|
|
|
18319 |
}
|
|
|
18320 |
|
|
|
18321 |
public _Fields fieldForId(int fieldId) {
|
|
|
18322 |
return _Fields.findByThriftId(fieldId);
|
|
|
18323 |
}
|
|
|
18324 |
|
|
|
18325 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
18326 |
org.apache.thrift.protocol.TField field;
|
|
|
18327 |
iprot.readStructBegin();
|
|
|
18328 |
while (true)
|
|
|
18329 |
{
|
|
|
18330 |
field = iprot.readFieldBegin();
|
|
|
18331 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
18332 |
break;
|
|
|
18333 |
}
|
|
|
18334 |
switch (field.id) {
|
|
|
18335 |
case 0: // SUCCESS
|
|
|
18336 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
18337 |
{
|
| 7210 |
amar.kumar |
18338 |
org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
|
|
|
18339 |
this.success = new ArrayList<InventoryAvailability>(_list52.size);
|
|
|
18340 |
for (int _i53 = 0; _i53 < _list52.size; ++_i53)
|
| 6762 |
amar.kumar |
18341 |
{
|
| 7210 |
amar.kumar |
18342 |
InventoryAvailability _elem54; // required
|
|
|
18343 |
_elem54 = new InventoryAvailability();
|
|
|
18344 |
_elem54.read(iprot);
|
|
|
18345 |
this.success.add(_elem54);
|
| 6762 |
amar.kumar |
18346 |
}
|
|
|
18347 |
iprot.readListEnd();
|
|
|
18348 |
}
|
|
|
18349 |
} else {
|
|
|
18350 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18351 |
}
|
|
|
18352 |
break;
|
|
|
18353 |
default:
|
|
|
18354 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18355 |
}
|
|
|
18356 |
iprot.readFieldEnd();
|
|
|
18357 |
}
|
|
|
18358 |
iprot.readStructEnd();
|
|
|
18359 |
validate();
|
|
|
18360 |
}
|
|
|
18361 |
|
|
|
18362 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
18363 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
18364 |
|
|
|
18365 |
if (this.isSetSuccess()) {
|
|
|
18366 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
18367 |
{
|
|
|
18368 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 7210 |
amar.kumar |
18369 |
for (InventoryAvailability _iter55 : this.success)
|
| 6762 |
amar.kumar |
18370 |
{
|
| 7210 |
amar.kumar |
18371 |
_iter55.write(oprot);
|
| 6762 |
amar.kumar |
18372 |
}
|
|
|
18373 |
oprot.writeListEnd();
|
|
|
18374 |
}
|
|
|
18375 |
oprot.writeFieldEnd();
|
|
|
18376 |
}
|
|
|
18377 |
oprot.writeFieldStop();
|
|
|
18378 |
oprot.writeStructEnd();
|
|
|
18379 |
}
|
|
|
18380 |
|
|
|
18381 |
@Override
|
|
|
18382 |
public String toString() {
|
|
|
18383 |
StringBuilder sb = new StringBuilder("getHistoricSerializedInventoryByScans_result(");
|
|
|
18384 |
boolean first = true;
|
|
|
18385 |
|
|
|
18386 |
sb.append("success:");
|
|
|
18387 |
if (this.success == null) {
|
|
|
18388 |
sb.append("null");
|
|
|
18389 |
} else {
|
|
|
18390 |
sb.append(this.success);
|
|
|
18391 |
}
|
|
|
18392 |
first = false;
|
|
|
18393 |
sb.append(")");
|
|
|
18394 |
return sb.toString();
|
|
|
18395 |
}
|
|
|
18396 |
|
|
|
18397 |
public void validate() throws org.apache.thrift.TException {
|
|
|
18398 |
// check for required fields
|
|
|
18399 |
}
|
|
|
18400 |
|
|
|
18401 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
18402 |
try {
|
|
|
18403 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
18404 |
} catch (org.apache.thrift.TException te) {
|
|
|
18405 |
throw new java.io.IOException(te);
|
|
|
18406 |
}
|
|
|
18407 |
}
|
|
|
18408 |
|
|
|
18409 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
18410 |
try {
|
|
|
18411 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
18412 |
} catch (org.apache.thrift.TException te) {
|
|
|
18413 |
throw new java.io.IOException(te);
|
|
|
18414 |
}
|
|
|
18415 |
}
|
|
|
18416 |
|
|
|
18417 |
}
|
|
|
18418 |
|
|
|
18419 |
public static class getHistoricNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getHistoricNonSerializedInventoryByScans_args, getHistoricNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
18420 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricNonSerializedInventoryByScans_args");
|
|
|
18421 |
|
|
|
18422 |
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);
|
|
|
18423 |
|
|
|
18424 |
private long date; // required
|
|
|
18425 |
|
|
|
18426 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
18427 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
18428 |
DATE((short)1, "date");
|
|
|
18429 |
|
|
|
18430 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
18431 |
|
|
|
18432 |
static {
|
|
|
18433 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
18434 |
byName.put(field.getFieldName(), field);
|
|
|
18435 |
}
|
|
|
18436 |
}
|
|
|
18437 |
|
|
|
18438 |
/**
|
|
|
18439 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
18440 |
*/
|
|
|
18441 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
18442 |
switch(fieldId) {
|
|
|
18443 |
case 1: // DATE
|
|
|
18444 |
return DATE;
|
|
|
18445 |
default:
|
|
|
18446 |
return null;
|
|
|
18447 |
}
|
|
|
18448 |
}
|
|
|
18449 |
|
|
|
18450 |
/**
|
|
|
18451 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
18452 |
* if it is not found.
|
|
|
18453 |
*/
|
|
|
18454 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
18455 |
_Fields fields = findByThriftId(fieldId);
|
|
|
18456 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
18457 |
return fields;
|
|
|
18458 |
}
|
|
|
18459 |
|
|
|
18460 |
/**
|
|
|
18461 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
18462 |
*/
|
|
|
18463 |
public static _Fields findByName(String name) {
|
|
|
18464 |
return byName.get(name);
|
|
|
18465 |
}
|
|
|
18466 |
|
|
|
18467 |
private final short _thriftId;
|
|
|
18468 |
private final String _fieldName;
|
|
|
18469 |
|
|
|
18470 |
_Fields(short thriftId, String fieldName) {
|
|
|
18471 |
_thriftId = thriftId;
|
|
|
18472 |
_fieldName = fieldName;
|
|
|
18473 |
}
|
|
|
18474 |
|
|
|
18475 |
public short getThriftFieldId() {
|
|
|
18476 |
return _thriftId;
|
|
|
18477 |
}
|
|
|
18478 |
|
|
|
18479 |
public String getFieldName() {
|
|
|
18480 |
return _fieldName;
|
|
|
18481 |
}
|
|
|
18482 |
}
|
|
|
18483 |
|
|
|
18484 |
// isset id assignments
|
|
|
18485 |
private static final int __DATE_ISSET_ID = 0;
|
|
|
18486 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
18487 |
|
|
|
18488 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
18489 |
static {
|
|
|
18490 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
18491 |
tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
18492 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
18493 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
18494 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricNonSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
18495 |
}
|
|
|
18496 |
|
|
|
18497 |
public getHistoricNonSerializedInventoryByScans_args() {
|
|
|
18498 |
}
|
|
|
18499 |
|
|
|
18500 |
public getHistoricNonSerializedInventoryByScans_args(
|
|
|
18501 |
long date)
|
|
|
18502 |
{
|
|
|
18503 |
this();
|
|
|
18504 |
this.date = date;
|
|
|
18505 |
setDateIsSet(true);
|
|
|
18506 |
}
|
|
|
18507 |
|
|
|
18508 |
/**
|
|
|
18509 |
* Performs a deep copy on <i>other</i>.
|
|
|
18510 |
*/
|
|
|
18511 |
public getHistoricNonSerializedInventoryByScans_args(getHistoricNonSerializedInventoryByScans_args other) {
|
|
|
18512 |
__isset_bit_vector.clear();
|
|
|
18513 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
18514 |
this.date = other.date;
|
|
|
18515 |
}
|
|
|
18516 |
|
|
|
18517 |
public getHistoricNonSerializedInventoryByScans_args deepCopy() {
|
|
|
18518 |
return new getHistoricNonSerializedInventoryByScans_args(this);
|
|
|
18519 |
}
|
|
|
18520 |
|
|
|
18521 |
@Override
|
|
|
18522 |
public void clear() {
|
|
|
18523 |
setDateIsSet(false);
|
|
|
18524 |
this.date = 0;
|
|
|
18525 |
}
|
|
|
18526 |
|
|
|
18527 |
public long getDate() {
|
|
|
18528 |
return this.date;
|
|
|
18529 |
}
|
|
|
18530 |
|
|
|
18531 |
public void setDate(long date) {
|
|
|
18532 |
this.date = date;
|
|
|
18533 |
setDateIsSet(true);
|
|
|
18534 |
}
|
|
|
18535 |
|
|
|
18536 |
public void unsetDate() {
|
|
|
18537 |
__isset_bit_vector.clear(__DATE_ISSET_ID);
|
|
|
18538 |
}
|
|
|
18539 |
|
|
|
18540 |
/** Returns true if field date is set (has been assigned a value) and false otherwise */
|
|
|
18541 |
public boolean isSetDate() {
|
|
|
18542 |
return __isset_bit_vector.get(__DATE_ISSET_ID);
|
|
|
18543 |
}
|
|
|
18544 |
|
|
|
18545 |
public void setDateIsSet(boolean value) {
|
|
|
18546 |
__isset_bit_vector.set(__DATE_ISSET_ID, value);
|
|
|
18547 |
}
|
|
|
18548 |
|
|
|
18549 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
18550 |
switch (field) {
|
|
|
18551 |
case DATE:
|
|
|
18552 |
if (value == null) {
|
|
|
18553 |
unsetDate();
|
|
|
18554 |
} else {
|
|
|
18555 |
setDate((Long)value);
|
|
|
18556 |
}
|
|
|
18557 |
break;
|
|
|
18558 |
|
|
|
18559 |
}
|
|
|
18560 |
}
|
|
|
18561 |
|
|
|
18562 |
public Object getFieldValue(_Fields field) {
|
|
|
18563 |
switch (field) {
|
|
|
18564 |
case DATE:
|
|
|
18565 |
return Long.valueOf(getDate());
|
|
|
18566 |
|
|
|
18567 |
}
|
|
|
18568 |
throw new IllegalStateException();
|
|
|
18569 |
}
|
|
|
18570 |
|
|
|
18571 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
18572 |
public boolean isSet(_Fields field) {
|
|
|
18573 |
if (field == null) {
|
|
|
18574 |
throw new IllegalArgumentException();
|
|
|
18575 |
}
|
|
|
18576 |
|
|
|
18577 |
switch (field) {
|
|
|
18578 |
case DATE:
|
|
|
18579 |
return isSetDate();
|
|
|
18580 |
}
|
|
|
18581 |
throw new IllegalStateException();
|
|
|
18582 |
}
|
|
|
18583 |
|
|
|
18584 |
@Override
|
|
|
18585 |
public boolean equals(Object that) {
|
|
|
18586 |
if (that == null)
|
|
|
18587 |
return false;
|
|
|
18588 |
if (that instanceof getHistoricNonSerializedInventoryByScans_args)
|
|
|
18589 |
return this.equals((getHistoricNonSerializedInventoryByScans_args)that);
|
|
|
18590 |
return false;
|
|
|
18591 |
}
|
|
|
18592 |
|
|
|
18593 |
public boolean equals(getHistoricNonSerializedInventoryByScans_args that) {
|
|
|
18594 |
if (that == null)
|
|
|
18595 |
return false;
|
|
|
18596 |
|
|
|
18597 |
boolean this_present_date = true;
|
|
|
18598 |
boolean that_present_date = true;
|
|
|
18599 |
if (this_present_date || that_present_date) {
|
|
|
18600 |
if (!(this_present_date && that_present_date))
|
|
|
18601 |
return false;
|
|
|
18602 |
if (this.date != that.date)
|
|
|
18603 |
return false;
|
|
|
18604 |
}
|
|
|
18605 |
|
|
|
18606 |
return true;
|
|
|
18607 |
}
|
|
|
18608 |
|
|
|
18609 |
@Override
|
|
|
18610 |
public int hashCode() {
|
|
|
18611 |
return 0;
|
|
|
18612 |
}
|
|
|
18613 |
|
|
|
18614 |
public int compareTo(getHistoricNonSerializedInventoryByScans_args other) {
|
|
|
18615 |
if (!getClass().equals(other.getClass())) {
|
|
|
18616 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
18617 |
}
|
|
|
18618 |
|
|
|
18619 |
int lastComparison = 0;
|
|
|
18620 |
getHistoricNonSerializedInventoryByScans_args typedOther = (getHistoricNonSerializedInventoryByScans_args)other;
|
|
|
18621 |
|
|
|
18622 |
lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
|
|
|
18623 |
if (lastComparison != 0) {
|
|
|
18624 |
return lastComparison;
|
|
|
18625 |
}
|
|
|
18626 |
if (isSetDate()) {
|
|
|
18627 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
|
|
|
18628 |
if (lastComparison != 0) {
|
|
|
18629 |
return lastComparison;
|
|
|
18630 |
}
|
|
|
18631 |
}
|
|
|
18632 |
return 0;
|
|
|
18633 |
}
|
|
|
18634 |
|
|
|
18635 |
public _Fields fieldForId(int fieldId) {
|
|
|
18636 |
return _Fields.findByThriftId(fieldId);
|
|
|
18637 |
}
|
|
|
18638 |
|
|
|
18639 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
18640 |
org.apache.thrift.protocol.TField field;
|
|
|
18641 |
iprot.readStructBegin();
|
|
|
18642 |
while (true)
|
|
|
18643 |
{
|
|
|
18644 |
field = iprot.readFieldBegin();
|
|
|
18645 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
18646 |
break;
|
|
|
18647 |
}
|
|
|
18648 |
switch (field.id) {
|
|
|
18649 |
case 1: // DATE
|
|
|
18650 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
18651 |
this.date = iprot.readI64();
|
|
|
18652 |
setDateIsSet(true);
|
|
|
18653 |
} else {
|
|
|
18654 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18655 |
}
|
|
|
18656 |
break;
|
|
|
18657 |
default:
|
|
|
18658 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18659 |
}
|
|
|
18660 |
iprot.readFieldEnd();
|
|
|
18661 |
}
|
|
|
18662 |
iprot.readStructEnd();
|
|
|
18663 |
validate();
|
|
|
18664 |
}
|
|
|
18665 |
|
|
|
18666 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
18667 |
validate();
|
|
|
18668 |
|
|
|
18669 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
18670 |
oprot.writeFieldBegin(DATE_FIELD_DESC);
|
|
|
18671 |
oprot.writeI64(this.date);
|
|
|
18672 |
oprot.writeFieldEnd();
|
|
|
18673 |
oprot.writeFieldStop();
|
|
|
18674 |
oprot.writeStructEnd();
|
|
|
18675 |
}
|
|
|
18676 |
|
|
|
18677 |
@Override
|
|
|
18678 |
public String toString() {
|
|
|
18679 |
StringBuilder sb = new StringBuilder("getHistoricNonSerializedInventoryByScans_args(");
|
|
|
18680 |
boolean first = true;
|
|
|
18681 |
|
|
|
18682 |
sb.append("date:");
|
|
|
18683 |
sb.append(this.date);
|
|
|
18684 |
first = false;
|
|
|
18685 |
sb.append(")");
|
|
|
18686 |
return sb.toString();
|
|
|
18687 |
}
|
|
|
18688 |
|
|
|
18689 |
public void validate() throws org.apache.thrift.TException {
|
|
|
18690 |
// check for required fields
|
|
|
18691 |
}
|
|
|
18692 |
|
|
|
18693 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
18694 |
try {
|
|
|
18695 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
18696 |
} catch (org.apache.thrift.TException te) {
|
|
|
18697 |
throw new java.io.IOException(te);
|
|
|
18698 |
}
|
|
|
18699 |
}
|
|
|
18700 |
|
|
|
18701 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
18702 |
try {
|
|
|
18703 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
18704 |
__isset_bit_vector = new BitSet(1);
|
|
|
18705 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
18706 |
} catch (org.apache.thrift.TException te) {
|
|
|
18707 |
throw new java.io.IOException(te);
|
|
|
18708 |
}
|
|
|
18709 |
}
|
|
|
18710 |
|
|
|
18711 |
}
|
|
|
18712 |
|
|
|
18713 |
public static class getHistoricNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getHistoricNonSerializedInventoryByScans_result, getHistoricNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
18714 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricNonSerializedInventoryByScans_result");
|
|
|
18715 |
|
|
|
18716 |
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);
|
|
|
18717 |
|
|
|
18718 |
private List<InventoryAvailability> success; // required
|
|
|
18719 |
|
|
|
18720 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
18721 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
18722 |
SUCCESS((short)0, "success");
|
|
|
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 |
default:
|
|
|
18740 |
return null;
|
|
|
18741 |
}
|
|
|
18742 |
}
|
|
|
18743 |
|
|
|
18744 |
/**
|
|
|
18745 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
18746 |
* if it is not found.
|
|
|
18747 |
*/
|
|
|
18748 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
18749 |
_Fields fields = findByThriftId(fieldId);
|
|
|
18750 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
18751 |
return fields;
|
|
|
18752 |
}
|
|
|
18753 |
|
|
|
18754 |
/**
|
|
|
18755 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
18756 |
*/
|
|
|
18757 |
public static _Fields findByName(String name) {
|
|
|
18758 |
return byName.get(name);
|
|
|
18759 |
}
|
|
|
18760 |
|
|
|
18761 |
private final short _thriftId;
|
|
|
18762 |
private final String _fieldName;
|
|
|
18763 |
|
|
|
18764 |
_Fields(short thriftId, String fieldName) {
|
|
|
18765 |
_thriftId = thriftId;
|
|
|
18766 |
_fieldName = fieldName;
|
|
|
18767 |
}
|
|
|
18768 |
|
|
|
18769 |
public short getThriftFieldId() {
|
|
|
18770 |
return _thriftId;
|
|
|
18771 |
}
|
|
|
18772 |
|
|
|
18773 |
public String getFieldName() {
|
|
|
18774 |
return _fieldName;
|
|
|
18775 |
}
|
|
|
18776 |
}
|
|
|
18777 |
|
|
|
18778 |
// isset id assignments
|
|
|
18779 |
|
|
|
18780 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
18781 |
static {
|
|
|
18782 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
18783 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
18784 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
18785 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
|
|
|
18786 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
18787 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricNonSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
18788 |
}
|
|
|
18789 |
|
|
|
18790 |
public getHistoricNonSerializedInventoryByScans_result() {
|
|
|
18791 |
}
|
|
|
18792 |
|
|
|
18793 |
public getHistoricNonSerializedInventoryByScans_result(
|
|
|
18794 |
List<InventoryAvailability> success)
|
|
|
18795 |
{
|
|
|
18796 |
this();
|
|
|
18797 |
this.success = success;
|
|
|
18798 |
}
|
|
|
18799 |
|
|
|
18800 |
/**
|
|
|
18801 |
* Performs a deep copy on <i>other</i>.
|
|
|
18802 |
*/
|
|
|
18803 |
public getHistoricNonSerializedInventoryByScans_result(getHistoricNonSerializedInventoryByScans_result other) {
|
|
|
18804 |
if (other.isSetSuccess()) {
|
|
|
18805 |
List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
|
|
|
18806 |
for (InventoryAvailability other_element : other.success) {
|
|
|
18807 |
__this__success.add(new InventoryAvailability(other_element));
|
|
|
18808 |
}
|
|
|
18809 |
this.success = __this__success;
|
|
|
18810 |
}
|
|
|
18811 |
}
|
|
|
18812 |
|
|
|
18813 |
public getHistoricNonSerializedInventoryByScans_result deepCopy() {
|
|
|
18814 |
return new getHistoricNonSerializedInventoryByScans_result(this);
|
|
|
18815 |
}
|
|
|
18816 |
|
|
|
18817 |
@Override
|
|
|
18818 |
public void clear() {
|
|
|
18819 |
this.success = null;
|
|
|
18820 |
}
|
|
|
18821 |
|
|
|
18822 |
public int getSuccessSize() {
|
|
|
18823 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
18824 |
}
|
|
|
18825 |
|
|
|
18826 |
public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
|
|
|
18827 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
18828 |
}
|
|
|
18829 |
|
|
|
18830 |
public void addToSuccess(InventoryAvailability elem) {
|
|
|
18831 |
if (this.success == null) {
|
|
|
18832 |
this.success = new ArrayList<InventoryAvailability>();
|
|
|
18833 |
}
|
|
|
18834 |
this.success.add(elem);
|
|
|
18835 |
}
|
|
|
18836 |
|
|
|
18837 |
public List<InventoryAvailability> getSuccess() {
|
|
|
18838 |
return this.success;
|
|
|
18839 |
}
|
|
|
18840 |
|
|
|
18841 |
public void setSuccess(List<InventoryAvailability> success) {
|
|
|
18842 |
this.success = success;
|
|
|
18843 |
}
|
|
|
18844 |
|
|
|
18845 |
public void unsetSuccess() {
|
|
|
18846 |
this.success = null;
|
|
|
18847 |
}
|
|
|
18848 |
|
|
|
18849 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
18850 |
public boolean isSetSuccess() {
|
|
|
18851 |
return this.success != null;
|
|
|
18852 |
}
|
|
|
18853 |
|
|
|
18854 |
public void setSuccessIsSet(boolean value) {
|
|
|
18855 |
if (!value) {
|
|
|
18856 |
this.success = null;
|
|
|
18857 |
}
|
|
|
18858 |
}
|
|
|
18859 |
|
|
|
18860 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
18861 |
switch (field) {
|
|
|
18862 |
case SUCCESS:
|
|
|
18863 |
if (value == null) {
|
|
|
18864 |
unsetSuccess();
|
|
|
18865 |
} else {
|
|
|
18866 |
setSuccess((List<InventoryAvailability>)value);
|
|
|
18867 |
}
|
|
|
18868 |
break;
|
|
|
18869 |
|
|
|
18870 |
}
|
|
|
18871 |
}
|
|
|
18872 |
|
|
|
18873 |
public Object getFieldValue(_Fields field) {
|
|
|
18874 |
switch (field) {
|
|
|
18875 |
case SUCCESS:
|
|
|
18876 |
return getSuccess();
|
|
|
18877 |
|
|
|
18878 |
}
|
|
|
18879 |
throw new IllegalStateException();
|
|
|
18880 |
}
|
|
|
18881 |
|
|
|
18882 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
18883 |
public boolean isSet(_Fields field) {
|
|
|
18884 |
if (field == null) {
|
|
|
18885 |
throw new IllegalArgumentException();
|
|
|
18886 |
}
|
|
|
18887 |
|
|
|
18888 |
switch (field) {
|
|
|
18889 |
case SUCCESS:
|
|
|
18890 |
return isSetSuccess();
|
|
|
18891 |
}
|
|
|
18892 |
throw new IllegalStateException();
|
|
|
18893 |
}
|
|
|
18894 |
|
|
|
18895 |
@Override
|
|
|
18896 |
public boolean equals(Object that) {
|
|
|
18897 |
if (that == null)
|
|
|
18898 |
return false;
|
|
|
18899 |
if (that instanceof getHistoricNonSerializedInventoryByScans_result)
|
|
|
18900 |
return this.equals((getHistoricNonSerializedInventoryByScans_result)that);
|
|
|
18901 |
return false;
|
|
|
18902 |
}
|
|
|
18903 |
|
|
|
18904 |
public boolean equals(getHistoricNonSerializedInventoryByScans_result that) {
|
|
|
18905 |
if (that == null)
|
|
|
18906 |
return false;
|
|
|
18907 |
|
|
|
18908 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
18909 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
18910 |
if (this_present_success || that_present_success) {
|
|
|
18911 |
if (!(this_present_success && that_present_success))
|
|
|
18912 |
return false;
|
|
|
18913 |
if (!this.success.equals(that.success))
|
|
|
18914 |
return false;
|
|
|
18915 |
}
|
|
|
18916 |
|
|
|
18917 |
return true;
|
|
|
18918 |
}
|
|
|
18919 |
|
|
|
18920 |
@Override
|
|
|
18921 |
public int hashCode() {
|
|
|
18922 |
return 0;
|
|
|
18923 |
}
|
|
|
18924 |
|
|
|
18925 |
public int compareTo(getHistoricNonSerializedInventoryByScans_result other) {
|
|
|
18926 |
if (!getClass().equals(other.getClass())) {
|
|
|
18927 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
18928 |
}
|
|
|
18929 |
|
|
|
18930 |
int lastComparison = 0;
|
|
|
18931 |
getHistoricNonSerializedInventoryByScans_result typedOther = (getHistoricNonSerializedInventoryByScans_result)other;
|
|
|
18932 |
|
|
|
18933 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
18934 |
if (lastComparison != 0) {
|
|
|
18935 |
return lastComparison;
|
|
|
18936 |
}
|
|
|
18937 |
if (isSetSuccess()) {
|
|
|
18938 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
18939 |
if (lastComparison != 0) {
|
|
|
18940 |
return lastComparison;
|
|
|
18941 |
}
|
|
|
18942 |
}
|
|
|
18943 |
return 0;
|
|
|
18944 |
}
|
|
|
18945 |
|
|
|
18946 |
public _Fields fieldForId(int fieldId) {
|
|
|
18947 |
return _Fields.findByThriftId(fieldId);
|
|
|
18948 |
}
|
|
|
18949 |
|
|
|
18950 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
18951 |
org.apache.thrift.protocol.TField field;
|
|
|
18952 |
iprot.readStructBegin();
|
|
|
18953 |
while (true)
|
|
|
18954 |
{
|
|
|
18955 |
field = iprot.readFieldBegin();
|
|
|
18956 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
18957 |
break;
|
|
|
18958 |
}
|
|
|
18959 |
switch (field.id) {
|
|
|
18960 |
case 0: // SUCCESS
|
|
|
18961 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
18962 |
{
|
| 7210 |
amar.kumar |
18963 |
org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
|
|
|
18964 |
this.success = new ArrayList<InventoryAvailability>(_list56.size);
|
|
|
18965 |
for (int _i57 = 0; _i57 < _list56.size; ++_i57)
|
| 6762 |
amar.kumar |
18966 |
{
|
| 7210 |
amar.kumar |
18967 |
InventoryAvailability _elem58; // required
|
|
|
18968 |
_elem58 = new InventoryAvailability();
|
|
|
18969 |
_elem58.read(iprot);
|
|
|
18970 |
this.success.add(_elem58);
|
| 6762 |
amar.kumar |
18971 |
}
|
|
|
18972 |
iprot.readListEnd();
|
|
|
18973 |
}
|
|
|
18974 |
} else {
|
|
|
18975 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18976 |
}
|
|
|
18977 |
break;
|
|
|
18978 |
default:
|
|
|
18979 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18980 |
}
|
|
|
18981 |
iprot.readFieldEnd();
|
|
|
18982 |
}
|
|
|
18983 |
iprot.readStructEnd();
|
|
|
18984 |
validate();
|
|
|
18985 |
}
|
|
|
18986 |
|
|
|
18987 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
18988 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
18989 |
|
|
|
18990 |
if (this.isSetSuccess()) {
|
|
|
18991 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
18992 |
{
|
|
|
18993 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 7210 |
amar.kumar |
18994 |
for (InventoryAvailability _iter59 : this.success)
|
| 6762 |
amar.kumar |
18995 |
{
|
| 7210 |
amar.kumar |
18996 |
_iter59.write(oprot);
|
| 6762 |
amar.kumar |
18997 |
}
|
|
|
18998 |
oprot.writeListEnd();
|
|
|
18999 |
}
|
|
|
19000 |
oprot.writeFieldEnd();
|
|
|
19001 |
}
|
|
|
19002 |
oprot.writeFieldStop();
|
|
|
19003 |
oprot.writeStructEnd();
|
|
|
19004 |
}
|
|
|
19005 |
|
|
|
19006 |
@Override
|
|
|
19007 |
public String toString() {
|
|
|
19008 |
StringBuilder sb = new StringBuilder("getHistoricNonSerializedInventoryByScans_result(");
|
|
|
19009 |
boolean first = true;
|
|
|
19010 |
|
|
|
19011 |
sb.append("success:");
|
|
|
19012 |
if (this.success == null) {
|
|
|
19013 |
sb.append("null");
|
|
|
19014 |
} else {
|
|
|
19015 |
sb.append(this.success);
|
|
|
19016 |
}
|
|
|
19017 |
first = false;
|
|
|
19018 |
sb.append(")");
|
|
|
19019 |
return sb.toString();
|
|
|
19020 |
}
|
|
|
19021 |
|
|
|
19022 |
public void validate() throws org.apache.thrift.TException {
|
|
|
19023 |
// check for required fields
|
|
|
19024 |
}
|
|
|
19025 |
|
|
|
19026 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
19027 |
try {
|
|
|
19028 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
19029 |
} catch (org.apache.thrift.TException te) {
|
|
|
19030 |
throw new java.io.IOException(te);
|
|
|
19031 |
}
|
|
|
19032 |
}
|
|
|
19033 |
|
|
|
19034 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
19035 |
try {
|
|
|
19036 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
19037 |
} catch (org.apache.thrift.TException te) {
|
|
|
19038 |
throw new java.io.IOException(te);
|
|
|
19039 |
}
|
|
|
19040 |
}
|
|
|
19041 |
|
|
|
19042 |
}
|
|
|
19043 |
|
|
|
19044 |
public static class scanForOursExternalSale_args implements org.apache.thrift.TBase<scanForOursExternalSale_args, scanForOursExternalSale_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
19045 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSale_args");
|
|
|
19046 |
|
|
|
19047 |
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);
|
|
|
19048 |
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);
|
|
|
19049 |
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);
|
|
|
19050 |
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);
|
|
|
19051 |
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);
|
|
|
19052 |
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);
|
|
|
19053 |
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);
|
|
|
19054 |
|
|
|
19055 |
private long itemId; // required
|
|
|
19056 |
private String serialNumber; // required
|
|
|
19057 |
private String itemNumber; // required
|
|
|
19058 |
private String invoiceNumber; // required
|
|
|
19059 |
private long warehouseId; // required
|
|
|
19060 |
private double unitPrice; // required
|
|
|
19061 |
private long orderId; // required
|
|
|
19062 |
|
|
|
19063 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
19064 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
19065 |
ITEM_ID((short)1, "itemId"),
|
|
|
19066 |
SERIAL_NUMBER((short)2, "serialNumber"),
|
|
|
19067 |
ITEM_NUMBER((short)3, "itemNumber"),
|
|
|
19068 |
INVOICE_NUMBER((short)4, "invoiceNumber"),
|
|
|
19069 |
WAREHOUSE_ID((short)5, "warehouseId"),
|
|
|
19070 |
UNIT_PRICE((short)6, "unitPrice"),
|
|
|
19071 |
ORDER_ID((short)7, "orderId");
|
|
|
19072 |
|
|
|
19073 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
19074 |
|
|
|
19075 |
static {
|
|
|
19076 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
19077 |
byName.put(field.getFieldName(), field);
|
|
|
19078 |
}
|
|
|
19079 |
}
|
|
|
19080 |
|
|
|
19081 |
/**
|
|
|
19082 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
19083 |
*/
|
|
|
19084 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
19085 |
switch(fieldId) {
|
|
|
19086 |
case 1: // ITEM_ID
|
|
|
19087 |
return ITEM_ID;
|
|
|
19088 |
case 2: // SERIAL_NUMBER
|
|
|
19089 |
return SERIAL_NUMBER;
|
|
|
19090 |
case 3: // ITEM_NUMBER
|
|
|
19091 |
return ITEM_NUMBER;
|
|
|
19092 |
case 4: // INVOICE_NUMBER
|
|
|
19093 |
return INVOICE_NUMBER;
|
|
|
19094 |
case 5: // WAREHOUSE_ID
|
|
|
19095 |
return WAREHOUSE_ID;
|
|
|
19096 |
case 6: // UNIT_PRICE
|
|
|
19097 |
return UNIT_PRICE;
|
|
|
19098 |
case 7: // ORDER_ID
|
|
|
19099 |
return ORDER_ID;
|
|
|
19100 |
default:
|
|
|
19101 |
return null;
|
|
|
19102 |
}
|
|
|
19103 |
}
|
|
|
19104 |
|
|
|
19105 |
/**
|
|
|
19106 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
19107 |
* if it is not found.
|
|
|
19108 |
*/
|
|
|
19109 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
19110 |
_Fields fields = findByThriftId(fieldId);
|
|
|
19111 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
19112 |
return fields;
|
|
|
19113 |
}
|
|
|
19114 |
|
|
|
19115 |
/**
|
|
|
19116 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
19117 |
*/
|
|
|
19118 |
public static _Fields findByName(String name) {
|
|
|
19119 |
return byName.get(name);
|
|
|
19120 |
}
|
|
|
19121 |
|
|
|
19122 |
private final short _thriftId;
|
|
|
19123 |
private final String _fieldName;
|
|
|
19124 |
|
|
|
19125 |
_Fields(short thriftId, String fieldName) {
|
|
|
19126 |
_thriftId = thriftId;
|
|
|
19127 |
_fieldName = fieldName;
|
|
|
19128 |
}
|
|
|
19129 |
|
|
|
19130 |
public short getThriftFieldId() {
|
|
|
19131 |
return _thriftId;
|
|
|
19132 |
}
|
|
|
19133 |
|
|
|
19134 |
public String getFieldName() {
|
|
|
19135 |
return _fieldName;
|
|
|
19136 |
}
|
|
|
19137 |
}
|
|
|
19138 |
|
|
|
19139 |
// isset id assignments
|
|
|
19140 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
19141 |
private static final int __WAREHOUSEID_ISSET_ID = 1;
|
|
|
19142 |
private static final int __UNITPRICE_ISSET_ID = 2;
|
|
|
19143 |
private static final int __ORDERID_ISSET_ID = 3;
|
|
|
19144 |
private BitSet __isset_bit_vector = new BitSet(4);
|
|
|
19145 |
|
|
|
19146 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
19147 |
static {
|
|
|
19148 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
19149 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
19150 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
19151 |
tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
19152 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
19153 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
19154 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
19155 |
tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
19156 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
19157 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
19158 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
19159 |
tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
19160 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
19161 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
19162 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
19163 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
19164 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSale_args.class, metaDataMap);
|
|
|
19165 |
}
|
|
|
19166 |
|
|
|
19167 |
public scanForOursExternalSale_args() {
|
|
|
19168 |
}
|
|
|
19169 |
|
|
|
19170 |
public scanForOursExternalSale_args(
|
|
|
19171 |
long itemId,
|
|
|
19172 |
String serialNumber,
|
|
|
19173 |
String itemNumber,
|
|
|
19174 |
String invoiceNumber,
|
|
|
19175 |
long warehouseId,
|
|
|
19176 |
double unitPrice,
|
|
|
19177 |
long orderId)
|
|
|
19178 |
{
|
|
|
19179 |
this();
|
|
|
19180 |
this.itemId = itemId;
|
|
|
19181 |
setItemIdIsSet(true);
|
|
|
19182 |
this.serialNumber = serialNumber;
|
|
|
19183 |
this.itemNumber = itemNumber;
|
|
|
19184 |
this.invoiceNumber = invoiceNumber;
|
|
|
19185 |
this.warehouseId = warehouseId;
|
|
|
19186 |
setWarehouseIdIsSet(true);
|
|
|
19187 |
this.unitPrice = unitPrice;
|
|
|
19188 |
setUnitPriceIsSet(true);
|
|
|
19189 |
this.orderId = orderId;
|
|
|
19190 |
setOrderIdIsSet(true);
|
|
|
19191 |
}
|
|
|
19192 |
|
|
|
19193 |
/**
|
|
|
19194 |
* Performs a deep copy on <i>other</i>.
|
|
|
19195 |
*/
|
|
|
19196 |
public scanForOursExternalSale_args(scanForOursExternalSale_args other) {
|
|
|
19197 |
__isset_bit_vector.clear();
|
|
|
19198 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
19199 |
this.itemId = other.itemId;
|
|
|
19200 |
if (other.isSetSerialNumber()) {
|
|
|
19201 |
this.serialNumber = other.serialNumber;
|
|
|
19202 |
}
|
|
|
19203 |
if (other.isSetItemNumber()) {
|
|
|
19204 |
this.itemNumber = other.itemNumber;
|
|
|
19205 |
}
|
|
|
19206 |
if (other.isSetInvoiceNumber()) {
|
|
|
19207 |
this.invoiceNumber = other.invoiceNumber;
|
|
|
19208 |
}
|
|
|
19209 |
this.warehouseId = other.warehouseId;
|
|
|
19210 |
this.unitPrice = other.unitPrice;
|
|
|
19211 |
this.orderId = other.orderId;
|
|
|
19212 |
}
|
|
|
19213 |
|
|
|
19214 |
public scanForOursExternalSale_args deepCopy() {
|
|
|
19215 |
return new scanForOursExternalSale_args(this);
|
|
|
19216 |
}
|
|
|
19217 |
|
|
|
19218 |
@Override
|
|
|
19219 |
public void clear() {
|
|
|
19220 |
setItemIdIsSet(false);
|
|
|
19221 |
this.itemId = 0;
|
|
|
19222 |
this.serialNumber = null;
|
|
|
19223 |
this.itemNumber = null;
|
|
|
19224 |
this.invoiceNumber = null;
|
|
|
19225 |
setWarehouseIdIsSet(false);
|
|
|
19226 |
this.warehouseId = 0;
|
|
|
19227 |
setUnitPriceIsSet(false);
|
|
|
19228 |
this.unitPrice = 0.0;
|
|
|
19229 |
setOrderIdIsSet(false);
|
|
|
19230 |
this.orderId = 0;
|
|
|
19231 |
}
|
|
|
19232 |
|
|
|
19233 |
public long getItemId() {
|
|
|
19234 |
return this.itemId;
|
|
|
19235 |
}
|
|
|
19236 |
|
|
|
19237 |
public void setItemId(long itemId) {
|
|
|
19238 |
this.itemId = itemId;
|
|
|
19239 |
setItemIdIsSet(true);
|
|
|
19240 |
}
|
|
|
19241 |
|
|
|
19242 |
public void unsetItemId() {
|
|
|
19243 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
19244 |
}
|
|
|
19245 |
|
|
|
19246 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
19247 |
public boolean isSetItemId() {
|
|
|
19248 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
19249 |
}
|
|
|
19250 |
|
|
|
19251 |
public void setItemIdIsSet(boolean value) {
|
|
|
19252 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
19253 |
}
|
|
|
19254 |
|
|
|
19255 |
public String getSerialNumber() {
|
|
|
19256 |
return this.serialNumber;
|
|
|
19257 |
}
|
|
|
19258 |
|
|
|
19259 |
public void setSerialNumber(String serialNumber) {
|
|
|
19260 |
this.serialNumber = serialNumber;
|
|
|
19261 |
}
|
|
|
19262 |
|
|
|
19263 |
public void unsetSerialNumber() {
|
|
|
19264 |
this.serialNumber = null;
|
|
|
19265 |
}
|
|
|
19266 |
|
|
|
19267 |
/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
|
|
|
19268 |
public boolean isSetSerialNumber() {
|
|
|
19269 |
return this.serialNumber != null;
|
|
|
19270 |
}
|
|
|
19271 |
|
|
|
19272 |
public void setSerialNumberIsSet(boolean value) {
|
|
|
19273 |
if (!value) {
|
|
|
19274 |
this.serialNumber = null;
|
|
|
19275 |
}
|
|
|
19276 |
}
|
|
|
19277 |
|
|
|
19278 |
public String getItemNumber() {
|
|
|
19279 |
return this.itemNumber;
|
|
|
19280 |
}
|
|
|
19281 |
|
|
|
19282 |
public void setItemNumber(String itemNumber) {
|
|
|
19283 |
this.itemNumber = itemNumber;
|
|
|
19284 |
}
|
|
|
19285 |
|
|
|
19286 |
public void unsetItemNumber() {
|
|
|
19287 |
this.itemNumber = null;
|
|
|
19288 |
}
|
|
|
19289 |
|
|
|
19290 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
19291 |
public boolean isSetItemNumber() {
|
|
|
19292 |
return this.itemNumber != null;
|
|
|
19293 |
}
|
|
|
19294 |
|
|
|
19295 |
public void setItemNumberIsSet(boolean value) {
|
|
|
19296 |
if (!value) {
|
|
|
19297 |
this.itemNumber = null;
|
|
|
19298 |
}
|
|
|
19299 |
}
|
|
|
19300 |
|
|
|
19301 |
public String getInvoiceNumber() {
|
|
|
19302 |
return this.invoiceNumber;
|
|
|
19303 |
}
|
|
|
19304 |
|
|
|
19305 |
public void setInvoiceNumber(String invoiceNumber) {
|
|
|
19306 |
this.invoiceNumber = invoiceNumber;
|
|
|
19307 |
}
|
|
|
19308 |
|
|
|
19309 |
public void unsetInvoiceNumber() {
|
|
|
19310 |
this.invoiceNumber = null;
|
|
|
19311 |
}
|
|
|
19312 |
|
|
|
19313 |
/** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
|
|
|
19314 |
public boolean isSetInvoiceNumber() {
|
|
|
19315 |
return this.invoiceNumber != null;
|
|
|
19316 |
}
|
|
|
19317 |
|
|
|
19318 |
public void setInvoiceNumberIsSet(boolean value) {
|
|
|
19319 |
if (!value) {
|
|
|
19320 |
this.invoiceNumber = null;
|
|
|
19321 |
}
|
|
|
19322 |
}
|
|
|
19323 |
|
|
|
19324 |
public long getWarehouseId() {
|
|
|
19325 |
return this.warehouseId;
|
|
|
19326 |
}
|
|
|
19327 |
|
|
|
19328 |
public void setWarehouseId(long warehouseId) {
|
|
|
19329 |
this.warehouseId = warehouseId;
|
|
|
19330 |
setWarehouseIdIsSet(true);
|
|
|
19331 |
}
|
|
|
19332 |
|
|
|
19333 |
public void unsetWarehouseId() {
|
|
|
19334 |
__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
|
|
|
19335 |
}
|
|
|
19336 |
|
|
|
19337 |
/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
|
|
|
19338 |
public boolean isSetWarehouseId() {
|
|
|
19339 |
return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
|
|
|
19340 |
}
|
|
|
19341 |
|
|
|
19342 |
public void setWarehouseIdIsSet(boolean value) {
|
|
|
19343 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
|
|
19344 |
}
|
|
|
19345 |
|
|
|
19346 |
public double getUnitPrice() {
|
|
|
19347 |
return this.unitPrice;
|
|
|
19348 |
}
|
|
|
19349 |
|
|
|
19350 |
public void setUnitPrice(double unitPrice) {
|
|
|
19351 |
this.unitPrice = unitPrice;
|
|
|
19352 |
setUnitPriceIsSet(true);
|
|
|
19353 |
}
|
|
|
19354 |
|
|
|
19355 |
public void unsetUnitPrice() {
|
|
|
19356 |
__isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
|
|
|
19357 |
}
|
|
|
19358 |
|
|
|
19359 |
/** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
|
|
|
19360 |
public boolean isSetUnitPrice() {
|
|
|
19361 |
return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
|
|
|
19362 |
}
|
|
|
19363 |
|
|
|
19364 |
public void setUnitPriceIsSet(boolean value) {
|
|
|
19365 |
__isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
|
|
|
19366 |
}
|
|
|
19367 |
|
|
|
19368 |
public long getOrderId() {
|
|
|
19369 |
return this.orderId;
|
|
|
19370 |
}
|
|
|
19371 |
|
|
|
19372 |
public void setOrderId(long orderId) {
|
|
|
19373 |
this.orderId = orderId;
|
|
|
19374 |
setOrderIdIsSet(true);
|
|
|
19375 |
}
|
|
|
19376 |
|
|
|
19377 |
public void unsetOrderId() {
|
|
|
19378 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
19379 |
}
|
|
|
19380 |
|
|
|
19381 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
19382 |
public boolean isSetOrderId() {
|
|
|
19383 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
19384 |
}
|
|
|
19385 |
|
|
|
19386 |
public void setOrderIdIsSet(boolean value) {
|
|
|
19387 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
19388 |
}
|
|
|
19389 |
|
|
|
19390 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
19391 |
switch (field) {
|
|
|
19392 |
case ITEM_ID:
|
|
|
19393 |
if (value == null) {
|
|
|
19394 |
unsetItemId();
|
|
|
19395 |
} else {
|
|
|
19396 |
setItemId((Long)value);
|
|
|
19397 |
}
|
|
|
19398 |
break;
|
|
|
19399 |
|
|
|
19400 |
case SERIAL_NUMBER:
|
|
|
19401 |
if (value == null) {
|
|
|
19402 |
unsetSerialNumber();
|
|
|
19403 |
} else {
|
|
|
19404 |
setSerialNumber((String)value);
|
|
|
19405 |
}
|
|
|
19406 |
break;
|
|
|
19407 |
|
|
|
19408 |
case ITEM_NUMBER:
|
|
|
19409 |
if (value == null) {
|
|
|
19410 |
unsetItemNumber();
|
|
|
19411 |
} else {
|
|
|
19412 |
setItemNumber((String)value);
|
|
|
19413 |
}
|
|
|
19414 |
break;
|
|
|
19415 |
|
|
|
19416 |
case INVOICE_NUMBER:
|
|
|
19417 |
if (value == null) {
|
|
|
19418 |
unsetInvoiceNumber();
|
|
|
19419 |
} else {
|
|
|
19420 |
setInvoiceNumber((String)value);
|
|
|
19421 |
}
|
|
|
19422 |
break;
|
|
|
19423 |
|
|
|
19424 |
case WAREHOUSE_ID:
|
|
|
19425 |
if (value == null) {
|
|
|
19426 |
unsetWarehouseId();
|
|
|
19427 |
} else {
|
|
|
19428 |
setWarehouseId((Long)value);
|
|
|
19429 |
}
|
|
|
19430 |
break;
|
|
|
19431 |
|
|
|
19432 |
case UNIT_PRICE:
|
|
|
19433 |
if (value == null) {
|
|
|
19434 |
unsetUnitPrice();
|
|
|
19435 |
} else {
|
|
|
19436 |
setUnitPrice((Double)value);
|
|
|
19437 |
}
|
|
|
19438 |
break;
|
|
|
19439 |
|
|
|
19440 |
case ORDER_ID:
|
|
|
19441 |
if (value == null) {
|
|
|
19442 |
unsetOrderId();
|
|
|
19443 |
} else {
|
|
|
19444 |
setOrderId((Long)value);
|
|
|
19445 |
}
|
|
|
19446 |
break;
|
|
|
19447 |
|
|
|
19448 |
}
|
|
|
19449 |
}
|
|
|
19450 |
|
|
|
19451 |
public Object getFieldValue(_Fields field) {
|
|
|
19452 |
switch (field) {
|
|
|
19453 |
case ITEM_ID:
|
|
|
19454 |
return Long.valueOf(getItemId());
|
|
|
19455 |
|
|
|
19456 |
case SERIAL_NUMBER:
|
|
|
19457 |
return getSerialNumber();
|
|
|
19458 |
|
|
|
19459 |
case ITEM_NUMBER:
|
|
|
19460 |
return getItemNumber();
|
|
|
19461 |
|
|
|
19462 |
case INVOICE_NUMBER:
|
|
|
19463 |
return getInvoiceNumber();
|
|
|
19464 |
|
|
|
19465 |
case WAREHOUSE_ID:
|
|
|
19466 |
return Long.valueOf(getWarehouseId());
|
|
|
19467 |
|
|
|
19468 |
case UNIT_PRICE:
|
|
|
19469 |
return Double.valueOf(getUnitPrice());
|
|
|
19470 |
|
|
|
19471 |
case ORDER_ID:
|
|
|
19472 |
return Long.valueOf(getOrderId());
|
|
|
19473 |
|
|
|
19474 |
}
|
|
|
19475 |
throw new IllegalStateException();
|
|
|
19476 |
}
|
|
|
19477 |
|
|
|
19478 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
19479 |
public boolean isSet(_Fields field) {
|
|
|
19480 |
if (field == null) {
|
|
|
19481 |
throw new IllegalArgumentException();
|
|
|
19482 |
}
|
|
|
19483 |
|
|
|
19484 |
switch (field) {
|
|
|
19485 |
case ITEM_ID:
|
|
|
19486 |
return isSetItemId();
|
|
|
19487 |
case SERIAL_NUMBER:
|
|
|
19488 |
return isSetSerialNumber();
|
|
|
19489 |
case ITEM_NUMBER:
|
|
|
19490 |
return isSetItemNumber();
|
|
|
19491 |
case INVOICE_NUMBER:
|
|
|
19492 |
return isSetInvoiceNumber();
|
|
|
19493 |
case WAREHOUSE_ID:
|
|
|
19494 |
return isSetWarehouseId();
|
|
|
19495 |
case UNIT_PRICE:
|
|
|
19496 |
return isSetUnitPrice();
|
|
|
19497 |
case ORDER_ID:
|
|
|
19498 |
return isSetOrderId();
|
|
|
19499 |
}
|
|
|
19500 |
throw new IllegalStateException();
|
|
|
19501 |
}
|
|
|
19502 |
|
|
|
19503 |
@Override
|
|
|
19504 |
public boolean equals(Object that) {
|
|
|
19505 |
if (that == null)
|
|
|
19506 |
return false;
|
|
|
19507 |
if (that instanceof scanForOursExternalSale_args)
|
|
|
19508 |
return this.equals((scanForOursExternalSale_args)that);
|
|
|
19509 |
return false;
|
|
|
19510 |
}
|
|
|
19511 |
|
|
|
19512 |
public boolean equals(scanForOursExternalSale_args that) {
|
|
|
19513 |
if (that == null)
|
|
|
19514 |
return false;
|
|
|
19515 |
|
|
|
19516 |
boolean this_present_itemId = true;
|
|
|
19517 |
boolean that_present_itemId = true;
|
|
|
19518 |
if (this_present_itemId || that_present_itemId) {
|
|
|
19519 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
19520 |
return false;
|
|
|
19521 |
if (this.itemId != that.itemId)
|
|
|
19522 |
return false;
|
|
|
19523 |
}
|
|
|
19524 |
|
|
|
19525 |
boolean this_present_serialNumber = true && this.isSetSerialNumber();
|
|
|
19526 |
boolean that_present_serialNumber = true && that.isSetSerialNumber();
|
|
|
19527 |
if (this_present_serialNumber || that_present_serialNumber) {
|
|
|
19528 |
if (!(this_present_serialNumber && that_present_serialNumber))
|
|
|
19529 |
return false;
|
|
|
19530 |
if (!this.serialNumber.equals(that.serialNumber))
|
|
|
19531 |
return false;
|
|
|
19532 |
}
|
|
|
19533 |
|
|
|
19534 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
19535 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
19536 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
19537 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
19538 |
return false;
|
|
|
19539 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
19540 |
return false;
|
|
|
19541 |
}
|
|
|
19542 |
|
|
|
19543 |
boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
|
|
|
19544 |
boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
|
|
|
19545 |
if (this_present_invoiceNumber || that_present_invoiceNumber) {
|
|
|
19546 |
if (!(this_present_invoiceNumber && that_present_invoiceNumber))
|
|
|
19547 |
return false;
|
|
|
19548 |
if (!this.invoiceNumber.equals(that.invoiceNumber))
|
|
|
19549 |
return false;
|
|
|
19550 |
}
|
|
|
19551 |
|
|
|
19552 |
boolean this_present_warehouseId = true;
|
|
|
19553 |
boolean that_present_warehouseId = true;
|
|
|
19554 |
if (this_present_warehouseId || that_present_warehouseId) {
|
|
|
19555 |
if (!(this_present_warehouseId && that_present_warehouseId))
|
|
|
19556 |
return false;
|
|
|
19557 |
if (this.warehouseId != that.warehouseId)
|
|
|
19558 |
return false;
|
|
|
19559 |
}
|
|
|
19560 |
|
|
|
19561 |
boolean this_present_unitPrice = true;
|
|
|
19562 |
boolean that_present_unitPrice = true;
|
|
|
19563 |
if (this_present_unitPrice || that_present_unitPrice) {
|
|
|
19564 |
if (!(this_present_unitPrice && that_present_unitPrice))
|
|
|
19565 |
return false;
|
|
|
19566 |
if (this.unitPrice != that.unitPrice)
|
|
|
19567 |
return false;
|
|
|
19568 |
}
|
|
|
19569 |
|
|
|
19570 |
boolean this_present_orderId = true;
|
|
|
19571 |
boolean that_present_orderId = true;
|
|
|
19572 |
if (this_present_orderId || that_present_orderId) {
|
|
|
19573 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
19574 |
return false;
|
|
|
19575 |
if (this.orderId != that.orderId)
|
|
|
19576 |
return false;
|
|
|
19577 |
}
|
|
|
19578 |
|
|
|
19579 |
return true;
|
|
|
19580 |
}
|
|
|
19581 |
|
|
|
19582 |
@Override
|
|
|
19583 |
public int hashCode() {
|
|
|
19584 |
return 0;
|
|
|
19585 |
}
|
|
|
19586 |
|
|
|
19587 |
public int compareTo(scanForOursExternalSale_args other) {
|
|
|
19588 |
if (!getClass().equals(other.getClass())) {
|
|
|
19589 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
19590 |
}
|
|
|
19591 |
|
|
|
19592 |
int lastComparison = 0;
|
|
|
19593 |
scanForOursExternalSale_args typedOther = (scanForOursExternalSale_args)other;
|
|
|
19594 |
|
|
|
19595 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
19596 |
if (lastComparison != 0) {
|
|
|
19597 |
return lastComparison;
|
|
|
19598 |
}
|
|
|
19599 |
if (isSetItemId()) {
|
|
|
19600 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
19601 |
if (lastComparison != 0) {
|
|
|
19602 |
return lastComparison;
|
|
|
19603 |
}
|
|
|
19604 |
}
|
|
|
19605 |
lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
|
|
|
19606 |
if (lastComparison != 0) {
|
|
|
19607 |
return lastComparison;
|
|
|
19608 |
}
|
|
|
19609 |
if (isSetSerialNumber()) {
|
|
|
19610 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
|
|
|
19611 |
if (lastComparison != 0) {
|
|
|
19612 |
return lastComparison;
|
|
|
19613 |
}
|
|
|
19614 |
}
|
|
|
19615 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
19616 |
if (lastComparison != 0) {
|
|
|
19617 |
return lastComparison;
|
|
|
19618 |
}
|
|
|
19619 |
if (isSetItemNumber()) {
|
|
|
19620 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
19621 |
if (lastComparison != 0) {
|
|
|
19622 |
return lastComparison;
|
|
|
19623 |
}
|
|
|
19624 |
}
|
|
|
19625 |
lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
|
|
|
19626 |
if (lastComparison != 0) {
|
|
|
19627 |
return lastComparison;
|
|
|
19628 |
}
|
|
|
19629 |
if (isSetInvoiceNumber()) {
|
|
|
19630 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
|
|
|
19631 |
if (lastComparison != 0) {
|
|
|
19632 |
return lastComparison;
|
|
|
19633 |
}
|
|
|
19634 |
}
|
|
|
19635 |
lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
|
|
|
19636 |
if (lastComparison != 0) {
|
|
|
19637 |
return lastComparison;
|
|
|
19638 |
}
|
|
|
19639 |
if (isSetWarehouseId()) {
|
|
|
19640 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
|
|
19641 |
if (lastComparison != 0) {
|
|
|
19642 |
return lastComparison;
|
|
|
19643 |
}
|
|
|
19644 |
}
|
|
|
19645 |
lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
|
|
|
19646 |
if (lastComparison != 0) {
|
|
|
19647 |
return lastComparison;
|
|
|
19648 |
}
|
|
|
19649 |
if (isSetUnitPrice()) {
|
|
|
19650 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
|
|
|
19651 |
if (lastComparison != 0) {
|
|
|
19652 |
return lastComparison;
|
|
|
19653 |
}
|
|
|
19654 |
}
|
|
|
19655 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
19656 |
if (lastComparison != 0) {
|
|
|
19657 |
return lastComparison;
|
|
|
19658 |
}
|
|
|
19659 |
if (isSetOrderId()) {
|
|
|
19660 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
19661 |
if (lastComparison != 0) {
|
|
|
19662 |
return lastComparison;
|
|
|
19663 |
}
|
|
|
19664 |
}
|
|
|
19665 |
return 0;
|
|
|
19666 |
}
|
|
|
19667 |
|
|
|
19668 |
public _Fields fieldForId(int fieldId) {
|
|
|
19669 |
return _Fields.findByThriftId(fieldId);
|
|
|
19670 |
}
|
|
|
19671 |
|
|
|
19672 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
19673 |
org.apache.thrift.protocol.TField field;
|
|
|
19674 |
iprot.readStructBegin();
|
|
|
19675 |
while (true)
|
|
|
19676 |
{
|
|
|
19677 |
field = iprot.readFieldBegin();
|
|
|
19678 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
19679 |
break;
|
|
|
19680 |
}
|
|
|
19681 |
switch (field.id) {
|
|
|
19682 |
case 1: // ITEM_ID
|
|
|
19683 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
19684 |
this.itemId = iprot.readI64();
|
|
|
19685 |
setItemIdIsSet(true);
|
|
|
19686 |
} else {
|
|
|
19687 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19688 |
}
|
|
|
19689 |
break;
|
|
|
19690 |
case 2: // SERIAL_NUMBER
|
|
|
19691 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
19692 |
this.serialNumber = iprot.readString();
|
|
|
19693 |
} else {
|
|
|
19694 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19695 |
}
|
|
|
19696 |
break;
|
|
|
19697 |
case 3: // ITEM_NUMBER
|
|
|
19698 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
19699 |
this.itemNumber = iprot.readString();
|
|
|
19700 |
} else {
|
|
|
19701 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19702 |
}
|
|
|
19703 |
break;
|
|
|
19704 |
case 4: // INVOICE_NUMBER
|
|
|
19705 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
19706 |
this.invoiceNumber = iprot.readString();
|
|
|
19707 |
} else {
|
|
|
19708 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19709 |
}
|
|
|
19710 |
break;
|
|
|
19711 |
case 5: // WAREHOUSE_ID
|
|
|
19712 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
19713 |
this.warehouseId = iprot.readI64();
|
|
|
19714 |
setWarehouseIdIsSet(true);
|
|
|
19715 |
} else {
|
|
|
19716 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19717 |
}
|
|
|
19718 |
break;
|
|
|
19719 |
case 6: // UNIT_PRICE
|
|
|
19720 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
19721 |
this.unitPrice = iprot.readDouble();
|
|
|
19722 |
setUnitPriceIsSet(true);
|
|
|
19723 |
} else {
|
|
|
19724 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19725 |
}
|
|
|
19726 |
break;
|
|
|
19727 |
case 7: // ORDER_ID
|
|
|
19728 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
19729 |
this.orderId = iprot.readI64();
|
|
|
19730 |
setOrderIdIsSet(true);
|
|
|
19731 |
} else {
|
|
|
19732 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19733 |
}
|
|
|
19734 |
break;
|
|
|
19735 |
default:
|
|
|
19736 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
19737 |
}
|
|
|
19738 |
iprot.readFieldEnd();
|
|
|
19739 |
}
|
|
|
19740 |
iprot.readStructEnd();
|
|
|
19741 |
validate();
|
|
|
19742 |
}
|
|
|
19743 |
|
|
|
19744 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
19745 |
validate();
|
|
|
19746 |
|
|
|
19747 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
19748 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
19749 |
oprot.writeI64(this.itemId);
|
|
|
19750 |
oprot.writeFieldEnd();
|
|
|
19751 |
if (this.serialNumber != null) {
|
|
|
19752 |
oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
|
|
|
19753 |
oprot.writeString(this.serialNumber);
|
|
|
19754 |
oprot.writeFieldEnd();
|
|
|
19755 |
}
|
|
|
19756 |
if (this.itemNumber != null) {
|
|
|
19757 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
19758 |
oprot.writeString(this.itemNumber);
|
|
|
19759 |
oprot.writeFieldEnd();
|
|
|
19760 |
}
|
|
|
19761 |
if (this.invoiceNumber != null) {
|
|
|
19762 |
oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
|
|
|
19763 |
oprot.writeString(this.invoiceNumber);
|
|
|
19764 |
oprot.writeFieldEnd();
|
|
|
19765 |
}
|
|
|
19766 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
|
|
19767 |
oprot.writeI64(this.warehouseId);
|
|
|
19768 |
oprot.writeFieldEnd();
|
|
|
19769 |
oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
|
|
|
19770 |
oprot.writeDouble(this.unitPrice);
|
|
|
19771 |
oprot.writeFieldEnd();
|
|
|
19772 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
19773 |
oprot.writeI64(this.orderId);
|
|
|
19774 |
oprot.writeFieldEnd();
|
|
|
19775 |
oprot.writeFieldStop();
|
|
|
19776 |
oprot.writeStructEnd();
|
|
|
19777 |
}
|
|
|
19778 |
|
|
|
19779 |
@Override
|
|
|
19780 |
public String toString() {
|
|
|
19781 |
StringBuilder sb = new StringBuilder("scanForOursExternalSale_args(");
|
|
|
19782 |
boolean first = true;
|
|
|
19783 |
|
|
|
19784 |
sb.append("itemId:");
|
|
|
19785 |
sb.append(this.itemId);
|
|
|
19786 |
first = false;
|
|
|
19787 |
if (!first) sb.append(", ");
|
|
|
19788 |
sb.append("serialNumber:");
|
|
|
19789 |
if (this.serialNumber == null) {
|
|
|
19790 |
sb.append("null");
|
|
|
19791 |
} else {
|
|
|
19792 |
sb.append(this.serialNumber);
|
|
|
19793 |
}
|
|
|
19794 |
first = false;
|
|
|
19795 |
if (!first) sb.append(", ");
|
|
|
19796 |
sb.append("itemNumber:");
|
|
|
19797 |
if (this.itemNumber == null) {
|
|
|
19798 |
sb.append("null");
|
|
|
19799 |
} else {
|
|
|
19800 |
sb.append(this.itemNumber);
|
|
|
19801 |
}
|
|
|
19802 |
first = false;
|
|
|
19803 |
if (!first) sb.append(", ");
|
|
|
19804 |
sb.append("invoiceNumber:");
|
|
|
19805 |
if (this.invoiceNumber == null) {
|
|
|
19806 |
sb.append("null");
|
|
|
19807 |
} else {
|
|
|
19808 |
sb.append(this.invoiceNumber);
|
|
|
19809 |
}
|
|
|
19810 |
first = false;
|
|
|
19811 |
if (!first) sb.append(", ");
|
|
|
19812 |
sb.append("warehouseId:");
|
|
|
19813 |
sb.append(this.warehouseId);
|
|
|
19814 |
first = false;
|
|
|
19815 |
if (!first) sb.append(", ");
|
|
|
19816 |
sb.append("unitPrice:");
|
|
|
19817 |
sb.append(this.unitPrice);
|
|
|
19818 |
first = false;
|
|
|
19819 |
if (!first) sb.append(", ");
|
|
|
19820 |
sb.append("orderId:");
|
|
|
19821 |
sb.append(this.orderId);
|
|
|
19822 |
first = false;
|
|
|
19823 |
sb.append(")");
|
|
|
19824 |
return sb.toString();
|
|
|
19825 |
}
|
|
|
19826 |
|
|
|
19827 |
public void validate() throws org.apache.thrift.TException {
|
|
|
19828 |
// check for required fields
|
|
|
19829 |
}
|
|
|
19830 |
|
|
|
19831 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
19832 |
try {
|
|
|
19833 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
19834 |
} catch (org.apache.thrift.TException te) {
|
|
|
19835 |
throw new java.io.IOException(te);
|
|
|
19836 |
}
|
|
|
19837 |
}
|
|
|
19838 |
|
|
|
19839 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
19840 |
try {
|
|
|
19841 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
19842 |
__isset_bit_vector = new BitSet(1);
|
|
|
19843 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
19844 |
} catch (org.apache.thrift.TException te) {
|
|
|
19845 |
throw new java.io.IOException(te);
|
|
|
19846 |
}
|
|
|
19847 |
}
|
|
|
19848 |
|
|
|
19849 |
}
|
|
|
19850 |
|
|
|
19851 |
public static class scanForOursExternalSale_result implements org.apache.thrift.TBase<scanForOursExternalSale_result, scanForOursExternalSale_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
19852 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSale_result");
|
|
|
19853 |
|
|
|
19854 |
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);
|
|
|
19855 |
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);
|
|
|
19856 |
|
|
|
19857 |
private InventoryItem success; // required
|
|
|
19858 |
private WarehouseServiceException ex; // required
|
|
|
19859 |
|
|
|
19860 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
19861 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
19862 |
SUCCESS((short)0, "success"),
|
|
|
19863 |
EX((short)1, "ex");
|
|
|
19864 |
|
|
|
19865 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
19866 |
|
|
|
19867 |
static {
|
|
|
19868 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
19869 |
byName.put(field.getFieldName(), field);
|
|
|
19870 |
}
|
|
|
19871 |
}
|
|
|
19872 |
|
|
|
19873 |
/**
|
|
|
19874 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
19875 |
*/
|
|
|
19876 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
19877 |
switch(fieldId) {
|
|
|
19878 |
case 0: // SUCCESS
|
|
|
19879 |
return SUCCESS;
|
|
|
19880 |
case 1: // EX
|
|
|
19881 |
return EX;
|
|
|
19882 |
default:
|
|
|
19883 |
return null;
|
|
|
19884 |
}
|
|
|
19885 |
}
|
|
|
19886 |
|
|
|
19887 |
/**
|
|
|
19888 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
19889 |
* if it is not found.
|
|
|
19890 |
*/
|
|
|
19891 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
19892 |
_Fields fields = findByThriftId(fieldId);
|
|
|
19893 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
19894 |
return fields;
|
|
|
19895 |
}
|
|
|
19896 |
|
|
|
19897 |
/**
|
|
|
19898 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
19899 |
*/
|
|
|
19900 |
public static _Fields findByName(String name) {
|
|
|
19901 |
return byName.get(name);
|
|
|
19902 |
}
|
|
|
19903 |
|
|
|
19904 |
private final short _thriftId;
|
|
|
19905 |
private final String _fieldName;
|
|
|
19906 |
|
|
|
19907 |
_Fields(short thriftId, String fieldName) {
|
|
|
19908 |
_thriftId = thriftId;
|
|
|
19909 |
_fieldName = fieldName;
|
|
|
19910 |
}
|
|
|
19911 |
|
|
|
19912 |
public short getThriftFieldId() {
|
|
|
19913 |
return _thriftId;
|
|
|
19914 |
}
|
|
|
19915 |
|
|
|
19916 |
public String getFieldName() {
|
|
|
19917 |
return _fieldName;
|
|
|
19918 |
}
|
|
|
19919 |
}
|
|
|
19920 |
|
|
|
19921 |
// isset id assignments
|
|
|
19922 |
|
|
|
19923 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
19924 |
static {
|
|
|
19925 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
19926 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
19927 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
19928 |
tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
19929 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
19930 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
19931 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSale_result.class, metaDataMap);
|
|
|
19932 |
}
|
|
|
19933 |
|
|
|
19934 |
public scanForOursExternalSale_result() {
|
|
|
19935 |
}
|
|
|
19936 |
|
|
|
19937 |
public scanForOursExternalSale_result(
|
|
|
19938 |
InventoryItem success,
|
|
|
19939 |
WarehouseServiceException ex)
|
|
|
19940 |
{
|
|
|
19941 |
this();
|
|
|
19942 |
this.success = success;
|
|
|
19943 |
this.ex = ex;
|
|
|
19944 |
}
|
|
|
19945 |
|
|
|
19946 |
/**
|
|
|
19947 |
* Performs a deep copy on <i>other</i>.
|
|
|
19948 |
*/
|
|
|
19949 |
public scanForOursExternalSale_result(scanForOursExternalSale_result other) {
|
|
|
19950 |
if (other.isSetSuccess()) {
|
|
|
19951 |
this.success = new InventoryItem(other.success);
|
|
|
19952 |
}
|
|
|
19953 |
if (other.isSetEx()) {
|
|
|
19954 |
this.ex = new WarehouseServiceException(other.ex);
|
|
|
19955 |
}
|
|
|
19956 |
}
|
|
|
19957 |
|
|
|
19958 |
public scanForOursExternalSale_result deepCopy() {
|
|
|
19959 |
return new scanForOursExternalSale_result(this);
|
|
|
19960 |
}
|
|
|
19961 |
|
|
|
19962 |
@Override
|
|
|
19963 |
public void clear() {
|
|
|
19964 |
this.success = null;
|
|
|
19965 |
this.ex = null;
|
|
|
19966 |
}
|
|
|
19967 |
|
|
|
19968 |
public InventoryItem getSuccess() {
|
|
|
19969 |
return this.success;
|
|
|
19970 |
}
|
|
|
19971 |
|
|
|
19972 |
public void setSuccess(InventoryItem success) {
|
|
|
19973 |
this.success = success;
|
|
|
19974 |
}
|
|
|
19975 |
|
|
|
19976 |
public void unsetSuccess() {
|
|
|
19977 |
this.success = null;
|
|
|
19978 |
}
|
|
|
19979 |
|
|
|
19980 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
19981 |
public boolean isSetSuccess() {
|
|
|
19982 |
return this.success != null;
|
|
|
19983 |
}
|
|
|
19984 |
|
|
|
19985 |
public void setSuccessIsSet(boolean value) {
|
|
|
19986 |
if (!value) {
|
|
|
19987 |
this.success = null;
|
|
|
19988 |
}
|
|
|
19989 |
}
|
|
|
19990 |
|
|
|
19991 |
public WarehouseServiceException getEx() {
|
|
|
19992 |
return this.ex;
|
|
|
19993 |
}
|
|
|
19994 |
|
|
|
19995 |
public void setEx(WarehouseServiceException ex) {
|
|
|
19996 |
this.ex = ex;
|
|
|
19997 |
}
|
|
|
19998 |
|
|
|
19999 |
public void unsetEx() {
|
|
|
20000 |
this.ex = null;
|
|
|
20001 |
}
|
|
|
20002 |
|
|
|
20003 |
/** Returns true if field ex is set (has been assigned a value) and false otherwise */
|
|
|
20004 |
public boolean isSetEx() {
|
|
|
20005 |
return this.ex != null;
|
|
|
20006 |
}
|
|
|
20007 |
|
|
|
20008 |
public void setExIsSet(boolean value) {
|
|
|
20009 |
if (!value) {
|
|
|
20010 |
this.ex = null;
|
|
|
20011 |
}
|
|
|
20012 |
}
|
|
|
20013 |
|
|
|
20014 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
20015 |
switch (field) {
|
|
|
20016 |
case SUCCESS:
|
|
|
20017 |
if (value == null) {
|
|
|
20018 |
unsetSuccess();
|
|
|
20019 |
} else {
|
|
|
20020 |
setSuccess((InventoryItem)value);
|
|
|
20021 |
}
|
|
|
20022 |
break;
|
|
|
20023 |
|
|
|
20024 |
case EX:
|
|
|
20025 |
if (value == null) {
|
|
|
20026 |
unsetEx();
|
|
|
20027 |
} else {
|
|
|
20028 |
setEx((WarehouseServiceException)value);
|
|
|
20029 |
}
|
|
|
20030 |
break;
|
|
|
20031 |
|
|
|
20032 |
}
|
|
|
20033 |
}
|
|
|
20034 |
|
|
|
20035 |
public Object getFieldValue(_Fields field) {
|
|
|
20036 |
switch (field) {
|
|
|
20037 |
case SUCCESS:
|
|
|
20038 |
return getSuccess();
|
|
|
20039 |
|
|
|
20040 |
case EX:
|
|
|
20041 |
return getEx();
|
|
|
20042 |
|
|
|
20043 |
}
|
|
|
20044 |
throw new IllegalStateException();
|
|
|
20045 |
}
|
|
|
20046 |
|
|
|
20047 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
20048 |
public boolean isSet(_Fields field) {
|
|
|
20049 |
if (field == null) {
|
|
|
20050 |
throw new IllegalArgumentException();
|
|
|
20051 |
}
|
|
|
20052 |
|
|
|
20053 |
switch (field) {
|
|
|
20054 |
case SUCCESS:
|
|
|
20055 |
return isSetSuccess();
|
|
|
20056 |
case EX:
|
|
|
20057 |
return isSetEx();
|
|
|
20058 |
}
|
|
|
20059 |
throw new IllegalStateException();
|
|
|
20060 |
}
|
|
|
20061 |
|
|
|
20062 |
@Override
|
|
|
20063 |
public boolean equals(Object that) {
|
|
|
20064 |
if (that == null)
|
|
|
20065 |
return false;
|
|
|
20066 |
if (that instanceof scanForOursExternalSale_result)
|
|
|
20067 |
return this.equals((scanForOursExternalSale_result)that);
|
|
|
20068 |
return false;
|
|
|
20069 |
}
|
|
|
20070 |
|
|
|
20071 |
public boolean equals(scanForOursExternalSale_result that) {
|
|
|
20072 |
if (that == null)
|
|
|
20073 |
return false;
|
|
|
20074 |
|
|
|
20075 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
20076 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
20077 |
if (this_present_success || that_present_success) {
|
|
|
20078 |
if (!(this_present_success && that_present_success))
|
|
|
20079 |
return false;
|
|
|
20080 |
if (!this.success.equals(that.success))
|
|
|
20081 |
return false;
|
|
|
20082 |
}
|
|
|
20083 |
|
|
|
20084 |
boolean this_present_ex = true && this.isSetEx();
|
|
|
20085 |
boolean that_present_ex = true && that.isSetEx();
|
|
|
20086 |
if (this_present_ex || that_present_ex) {
|
|
|
20087 |
if (!(this_present_ex && that_present_ex))
|
|
|
20088 |
return false;
|
|
|
20089 |
if (!this.ex.equals(that.ex))
|
|
|
20090 |
return false;
|
|
|
20091 |
}
|
|
|
20092 |
|
|
|
20093 |
return true;
|
|
|
20094 |
}
|
|
|
20095 |
|
|
|
20096 |
@Override
|
|
|
20097 |
public int hashCode() {
|
|
|
20098 |
return 0;
|
|
|
20099 |
}
|
|
|
20100 |
|
|
|
20101 |
public int compareTo(scanForOursExternalSale_result other) {
|
|
|
20102 |
if (!getClass().equals(other.getClass())) {
|
|
|
20103 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
20104 |
}
|
|
|
20105 |
|
|
|
20106 |
int lastComparison = 0;
|
|
|
20107 |
scanForOursExternalSale_result typedOther = (scanForOursExternalSale_result)other;
|
|
|
20108 |
|
|
|
20109 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
20110 |
if (lastComparison != 0) {
|
|
|
20111 |
return lastComparison;
|
|
|
20112 |
}
|
|
|
20113 |
if (isSetSuccess()) {
|
|
|
20114 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
20115 |
if (lastComparison != 0) {
|
|
|
20116 |
return lastComparison;
|
|
|
20117 |
}
|
|
|
20118 |
}
|
|
|
20119 |
lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
|
|
|
20120 |
if (lastComparison != 0) {
|
|
|
20121 |
return lastComparison;
|
|
|
20122 |
}
|
|
|
20123 |
if (isSetEx()) {
|
|
|
20124 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
|
|
|
20125 |
if (lastComparison != 0) {
|
|
|
20126 |
return lastComparison;
|
|
|
20127 |
}
|
|
|
20128 |
}
|
|
|
20129 |
return 0;
|
|
|
20130 |
}
|
|
|
20131 |
|
|
|
20132 |
public _Fields fieldForId(int fieldId) {
|
|
|
20133 |
return _Fields.findByThriftId(fieldId);
|
|
|
20134 |
}
|
|
|
20135 |
|
|
|
20136 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
20137 |
org.apache.thrift.protocol.TField field;
|
|
|
20138 |
iprot.readStructBegin();
|
|
|
20139 |
while (true)
|
|
|
20140 |
{
|
|
|
20141 |
field = iprot.readFieldBegin();
|
|
|
20142 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
20143 |
break;
|
|
|
20144 |
}
|
|
|
20145 |
switch (field.id) {
|
|
|
20146 |
case 0: // SUCCESS
|
|
|
20147 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
20148 |
this.success = new InventoryItem();
|
|
|
20149 |
this.success.read(iprot);
|
|
|
20150 |
} else {
|
|
|
20151 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
20152 |
}
|
|
|
20153 |
break;
|
|
|
20154 |
case 1: // EX
|
|
|
20155 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
20156 |
this.ex = new WarehouseServiceException();
|
|
|
20157 |
this.ex.read(iprot);
|
|
|
20158 |
} else {
|
|
|
20159 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
20160 |
}
|
|
|
20161 |
break;
|
|
|
20162 |
default:
|
|
|
20163 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
20164 |
}
|
|
|
20165 |
iprot.readFieldEnd();
|
|
|
20166 |
}
|
|
|
20167 |
iprot.readStructEnd();
|
|
|
20168 |
validate();
|
|
|
20169 |
}
|
|
|
20170 |
|
|
|
20171 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
20172 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
20173 |
|
|
|
20174 |
if (this.isSetSuccess()) {
|
|
|
20175 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
20176 |
this.success.write(oprot);
|
|
|
20177 |
oprot.writeFieldEnd();
|
|
|
20178 |
} else if (this.isSetEx()) {
|
|
|
20179 |
oprot.writeFieldBegin(EX_FIELD_DESC);
|
|
|
20180 |
this.ex.write(oprot);
|
|
|
20181 |
oprot.writeFieldEnd();
|
|
|
20182 |
}
|
|
|
20183 |
oprot.writeFieldStop();
|
|
|
20184 |
oprot.writeStructEnd();
|
|
|
20185 |
}
|
|
|
20186 |
|
|
|
20187 |
@Override
|
|
|
20188 |
public String toString() {
|
|
|
20189 |
StringBuilder sb = new StringBuilder("scanForOursExternalSale_result(");
|
|
|
20190 |
boolean first = true;
|
|
|
20191 |
|
|
|
20192 |
sb.append("success:");
|
|
|
20193 |
if (this.success == null) {
|
|
|
20194 |
sb.append("null");
|
|
|
20195 |
} else {
|
|
|
20196 |
sb.append(this.success);
|
|
|
20197 |
}
|
|
|
20198 |
first = false;
|
|
|
20199 |
if (!first) sb.append(", ");
|
|
|
20200 |
sb.append("ex:");
|
|
|
20201 |
if (this.ex == null) {
|
|
|
20202 |
sb.append("null");
|
|
|
20203 |
} else {
|
|
|
20204 |
sb.append(this.ex);
|
|
|
20205 |
}
|
|
|
20206 |
first = false;
|
|
|
20207 |
sb.append(")");
|
|
|
20208 |
return sb.toString();
|
|
|
20209 |
}
|
|
|
20210 |
|
|
|
20211 |
public void validate() throws org.apache.thrift.TException {
|
|
|
20212 |
// check for required fields
|
|
|
20213 |
}
|
|
|
20214 |
|
|
|
20215 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
20216 |
try {
|
|
|
20217 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
20218 |
} catch (org.apache.thrift.TException te) {
|
|
|
20219 |
throw new java.io.IOException(te);
|
|
|
20220 |
}
|
|
|
20221 |
}
|
|
|
20222 |
|
|
|
20223 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
20224 |
try {
|
|
|
20225 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
20226 |
} catch (org.apache.thrift.TException te) {
|
|
|
20227 |
throw new java.io.IOException(te);
|
|
|
20228 |
}
|
|
|
20229 |
}
|
|
|
20230 |
|
|
|
20231 |
}
|
|
|
20232 |
|
|
|
20233 |
public static class scanForOursExternalSaleReturn_args implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_args, scanForOursExternalSaleReturn_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
20234 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_args");
|
|
|
20235 |
|
|
|
20236 |
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);
|
|
|
20237 |
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);
|
|
|
20238 |
|
|
|
20239 |
private long orderId; // required
|
|
|
20240 |
private double unitPrice; // required
|
|
|
20241 |
|
|
|
20242 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
20243 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
20244 |
ORDER_ID((short)1, "orderId"),
|
|
|
20245 |
UNIT_PRICE((short)2, "unitPrice");
|
|
|
20246 |
|
|
|
20247 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
20248 |
|
|
|
20249 |
static {
|
|
|
20250 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
20251 |
byName.put(field.getFieldName(), field);
|
|
|
20252 |
}
|
|
|
20253 |
}
|
|
|
20254 |
|
|
|
20255 |
/**
|
|
|
20256 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
20257 |
*/
|
|
|
20258 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
20259 |
switch(fieldId) {
|
|
|
20260 |
case 1: // ORDER_ID
|
|
|
20261 |
return ORDER_ID;
|
|
|
20262 |
case 2: // UNIT_PRICE
|
|
|
20263 |
return UNIT_PRICE;
|
|
|
20264 |
default:
|
|
|
20265 |
return null;
|
|
|
20266 |
}
|
|
|
20267 |
}
|
|
|
20268 |
|
|
|
20269 |
/**
|
|
|
20270 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
20271 |
* if it is not found.
|
|
|
20272 |
*/
|
|
|
20273 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
20274 |
_Fields fields = findByThriftId(fieldId);
|
|
|
20275 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
20276 |
return fields;
|
|
|
20277 |
}
|
|
|
20278 |
|
|
|
20279 |
/**
|
|
|
20280 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
20281 |
*/
|
|
|
20282 |
public static _Fields findByName(String name) {
|
|
|
20283 |
return byName.get(name);
|
|
|
20284 |
}
|
|
|
20285 |
|
|
|
20286 |
private final short _thriftId;
|
|
|
20287 |
private final String _fieldName;
|
|
|
20288 |
|
|
|
20289 |
_Fields(short thriftId, String fieldName) {
|
|
|
20290 |
_thriftId = thriftId;
|
|
|
20291 |
_fieldName = fieldName;
|
|
|
20292 |
}
|
|
|
20293 |
|
|
|
20294 |
public short getThriftFieldId() {
|
|
|
20295 |
return _thriftId;
|
|
|
20296 |
}
|
|
|
20297 |
|
|
|
20298 |
public String getFieldName() {
|
|
|
20299 |
return _fieldName;
|
|
|
20300 |
}
|
|
|
20301 |
}
|
|
|
20302 |
|
|
|
20303 |
// isset id assignments
|
|
|
20304 |
private static final int __ORDERID_ISSET_ID = 0;
|
|
|
20305 |
private static final int __UNITPRICE_ISSET_ID = 1;
|
|
|
20306 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
20307 |
|
|
|
20308 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
20309 |
static {
|
|
|
20310 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
20311 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
20312 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
20313 |
tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
20314 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
20315 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
20316 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_args.class, metaDataMap);
|
|
|
20317 |
}
|
|
|
20318 |
|
|
|
20319 |
public scanForOursExternalSaleReturn_args() {
|
|
|
20320 |
}
|
|
|
20321 |
|
|
|
20322 |
public scanForOursExternalSaleReturn_args(
|
|
|
20323 |
long orderId,
|
|
|
20324 |
double unitPrice)
|
|
|
20325 |
{
|
|
|
20326 |
this();
|
|
|
20327 |
this.orderId = orderId;
|
|
|
20328 |
setOrderIdIsSet(true);
|
|
|
20329 |
this.unitPrice = unitPrice;
|
|
|
20330 |
setUnitPriceIsSet(true);
|
|
|
20331 |
}
|
|
|
20332 |
|
|
|
20333 |
/**
|
|
|
20334 |
* Performs a deep copy on <i>other</i>.
|
|
|
20335 |
*/
|
|
|
20336 |
public scanForOursExternalSaleReturn_args(scanForOursExternalSaleReturn_args other) {
|
|
|
20337 |
__isset_bit_vector.clear();
|
|
|
20338 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
20339 |
this.orderId = other.orderId;
|
|
|
20340 |
this.unitPrice = other.unitPrice;
|
|
|
20341 |
}
|
|
|
20342 |
|
|
|
20343 |
public scanForOursExternalSaleReturn_args deepCopy() {
|
|
|
20344 |
return new scanForOursExternalSaleReturn_args(this);
|
|
|
20345 |
}
|
|
|
20346 |
|
|
|
20347 |
@Override
|
|
|
20348 |
public void clear() {
|
|
|
20349 |
setOrderIdIsSet(false);
|
|
|
20350 |
this.orderId = 0;
|
|
|
20351 |
setUnitPriceIsSet(false);
|
|
|
20352 |
this.unitPrice = 0.0;
|
|
|
20353 |
}
|
|
|
20354 |
|
|
|
20355 |
public long getOrderId() {
|
|
|
20356 |
return this.orderId;
|
|
|
20357 |
}
|
|
|
20358 |
|
|
|
20359 |
public void setOrderId(long orderId) {
|
|
|
20360 |
this.orderId = orderId;
|
|
|
20361 |
setOrderIdIsSet(true);
|
|
|
20362 |
}
|
|
|
20363 |
|
|
|
20364 |
public void unsetOrderId() {
|
|
|
20365 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
20366 |
}
|
|
|
20367 |
|
|
|
20368 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
20369 |
public boolean isSetOrderId() {
|
|
|
20370 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
20371 |
}
|
|
|
20372 |
|
|
|
20373 |
public void setOrderIdIsSet(boolean value) {
|
|
|
20374 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
20375 |
}
|
|
|
20376 |
|
|
|
20377 |
public double getUnitPrice() {
|
|
|
20378 |
return this.unitPrice;
|
|
|
20379 |
}
|
|
|
20380 |
|
|
|
20381 |
public void setUnitPrice(double unitPrice) {
|
|
|
20382 |
this.unitPrice = unitPrice;
|
|
|
20383 |
setUnitPriceIsSet(true);
|
|
|
20384 |
}
|
|
|
20385 |
|
|
|
20386 |
public void unsetUnitPrice() {
|
|
|
20387 |
__isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
|
|
|
20388 |
}
|
|
|
20389 |
|
|
|
20390 |
/** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
|
|
|
20391 |
public boolean isSetUnitPrice() {
|
|
|
20392 |
return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
|
|
|
20393 |
}
|
|
|
20394 |
|
|
|
20395 |
public void setUnitPriceIsSet(boolean value) {
|
|
|
20396 |
__isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
|
|
|
20397 |
}
|
|
|
20398 |
|
|
|
20399 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
20400 |
switch (field) {
|
|
|
20401 |
case ORDER_ID:
|
|
|
20402 |
if (value == null) {
|
|
|
20403 |
unsetOrderId();
|
|
|
20404 |
} else {
|
|
|
20405 |
setOrderId((Long)value);
|
|
|
20406 |
}
|
|
|
20407 |
break;
|
|
|
20408 |
|
|
|
20409 |
case UNIT_PRICE:
|
|
|
20410 |
if (value == null) {
|
|
|
20411 |
unsetUnitPrice();
|
|
|
20412 |
} else {
|
|
|
20413 |
setUnitPrice((Double)value);
|
|
|
20414 |
}
|
|
|
20415 |
break;
|
|
|
20416 |
|
|
|
20417 |
}
|
|
|
20418 |
}
|
|
|
20419 |
|
|
|
20420 |
public Object getFieldValue(_Fields field) {
|
|
|
20421 |
switch (field) {
|
|
|
20422 |
case ORDER_ID:
|
|
|
20423 |
return Long.valueOf(getOrderId());
|
|
|
20424 |
|
|
|
20425 |
case UNIT_PRICE:
|
|
|
20426 |
return Double.valueOf(getUnitPrice());
|
|
|
20427 |
|
|
|
20428 |
}
|
|
|
20429 |
throw new IllegalStateException();
|
|
|
20430 |
}
|
|
|
20431 |
|
|
|
20432 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
20433 |
public boolean isSet(_Fields field) {
|
|
|
20434 |
if (field == null) {
|
|
|
20435 |
throw new IllegalArgumentException();
|
|
|
20436 |
}
|
|
|
20437 |
|
|
|
20438 |
switch (field) {
|
|
|
20439 |
case ORDER_ID:
|
|
|
20440 |
return isSetOrderId();
|
|
|
20441 |
case UNIT_PRICE:
|
|
|
20442 |
return isSetUnitPrice();
|
|
|
20443 |
}
|
|
|
20444 |
throw new IllegalStateException();
|
|
|
20445 |
}
|
|
|
20446 |
|
|
|
20447 |
@Override
|
|
|
20448 |
public boolean equals(Object that) {
|
|
|
20449 |
if (that == null)
|
|
|
20450 |
return false;
|
|
|
20451 |
if (that instanceof scanForOursExternalSaleReturn_args)
|
|
|
20452 |
return this.equals((scanForOursExternalSaleReturn_args)that);
|
|
|
20453 |
return false;
|
|
|
20454 |
}
|
|
|
20455 |
|
|
|
20456 |
public boolean equals(scanForOursExternalSaleReturn_args that) {
|
|
|
20457 |
if (that == null)
|
|
|
20458 |
return false;
|
|
|
20459 |
|
|
|
20460 |
boolean this_present_orderId = true;
|
|
|
20461 |
boolean that_present_orderId = true;
|
|
|
20462 |
if (this_present_orderId || that_present_orderId) {
|
|
|
20463 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
20464 |
return false;
|
|
|
20465 |
if (this.orderId != that.orderId)
|
|
|
20466 |
return false;
|
|
|
20467 |
}
|
|
|
20468 |
|
|
|
20469 |
boolean this_present_unitPrice = true;
|
|
|
20470 |
boolean that_present_unitPrice = true;
|
|
|
20471 |
if (this_present_unitPrice || that_present_unitPrice) {
|
|
|
20472 |
if (!(this_present_unitPrice && that_present_unitPrice))
|
|
|
20473 |
return false;
|
|
|
20474 |
if (this.unitPrice != that.unitPrice)
|
|
|
20475 |
return false;
|
|
|
20476 |
}
|
|
|
20477 |
|
|
|
20478 |
return true;
|
|
|
20479 |
}
|
|
|
20480 |
|
|
|
20481 |
@Override
|
|
|
20482 |
public int hashCode() {
|
|
|
20483 |
return 0;
|
|
|
20484 |
}
|
|
|
20485 |
|
|
|
20486 |
public int compareTo(scanForOursExternalSaleReturn_args other) {
|
|
|
20487 |
if (!getClass().equals(other.getClass())) {
|
|
|
20488 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
20489 |
}
|
|
|
20490 |
|
|
|
20491 |
int lastComparison = 0;
|
|
|
20492 |
scanForOursExternalSaleReturn_args typedOther = (scanForOursExternalSaleReturn_args)other;
|
|
|
20493 |
|
|
|
20494 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
20495 |
if (lastComparison != 0) {
|
|
|
20496 |
return lastComparison;
|
|
|
20497 |
}
|
|
|
20498 |
if (isSetOrderId()) {
|
|
|
20499 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
20500 |
if (lastComparison != 0) {
|
|
|
20501 |
return lastComparison;
|
|
|
20502 |
}
|
|
|
20503 |
}
|
|
|
20504 |
lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
|
|
|
20505 |
if (lastComparison != 0) {
|
|
|
20506 |
return lastComparison;
|
|
|
20507 |
}
|
|
|
20508 |
if (isSetUnitPrice()) {
|
|
|
20509 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
|
|
|
20510 |
if (lastComparison != 0) {
|
|
|
20511 |
return lastComparison;
|
|
|
20512 |
}
|
|
|
20513 |
}
|
|
|
20514 |
return 0;
|
|
|
20515 |
}
|
|
|
20516 |
|
|
|
20517 |
public _Fields fieldForId(int fieldId) {
|
|
|
20518 |
return _Fields.findByThriftId(fieldId);
|
|
|
20519 |
}
|
|
|
20520 |
|
|
|
20521 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
20522 |
org.apache.thrift.protocol.TField field;
|
|
|
20523 |
iprot.readStructBegin();
|
|
|
20524 |
while (true)
|
|
|
20525 |
{
|
|
|
20526 |
field = iprot.readFieldBegin();
|
|
|
20527 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
20528 |
break;
|
|
|
20529 |
}
|
|
|
20530 |
switch (field.id) {
|
|
|
20531 |
case 1: // ORDER_ID
|
|
|
20532 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
20533 |
this.orderId = iprot.readI64();
|
|
|
20534 |
setOrderIdIsSet(true);
|
|
|
20535 |
} else {
|
|
|
20536 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
20537 |
}
|
|
|
20538 |
break;
|
|
|
20539 |
case 2: // UNIT_PRICE
|
|
|
20540 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
20541 |
this.unitPrice = iprot.readDouble();
|
|
|
20542 |
setUnitPriceIsSet(true);
|
|
|
20543 |
} else {
|
|
|
20544 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
20545 |
}
|
|
|
20546 |
break;
|
|
|
20547 |
default:
|
|
|
20548 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
20549 |
}
|
|
|
20550 |
iprot.readFieldEnd();
|
|
|
20551 |
}
|
|
|
20552 |
iprot.readStructEnd();
|
|
|
20553 |
validate();
|
|
|
20554 |
}
|
|
|
20555 |
|
|
|
20556 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
20557 |
validate();
|
|
|
20558 |
|
|
|
20559 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
20560 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
20561 |
oprot.writeI64(this.orderId);
|
|
|
20562 |
oprot.writeFieldEnd();
|
|
|
20563 |
oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
|
|
|
20564 |
oprot.writeDouble(this.unitPrice);
|
|
|
20565 |
oprot.writeFieldEnd();
|
|
|
20566 |
oprot.writeFieldStop();
|
|
|
20567 |
oprot.writeStructEnd();
|
|
|
20568 |
}
|
|
|
20569 |
|
|
|
20570 |
@Override
|
|
|
20571 |
public String toString() {
|
|
|
20572 |
StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_args(");
|
|
|
20573 |
boolean first = true;
|
|
|
20574 |
|
|
|
20575 |
sb.append("orderId:");
|
|
|
20576 |
sb.append(this.orderId);
|
|
|
20577 |
first = false;
|
|
|
20578 |
if (!first) sb.append(", ");
|
|
|
20579 |
sb.append("unitPrice:");
|
|
|
20580 |
sb.append(this.unitPrice);
|
|
|
20581 |
first = false;
|
|
|
20582 |
sb.append(")");
|
|
|
20583 |
return sb.toString();
|
|
|
20584 |
}
|
|
|
20585 |
|
|
|
20586 |
public void validate() throws org.apache.thrift.TException {
|
|
|
20587 |
// check for required fields
|
|
|
20588 |
}
|
|
|
20589 |
|
|
|
20590 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
20591 |
try {
|
|
|
20592 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
20593 |
} catch (org.apache.thrift.TException te) {
|
|
|
20594 |
throw new java.io.IOException(te);
|
|
|
20595 |
}
|
|
|
20596 |
}
|
|
|
20597 |
|
|
|
20598 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
20599 |
try {
|
|
|
20600 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
20601 |
} catch (org.apache.thrift.TException te) {
|
|
|
20602 |
throw new java.io.IOException(te);
|
|
|
20603 |
}
|
|
|
20604 |
}
|
|
|
20605 |
|
|
|
20606 |
}
|
|
|
20607 |
|
|
|
20608 |
public static class scanForOursExternalSaleReturn_result implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_result, scanForOursExternalSaleReturn_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
20609 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_result");
|
|
|
20610 |
|
|
|
20611 |
|
|
|
20612 |
|
|
|
20613 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
20614 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
20615 |
;
|
|
|
20616 |
|
|
|
20617 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
20618 |
|
|
|
20619 |
static {
|
|
|
20620 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
20621 |
byName.put(field.getFieldName(), field);
|
|
|
20622 |
}
|
|
|
20623 |
}
|
|
|
20624 |
|
|
|
20625 |
/**
|
|
|
20626 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
20627 |
*/
|
|
|
20628 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
20629 |
switch(fieldId) {
|
|
|
20630 |
default:
|
|
|
20631 |
return null;
|
|
|
20632 |
}
|
|
|
20633 |
}
|
|
|
20634 |
|
|
|
20635 |
/**
|
|
|
20636 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
20637 |
* if it is not found.
|
|
|
20638 |
*/
|
|
|
20639 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
20640 |
_Fields fields = findByThriftId(fieldId);
|
|
|
20641 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
20642 |
return fields;
|
|
|
20643 |
}
|
|
|
20644 |
|
|
|
20645 |
/**
|
|
|
20646 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
20647 |
*/
|
|
|
20648 |
public static _Fields findByName(String name) {
|
|
|
20649 |
return byName.get(name);
|
|
|
20650 |
}
|
|
|
20651 |
|
|
|
20652 |
private final short _thriftId;
|
|
|
20653 |
private final String _fieldName;
|
|
|
20654 |
|
|
|
20655 |
_Fields(short thriftId, String fieldName) {
|
|
|
20656 |
_thriftId = thriftId;
|
|
|
20657 |
_fieldName = fieldName;
|
|
|
20658 |
}
|
|
|
20659 |
|
|
|
20660 |
public short getThriftFieldId() {
|
|
|
20661 |
return _thriftId;
|
|
|
20662 |
}
|
|
|
20663 |
|
|
|
20664 |
public String getFieldName() {
|
|
|
20665 |
return _fieldName;
|
|
|
20666 |
}
|
|
|
20667 |
}
|
|
|
20668 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
20669 |
static {
|
|
|
20670 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
20671 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
20672 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_result.class, metaDataMap);
|
|
|
20673 |
}
|
|
|
20674 |
|
|
|
20675 |
public scanForOursExternalSaleReturn_result() {
|
|
|
20676 |
}
|
|
|
20677 |
|
|
|
20678 |
/**
|
|
|
20679 |
* Performs a deep copy on <i>other</i>.
|
|
|
20680 |
*/
|
|
|
20681 |
public scanForOursExternalSaleReturn_result(scanForOursExternalSaleReturn_result other) {
|
|
|
20682 |
}
|
|
|
20683 |
|
|
|
20684 |
public scanForOursExternalSaleReturn_result deepCopy() {
|
|
|
20685 |
return new scanForOursExternalSaleReturn_result(this);
|
|
|
20686 |
}
|
|
|
20687 |
|
|
|
20688 |
@Override
|
|
|
20689 |
public void clear() {
|
|
|
20690 |
}
|
|
|
20691 |
|
|
|
20692 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
20693 |
switch (field) {
|
|
|
20694 |
}
|
|
|
20695 |
}
|
|
|
20696 |
|
|
|
20697 |
public Object getFieldValue(_Fields field) {
|
|
|
20698 |
switch (field) {
|
|
|
20699 |
}
|
|
|
20700 |
throw new IllegalStateException();
|
|
|
20701 |
}
|
|
|
20702 |
|
|
|
20703 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
20704 |
public boolean isSet(_Fields field) {
|
|
|
20705 |
if (field == null) {
|
|
|
20706 |
throw new IllegalArgumentException();
|
|
|
20707 |
}
|
|
|
20708 |
|
|
|
20709 |
switch (field) {
|
|
|
20710 |
}
|
|
|
20711 |
throw new IllegalStateException();
|
|
|
20712 |
}
|
|
|
20713 |
|
|
|
20714 |
@Override
|
|
|
20715 |
public boolean equals(Object that) {
|
|
|
20716 |
if (that == null)
|
|
|
20717 |
return false;
|
|
|
20718 |
if (that instanceof scanForOursExternalSaleReturn_result)
|
|
|
20719 |
return this.equals((scanForOursExternalSaleReturn_result)that);
|
|
|
20720 |
return false;
|
|
|
20721 |
}
|
|
|
20722 |
|
|
|
20723 |
public boolean equals(scanForOursExternalSaleReturn_result that) {
|
|
|
20724 |
if (that == null)
|
|
|
20725 |
return false;
|
|
|
20726 |
|
|
|
20727 |
return true;
|
|
|
20728 |
}
|
|
|
20729 |
|
|
|
20730 |
@Override
|
|
|
20731 |
public int hashCode() {
|
|
|
20732 |
return 0;
|
|
|
20733 |
}
|
|
|
20734 |
|
|
|
20735 |
public int compareTo(scanForOursExternalSaleReturn_result other) {
|
|
|
20736 |
if (!getClass().equals(other.getClass())) {
|
|
|
20737 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
20738 |
}
|
|
|
20739 |
|
|
|
20740 |
int lastComparison = 0;
|
|
|
20741 |
scanForOursExternalSaleReturn_result typedOther = (scanForOursExternalSaleReturn_result)other;
|
|
|
20742 |
|
|
|
20743 |
return 0;
|
|
|
20744 |
}
|
|
|
20745 |
|
|
|
20746 |
public _Fields fieldForId(int fieldId) {
|
|
|
20747 |
return _Fields.findByThriftId(fieldId);
|
|
|
20748 |
}
|
|
|
20749 |
|
|
|
20750 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
20751 |
org.apache.thrift.protocol.TField field;
|
|
|
20752 |
iprot.readStructBegin();
|
|
|
20753 |
while (true)
|
|
|
20754 |
{
|
|
|
20755 |
field = iprot.readFieldBegin();
|
|
|
20756 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
20757 |
break;
|
|
|
20758 |
}
|
|
|
20759 |
switch (field.id) {
|
|
|
20760 |
default:
|
|
|
20761 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
20762 |
}
|
|
|
20763 |
iprot.readFieldEnd();
|
|
|
20764 |
}
|
|
|
20765 |
iprot.readStructEnd();
|
|
|
20766 |
validate();
|
|
|
20767 |
}
|
|
|
20768 |
|
|
|
20769 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
20770 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
20771 |
|
|
|
20772 |
oprot.writeFieldStop();
|
|
|
20773 |
oprot.writeStructEnd();
|
|
|
20774 |
}
|
|
|
20775 |
|
|
|
20776 |
@Override
|
|
|
20777 |
public String toString() {
|
|
|
20778 |
StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_result(");
|
|
|
20779 |
boolean first = true;
|
|
|
20780 |
|
|
|
20781 |
sb.append(")");
|
|
|
20782 |
return sb.toString();
|
|
|
20783 |
}
|
|
|
20784 |
|
|
|
20785 |
public void validate() throws org.apache.thrift.TException {
|
|
|
20786 |
// check for required fields
|
|
|
20787 |
}
|
|
|
20788 |
|
|
|
20789 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
20790 |
try {
|
|
|
20791 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
20792 |
} catch (org.apache.thrift.TException te) {
|
|
|
20793 |
throw new java.io.IOException(te);
|
|
|
20794 |
}
|
|
|
20795 |
}
|
|
|
20796 |
|
|
|
20797 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
20798 |
try {
|
|
|
20799 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
20800 |
} catch (org.apache.thrift.TException te) {
|
|
|
20801 |
throw new java.io.IOException(te);
|
|
|
20802 |
}
|
|
|
20803 |
}
|
|
|
20804 |
|
|
|
20805 |
}
|
|
|
20806 |
|
| 6880 |
amar.kumar |
20807 |
public static class getMovementNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_args, getMovementNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
20808 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_args");
|
|
|
20809 |
|
|
|
20810 |
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);
|
|
|
20811 |
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);
|
|
|
20812 |
|
|
|
20813 |
private long startDate; // required
|
|
|
20814 |
private long endDate; // required
|
|
|
20815 |
|
|
|
20816 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
20817 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
20818 |
START_DATE((short)1, "startDate"),
|
|
|
20819 |
END_DATE((short)2, "endDate");
|
|
|
20820 |
|
|
|
20821 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
20822 |
|
|
|
20823 |
static {
|
|
|
20824 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
20825 |
byName.put(field.getFieldName(), field);
|
|
|
20826 |
}
|
|
|
20827 |
}
|
|
|
20828 |
|
|
|
20829 |
/**
|
|
|
20830 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
20831 |
*/
|
|
|
20832 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
20833 |
switch(fieldId) {
|
|
|
20834 |
case 1: // START_DATE
|
|
|
20835 |
return START_DATE;
|
|
|
20836 |
case 2: // END_DATE
|
|
|
20837 |
return END_DATE;
|
|
|
20838 |
default:
|
|
|
20839 |
return null;
|
|
|
20840 |
}
|
|
|
20841 |
}
|
|
|
20842 |
|
|
|
20843 |
/**
|
|
|
20844 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
20845 |
* if it is not found.
|
|
|
20846 |
*/
|
|
|
20847 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
20848 |
_Fields fields = findByThriftId(fieldId);
|
|
|
20849 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
20850 |
return fields;
|
|
|
20851 |
}
|
|
|
20852 |
|
|
|
20853 |
/**
|
|
|
20854 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
20855 |
*/
|
|
|
20856 |
public static _Fields findByName(String name) {
|
|
|
20857 |
return byName.get(name);
|
|
|
20858 |
}
|
|
|
20859 |
|
|
|
20860 |
private final short _thriftId;
|
|
|
20861 |
private final String _fieldName;
|
|
|
20862 |
|
|
|
20863 |
_Fields(short thriftId, String fieldName) {
|
|
|
20864 |
_thriftId = thriftId;
|
|
|
20865 |
_fieldName = fieldName;
|
|
|
20866 |
}
|
|
|
20867 |
|
|
|
20868 |
public short getThriftFieldId() {
|
|
|
20869 |
return _thriftId;
|
|
|
20870 |
}
|
|
|
20871 |
|
|
|
20872 |
public String getFieldName() {
|
|
|
20873 |
return _fieldName;
|
|
|
20874 |
}
|
|
|
20875 |
}
|
|
|
20876 |
|
|
|
20877 |
// isset id assignments
|
|
|
20878 |
private static final int __STARTDATE_ISSET_ID = 0;
|
|
|
20879 |
private static final int __ENDDATE_ISSET_ID = 1;
|
|
|
20880 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
20881 |
|
|
|
20882 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
20883 |
static {
|
|
|
20884 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
20885 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
20886 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
20887 |
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
20888 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
20889 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
20890 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
20891 |
}
|
|
|
20892 |
|
|
|
20893 |
public getMovementNonSerializedInventoryByScans_args() {
|
|
|
20894 |
}
|
|
|
20895 |
|
|
|
20896 |
public getMovementNonSerializedInventoryByScans_args(
|
|
|
20897 |
long startDate,
|
|
|
20898 |
long endDate)
|
|
|
20899 |
{
|
|
|
20900 |
this();
|
|
|
20901 |
this.startDate = startDate;
|
|
|
20902 |
setStartDateIsSet(true);
|
|
|
20903 |
this.endDate = endDate;
|
|
|
20904 |
setEndDateIsSet(true);
|
|
|
20905 |
}
|
|
|
20906 |
|
|
|
20907 |
/**
|
|
|
20908 |
* Performs a deep copy on <i>other</i>.
|
|
|
20909 |
*/
|
|
|
20910 |
public getMovementNonSerializedInventoryByScans_args(getMovementNonSerializedInventoryByScans_args other) {
|
|
|
20911 |
__isset_bit_vector.clear();
|
|
|
20912 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
20913 |
this.startDate = other.startDate;
|
|
|
20914 |
this.endDate = other.endDate;
|
|
|
20915 |
}
|
|
|
20916 |
|
|
|
20917 |
public getMovementNonSerializedInventoryByScans_args deepCopy() {
|
|
|
20918 |
return new getMovementNonSerializedInventoryByScans_args(this);
|
|
|
20919 |
}
|
|
|
20920 |
|
|
|
20921 |
@Override
|
|
|
20922 |
public void clear() {
|
|
|
20923 |
setStartDateIsSet(false);
|
|
|
20924 |
this.startDate = 0;
|
|
|
20925 |
setEndDateIsSet(false);
|
|
|
20926 |
this.endDate = 0;
|
|
|
20927 |
}
|
|
|
20928 |
|
|
|
20929 |
public long getStartDate() {
|
|
|
20930 |
return this.startDate;
|
|
|
20931 |
}
|
|
|
20932 |
|
|
|
20933 |
public void setStartDate(long startDate) {
|
|
|
20934 |
this.startDate = startDate;
|
|
|
20935 |
setStartDateIsSet(true);
|
|
|
20936 |
}
|
|
|
20937 |
|
|
|
20938 |
public void unsetStartDate() {
|
|
|
20939 |
__isset_bit_vector.clear(__STARTDATE_ISSET_ID);
|
|
|
20940 |
}
|
|
|
20941 |
|
|
|
20942 |
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
|
|
|
20943 |
public boolean isSetStartDate() {
|
|
|
20944 |
return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
|
|
|
20945 |
}
|
|
|
20946 |
|
|
|
20947 |
public void setStartDateIsSet(boolean value) {
|
|
|
20948 |
__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
|
|
|
20949 |
}
|
|
|
20950 |
|
|
|
20951 |
public long getEndDate() {
|
|
|
20952 |
return this.endDate;
|
|
|
20953 |
}
|
|
|
20954 |
|
|
|
20955 |
public void setEndDate(long endDate) {
|
|
|
20956 |
this.endDate = endDate;
|
|
|
20957 |
setEndDateIsSet(true);
|
|
|
20958 |
}
|
|
|
20959 |
|
|
|
20960 |
public void unsetEndDate() {
|
|
|
20961 |
__isset_bit_vector.clear(__ENDDATE_ISSET_ID);
|
|
|
20962 |
}
|
|
|
20963 |
|
|
|
20964 |
/** Returns true if field endDate is set (has been assigned a value) and false otherwise */
|
|
|
20965 |
public boolean isSetEndDate() {
|
|
|
20966 |
return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
|
|
|
20967 |
}
|
|
|
20968 |
|
|
|
20969 |
public void setEndDateIsSet(boolean value) {
|
|
|
20970 |
__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
|
|
|
20971 |
}
|
|
|
20972 |
|
|
|
20973 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
20974 |
switch (field) {
|
|
|
20975 |
case START_DATE:
|
|
|
20976 |
if (value == null) {
|
|
|
20977 |
unsetStartDate();
|
|
|
20978 |
} else {
|
|
|
20979 |
setStartDate((Long)value);
|
|
|
20980 |
}
|
|
|
20981 |
break;
|
|
|
20982 |
|
|
|
20983 |
case END_DATE:
|
|
|
20984 |
if (value == null) {
|
|
|
20985 |
unsetEndDate();
|
|
|
20986 |
} else {
|
|
|
20987 |
setEndDate((Long)value);
|
|
|
20988 |
}
|
|
|
20989 |
break;
|
|
|
20990 |
|
|
|
20991 |
}
|
|
|
20992 |
}
|
|
|
20993 |
|
|
|
20994 |
public Object getFieldValue(_Fields field) {
|
|
|
20995 |
switch (field) {
|
|
|
20996 |
case START_DATE:
|
|
|
20997 |
return Long.valueOf(getStartDate());
|
|
|
20998 |
|
|
|
20999 |
case END_DATE:
|
|
|
21000 |
return Long.valueOf(getEndDate());
|
|
|
21001 |
|
|
|
21002 |
}
|
|
|
21003 |
throw new IllegalStateException();
|
|
|
21004 |
}
|
|
|
21005 |
|
|
|
21006 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
21007 |
public boolean isSet(_Fields field) {
|
|
|
21008 |
if (field == null) {
|
|
|
21009 |
throw new IllegalArgumentException();
|
|
|
21010 |
}
|
|
|
21011 |
|
|
|
21012 |
switch (field) {
|
|
|
21013 |
case START_DATE:
|
|
|
21014 |
return isSetStartDate();
|
|
|
21015 |
case END_DATE:
|
|
|
21016 |
return isSetEndDate();
|
|
|
21017 |
}
|
|
|
21018 |
throw new IllegalStateException();
|
|
|
21019 |
}
|
|
|
21020 |
|
|
|
21021 |
@Override
|
|
|
21022 |
public boolean equals(Object that) {
|
|
|
21023 |
if (that == null)
|
|
|
21024 |
return false;
|
|
|
21025 |
if (that instanceof getMovementNonSerializedInventoryByScans_args)
|
|
|
21026 |
return this.equals((getMovementNonSerializedInventoryByScans_args)that);
|
|
|
21027 |
return false;
|
|
|
21028 |
}
|
|
|
21029 |
|
|
|
21030 |
public boolean equals(getMovementNonSerializedInventoryByScans_args that) {
|
|
|
21031 |
if (that == null)
|
|
|
21032 |
return false;
|
|
|
21033 |
|
|
|
21034 |
boolean this_present_startDate = true;
|
|
|
21035 |
boolean that_present_startDate = true;
|
|
|
21036 |
if (this_present_startDate || that_present_startDate) {
|
|
|
21037 |
if (!(this_present_startDate && that_present_startDate))
|
|
|
21038 |
return false;
|
|
|
21039 |
if (this.startDate != that.startDate)
|
|
|
21040 |
return false;
|
|
|
21041 |
}
|
|
|
21042 |
|
|
|
21043 |
boolean this_present_endDate = true;
|
|
|
21044 |
boolean that_present_endDate = true;
|
|
|
21045 |
if (this_present_endDate || that_present_endDate) {
|
|
|
21046 |
if (!(this_present_endDate && that_present_endDate))
|
|
|
21047 |
return false;
|
|
|
21048 |
if (this.endDate != that.endDate)
|
|
|
21049 |
return false;
|
|
|
21050 |
}
|
|
|
21051 |
|
|
|
21052 |
return true;
|
|
|
21053 |
}
|
|
|
21054 |
|
|
|
21055 |
@Override
|
|
|
21056 |
public int hashCode() {
|
|
|
21057 |
return 0;
|
|
|
21058 |
}
|
|
|
21059 |
|
|
|
21060 |
public int compareTo(getMovementNonSerializedInventoryByScans_args other) {
|
|
|
21061 |
if (!getClass().equals(other.getClass())) {
|
|
|
21062 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
21063 |
}
|
|
|
21064 |
|
|
|
21065 |
int lastComparison = 0;
|
|
|
21066 |
getMovementNonSerializedInventoryByScans_args typedOther = (getMovementNonSerializedInventoryByScans_args)other;
|
|
|
21067 |
|
|
|
21068 |
lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
|
|
|
21069 |
if (lastComparison != 0) {
|
|
|
21070 |
return lastComparison;
|
|
|
21071 |
}
|
|
|
21072 |
if (isSetStartDate()) {
|
|
|
21073 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
|
|
|
21074 |
if (lastComparison != 0) {
|
|
|
21075 |
return lastComparison;
|
|
|
21076 |
}
|
|
|
21077 |
}
|
|
|
21078 |
lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
|
|
|
21079 |
if (lastComparison != 0) {
|
|
|
21080 |
return lastComparison;
|
|
|
21081 |
}
|
|
|
21082 |
if (isSetEndDate()) {
|
|
|
21083 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
|
|
|
21084 |
if (lastComparison != 0) {
|
|
|
21085 |
return lastComparison;
|
|
|
21086 |
}
|
|
|
21087 |
}
|
|
|
21088 |
return 0;
|
|
|
21089 |
}
|
|
|
21090 |
|
|
|
21091 |
public _Fields fieldForId(int fieldId) {
|
|
|
21092 |
return _Fields.findByThriftId(fieldId);
|
|
|
21093 |
}
|
|
|
21094 |
|
|
|
21095 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
21096 |
org.apache.thrift.protocol.TField field;
|
|
|
21097 |
iprot.readStructBegin();
|
|
|
21098 |
while (true)
|
|
|
21099 |
{
|
|
|
21100 |
field = iprot.readFieldBegin();
|
|
|
21101 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
21102 |
break;
|
|
|
21103 |
}
|
|
|
21104 |
switch (field.id) {
|
|
|
21105 |
case 1: // START_DATE
|
|
|
21106 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
21107 |
this.startDate = iprot.readI64();
|
|
|
21108 |
setStartDateIsSet(true);
|
|
|
21109 |
} else {
|
|
|
21110 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
21111 |
}
|
|
|
21112 |
break;
|
|
|
21113 |
case 2: // END_DATE
|
|
|
21114 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
21115 |
this.endDate = iprot.readI64();
|
|
|
21116 |
setEndDateIsSet(true);
|
|
|
21117 |
} else {
|
|
|
21118 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
21119 |
}
|
|
|
21120 |
break;
|
|
|
21121 |
default:
|
|
|
21122 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
21123 |
}
|
|
|
21124 |
iprot.readFieldEnd();
|
|
|
21125 |
}
|
|
|
21126 |
iprot.readStructEnd();
|
|
|
21127 |
validate();
|
|
|
21128 |
}
|
|
|
21129 |
|
|
|
21130 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
21131 |
validate();
|
|
|
21132 |
|
|
|
21133 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
21134 |
oprot.writeFieldBegin(START_DATE_FIELD_DESC);
|
|
|
21135 |
oprot.writeI64(this.startDate);
|
|
|
21136 |
oprot.writeFieldEnd();
|
|
|
21137 |
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
|
|
|
21138 |
oprot.writeI64(this.endDate);
|
|
|
21139 |
oprot.writeFieldEnd();
|
|
|
21140 |
oprot.writeFieldStop();
|
|
|
21141 |
oprot.writeStructEnd();
|
|
|
21142 |
}
|
|
|
21143 |
|
|
|
21144 |
@Override
|
|
|
21145 |
public String toString() {
|
|
|
21146 |
StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_args(");
|
|
|
21147 |
boolean first = true;
|
|
|
21148 |
|
|
|
21149 |
sb.append("startDate:");
|
|
|
21150 |
sb.append(this.startDate);
|
|
|
21151 |
first = false;
|
|
|
21152 |
if (!first) sb.append(", ");
|
|
|
21153 |
sb.append("endDate:");
|
|
|
21154 |
sb.append(this.endDate);
|
|
|
21155 |
first = false;
|
|
|
21156 |
sb.append(")");
|
|
|
21157 |
return sb.toString();
|
|
|
21158 |
}
|
|
|
21159 |
|
|
|
21160 |
public void validate() throws org.apache.thrift.TException {
|
|
|
21161 |
// check for required fields
|
|
|
21162 |
}
|
|
|
21163 |
|
|
|
21164 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
21165 |
try {
|
|
|
21166 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
21167 |
} catch (org.apache.thrift.TException te) {
|
|
|
21168 |
throw new java.io.IOException(te);
|
|
|
21169 |
}
|
|
|
21170 |
}
|
|
|
21171 |
|
|
|
21172 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
21173 |
try {
|
|
|
21174 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
21175 |
__isset_bit_vector = new BitSet(1);
|
|
|
21176 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
21177 |
} catch (org.apache.thrift.TException te) {
|
|
|
21178 |
throw new java.io.IOException(te);
|
|
|
21179 |
}
|
|
|
21180 |
}
|
|
|
21181 |
|
|
|
21182 |
}
|
|
|
21183 |
|
|
|
21184 |
public static class getMovementNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_result, getMovementNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
21185 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_result");
|
|
|
21186 |
|
|
|
21187 |
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);
|
|
|
21188 |
|
|
|
21189 |
private List<InventoryMovement> success; // required
|
|
|
21190 |
|
|
|
21191 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
21192 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
21193 |
SUCCESS((short)0, "success");
|
|
|
21194 |
|
|
|
21195 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
21196 |
|
|
|
21197 |
static {
|
|
|
21198 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
21199 |
byName.put(field.getFieldName(), field);
|
|
|
21200 |
}
|
|
|
21201 |
}
|
|
|
21202 |
|
|
|
21203 |
/**
|
|
|
21204 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
21205 |
*/
|
|
|
21206 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
21207 |
switch(fieldId) {
|
|
|
21208 |
case 0: // SUCCESS
|
|
|
21209 |
return SUCCESS;
|
|
|
21210 |
default:
|
|
|
21211 |
return null;
|
|
|
21212 |
}
|
|
|
21213 |
}
|
|
|
21214 |
|
|
|
21215 |
/**
|
|
|
21216 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
21217 |
* if it is not found.
|
|
|
21218 |
*/
|
|
|
21219 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
21220 |
_Fields fields = findByThriftId(fieldId);
|
|
|
21221 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
21222 |
return fields;
|
|
|
21223 |
}
|
|
|
21224 |
|
|
|
21225 |
/**
|
|
|
21226 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
21227 |
*/
|
|
|
21228 |
public static _Fields findByName(String name) {
|
|
|
21229 |
return byName.get(name);
|
|
|
21230 |
}
|
|
|
21231 |
|
|
|
21232 |
private final short _thriftId;
|
|
|
21233 |
private final String _fieldName;
|
|
|
21234 |
|
|
|
21235 |
_Fields(short thriftId, String fieldName) {
|
|
|
21236 |
_thriftId = thriftId;
|
|
|
21237 |
_fieldName = fieldName;
|
|
|
21238 |
}
|
|
|
21239 |
|
|
|
21240 |
public short getThriftFieldId() {
|
|
|
21241 |
return _thriftId;
|
|
|
21242 |
}
|
|
|
21243 |
|
|
|
21244 |
public String getFieldName() {
|
|
|
21245 |
return _fieldName;
|
|
|
21246 |
}
|
|
|
21247 |
}
|
|
|
21248 |
|
|
|
21249 |
// isset id assignments
|
|
|
21250 |
|
|
|
21251 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
21252 |
static {
|
|
|
21253 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
21254 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
21255 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
21256 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
|
|
|
21257 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
21258 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
21259 |
}
|
|
|
21260 |
|
|
|
21261 |
public getMovementNonSerializedInventoryByScans_result() {
|
|
|
21262 |
}
|
|
|
21263 |
|
|
|
21264 |
public getMovementNonSerializedInventoryByScans_result(
|
|
|
21265 |
List<InventoryMovement> success)
|
|
|
21266 |
{
|
|
|
21267 |
this();
|
|
|
21268 |
this.success = success;
|
|
|
21269 |
}
|
|
|
21270 |
|
|
|
21271 |
/**
|
|
|
21272 |
* Performs a deep copy on <i>other</i>.
|
|
|
21273 |
*/
|
|
|
21274 |
public getMovementNonSerializedInventoryByScans_result(getMovementNonSerializedInventoryByScans_result other) {
|
|
|
21275 |
if (other.isSetSuccess()) {
|
|
|
21276 |
List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
|
|
|
21277 |
for (InventoryMovement other_element : other.success) {
|
|
|
21278 |
__this__success.add(new InventoryMovement(other_element));
|
|
|
21279 |
}
|
|
|
21280 |
this.success = __this__success;
|
|
|
21281 |
}
|
|
|
21282 |
}
|
|
|
21283 |
|
|
|
21284 |
public getMovementNonSerializedInventoryByScans_result deepCopy() {
|
|
|
21285 |
return new getMovementNonSerializedInventoryByScans_result(this);
|
|
|
21286 |
}
|
|
|
21287 |
|
|
|
21288 |
@Override
|
|
|
21289 |
public void clear() {
|
|
|
21290 |
this.success = null;
|
|
|
21291 |
}
|
|
|
21292 |
|
|
|
21293 |
public int getSuccessSize() {
|
|
|
21294 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
21295 |
}
|
|
|
21296 |
|
|
|
21297 |
public java.util.Iterator<InventoryMovement> getSuccessIterator() {
|
|
|
21298 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
21299 |
}
|
|
|
21300 |
|
|
|
21301 |
public void addToSuccess(InventoryMovement elem) {
|
|
|
21302 |
if (this.success == null) {
|
|
|
21303 |
this.success = new ArrayList<InventoryMovement>();
|
|
|
21304 |
}
|
|
|
21305 |
this.success.add(elem);
|
|
|
21306 |
}
|
|
|
21307 |
|
|
|
21308 |
public List<InventoryMovement> getSuccess() {
|
|
|
21309 |
return this.success;
|
|
|
21310 |
}
|
|
|
21311 |
|
|
|
21312 |
public void setSuccess(List<InventoryMovement> success) {
|
|
|
21313 |
this.success = success;
|
|
|
21314 |
}
|
|
|
21315 |
|
|
|
21316 |
public void unsetSuccess() {
|
|
|
21317 |
this.success = null;
|
|
|
21318 |
}
|
|
|
21319 |
|
|
|
21320 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
21321 |
public boolean isSetSuccess() {
|
|
|
21322 |
return this.success != null;
|
|
|
21323 |
}
|
|
|
21324 |
|
|
|
21325 |
public void setSuccessIsSet(boolean value) {
|
|
|
21326 |
if (!value) {
|
|
|
21327 |
this.success = null;
|
|
|
21328 |
}
|
|
|
21329 |
}
|
|
|
21330 |
|
|
|
21331 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
21332 |
switch (field) {
|
|
|
21333 |
case SUCCESS:
|
|
|
21334 |
if (value == null) {
|
|
|
21335 |
unsetSuccess();
|
|
|
21336 |
} else {
|
|
|
21337 |
setSuccess((List<InventoryMovement>)value);
|
|
|
21338 |
}
|
|
|
21339 |
break;
|
|
|
21340 |
|
|
|
21341 |
}
|
|
|
21342 |
}
|
|
|
21343 |
|
|
|
21344 |
public Object getFieldValue(_Fields field) {
|
|
|
21345 |
switch (field) {
|
|
|
21346 |
case SUCCESS:
|
|
|
21347 |
return getSuccess();
|
|
|
21348 |
|
|
|
21349 |
}
|
|
|
21350 |
throw new IllegalStateException();
|
|
|
21351 |
}
|
|
|
21352 |
|
|
|
21353 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
21354 |
public boolean isSet(_Fields field) {
|
|
|
21355 |
if (field == null) {
|
|
|
21356 |
throw new IllegalArgumentException();
|
|
|
21357 |
}
|
|
|
21358 |
|
|
|
21359 |
switch (field) {
|
|
|
21360 |
case SUCCESS:
|
|
|
21361 |
return isSetSuccess();
|
|
|
21362 |
}
|
|
|
21363 |
throw new IllegalStateException();
|
|
|
21364 |
}
|
|
|
21365 |
|
|
|
21366 |
@Override
|
|
|
21367 |
public boolean equals(Object that) {
|
|
|
21368 |
if (that == null)
|
|
|
21369 |
return false;
|
|
|
21370 |
if (that instanceof getMovementNonSerializedInventoryByScans_result)
|
|
|
21371 |
return this.equals((getMovementNonSerializedInventoryByScans_result)that);
|
|
|
21372 |
return false;
|
|
|
21373 |
}
|
|
|
21374 |
|
|
|
21375 |
public boolean equals(getMovementNonSerializedInventoryByScans_result that) {
|
|
|
21376 |
if (that == null)
|
|
|
21377 |
return false;
|
|
|
21378 |
|
|
|
21379 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
21380 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
21381 |
if (this_present_success || that_present_success) {
|
|
|
21382 |
if (!(this_present_success && that_present_success))
|
|
|
21383 |
return false;
|
|
|
21384 |
if (!this.success.equals(that.success))
|
|
|
21385 |
return false;
|
|
|
21386 |
}
|
|
|
21387 |
|
|
|
21388 |
return true;
|
|
|
21389 |
}
|
|
|
21390 |
|
|
|
21391 |
@Override
|
|
|
21392 |
public int hashCode() {
|
|
|
21393 |
return 0;
|
|
|
21394 |
}
|
|
|
21395 |
|
|
|
21396 |
public int compareTo(getMovementNonSerializedInventoryByScans_result other) {
|
|
|
21397 |
if (!getClass().equals(other.getClass())) {
|
|
|
21398 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
21399 |
}
|
|
|
21400 |
|
|
|
21401 |
int lastComparison = 0;
|
|
|
21402 |
getMovementNonSerializedInventoryByScans_result typedOther = (getMovementNonSerializedInventoryByScans_result)other;
|
|
|
21403 |
|
|
|
21404 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
21405 |
if (lastComparison != 0) {
|
|
|
21406 |
return lastComparison;
|
|
|
21407 |
}
|
|
|
21408 |
if (isSetSuccess()) {
|
|
|
21409 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
21410 |
if (lastComparison != 0) {
|
|
|
21411 |
return lastComparison;
|
|
|
21412 |
}
|
|
|
21413 |
}
|
|
|
21414 |
return 0;
|
|
|
21415 |
}
|
|
|
21416 |
|
|
|
21417 |
public _Fields fieldForId(int fieldId) {
|
|
|
21418 |
return _Fields.findByThriftId(fieldId);
|
|
|
21419 |
}
|
|
|
21420 |
|
|
|
21421 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
21422 |
org.apache.thrift.protocol.TField field;
|
|
|
21423 |
iprot.readStructBegin();
|
|
|
21424 |
while (true)
|
|
|
21425 |
{
|
|
|
21426 |
field = iprot.readFieldBegin();
|
|
|
21427 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
21428 |
break;
|
|
|
21429 |
}
|
|
|
21430 |
switch (field.id) {
|
|
|
21431 |
case 0: // SUCCESS
|
|
|
21432 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
21433 |
{
|
| 7210 |
amar.kumar |
21434 |
org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
|
|
|
21435 |
this.success = new ArrayList<InventoryMovement>(_list60.size);
|
|
|
21436 |
for (int _i61 = 0; _i61 < _list60.size; ++_i61)
|
| 6880 |
amar.kumar |
21437 |
{
|
| 7210 |
amar.kumar |
21438 |
InventoryMovement _elem62; // required
|
|
|
21439 |
_elem62 = new InventoryMovement();
|
|
|
21440 |
_elem62.read(iprot);
|
|
|
21441 |
this.success.add(_elem62);
|
| 6880 |
amar.kumar |
21442 |
}
|
|
|
21443 |
iprot.readListEnd();
|
|
|
21444 |
}
|
|
|
21445 |
} else {
|
|
|
21446 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
21447 |
}
|
|
|
21448 |
break;
|
|
|
21449 |
default:
|
|
|
21450 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
21451 |
}
|
|
|
21452 |
iprot.readFieldEnd();
|
|
|
21453 |
}
|
|
|
21454 |
iprot.readStructEnd();
|
|
|
21455 |
validate();
|
|
|
21456 |
}
|
|
|
21457 |
|
|
|
21458 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
21459 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
21460 |
|
|
|
21461 |
if (this.isSetSuccess()) {
|
|
|
21462 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
21463 |
{
|
|
|
21464 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 7210 |
amar.kumar |
21465 |
for (InventoryMovement _iter63 : this.success)
|
| 6880 |
amar.kumar |
21466 |
{
|
| 7210 |
amar.kumar |
21467 |
_iter63.write(oprot);
|
| 6880 |
amar.kumar |
21468 |
}
|
|
|
21469 |
oprot.writeListEnd();
|
|
|
21470 |
}
|
|
|
21471 |
oprot.writeFieldEnd();
|
|
|
21472 |
}
|
|
|
21473 |
oprot.writeFieldStop();
|
|
|
21474 |
oprot.writeStructEnd();
|
|
|
21475 |
}
|
|
|
21476 |
|
|
|
21477 |
@Override
|
|
|
21478 |
public String toString() {
|
|
|
21479 |
StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_result(");
|
|
|
21480 |
boolean first = true;
|
|
|
21481 |
|
|
|
21482 |
sb.append("success:");
|
|
|
21483 |
if (this.success == null) {
|
|
|
21484 |
sb.append("null");
|
|
|
21485 |
} else {
|
|
|
21486 |
sb.append(this.success);
|
|
|
21487 |
}
|
|
|
21488 |
first = false;
|
|
|
21489 |
sb.append(")");
|
|
|
21490 |
return sb.toString();
|
|
|
21491 |
}
|
|
|
21492 |
|
|
|
21493 |
public void validate() throws org.apache.thrift.TException {
|
|
|
21494 |
// check for required fields
|
|
|
21495 |
}
|
|
|
21496 |
|
|
|
21497 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
21498 |
try {
|
|
|
21499 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
21500 |
} catch (org.apache.thrift.TException te) {
|
|
|
21501 |
throw new java.io.IOException(te);
|
|
|
21502 |
}
|
|
|
21503 |
}
|
|
|
21504 |
|
|
|
21505 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
21506 |
try {
|
|
|
21507 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
21508 |
} catch (org.apache.thrift.TException te) {
|
|
|
21509 |
throw new java.io.IOException(te);
|
|
|
21510 |
}
|
|
|
21511 |
}
|
|
|
21512 |
|
|
|
21513 |
}
|
|
|
21514 |
|
|
|
21515 |
public static class getMovementSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_args, getMovementSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
21516 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_args");
|
|
|
21517 |
|
|
|
21518 |
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);
|
|
|
21519 |
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);
|
|
|
21520 |
|
|
|
21521 |
private long startDate; // required
|
|
|
21522 |
private long endDate; // required
|
|
|
21523 |
|
|
|
21524 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
21525 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
21526 |
START_DATE((short)1, "startDate"),
|
|
|
21527 |
END_DATE((short)2, "endDate");
|
|
|
21528 |
|
|
|
21529 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
21530 |
|
|
|
21531 |
static {
|
|
|
21532 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
21533 |
byName.put(field.getFieldName(), field);
|
|
|
21534 |
}
|
|
|
21535 |
}
|
|
|
21536 |
|
|
|
21537 |
/**
|
|
|
21538 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
21539 |
*/
|
|
|
21540 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
21541 |
switch(fieldId) {
|
|
|
21542 |
case 1: // START_DATE
|
|
|
21543 |
return START_DATE;
|
|
|
21544 |
case 2: // END_DATE
|
|
|
21545 |
return END_DATE;
|
|
|
21546 |
default:
|
|
|
21547 |
return null;
|
|
|
21548 |
}
|
|
|
21549 |
}
|
|
|
21550 |
|
|
|
21551 |
/**
|
|
|
21552 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
21553 |
* if it is not found.
|
|
|
21554 |
*/
|
|
|
21555 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
21556 |
_Fields fields = findByThriftId(fieldId);
|
|
|
21557 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
21558 |
return fields;
|
|
|
21559 |
}
|
|
|
21560 |
|
|
|
21561 |
/**
|
|
|
21562 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
21563 |
*/
|
|
|
21564 |
public static _Fields findByName(String name) {
|
|
|
21565 |
return byName.get(name);
|
|
|
21566 |
}
|
|
|
21567 |
|
|
|
21568 |
private final short _thriftId;
|
|
|
21569 |
private final String _fieldName;
|
|
|
21570 |
|
|
|
21571 |
_Fields(short thriftId, String fieldName) {
|
|
|
21572 |
_thriftId = thriftId;
|
|
|
21573 |
_fieldName = fieldName;
|
|
|
21574 |
}
|
|
|
21575 |
|
|
|
21576 |
public short getThriftFieldId() {
|
|
|
21577 |
return _thriftId;
|
|
|
21578 |
}
|
|
|
21579 |
|
|
|
21580 |
public String getFieldName() {
|
|
|
21581 |
return _fieldName;
|
|
|
21582 |
}
|
|
|
21583 |
}
|
|
|
21584 |
|
|
|
21585 |
// isset id assignments
|
|
|
21586 |
private static final int __STARTDATE_ISSET_ID = 0;
|
|
|
21587 |
private static final int __ENDDATE_ISSET_ID = 1;
|
|
|
21588 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
21589 |
|
|
|
21590 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
21591 |
static {
|
|
|
21592 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
21593 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
21594 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
21595 |
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
21596 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
21597 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
21598 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
21599 |
}
|
|
|
21600 |
|
|
|
21601 |
public getMovementSerializedInventoryByScans_args() {
|
|
|
21602 |
}
|
|
|
21603 |
|
|
|
21604 |
public getMovementSerializedInventoryByScans_args(
|
|
|
21605 |
long startDate,
|
|
|
21606 |
long endDate)
|
|
|
21607 |
{
|
|
|
21608 |
this();
|
|
|
21609 |
this.startDate = startDate;
|
|
|
21610 |
setStartDateIsSet(true);
|
|
|
21611 |
this.endDate = endDate;
|
|
|
21612 |
setEndDateIsSet(true);
|
|
|
21613 |
}
|
|
|
21614 |
|
|
|
21615 |
/**
|
|
|
21616 |
* Performs a deep copy on <i>other</i>.
|
|
|
21617 |
*/
|
|
|
21618 |
public getMovementSerializedInventoryByScans_args(getMovementSerializedInventoryByScans_args other) {
|
|
|
21619 |
__isset_bit_vector.clear();
|
|
|
21620 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
21621 |
this.startDate = other.startDate;
|
|
|
21622 |
this.endDate = other.endDate;
|
|
|
21623 |
}
|
|
|
21624 |
|
|
|
21625 |
public getMovementSerializedInventoryByScans_args deepCopy() {
|
|
|
21626 |
return new getMovementSerializedInventoryByScans_args(this);
|
|
|
21627 |
}
|
|
|
21628 |
|
|
|
21629 |
@Override
|
|
|
21630 |
public void clear() {
|
|
|
21631 |
setStartDateIsSet(false);
|
|
|
21632 |
this.startDate = 0;
|
|
|
21633 |
setEndDateIsSet(false);
|
|
|
21634 |
this.endDate = 0;
|
|
|
21635 |
}
|
|
|
21636 |
|
|
|
21637 |
public long getStartDate() {
|
|
|
21638 |
return this.startDate;
|
|
|
21639 |
}
|
|
|
21640 |
|
|
|
21641 |
public void setStartDate(long startDate) {
|
|
|
21642 |
this.startDate = startDate;
|
|
|
21643 |
setStartDateIsSet(true);
|
|
|
21644 |
}
|
|
|
21645 |
|
|
|
21646 |
public void unsetStartDate() {
|
|
|
21647 |
__isset_bit_vector.clear(__STARTDATE_ISSET_ID);
|
|
|
21648 |
}
|
|
|
21649 |
|
|
|
21650 |
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
|
|
|
21651 |
public boolean isSetStartDate() {
|
|
|
21652 |
return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
|
|
|
21653 |
}
|
|
|
21654 |
|
|
|
21655 |
public void setStartDateIsSet(boolean value) {
|
|
|
21656 |
__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
|
|
|
21657 |
}
|
|
|
21658 |
|
|
|
21659 |
public long getEndDate() {
|
|
|
21660 |
return this.endDate;
|
|
|
21661 |
}
|
|
|
21662 |
|
|
|
21663 |
public void setEndDate(long endDate) {
|
|
|
21664 |
this.endDate = endDate;
|
|
|
21665 |
setEndDateIsSet(true);
|
|
|
21666 |
}
|
|
|
21667 |
|
|
|
21668 |
public void unsetEndDate() {
|
|
|
21669 |
__isset_bit_vector.clear(__ENDDATE_ISSET_ID);
|
|
|
21670 |
}
|
|
|
21671 |
|
|
|
21672 |
/** Returns true if field endDate is set (has been assigned a value) and false otherwise */
|
|
|
21673 |
public boolean isSetEndDate() {
|
|
|
21674 |
return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
|
|
|
21675 |
}
|
|
|
21676 |
|
|
|
21677 |
public void setEndDateIsSet(boolean value) {
|
|
|
21678 |
__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
|
|
|
21679 |
}
|
|
|
21680 |
|
|
|
21681 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
21682 |
switch (field) {
|
|
|
21683 |
case START_DATE:
|
|
|
21684 |
if (value == null) {
|
|
|
21685 |
unsetStartDate();
|
|
|
21686 |
} else {
|
|
|
21687 |
setStartDate((Long)value);
|
|
|
21688 |
}
|
|
|
21689 |
break;
|
|
|
21690 |
|
|
|
21691 |
case END_DATE:
|
|
|
21692 |
if (value == null) {
|
|
|
21693 |
unsetEndDate();
|
|
|
21694 |
} else {
|
|
|
21695 |
setEndDate((Long)value);
|
|
|
21696 |
}
|
|
|
21697 |
break;
|
|
|
21698 |
|
|
|
21699 |
}
|
|
|
21700 |
}
|
|
|
21701 |
|
|
|
21702 |
public Object getFieldValue(_Fields field) {
|
|
|
21703 |
switch (field) {
|
|
|
21704 |
case START_DATE:
|
|
|
21705 |
return Long.valueOf(getStartDate());
|
|
|
21706 |
|
|
|
21707 |
case END_DATE:
|
|
|
21708 |
return Long.valueOf(getEndDate());
|
|
|
21709 |
|
|
|
21710 |
}
|
|
|
21711 |
throw new IllegalStateException();
|
|
|
21712 |
}
|
|
|
21713 |
|
|
|
21714 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
21715 |
public boolean isSet(_Fields field) {
|
|
|
21716 |
if (field == null) {
|
|
|
21717 |
throw new IllegalArgumentException();
|
|
|
21718 |
}
|
|
|
21719 |
|
|
|
21720 |
switch (field) {
|
|
|
21721 |
case START_DATE:
|
|
|
21722 |
return isSetStartDate();
|
|
|
21723 |
case END_DATE:
|
|
|
21724 |
return isSetEndDate();
|
|
|
21725 |
}
|
|
|
21726 |
throw new IllegalStateException();
|
|
|
21727 |
}
|
|
|
21728 |
|
|
|
21729 |
@Override
|
|
|
21730 |
public boolean equals(Object that) {
|
|
|
21731 |
if (that == null)
|
|
|
21732 |
return false;
|
|
|
21733 |
if (that instanceof getMovementSerializedInventoryByScans_args)
|
|
|
21734 |
return this.equals((getMovementSerializedInventoryByScans_args)that);
|
|
|
21735 |
return false;
|
|
|
21736 |
}
|
|
|
21737 |
|
|
|
21738 |
public boolean equals(getMovementSerializedInventoryByScans_args that) {
|
|
|
21739 |
if (that == null)
|
|
|
21740 |
return false;
|
|
|
21741 |
|
|
|
21742 |
boolean this_present_startDate = true;
|
|
|
21743 |
boolean that_present_startDate = true;
|
|
|
21744 |
if (this_present_startDate || that_present_startDate) {
|
|
|
21745 |
if (!(this_present_startDate && that_present_startDate))
|
|
|
21746 |
return false;
|
|
|
21747 |
if (this.startDate != that.startDate)
|
|
|
21748 |
return false;
|
|
|
21749 |
}
|
|
|
21750 |
|
|
|
21751 |
boolean this_present_endDate = true;
|
|
|
21752 |
boolean that_present_endDate = true;
|
|
|
21753 |
if (this_present_endDate || that_present_endDate) {
|
|
|
21754 |
if (!(this_present_endDate && that_present_endDate))
|
|
|
21755 |
return false;
|
|
|
21756 |
if (this.endDate != that.endDate)
|
|
|
21757 |
return false;
|
|
|
21758 |
}
|
|
|
21759 |
|
|
|
21760 |
return true;
|
|
|
21761 |
}
|
|
|
21762 |
|
|
|
21763 |
@Override
|
|
|
21764 |
public int hashCode() {
|
|
|
21765 |
return 0;
|
|
|
21766 |
}
|
|
|
21767 |
|
|
|
21768 |
public int compareTo(getMovementSerializedInventoryByScans_args other) {
|
|
|
21769 |
if (!getClass().equals(other.getClass())) {
|
|
|
21770 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
21771 |
}
|
|
|
21772 |
|
|
|
21773 |
int lastComparison = 0;
|
|
|
21774 |
getMovementSerializedInventoryByScans_args typedOther = (getMovementSerializedInventoryByScans_args)other;
|
|
|
21775 |
|
|
|
21776 |
lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
|
|
|
21777 |
if (lastComparison != 0) {
|
|
|
21778 |
return lastComparison;
|
|
|
21779 |
}
|
|
|
21780 |
if (isSetStartDate()) {
|
|
|
21781 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
|
|
|
21782 |
if (lastComparison != 0) {
|
|
|
21783 |
return lastComparison;
|
|
|
21784 |
}
|
|
|
21785 |
}
|
|
|
21786 |
lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
|
|
|
21787 |
if (lastComparison != 0) {
|
|
|
21788 |
return lastComparison;
|
|
|
21789 |
}
|
|
|
21790 |
if (isSetEndDate()) {
|
|
|
21791 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
|
|
|
21792 |
if (lastComparison != 0) {
|
|
|
21793 |
return lastComparison;
|
|
|
21794 |
}
|
|
|
21795 |
}
|
|
|
21796 |
return 0;
|
|
|
21797 |
}
|
|
|
21798 |
|
|
|
21799 |
public _Fields fieldForId(int fieldId) {
|
|
|
21800 |
return _Fields.findByThriftId(fieldId);
|
|
|
21801 |
}
|
|
|
21802 |
|
|
|
21803 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
21804 |
org.apache.thrift.protocol.TField field;
|
|
|
21805 |
iprot.readStructBegin();
|
|
|
21806 |
while (true)
|
|
|
21807 |
{
|
|
|
21808 |
field = iprot.readFieldBegin();
|
|
|
21809 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
21810 |
break;
|
|
|
21811 |
}
|
|
|
21812 |
switch (field.id) {
|
|
|
21813 |
case 1: // START_DATE
|
|
|
21814 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
21815 |
this.startDate = iprot.readI64();
|
|
|
21816 |
setStartDateIsSet(true);
|
|
|
21817 |
} else {
|
|
|
21818 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
21819 |
}
|
|
|
21820 |
break;
|
|
|
21821 |
case 2: // END_DATE
|
|
|
21822 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
21823 |
this.endDate = iprot.readI64();
|
|
|
21824 |
setEndDateIsSet(true);
|
|
|
21825 |
} else {
|
|
|
21826 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
21827 |
}
|
|
|
21828 |
break;
|
|
|
21829 |
default:
|
|
|
21830 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
21831 |
}
|
|
|
21832 |
iprot.readFieldEnd();
|
|
|
21833 |
}
|
|
|
21834 |
iprot.readStructEnd();
|
|
|
21835 |
validate();
|
|
|
21836 |
}
|
|
|
21837 |
|
|
|
21838 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
21839 |
validate();
|
|
|
21840 |
|
|
|
21841 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
21842 |
oprot.writeFieldBegin(START_DATE_FIELD_DESC);
|
|
|
21843 |
oprot.writeI64(this.startDate);
|
|
|
21844 |
oprot.writeFieldEnd();
|
|
|
21845 |
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
|
|
|
21846 |
oprot.writeI64(this.endDate);
|
|
|
21847 |
oprot.writeFieldEnd();
|
|
|
21848 |
oprot.writeFieldStop();
|
|
|
21849 |
oprot.writeStructEnd();
|
|
|
21850 |
}
|
|
|
21851 |
|
|
|
21852 |
@Override
|
|
|
21853 |
public String toString() {
|
|
|
21854 |
StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_args(");
|
|
|
21855 |
boolean first = true;
|
|
|
21856 |
|
|
|
21857 |
sb.append("startDate:");
|
|
|
21858 |
sb.append(this.startDate);
|
|
|
21859 |
first = false;
|
|
|
21860 |
if (!first) sb.append(", ");
|
|
|
21861 |
sb.append("endDate:");
|
|
|
21862 |
sb.append(this.endDate);
|
|
|
21863 |
first = false;
|
|
|
21864 |
sb.append(")");
|
|
|
21865 |
return sb.toString();
|
|
|
21866 |
}
|
|
|
21867 |
|
|
|
21868 |
public void validate() throws org.apache.thrift.TException {
|
|
|
21869 |
// check for required fields
|
|
|
21870 |
}
|
|
|
21871 |
|
|
|
21872 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
21873 |
try {
|
|
|
21874 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
21875 |
} catch (org.apache.thrift.TException te) {
|
|
|
21876 |
throw new java.io.IOException(te);
|
|
|
21877 |
}
|
|
|
21878 |
}
|
|
|
21879 |
|
|
|
21880 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
21881 |
try {
|
|
|
21882 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
21883 |
__isset_bit_vector = new BitSet(1);
|
|
|
21884 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
21885 |
} catch (org.apache.thrift.TException te) {
|
|
|
21886 |
throw new java.io.IOException(te);
|
|
|
21887 |
}
|
|
|
21888 |
}
|
|
|
21889 |
|
|
|
21890 |
}
|
|
|
21891 |
|
|
|
21892 |
public static class getMovementSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_result, getMovementSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
21893 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_result");
|
|
|
21894 |
|
|
|
21895 |
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);
|
|
|
21896 |
|
|
|
21897 |
private List<InventoryMovement> success; // required
|
|
|
21898 |
|
|
|
21899 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
21900 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
21901 |
SUCCESS((short)0, "success");
|
|
|
21902 |
|
|
|
21903 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
21904 |
|
|
|
21905 |
static {
|
|
|
21906 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
21907 |
byName.put(field.getFieldName(), field);
|
|
|
21908 |
}
|
|
|
21909 |
}
|
|
|
21910 |
|
|
|
21911 |
/**
|
|
|
21912 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
21913 |
*/
|
|
|
21914 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
21915 |
switch(fieldId) {
|
|
|
21916 |
case 0: // SUCCESS
|
|
|
21917 |
return SUCCESS;
|
|
|
21918 |
default:
|
|
|
21919 |
return null;
|
|
|
21920 |
}
|
|
|
21921 |
}
|
|
|
21922 |
|
|
|
21923 |
/**
|
|
|
21924 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
21925 |
* if it is not found.
|
|
|
21926 |
*/
|
|
|
21927 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
21928 |
_Fields fields = findByThriftId(fieldId);
|
|
|
21929 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
21930 |
return fields;
|
|
|
21931 |
}
|
|
|
21932 |
|
|
|
21933 |
/**
|
|
|
21934 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
21935 |
*/
|
|
|
21936 |
public static _Fields findByName(String name) {
|
|
|
21937 |
return byName.get(name);
|
|
|
21938 |
}
|
|
|
21939 |
|
|
|
21940 |
private final short _thriftId;
|
|
|
21941 |
private final String _fieldName;
|
|
|
21942 |
|
|
|
21943 |
_Fields(short thriftId, String fieldName) {
|
|
|
21944 |
_thriftId = thriftId;
|
|
|
21945 |
_fieldName = fieldName;
|
|
|
21946 |
}
|
|
|
21947 |
|
|
|
21948 |
public short getThriftFieldId() {
|
|
|
21949 |
return _thriftId;
|
|
|
21950 |
}
|
|
|
21951 |
|
|
|
21952 |
public String getFieldName() {
|
|
|
21953 |
return _fieldName;
|
|
|
21954 |
}
|
|
|
21955 |
}
|
|
|
21956 |
|
|
|
21957 |
// isset id assignments
|
|
|
21958 |
|
|
|
21959 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
21960 |
static {
|
|
|
21961 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
21962 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
21963 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
21964 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
|
|
|
21965 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
21966 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
21967 |
}
|
|
|
21968 |
|
|
|
21969 |
public getMovementSerializedInventoryByScans_result() {
|
|
|
21970 |
}
|
|
|
21971 |
|
|
|
21972 |
public getMovementSerializedInventoryByScans_result(
|
|
|
21973 |
List<InventoryMovement> success)
|
|
|
21974 |
{
|
|
|
21975 |
this();
|
|
|
21976 |
this.success = success;
|
|
|
21977 |
}
|
|
|
21978 |
|
|
|
21979 |
/**
|
|
|
21980 |
* Performs a deep copy on <i>other</i>.
|
|
|
21981 |
*/
|
|
|
21982 |
public getMovementSerializedInventoryByScans_result(getMovementSerializedInventoryByScans_result other) {
|
|
|
21983 |
if (other.isSetSuccess()) {
|
|
|
21984 |
List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
|
|
|
21985 |
for (InventoryMovement other_element : other.success) {
|
|
|
21986 |
__this__success.add(new InventoryMovement(other_element));
|
|
|
21987 |
}
|
|
|
21988 |
this.success = __this__success;
|
|
|
21989 |
}
|
|
|
21990 |
}
|
|
|
21991 |
|
|
|
21992 |
public getMovementSerializedInventoryByScans_result deepCopy() {
|
|
|
21993 |
return new getMovementSerializedInventoryByScans_result(this);
|
|
|
21994 |
}
|
|
|
21995 |
|
|
|
21996 |
@Override
|
|
|
21997 |
public void clear() {
|
|
|
21998 |
this.success = null;
|
|
|
21999 |
}
|
|
|
22000 |
|
|
|
22001 |
public int getSuccessSize() {
|
|
|
22002 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
22003 |
}
|
|
|
22004 |
|
|
|
22005 |
public java.util.Iterator<InventoryMovement> getSuccessIterator() {
|
|
|
22006 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
22007 |
}
|
|
|
22008 |
|
|
|
22009 |
public void addToSuccess(InventoryMovement elem) {
|
|
|
22010 |
if (this.success == null) {
|
|
|
22011 |
this.success = new ArrayList<InventoryMovement>();
|
|
|
22012 |
}
|
|
|
22013 |
this.success.add(elem);
|
|
|
22014 |
}
|
|
|
22015 |
|
|
|
22016 |
public List<InventoryMovement> getSuccess() {
|
|
|
22017 |
return this.success;
|
|
|
22018 |
}
|
|
|
22019 |
|
|
|
22020 |
public void setSuccess(List<InventoryMovement> success) {
|
|
|
22021 |
this.success = success;
|
|
|
22022 |
}
|
|
|
22023 |
|
|
|
22024 |
public void unsetSuccess() {
|
|
|
22025 |
this.success = null;
|
|
|
22026 |
}
|
|
|
22027 |
|
|
|
22028 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
22029 |
public boolean isSetSuccess() {
|
|
|
22030 |
return this.success != null;
|
|
|
22031 |
}
|
|
|
22032 |
|
|
|
22033 |
public void setSuccessIsSet(boolean value) {
|
|
|
22034 |
if (!value) {
|
|
|
22035 |
this.success = null;
|
|
|
22036 |
}
|
|
|
22037 |
}
|
|
|
22038 |
|
|
|
22039 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
22040 |
switch (field) {
|
|
|
22041 |
case SUCCESS:
|
|
|
22042 |
if (value == null) {
|
|
|
22043 |
unsetSuccess();
|
|
|
22044 |
} else {
|
|
|
22045 |
setSuccess((List<InventoryMovement>)value);
|
|
|
22046 |
}
|
|
|
22047 |
break;
|
|
|
22048 |
|
|
|
22049 |
}
|
|
|
22050 |
}
|
|
|
22051 |
|
|
|
22052 |
public Object getFieldValue(_Fields field) {
|
|
|
22053 |
switch (field) {
|
|
|
22054 |
case SUCCESS:
|
|
|
22055 |
return getSuccess();
|
|
|
22056 |
|
|
|
22057 |
}
|
|
|
22058 |
throw new IllegalStateException();
|
|
|
22059 |
}
|
|
|
22060 |
|
|
|
22061 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
22062 |
public boolean isSet(_Fields field) {
|
|
|
22063 |
if (field == null) {
|
|
|
22064 |
throw new IllegalArgumentException();
|
|
|
22065 |
}
|
|
|
22066 |
|
|
|
22067 |
switch (field) {
|
|
|
22068 |
case SUCCESS:
|
|
|
22069 |
return isSetSuccess();
|
|
|
22070 |
}
|
|
|
22071 |
throw new IllegalStateException();
|
|
|
22072 |
}
|
|
|
22073 |
|
|
|
22074 |
@Override
|
|
|
22075 |
public boolean equals(Object that) {
|
|
|
22076 |
if (that == null)
|
|
|
22077 |
return false;
|
|
|
22078 |
if (that instanceof getMovementSerializedInventoryByScans_result)
|
|
|
22079 |
return this.equals((getMovementSerializedInventoryByScans_result)that);
|
|
|
22080 |
return false;
|
|
|
22081 |
}
|
|
|
22082 |
|
|
|
22083 |
public boolean equals(getMovementSerializedInventoryByScans_result that) {
|
|
|
22084 |
if (that == null)
|
|
|
22085 |
return false;
|
|
|
22086 |
|
|
|
22087 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
22088 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
22089 |
if (this_present_success || that_present_success) {
|
|
|
22090 |
if (!(this_present_success && that_present_success))
|
|
|
22091 |
return false;
|
|
|
22092 |
if (!this.success.equals(that.success))
|
|
|
22093 |
return false;
|
|
|
22094 |
}
|
|
|
22095 |
|
|
|
22096 |
return true;
|
|
|
22097 |
}
|
|
|
22098 |
|
|
|
22099 |
@Override
|
|
|
22100 |
public int hashCode() {
|
|
|
22101 |
return 0;
|
|
|
22102 |
}
|
|
|
22103 |
|
|
|
22104 |
public int compareTo(getMovementSerializedInventoryByScans_result other) {
|
|
|
22105 |
if (!getClass().equals(other.getClass())) {
|
|
|
22106 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
22107 |
}
|
|
|
22108 |
|
|
|
22109 |
int lastComparison = 0;
|
|
|
22110 |
getMovementSerializedInventoryByScans_result typedOther = (getMovementSerializedInventoryByScans_result)other;
|
|
|
22111 |
|
|
|
22112 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
22113 |
if (lastComparison != 0) {
|
|
|
22114 |
return lastComparison;
|
|
|
22115 |
}
|
|
|
22116 |
if (isSetSuccess()) {
|
|
|
22117 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
22118 |
if (lastComparison != 0) {
|
|
|
22119 |
return lastComparison;
|
|
|
22120 |
}
|
|
|
22121 |
}
|
|
|
22122 |
return 0;
|
|
|
22123 |
}
|
|
|
22124 |
|
|
|
22125 |
public _Fields fieldForId(int fieldId) {
|
|
|
22126 |
return _Fields.findByThriftId(fieldId);
|
|
|
22127 |
}
|
|
|
22128 |
|
|
|
22129 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
22130 |
org.apache.thrift.protocol.TField field;
|
|
|
22131 |
iprot.readStructBegin();
|
|
|
22132 |
while (true)
|
|
|
22133 |
{
|
|
|
22134 |
field = iprot.readFieldBegin();
|
|
|
22135 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
22136 |
break;
|
|
|
22137 |
}
|
|
|
22138 |
switch (field.id) {
|
|
|
22139 |
case 0: // SUCCESS
|
|
|
22140 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
22141 |
{
|
| 7210 |
amar.kumar |
22142 |
org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
|
|
|
22143 |
this.success = new ArrayList<InventoryMovement>(_list64.size);
|
|
|
22144 |
for (int _i65 = 0; _i65 < _list64.size; ++_i65)
|
| 6880 |
amar.kumar |
22145 |
{
|
| 7210 |
amar.kumar |
22146 |
InventoryMovement _elem66; // required
|
|
|
22147 |
_elem66 = new InventoryMovement();
|
|
|
22148 |
_elem66.read(iprot);
|
|
|
22149 |
this.success.add(_elem66);
|
| 6880 |
amar.kumar |
22150 |
}
|
|
|
22151 |
iprot.readListEnd();
|
|
|
22152 |
}
|
|
|
22153 |
} else {
|
|
|
22154 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
22155 |
}
|
|
|
22156 |
break;
|
|
|
22157 |
default:
|
|
|
22158 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
22159 |
}
|
|
|
22160 |
iprot.readFieldEnd();
|
|
|
22161 |
}
|
|
|
22162 |
iprot.readStructEnd();
|
|
|
22163 |
validate();
|
|
|
22164 |
}
|
|
|
22165 |
|
|
|
22166 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
22167 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
22168 |
|
|
|
22169 |
if (this.isSetSuccess()) {
|
|
|
22170 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
22171 |
{
|
|
|
22172 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 7210 |
amar.kumar |
22173 |
for (InventoryMovement _iter67 : this.success)
|
| 6880 |
amar.kumar |
22174 |
{
|
| 7210 |
amar.kumar |
22175 |
_iter67.write(oprot);
|
| 6880 |
amar.kumar |
22176 |
}
|
|
|
22177 |
oprot.writeListEnd();
|
|
|
22178 |
}
|
|
|
22179 |
oprot.writeFieldEnd();
|
|
|
22180 |
}
|
|
|
22181 |
oprot.writeFieldStop();
|
|
|
22182 |
oprot.writeStructEnd();
|
|
|
22183 |
}
|
|
|
22184 |
|
|
|
22185 |
@Override
|
|
|
22186 |
public String toString() {
|
|
|
22187 |
StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_result(");
|
|
|
22188 |
boolean first = true;
|
|
|
22189 |
|
|
|
22190 |
sb.append("success:");
|
|
|
22191 |
if (this.success == null) {
|
|
|
22192 |
sb.append("null");
|
|
|
22193 |
} else {
|
|
|
22194 |
sb.append(this.success);
|
|
|
22195 |
}
|
|
|
22196 |
first = false;
|
|
|
22197 |
sb.append(")");
|
|
|
22198 |
return sb.toString();
|
|
|
22199 |
}
|
|
|
22200 |
|
|
|
22201 |
public void validate() throws org.apache.thrift.TException {
|
|
|
22202 |
// check for required fields
|
|
|
22203 |
}
|
|
|
22204 |
|
|
|
22205 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
22206 |
try {
|
|
|
22207 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
22208 |
} catch (org.apache.thrift.TException te) {
|
|
|
22209 |
throw new java.io.IOException(te);
|
|
|
22210 |
}
|
|
|
22211 |
}
|
|
|
22212 |
|
|
|
22213 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
22214 |
try {
|
|
|
22215 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
22216 |
} catch (org.apache.thrift.TException te) {
|
|
|
22217 |
throw new java.io.IOException(te);
|
|
|
22218 |
}
|
|
|
22219 |
}
|
|
|
22220 |
|
|
|
22221 |
}
|
|
|
22222 |
|
| 7216 |
amar.kumar |
22223 |
public static class getCompleteMovementSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCompleteMovementSerializedInventoryByScans_args, getCompleteMovementSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
22224 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementSerializedInventoryByScans_args");
|
|
|
22225 |
|
|
|
22226 |
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);
|
|
|
22227 |
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);
|
|
|
22228 |
|
|
|
22229 |
private long startDate; // required
|
|
|
22230 |
private long endDate; // required
|
|
|
22231 |
|
|
|
22232 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
22233 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
22234 |
START_DATE((short)1, "startDate"),
|
|
|
22235 |
END_DATE((short)2, "endDate");
|
|
|
22236 |
|
|
|
22237 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
22238 |
|
|
|
22239 |
static {
|
|
|
22240 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
22241 |
byName.put(field.getFieldName(), field);
|
|
|
22242 |
}
|
|
|
22243 |
}
|
|
|
22244 |
|
|
|
22245 |
/**
|
|
|
22246 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
22247 |
*/
|
|
|
22248 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
22249 |
switch(fieldId) {
|
|
|
22250 |
case 1: // START_DATE
|
|
|
22251 |
return START_DATE;
|
|
|
22252 |
case 2: // END_DATE
|
|
|
22253 |
return END_DATE;
|
|
|
22254 |
default:
|
|
|
22255 |
return null;
|
|
|
22256 |
}
|
|
|
22257 |
}
|
|
|
22258 |
|
|
|
22259 |
/**
|
|
|
22260 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
22261 |
* if it is not found.
|
|
|
22262 |
*/
|
|
|
22263 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
22264 |
_Fields fields = findByThriftId(fieldId);
|
|
|
22265 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
22266 |
return fields;
|
|
|
22267 |
}
|
|
|
22268 |
|
|
|
22269 |
/**
|
|
|
22270 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
22271 |
*/
|
|
|
22272 |
public static _Fields findByName(String name) {
|
|
|
22273 |
return byName.get(name);
|
|
|
22274 |
}
|
|
|
22275 |
|
|
|
22276 |
private final short _thriftId;
|
|
|
22277 |
private final String _fieldName;
|
|
|
22278 |
|
|
|
22279 |
_Fields(short thriftId, String fieldName) {
|
|
|
22280 |
_thriftId = thriftId;
|
|
|
22281 |
_fieldName = fieldName;
|
|
|
22282 |
}
|
|
|
22283 |
|
|
|
22284 |
public short getThriftFieldId() {
|
|
|
22285 |
return _thriftId;
|
|
|
22286 |
}
|
|
|
22287 |
|
|
|
22288 |
public String getFieldName() {
|
|
|
22289 |
return _fieldName;
|
|
|
22290 |
}
|
|
|
22291 |
}
|
|
|
22292 |
|
|
|
22293 |
// isset id assignments
|
|
|
22294 |
private static final int __STARTDATE_ISSET_ID = 0;
|
|
|
22295 |
private static final int __ENDDATE_ISSET_ID = 1;
|
|
|
22296 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
22297 |
|
|
|
22298 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
22299 |
static {
|
|
|
22300 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
22301 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
22302 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
22303 |
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
22304 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
22305 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
22306 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
22307 |
}
|
|
|
22308 |
|
|
|
22309 |
public getCompleteMovementSerializedInventoryByScans_args() {
|
|
|
22310 |
}
|
|
|
22311 |
|
|
|
22312 |
public getCompleteMovementSerializedInventoryByScans_args(
|
|
|
22313 |
long startDate,
|
|
|
22314 |
long endDate)
|
|
|
22315 |
{
|
|
|
22316 |
this();
|
|
|
22317 |
this.startDate = startDate;
|
|
|
22318 |
setStartDateIsSet(true);
|
|
|
22319 |
this.endDate = endDate;
|
|
|
22320 |
setEndDateIsSet(true);
|
|
|
22321 |
}
|
|
|
22322 |
|
|
|
22323 |
/**
|
|
|
22324 |
* Performs a deep copy on <i>other</i>.
|
|
|
22325 |
*/
|
|
|
22326 |
public getCompleteMovementSerializedInventoryByScans_args(getCompleteMovementSerializedInventoryByScans_args other) {
|
|
|
22327 |
__isset_bit_vector.clear();
|
|
|
22328 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
22329 |
this.startDate = other.startDate;
|
|
|
22330 |
this.endDate = other.endDate;
|
|
|
22331 |
}
|
|
|
22332 |
|
|
|
22333 |
public getCompleteMovementSerializedInventoryByScans_args deepCopy() {
|
|
|
22334 |
return new getCompleteMovementSerializedInventoryByScans_args(this);
|
|
|
22335 |
}
|
|
|
22336 |
|
|
|
22337 |
@Override
|
|
|
22338 |
public void clear() {
|
|
|
22339 |
setStartDateIsSet(false);
|
|
|
22340 |
this.startDate = 0;
|
|
|
22341 |
setEndDateIsSet(false);
|
|
|
22342 |
this.endDate = 0;
|
|
|
22343 |
}
|
|
|
22344 |
|
|
|
22345 |
public long getStartDate() {
|
|
|
22346 |
return this.startDate;
|
|
|
22347 |
}
|
|
|
22348 |
|
|
|
22349 |
public void setStartDate(long startDate) {
|
|
|
22350 |
this.startDate = startDate;
|
|
|
22351 |
setStartDateIsSet(true);
|
|
|
22352 |
}
|
|
|
22353 |
|
|
|
22354 |
public void unsetStartDate() {
|
|
|
22355 |
__isset_bit_vector.clear(__STARTDATE_ISSET_ID);
|
|
|
22356 |
}
|
|
|
22357 |
|
|
|
22358 |
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
|
|
|
22359 |
public boolean isSetStartDate() {
|
|
|
22360 |
return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
|
|
|
22361 |
}
|
|
|
22362 |
|
|
|
22363 |
public void setStartDateIsSet(boolean value) {
|
|
|
22364 |
__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
|
|
|
22365 |
}
|
|
|
22366 |
|
|
|
22367 |
public long getEndDate() {
|
|
|
22368 |
return this.endDate;
|
|
|
22369 |
}
|
|
|
22370 |
|
|
|
22371 |
public void setEndDate(long endDate) {
|
|
|
22372 |
this.endDate = endDate;
|
|
|
22373 |
setEndDateIsSet(true);
|
|
|
22374 |
}
|
|
|
22375 |
|
|
|
22376 |
public void unsetEndDate() {
|
|
|
22377 |
__isset_bit_vector.clear(__ENDDATE_ISSET_ID);
|
|
|
22378 |
}
|
|
|
22379 |
|
|
|
22380 |
/** Returns true if field endDate is set (has been assigned a value) and false otherwise */
|
|
|
22381 |
public boolean isSetEndDate() {
|
|
|
22382 |
return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
|
|
|
22383 |
}
|
|
|
22384 |
|
|
|
22385 |
public void setEndDateIsSet(boolean value) {
|
|
|
22386 |
__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
|
|
|
22387 |
}
|
|
|
22388 |
|
|
|
22389 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
22390 |
switch (field) {
|
|
|
22391 |
case START_DATE:
|
|
|
22392 |
if (value == null) {
|
|
|
22393 |
unsetStartDate();
|
|
|
22394 |
} else {
|
|
|
22395 |
setStartDate((Long)value);
|
|
|
22396 |
}
|
|
|
22397 |
break;
|
|
|
22398 |
|
|
|
22399 |
case END_DATE:
|
|
|
22400 |
if (value == null) {
|
|
|
22401 |
unsetEndDate();
|
|
|
22402 |
} else {
|
|
|
22403 |
setEndDate((Long)value);
|
|
|
22404 |
}
|
|
|
22405 |
break;
|
|
|
22406 |
|
|
|
22407 |
}
|
|
|
22408 |
}
|
|
|
22409 |
|
|
|
22410 |
public Object getFieldValue(_Fields field) {
|
|
|
22411 |
switch (field) {
|
|
|
22412 |
case START_DATE:
|
|
|
22413 |
return Long.valueOf(getStartDate());
|
|
|
22414 |
|
|
|
22415 |
case END_DATE:
|
|
|
22416 |
return Long.valueOf(getEndDate());
|
|
|
22417 |
|
|
|
22418 |
}
|
|
|
22419 |
throw new IllegalStateException();
|
|
|
22420 |
}
|
|
|
22421 |
|
|
|
22422 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
22423 |
public boolean isSet(_Fields field) {
|
|
|
22424 |
if (field == null) {
|
|
|
22425 |
throw new IllegalArgumentException();
|
|
|
22426 |
}
|
|
|
22427 |
|
|
|
22428 |
switch (field) {
|
|
|
22429 |
case START_DATE:
|
|
|
22430 |
return isSetStartDate();
|
|
|
22431 |
case END_DATE:
|
|
|
22432 |
return isSetEndDate();
|
|
|
22433 |
}
|
|
|
22434 |
throw new IllegalStateException();
|
|
|
22435 |
}
|
|
|
22436 |
|
|
|
22437 |
@Override
|
|
|
22438 |
public boolean equals(Object that) {
|
|
|
22439 |
if (that == null)
|
|
|
22440 |
return false;
|
|
|
22441 |
if (that instanceof getCompleteMovementSerializedInventoryByScans_args)
|
|
|
22442 |
return this.equals((getCompleteMovementSerializedInventoryByScans_args)that);
|
|
|
22443 |
return false;
|
|
|
22444 |
}
|
|
|
22445 |
|
|
|
22446 |
public boolean equals(getCompleteMovementSerializedInventoryByScans_args that) {
|
|
|
22447 |
if (that == null)
|
|
|
22448 |
return false;
|
|
|
22449 |
|
|
|
22450 |
boolean this_present_startDate = true;
|
|
|
22451 |
boolean that_present_startDate = true;
|
|
|
22452 |
if (this_present_startDate || that_present_startDate) {
|
|
|
22453 |
if (!(this_present_startDate && that_present_startDate))
|
|
|
22454 |
return false;
|
|
|
22455 |
if (this.startDate != that.startDate)
|
|
|
22456 |
return false;
|
|
|
22457 |
}
|
|
|
22458 |
|
|
|
22459 |
boolean this_present_endDate = true;
|
|
|
22460 |
boolean that_present_endDate = true;
|
|
|
22461 |
if (this_present_endDate || that_present_endDate) {
|
|
|
22462 |
if (!(this_present_endDate && that_present_endDate))
|
|
|
22463 |
return false;
|
|
|
22464 |
if (this.endDate != that.endDate)
|
|
|
22465 |
return false;
|
|
|
22466 |
}
|
|
|
22467 |
|
|
|
22468 |
return true;
|
|
|
22469 |
}
|
|
|
22470 |
|
|
|
22471 |
@Override
|
|
|
22472 |
public int hashCode() {
|
|
|
22473 |
return 0;
|
|
|
22474 |
}
|
|
|
22475 |
|
|
|
22476 |
public int compareTo(getCompleteMovementSerializedInventoryByScans_args other) {
|
|
|
22477 |
if (!getClass().equals(other.getClass())) {
|
|
|
22478 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
22479 |
}
|
|
|
22480 |
|
|
|
22481 |
int lastComparison = 0;
|
|
|
22482 |
getCompleteMovementSerializedInventoryByScans_args typedOther = (getCompleteMovementSerializedInventoryByScans_args)other;
|
|
|
22483 |
|
|
|
22484 |
lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
|
|
|
22485 |
if (lastComparison != 0) {
|
|
|
22486 |
return lastComparison;
|
|
|
22487 |
}
|
|
|
22488 |
if (isSetStartDate()) {
|
|
|
22489 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
|
|
|
22490 |
if (lastComparison != 0) {
|
|
|
22491 |
return lastComparison;
|
|
|
22492 |
}
|
|
|
22493 |
}
|
|
|
22494 |
lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
|
|
|
22495 |
if (lastComparison != 0) {
|
|
|
22496 |
return lastComparison;
|
|
|
22497 |
}
|
|
|
22498 |
if (isSetEndDate()) {
|
|
|
22499 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
|
|
|
22500 |
if (lastComparison != 0) {
|
|
|
22501 |
return lastComparison;
|
|
|
22502 |
}
|
|
|
22503 |
}
|
|
|
22504 |
return 0;
|
|
|
22505 |
}
|
|
|
22506 |
|
|
|
22507 |
public _Fields fieldForId(int fieldId) {
|
|
|
22508 |
return _Fields.findByThriftId(fieldId);
|
|
|
22509 |
}
|
|
|
22510 |
|
|
|
22511 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
22512 |
org.apache.thrift.protocol.TField field;
|
|
|
22513 |
iprot.readStructBegin();
|
|
|
22514 |
while (true)
|
|
|
22515 |
{
|
|
|
22516 |
field = iprot.readFieldBegin();
|
|
|
22517 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
22518 |
break;
|
|
|
22519 |
}
|
|
|
22520 |
switch (field.id) {
|
|
|
22521 |
case 1: // START_DATE
|
|
|
22522 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
22523 |
this.startDate = iprot.readI64();
|
|
|
22524 |
setStartDateIsSet(true);
|
|
|
22525 |
} else {
|
|
|
22526 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
22527 |
}
|
|
|
22528 |
break;
|
|
|
22529 |
case 2: // END_DATE
|
|
|
22530 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
22531 |
this.endDate = iprot.readI64();
|
|
|
22532 |
setEndDateIsSet(true);
|
|
|
22533 |
} else {
|
|
|
22534 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
22535 |
}
|
|
|
22536 |
break;
|
|
|
22537 |
default:
|
|
|
22538 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
22539 |
}
|
|
|
22540 |
iprot.readFieldEnd();
|
|
|
22541 |
}
|
|
|
22542 |
iprot.readStructEnd();
|
|
|
22543 |
validate();
|
|
|
22544 |
}
|
|
|
22545 |
|
|
|
22546 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
22547 |
validate();
|
|
|
22548 |
|
|
|
22549 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
22550 |
oprot.writeFieldBegin(START_DATE_FIELD_DESC);
|
|
|
22551 |
oprot.writeI64(this.startDate);
|
|
|
22552 |
oprot.writeFieldEnd();
|
|
|
22553 |
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
|
|
|
22554 |
oprot.writeI64(this.endDate);
|
|
|
22555 |
oprot.writeFieldEnd();
|
|
|
22556 |
oprot.writeFieldStop();
|
|
|
22557 |
oprot.writeStructEnd();
|
|
|
22558 |
}
|
|
|
22559 |
|
|
|
22560 |
@Override
|
|
|
22561 |
public String toString() {
|
|
|
22562 |
StringBuilder sb = new StringBuilder("getCompleteMovementSerializedInventoryByScans_args(");
|
|
|
22563 |
boolean first = true;
|
|
|
22564 |
|
|
|
22565 |
sb.append("startDate:");
|
|
|
22566 |
sb.append(this.startDate);
|
|
|
22567 |
first = false;
|
|
|
22568 |
if (!first) sb.append(", ");
|
|
|
22569 |
sb.append("endDate:");
|
|
|
22570 |
sb.append(this.endDate);
|
|
|
22571 |
first = false;
|
|
|
22572 |
sb.append(")");
|
|
|
22573 |
return sb.toString();
|
|
|
22574 |
}
|
|
|
22575 |
|
|
|
22576 |
public void validate() throws org.apache.thrift.TException {
|
|
|
22577 |
// check for required fields
|
|
|
22578 |
}
|
|
|
22579 |
|
|
|
22580 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
22581 |
try {
|
|
|
22582 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
22583 |
} catch (org.apache.thrift.TException te) {
|
|
|
22584 |
throw new java.io.IOException(te);
|
|
|
22585 |
}
|
|
|
22586 |
}
|
|
|
22587 |
|
|
|
22588 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
22589 |
try {
|
|
|
22590 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
22591 |
__isset_bit_vector = new BitSet(1);
|
|
|
22592 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
22593 |
} catch (org.apache.thrift.TException te) {
|
|
|
22594 |
throw new java.io.IOException(te);
|
|
|
22595 |
}
|
|
|
22596 |
}
|
|
|
22597 |
|
|
|
22598 |
}
|
|
|
22599 |
|
|
|
22600 |
public static class getCompleteMovementSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCompleteMovementSerializedInventoryByScans_result, getCompleteMovementSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
22601 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementSerializedInventoryByScans_result");
|
|
|
22602 |
|
|
|
22603 |
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);
|
|
|
22604 |
|
|
|
22605 |
private List<InventoryMovement> success; // required
|
|
|
22606 |
|
|
|
22607 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
22608 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
22609 |
SUCCESS((short)0, "success");
|
|
|
22610 |
|
|
|
22611 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
22612 |
|
|
|
22613 |
static {
|
|
|
22614 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
22615 |
byName.put(field.getFieldName(), field);
|
|
|
22616 |
}
|
|
|
22617 |
}
|
|
|
22618 |
|
|
|
22619 |
/**
|
|
|
22620 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
22621 |
*/
|
|
|
22622 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
22623 |
switch(fieldId) {
|
|
|
22624 |
case 0: // SUCCESS
|
|
|
22625 |
return SUCCESS;
|
|
|
22626 |
default:
|
|
|
22627 |
return null;
|
|
|
22628 |
}
|
|
|
22629 |
}
|
|
|
22630 |
|
|
|
22631 |
/**
|
|
|
22632 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
22633 |
* if it is not found.
|
|
|
22634 |
*/
|
|
|
22635 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
22636 |
_Fields fields = findByThriftId(fieldId);
|
|
|
22637 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
22638 |
return fields;
|
|
|
22639 |
}
|
|
|
22640 |
|
|
|
22641 |
/**
|
|
|
22642 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
22643 |
*/
|
|
|
22644 |
public static _Fields findByName(String name) {
|
|
|
22645 |
return byName.get(name);
|
|
|
22646 |
}
|
|
|
22647 |
|
|
|
22648 |
private final short _thriftId;
|
|
|
22649 |
private final String _fieldName;
|
|
|
22650 |
|
|
|
22651 |
_Fields(short thriftId, String fieldName) {
|
|
|
22652 |
_thriftId = thriftId;
|
|
|
22653 |
_fieldName = fieldName;
|
|
|
22654 |
}
|
|
|
22655 |
|
|
|
22656 |
public short getThriftFieldId() {
|
|
|
22657 |
return _thriftId;
|
|
|
22658 |
}
|
|
|
22659 |
|
|
|
22660 |
public String getFieldName() {
|
|
|
22661 |
return _fieldName;
|
|
|
22662 |
}
|
|
|
22663 |
}
|
|
|
22664 |
|
|
|
22665 |
// isset id assignments
|
|
|
22666 |
|
|
|
22667 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
22668 |
static {
|
|
|
22669 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
22670 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
22671 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
22672 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
|
|
|
22673 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
22674 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
22675 |
}
|
|
|
22676 |
|
|
|
22677 |
public getCompleteMovementSerializedInventoryByScans_result() {
|
|
|
22678 |
}
|
|
|
22679 |
|
|
|
22680 |
public getCompleteMovementSerializedInventoryByScans_result(
|
|
|
22681 |
List<InventoryMovement> success)
|
|
|
22682 |
{
|
|
|
22683 |
this();
|
|
|
22684 |
this.success = success;
|
|
|
22685 |
}
|
|
|
22686 |
|
|
|
22687 |
/**
|
|
|
22688 |
* Performs a deep copy on <i>other</i>.
|
|
|
22689 |
*/
|
|
|
22690 |
public getCompleteMovementSerializedInventoryByScans_result(getCompleteMovementSerializedInventoryByScans_result other) {
|
|
|
22691 |
if (other.isSetSuccess()) {
|
|
|
22692 |
List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
|
|
|
22693 |
for (InventoryMovement other_element : other.success) {
|
|
|
22694 |
__this__success.add(new InventoryMovement(other_element));
|
|
|
22695 |
}
|
|
|
22696 |
this.success = __this__success;
|
|
|
22697 |
}
|
|
|
22698 |
}
|
|
|
22699 |
|
|
|
22700 |
public getCompleteMovementSerializedInventoryByScans_result deepCopy() {
|
|
|
22701 |
return new getCompleteMovementSerializedInventoryByScans_result(this);
|
|
|
22702 |
}
|
|
|
22703 |
|
|
|
22704 |
@Override
|
|
|
22705 |
public void clear() {
|
|
|
22706 |
this.success = null;
|
|
|
22707 |
}
|
|
|
22708 |
|
|
|
22709 |
public int getSuccessSize() {
|
|
|
22710 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
22711 |
}
|
|
|
22712 |
|
|
|
22713 |
public java.util.Iterator<InventoryMovement> getSuccessIterator() {
|
|
|
22714 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
22715 |
}
|
|
|
22716 |
|
|
|
22717 |
public void addToSuccess(InventoryMovement elem) {
|
|
|
22718 |
if (this.success == null) {
|
|
|
22719 |
this.success = new ArrayList<InventoryMovement>();
|
|
|
22720 |
}
|
|
|
22721 |
this.success.add(elem);
|
|
|
22722 |
}
|
|
|
22723 |
|
|
|
22724 |
public List<InventoryMovement> getSuccess() {
|
|
|
22725 |
return this.success;
|
|
|
22726 |
}
|
|
|
22727 |
|
|
|
22728 |
public void setSuccess(List<InventoryMovement> success) {
|
|
|
22729 |
this.success = success;
|
|
|
22730 |
}
|
|
|
22731 |
|
|
|
22732 |
public void unsetSuccess() {
|
|
|
22733 |
this.success = null;
|
|
|
22734 |
}
|
|
|
22735 |
|
|
|
22736 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
22737 |
public boolean isSetSuccess() {
|
|
|
22738 |
return this.success != null;
|
|
|
22739 |
}
|
|
|
22740 |
|
|
|
22741 |
public void setSuccessIsSet(boolean value) {
|
|
|
22742 |
if (!value) {
|
|
|
22743 |
this.success = null;
|
|
|
22744 |
}
|
|
|
22745 |
}
|
|
|
22746 |
|
|
|
22747 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
22748 |
switch (field) {
|
|
|
22749 |
case SUCCESS:
|
|
|
22750 |
if (value == null) {
|
|
|
22751 |
unsetSuccess();
|
|
|
22752 |
} else {
|
|
|
22753 |
setSuccess((List<InventoryMovement>)value);
|
|
|
22754 |
}
|
|
|
22755 |
break;
|
|
|
22756 |
|
|
|
22757 |
}
|
|
|
22758 |
}
|
|
|
22759 |
|
|
|
22760 |
public Object getFieldValue(_Fields field) {
|
|
|
22761 |
switch (field) {
|
|
|
22762 |
case SUCCESS:
|
|
|
22763 |
return getSuccess();
|
|
|
22764 |
|
|
|
22765 |
}
|
|
|
22766 |
throw new IllegalStateException();
|
|
|
22767 |
}
|
|
|
22768 |
|
|
|
22769 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
22770 |
public boolean isSet(_Fields field) {
|
|
|
22771 |
if (field == null) {
|
|
|
22772 |
throw new IllegalArgumentException();
|
|
|
22773 |
}
|
|
|
22774 |
|
|
|
22775 |
switch (field) {
|
|
|
22776 |
case SUCCESS:
|
|
|
22777 |
return isSetSuccess();
|
|
|
22778 |
}
|
|
|
22779 |
throw new IllegalStateException();
|
|
|
22780 |
}
|
|
|
22781 |
|
|
|
22782 |
@Override
|
|
|
22783 |
public boolean equals(Object that) {
|
|
|
22784 |
if (that == null)
|
|
|
22785 |
return false;
|
|
|
22786 |
if (that instanceof getCompleteMovementSerializedInventoryByScans_result)
|
|
|
22787 |
return this.equals((getCompleteMovementSerializedInventoryByScans_result)that);
|
|
|
22788 |
return false;
|
|
|
22789 |
}
|
|
|
22790 |
|
|
|
22791 |
public boolean equals(getCompleteMovementSerializedInventoryByScans_result that) {
|
|
|
22792 |
if (that == null)
|
|
|
22793 |
return false;
|
|
|
22794 |
|
|
|
22795 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
22796 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
22797 |
if (this_present_success || that_present_success) {
|
|
|
22798 |
if (!(this_present_success && that_present_success))
|
|
|
22799 |
return false;
|
|
|
22800 |
if (!this.success.equals(that.success))
|
|
|
22801 |
return false;
|
|
|
22802 |
}
|
|
|
22803 |
|
|
|
22804 |
return true;
|
|
|
22805 |
}
|
|
|
22806 |
|
|
|
22807 |
@Override
|
|
|
22808 |
public int hashCode() {
|
|
|
22809 |
return 0;
|
|
|
22810 |
}
|
|
|
22811 |
|
|
|
22812 |
public int compareTo(getCompleteMovementSerializedInventoryByScans_result other) {
|
|
|
22813 |
if (!getClass().equals(other.getClass())) {
|
|
|
22814 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
22815 |
}
|
|
|
22816 |
|
|
|
22817 |
int lastComparison = 0;
|
|
|
22818 |
getCompleteMovementSerializedInventoryByScans_result typedOther = (getCompleteMovementSerializedInventoryByScans_result)other;
|
|
|
22819 |
|
|
|
22820 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
22821 |
if (lastComparison != 0) {
|
|
|
22822 |
return lastComparison;
|
|
|
22823 |
}
|
|
|
22824 |
if (isSetSuccess()) {
|
|
|
22825 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
22826 |
if (lastComparison != 0) {
|
|
|
22827 |
return lastComparison;
|
|
|
22828 |
}
|
|
|
22829 |
}
|
|
|
22830 |
return 0;
|
|
|
22831 |
}
|
|
|
22832 |
|
|
|
22833 |
public _Fields fieldForId(int fieldId) {
|
|
|
22834 |
return _Fields.findByThriftId(fieldId);
|
|
|
22835 |
}
|
|
|
22836 |
|
|
|
22837 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
22838 |
org.apache.thrift.protocol.TField field;
|
|
|
22839 |
iprot.readStructBegin();
|
|
|
22840 |
while (true)
|
|
|
22841 |
{
|
|
|
22842 |
field = iprot.readFieldBegin();
|
|
|
22843 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
22844 |
break;
|
|
|
22845 |
}
|
|
|
22846 |
switch (field.id) {
|
|
|
22847 |
case 0: // SUCCESS
|
|
|
22848 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
22849 |
{
|
|
|
22850 |
org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();
|
|
|
22851 |
this.success = new ArrayList<InventoryMovement>(_list68.size);
|
|
|
22852 |
for (int _i69 = 0; _i69 < _list68.size; ++_i69)
|
|
|
22853 |
{
|
|
|
22854 |
InventoryMovement _elem70; // required
|
|
|
22855 |
_elem70 = new InventoryMovement();
|
|
|
22856 |
_elem70.read(iprot);
|
|
|
22857 |
this.success.add(_elem70);
|
|
|
22858 |
}
|
|
|
22859 |
iprot.readListEnd();
|
|
|
22860 |
}
|
|
|
22861 |
} else {
|
|
|
22862 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
22863 |
}
|
|
|
22864 |
break;
|
|
|
22865 |
default:
|
|
|
22866 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
22867 |
}
|
|
|
22868 |
iprot.readFieldEnd();
|
|
|
22869 |
}
|
|
|
22870 |
iprot.readStructEnd();
|
|
|
22871 |
validate();
|
|
|
22872 |
}
|
|
|
22873 |
|
|
|
22874 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
22875 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
22876 |
|
|
|
22877 |
if (this.isSetSuccess()) {
|
|
|
22878 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
22879 |
{
|
|
|
22880 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
22881 |
for (InventoryMovement _iter71 : this.success)
|
|
|
22882 |
{
|
|
|
22883 |
_iter71.write(oprot);
|
|
|
22884 |
}
|
|
|
22885 |
oprot.writeListEnd();
|
|
|
22886 |
}
|
|
|
22887 |
oprot.writeFieldEnd();
|
|
|
22888 |
}
|
|
|
22889 |
oprot.writeFieldStop();
|
|
|
22890 |
oprot.writeStructEnd();
|
|
|
22891 |
}
|
|
|
22892 |
|
|
|
22893 |
@Override
|
|
|
22894 |
public String toString() {
|
|
|
22895 |
StringBuilder sb = new StringBuilder("getCompleteMovementSerializedInventoryByScans_result(");
|
|
|
22896 |
boolean first = true;
|
|
|
22897 |
|
|
|
22898 |
sb.append("success:");
|
|
|
22899 |
if (this.success == null) {
|
|
|
22900 |
sb.append("null");
|
|
|
22901 |
} else {
|
|
|
22902 |
sb.append(this.success);
|
|
|
22903 |
}
|
|
|
22904 |
first = false;
|
|
|
22905 |
sb.append(")");
|
|
|
22906 |
return sb.toString();
|
|
|
22907 |
}
|
|
|
22908 |
|
|
|
22909 |
public void validate() throws org.apache.thrift.TException {
|
|
|
22910 |
// check for required fields
|
|
|
22911 |
}
|
|
|
22912 |
|
|
|
22913 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
22914 |
try {
|
|
|
22915 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
22916 |
} catch (org.apache.thrift.TException te) {
|
|
|
22917 |
throw new java.io.IOException(te);
|
|
|
22918 |
}
|
|
|
22919 |
}
|
|
|
22920 |
|
|
|
22921 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
22922 |
try {
|
|
|
22923 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
22924 |
} catch (org.apache.thrift.TException te) {
|
|
|
22925 |
throw new java.io.IOException(te);
|
|
|
22926 |
}
|
|
|
22927 |
}
|
|
|
22928 |
|
|
|
22929 |
}
|
|
|
22930 |
|
|
|
22931 |
public static class getCompleteMovementNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCompleteMovementNonSerializedInventoryByScans_args, getCompleteMovementNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
22932 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementNonSerializedInventoryByScans_args");
|
|
|
22933 |
|
|
|
22934 |
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);
|
|
|
22935 |
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);
|
|
|
22936 |
|
|
|
22937 |
private long startDate; // required
|
|
|
22938 |
private long endDate; // required
|
|
|
22939 |
|
|
|
22940 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
22941 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
22942 |
START_DATE((short)1, "startDate"),
|
|
|
22943 |
END_DATE((short)2, "endDate");
|
|
|
22944 |
|
|
|
22945 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
22946 |
|
|
|
22947 |
static {
|
|
|
22948 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
22949 |
byName.put(field.getFieldName(), field);
|
|
|
22950 |
}
|
|
|
22951 |
}
|
|
|
22952 |
|
|
|
22953 |
/**
|
|
|
22954 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
22955 |
*/
|
|
|
22956 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
22957 |
switch(fieldId) {
|
|
|
22958 |
case 1: // START_DATE
|
|
|
22959 |
return START_DATE;
|
|
|
22960 |
case 2: // END_DATE
|
|
|
22961 |
return END_DATE;
|
|
|
22962 |
default:
|
|
|
22963 |
return null;
|
|
|
22964 |
}
|
|
|
22965 |
}
|
|
|
22966 |
|
|
|
22967 |
/**
|
|
|
22968 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
22969 |
* if it is not found.
|
|
|
22970 |
*/
|
|
|
22971 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
22972 |
_Fields fields = findByThriftId(fieldId);
|
|
|
22973 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
22974 |
return fields;
|
|
|
22975 |
}
|
|
|
22976 |
|
|
|
22977 |
/**
|
|
|
22978 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
22979 |
*/
|
|
|
22980 |
public static _Fields findByName(String name) {
|
|
|
22981 |
return byName.get(name);
|
|
|
22982 |
}
|
|
|
22983 |
|
|
|
22984 |
private final short _thriftId;
|
|
|
22985 |
private final String _fieldName;
|
|
|
22986 |
|
|
|
22987 |
_Fields(short thriftId, String fieldName) {
|
|
|
22988 |
_thriftId = thriftId;
|
|
|
22989 |
_fieldName = fieldName;
|
|
|
22990 |
}
|
|
|
22991 |
|
|
|
22992 |
public short getThriftFieldId() {
|
|
|
22993 |
return _thriftId;
|
|
|
22994 |
}
|
|
|
22995 |
|
|
|
22996 |
public String getFieldName() {
|
|
|
22997 |
return _fieldName;
|
|
|
22998 |
}
|
|
|
22999 |
}
|
|
|
23000 |
|
|
|
23001 |
// isset id assignments
|
|
|
23002 |
private static final int __STARTDATE_ISSET_ID = 0;
|
|
|
23003 |
private static final int __ENDDATE_ISSET_ID = 1;
|
|
|
23004 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
23005 |
|
|
|
23006 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
23007 |
static {
|
|
|
23008 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
23009 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
23010 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
23011 |
tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
23012 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
23013 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
23014 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementNonSerializedInventoryByScans_args.class, metaDataMap);
|
|
|
23015 |
}
|
|
|
23016 |
|
|
|
23017 |
public getCompleteMovementNonSerializedInventoryByScans_args() {
|
|
|
23018 |
}
|
|
|
23019 |
|
|
|
23020 |
public getCompleteMovementNonSerializedInventoryByScans_args(
|
|
|
23021 |
long startDate,
|
|
|
23022 |
long endDate)
|
|
|
23023 |
{
|
|
|
23024 |
this();
|
|
|
23025 |
this.startDate = startDate;
|
|
|
23026 |
setStartDateIsSet(true);
|
|
|
23027 |
this.endDate = endDate;
|
|
|
23028 |
setEndDateIsSet(true);
|
|
|
23029 |
}
|
|
|
23030 |
|
|
|
23031 |
/**
|
|
|
23032 |
* Performs a deep copy on <i>other</i>.
|
|
|
23033 |
*/
|
|
|
23034 |
public getCompleteMovementNonSerializedInventoryByScans_args(getCompleteMovementNonSerializedInventoryByScans_args other) {
|
|
|
23035 |
__isset_bit_vector.clear();
|
|
|
23036 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
23037 |
this.startDate = other.startDate;
|
|
|
23038 |
this.endDate = other.endDate;
|
|
|
23039 |
}
|
|
|
23040 |
|
|
|
23041 |
public getCompleteMovementNonSerializedInventoryByScans_args deepCopy() {
|
|
|
23042 |
return new getCompleteMovementNonSerializedInventoryByScans_args(this);
|
|
|
23043 |
}
|
|
|
23044 |
|
|
|
23045 |
@Override
|
|
|
23046 |
public void clear() {
|
|
|
23047 |
setStartDateIsSet(false);
|
|
|
23048 |
this.startDate = 0;
|
|
|
23049 |
setEndDateIsSet(false);
|
|
|
23050 |
this.endDate = 0;
|
|
|
23051 |
}
|
|
|
23052 |
|
|
|
23053 |
public long getStartDate() {
|
|
|
23054 |
return this.startDate;
|
|
|
23055 |
}
|
|
|
23056 |
|
|
|
23057 |
public void setStartDate(long startDate) {
|
|
|
23058 |
this.startDate = startDate;
|
|
|
23059 |
setStartDateIsSet(true);
|
|
|
23060 |
}
|
|
|
23061 |
|
|
|
23062 |
public void unsetStartDate() {
|
|
|
23063 |
__isset_bit_vector.clear(__STARTDATE_ISSET_ID);
|
|
|
23064 |
}
|
|
|
23065 |
|
|
|
23066 |
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
|
|
|
23067 |
public boolean isSetStartDate() {
|
|
|
23068 |
return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
|
|
|
23069 |
}
|
|
|
23070 |
|
|
|
23071 |
public void setStartDateIsSet(boolean value) {
|
|
|
23072 |
__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
|
|
|
23073 |
}
|
|
|
23074 |
|
|
|
23075 |
public long getEndDate() {
|
|
|
23076 |
return this.endDate;
|
|
|
23077 |
}
|
|
|
23078 |
|
|
|
23079 |
public void setEndDate(long endDate) {
|
|
|
23080 |
this.endDate = endDate;
|
|
|
23081 |
setEndDateIsSet(true);
|
|
|
23082 |
}
|
|
|
23083 |
|
|
|
23084 |
public void unsetEndDate() {
|
|
|
23085 |
__isset_bit_vector.clear(__ENDDATE_ISSET_ID);
|
|
|
23086 |
}
|
|
|
23087 |
|
|
|
23088 |
/** Returns true if field endDate is set (has been assigned a value) and false otherwise */
|
|
|
23089 |
public boolean isSetEndDate() {
|
|
|
23090 |
return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
|
|
|
23091 |
}
|
|
|
23092 |
|
|
|
23093 |
public void setEndDateIsSet(boolean value) {
|
|
|
23094 |
__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
|
|
|
23095 |
}
|
|
|
23096 |
|
|
|
23097 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
23098 |
switch (field) {
|
|
|
23099 |
case START_DATE:
|
|
|
23100 |
if (value == null) {
|
|
|
23101 |
unsetStartDate();
|
|
|
23102 |
} else {
|
|
|
23103 |
setStartDate((Long)value);
|
|
|
23104 |
}
|
|
|
23105 |
break;
|
|
|
23106 |
|
|
|
23107 |
case END_DATE:
|
|
|
23108 |
if (value == null) {
|
|
|
23109 |
unsetEndDate();
|
|
|
23110 |
} else {
|
|
|
23111 |
setEndDate((Long)value);
|
|
|
23112 |
}
|
|
|
23113 |
break;
|
|
|
23114 |
|
|
|
23115 |
}
|
|
|
23116 |
}
|
|
|
23117 |
|
|
|
23118 |
public Object getFieldValue(_Fields field) {
|
|
|
23119 |
switch (field) {
|
|
|
23120 |
case START_DATE:
|
|
|
23121 |
return Long.valueOf(getStartDate());
|
|
|
23122 |
|
|
|
23123 |
case END_DATE:
|
|
|
23124 |
return Long.valueOf(getEndDate());
|
|
|
23125 |
|
|
|
23126 |
}
|
|
|
23127 |
throw new IllegalStateException();
|
|
|
23128 |
}
|
|
|
23129 |
|
|
|
23130 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
23131 |
public boolean isSet(_Fields field) {
|
|
|
23132 |
if (field == null) {
|
|
|
23133 |
throw new IllegalArgumentException();
|
|
|
23134 |
}
|
|
|
23135 |
|
|
|
23136 |
switch (field) {
|
|
|
23137 |
case START_DATE:
|
|
|
23138 |
return isSetStartDate();
|
|
|
23139 |
case END_DATE:
|
|
|
23140 |
return isSetEndDate();
|
|
|
23141 |
}
|
|
|
23142 |
throw new IllegalStateException();
|
|
|
23143 |
}
|
|
|
23144 |
|
|
|
23145 |
@Override
|
|
|
23146 |
public boolean equals(Object that) {
|
|
|
23147 |
if (that == null)
|
|
|
23148 |
return false;
|
|
|
23149 |
if (that instanceof getCompleteMovementNonSerializedInventoryByScans_args)
|
|
|
23150 |
return this.equals((getCompleteMovementNonSerializedInventoryByScans_args)that);
|
|
|
23151 |
return false;
|
|
|
23152 |
}
|
|
|
23153 |
|
|
|
23154 |
public boolean equals(getCompleteMovementNonSerializedInventoryByScans_args that) {
|
|
|
23155 |
if (that == null)
|
|
|
23156 |
return false;
|
|
|
23157 |
|
|
|
23158 |
boolean this_present_startDate = true;
|
|
|
23159 |
boolean that_present_startDate = true;
|
|
|
23160 |
if (this_present_startDate || that_present_startDate) {
|
|
|
23161 |
if (!(this_present_startDate && that_present_startDate))
|
|
|
23162 |
return false;
|
|
|
23163 |
if (this.startDate != that.startDate)
|
|
|
23164 |
return false;
|
|
|
23165 |
}
|
|
|
23166 |
|
|
|
23167 |
boolean this_present_endDate = true;
|
|
|
23168 |
boolean that_present_endDate = true;
|
|
|
23169 |
if (this_present_endDate || that_present_endDate) {
|
|
|
23170 |
if (!(this_present_endDate && that_present_endDate))
|
|
|
23171 |
return false;
|
|
|
23172 |
if (this.endDate != that.endDate)
|
|
|
23173 |
return false;
|
|
|
23174 |
}
|
|
|
23175 |
|
|
|
23176 |
return true;
|
|
|
23177 |
}
|
|
|
23178 |
|
|
|
23179 |
@Override
|
|
|
23180 |
public int hashCode() {
|
|
|
23181 |
return 0;
|
|
|
23182 |
}
|
|
|
23183 |
|
|
|
23184 |
public int compareTo(getCompleteMovementNonSerializedInventoryByScans_args other) {
|
|
|
23185 |
if (!getClass().equals(other.getClass())) {
|
|
|
23186 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
23187 |
}
|
|
|
23188 |
|
|
|
23189 |
int lastComparison = 0;
|
|
|
23190 |
getCompleteMovementNonSerializedInventoryByScans_args typedOther = (getCompleteMovementNonSerializedInventoryByScans_args)other;
|
|
|
23191 |
|
|
|
23192 |
lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
|
|
|
23193 |
if (lastComparison != 0) {
|
|
|
23194 |
return lastComparison;
|
|
|
23195 |
}
|
|
|
23196 |
if (isSetStartDate()) {
|
|
|
23197 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
|
|
|
23198 |
if (lastComparison != 0) {
|
|
|
23199 |
return lastComparison;
|
|
|
23200 |
}
|
|
|
23201 |
}
|
|
|
23202 |
lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
|
|
|
23203 |
if (lastComparison != 0) {
|
|
|
23204 |
return lastComparison;
|
|
|
23205 |
}
|
|
|
23206 |
if (isSetEndDate()) {
|
|
|
23207 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
|
|
|
23208 |
if (lastComparison != 0) {
|
|
|
23209 |
return lastComparison;
|
|
|
23210 |
}
|
|
|
23211 |
}
|
|
|
23212 |
return 0;
|
|
|
23213 |
}
|
|
|
23214 |
|
|
|
23215 |
public _Fields fieldForId(int fieldId) {
|
|
|
23216 |
return _Fields.findByThriftId(fieldId);
|
|
|
23217 |
}
|
|
|
23218 |
|
|
|
23219 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
23220 |
org.apache.thrift.protocol.TField field;
|
|
|
23221 |
iprot.readStructBegin();
|
|
|
23222 |
while (true)
|
|
|
23223 |
{
|
|
|
23224 |
field = iprot.readFieldBegin();
|
|
|
23225 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
23226 |
break;
|
|
|
23227 |
}
|
|
|
23228 |
switch (field.id) {
|
|
|
23229 |
case 1: // START_DATE
|
|
|
23230 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
23231 |
this.startDate = iprot.readI64();
|
|
|
23232 |
setStartDateIsSet(true);
|
|
|
23233 |
} else {
|
|
|
23234 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
23235 |
}
|
|
|
23236 |
break;
|
|
|
23237 |
case 2: // END_DATE
|
|
|
23238 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
23239 |
this.endDate = iprot.readI64();
|
|
|
23240 |
setEndDateIsSet(true);
|
|
|
23241 |
} else {
|
|
|
23242 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
23243 |
}
|
|
|
23244 |
break;
|
|
|
23245 |
default:
|
|
|
23246 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
23247 |
}
|
|
|
23248 |
iprot.readFieldEnd();
|
|
|
23249 |
}
|
|
|
23250 |
iprot.readStructEnd();
|
|
|
23251 |
validate();
|
|
|
23252 |
}
|
|
|
23253 |
|
|
|
23254 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
23255 |
validate();
|
|
|
23256 |
|
|
|
23257 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
23258 |
oprot.writeFieldBegin(START_DATE_FIELD_DESC);
|
|
|
23259 |
oprot.writeI64(this.startDate);
|
|
|
23260 |
oprot.writeFieldEnd();
|
|
|
23261 |
oprot.writeFieldBegin(END_DATE_FIELD_DESC);
|
|
|
23262 |
oprot.writeI64(this.endDate);
|
|
|
23263 |
oprot.writeFieldEnd();
|
|
|
23264 |
oprot.writeFieldStop();
|
|
|
23265 |
oprot.writeStructEnd();
|
|
|
23266 |
}
|
|
|
23267 |
|
|
|
23268 |
@Override
|
|
|
23269 |
public String toString() {
|
|
|
23270 |
StringBuilder sb = new StringBuilder("getCompleteMovementNonSerializedInventoryByScans_args(");
|
|
|
23271 |
boolean first = true;
|
|
|
23272 |
|
|
|
23273 |
sb.append("startDate:");
|
|
|
23274 |
sb.append(this.startDate);
|
|
|
23275 |
first = false;
|
|
|
23276 |
if (!first) sb.append(", ");
|
|
|
23277 |
sb.append("endDate:");
|
|
|
23278 |
sb.append(this.endDate);
|
|
|
23279 |
first = false;
|
|
|
23280 |
sb.append(")");
|
|
|
23281 |
return sb.toString();
|
|
|
23282 |
}
|
|
|
23283 |
|
|
|
23284 |
public void validate() throws org.apache.thrift.TException {
|
|
|
23285 |
// check for required fields
|
|
|
23286 |
}
|
|
|
23287 |
|
|
|
23288 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
23289 |
try {
|
|
|
23290 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
23291 |
} catch (org.apache.thrift.TException te) {
|
|
|
23292 |
throw new java.io.IOException(te);
|
|
|
23293 |
}
|
|
|
23294 |
}
|
|
|
23295 |
|
|
|
23296 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
23297 |
try {
|
|
|
23298 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
23299 |
__isset_bit_vector = new BitSet(1);
|
|
|
23300 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
23301 |
} catch (org.apache.thrift.TException te) {
|
|
|
23302 |
throw new java.io.IOException(te);
|
|
|
23303 |
}
|
|
|
23304 |
}
|
|
|
23305 |
|
|
|
23306 |
}
|
|
|
23307 |
|
|
|
23308 |
public static class getCompleteMovementNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCompleteMovementNonSerializedInventoryByScans_result, getCompleteMovementNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
23309 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementNonSerializedInventoryByScans_result");
|
|
|
23310 |
|
|
|
23311 |
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);
|
|
|
23312 |
|
|
|
23313 |
private List<InventoryMovement> success; // required
|
|
|
23314 |
|
|
|
23315 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
23316 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
23317 |
SUCCESS((short)0, "success");
|
|
|
23318 |
|
|
|
23319 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
23320 |
|
|
|
23321 |
static {
|
|
|
23322 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
23323 |
byName.put(field.getFieldName(), field);
|
|
|
23324 |
}
|
|
|
23325 |
}
|
|
|
23326 |
|
|
|
23327 |
/**
|
|
|
23328 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
23329 |
*/
|
|
|
23330 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
23331 |
switch(fieldId) {
|
|
|
23332 |
case 0: // SUCCESS
|
|
|
23333 |
return SUCCESS;
|
|
|
23334 |
default:
|
|
|
23335 |
return null;
|
|
|
23336 |
}
|
|
|
23337 |
}
|
|
|
23338 |
|
|
|
23339 |
/**
|
|
|
23340 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
23341 |
* if it is not found.
|
|
|
23342 |
*/
|
|
|
23343 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
23344 |
_Fields fields = findByThriftId(fieldId);
|
|
|
23345 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
23346 |
return fields;
|
|
|
23347 |
}
|
|
|
23348 |
|
|
|
23349 |
/**
|
|
|
23350 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
23351 |
*/
|
|
|
23352 |
public static _Fields findByName(String name) {
|
|
|
23353 |
return byName.get(name);
|
|
|
23354 |
}
|
|
|
23355 |
|
|
|
23356 |
private final short _thriftId;
|
|
|
23357 |
private final String _fieldName;
|
|
|
23358 |
|
|
|
23359 |
_Fields(short thriftId, String fieldName) {
|
|
|
23360 |
_thriftId = thriftId;
|
|
|
23361 |
_fieldName = fieldName;
|
|
|
23362 |
}
|
|
|
23363 |
|
|
|
23364 |
public short getThriftFieldId() {
|
|
|
23365 |
return _thriftId;
|
|
|
23366 |
}
|
|
|
23367 |
|
|
|
23368 |
public String getFieldName() {
|
|
|
23369 |
return _fieldName;
|
|
|
23370 |
}
|
|
|
23371 |
}
|
|
|
23372 |
|
|
|
23373 |
// isset id assignments
|
|
|
23374 |
|
|
|
23375 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
23376 |
static {
|
|
|
23377 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
23378 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
23379 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
23380 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
|
|
|
23381 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
23382 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementNonSerializedInventoryByScans_result.class, metaDataMap);
|
|
|
23383 |
}
|
|
|
23384 |
|
|
|
23385 |
public getCompleteMovementNonSerializedInventoryByScans_result() {
|
|
|
23386 |
}
|
|
|
23387 |
|
|
|
23388 |
public getCompleteMovementNonSerializedInventoryByScans_result(
|
|
|
23389 |
List<InventoryMovement> success)
|
|
|
23390 |
{
|
|
|
23391 |
this();
|
|
|
23392 |
this.success = success;
|
|
|
23393 |
}
|
|
|
23394 |
|
|
|
23395 |
/**
|
|
|
23396 |
* Performs a deep copy on <i>other</i>.
|
|
|
23397 |
*/
|
|
|
23398 |
public getCompleteMovementNonSerializedInventoryByScans_result(getCompleteMovementNonSerializedInventoryByScans_result other) {
|
|
|
23399 |
if (other.isSetSuccess()) {
|
|
|
23400 |
List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
|
|
|
23401 |
for (InventoryMovement other_element : other.success) {
|
|
|
23402 |
__this__success.add(new InventoryMovement(other_element));
|
|
|
23403 |
}
|
|
|
23404 |
this.success = __this__success;
|
|
|
23405 |
}
|
|
|
23406 |
}
|
|
|
23407 |
|
|
|
23408 |
public getCompleteMovementNonSerializedInventoryByScans_result deepCopy() {
|
|
|
23409 |
return new getCompleteMovementNonSerializedInventoryByScans_result(this);
|
|
|
23410 |
}
|
|
|
23411 |
|
|
|
23412 |
@Override
|
|
|
23413 |
public void clear() {
|
|
|
23414 |
this.success = null;
|
|
|
23415 |
}
|
|
|
23416 |
|
|
|
23417 |
public int getSuccessSize() {
|
|
|
23418 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
23419 |
}
|
|
|
23420 |
|
|
|
23421 |
public java.util.Iterator<InventoryMovement> getSuccessIterator() {
|
|
|
23422 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
23423 |
}
|
|
|
23424 |
|
|
|
23425 |
public void addToSuccess(InventoryMovement elem) {
|
|
|
23426 |
if (this.success == null) {
|
|
|
23427 |
this.success = new ArrayList<InventoryMovement>();
|
|
|
23428 |
}
|
|
|
23429 |
this.success.add(elem);
|
|
|
23430 |
}
|
|
|
23431 |
|
|
|
23432 |
public List<InventoryMovement> getSuccess() {
|
|
|
23433 |
return this.success;
|
|
|
23434 |
}
|
|
|
23435 |
|
|
|
23436 |
public void setSuccess(List<InventoryMovement> success) {
|
|
|
23437 |
this.success = success;
|
|
|
23438 |
}
|
|
|
23439 |
|
|
|
23440 |
public void unsetSuccess() {
|
|
|
23441 |
this.success = null;
|
|
|
23442 |
}
|
|
|
23443 |
|
|
|
23444 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
23445 |
public boolean isSetSuccess() {
|
|
|
23446 |
return this.success != null;
|
|
|
23447 |
}
|
|
|
23448 |
|
|
|
23449 |
public void setSuccessIsSet(boolean value) {
|
|
|
23450 |
if (!value) {
|
|
|
23451 |
this.success = null;
|
|
|
23452 |
}
|
|
|
23453 |
}
|
|
|
23454 |
|
|
|
23455 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
23456 |
switch (field) {
|
|
|
23457 |
case SUCCESS:
|
|
|
23458 |
if (value == null) {
|
|
|
23459 |
unsetSuccess();
|
|
|
23460 |
} else {
|
|
|
23461 |
setSuccess((List<InventoryMovement>)value);
|
|
|
23462 |
}
|
|
|
23463 |
break;
|
|
|
23464 |
|
|
|
23465 |
}
|
|
|
23466 |
}
|
|
|
23467 |
|
|
|
23468 |
public Object getFieldValue(_Fields field) {
|
|
|
23469 |
switch (field) {
|
|
|
23470 |
case SUCCESS:
|
|
|
23471 |
return getSuccess();
|
|
|
23472 |
|
|
|
23473 |
}
|
|
|
23474 |
throw new IllegalStateException();
|
|
|
23475 |
}
|
|
|
23476 |
|
|
|
23477 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
23478 |
public boolean isSet(_Fields field) {
|
|
|
23479 |
if (field == null) {
|
|
|
23480 |
throw new IllegalArgumentException();
|
|
|
23481 |
}
|
|
|
23482 |
|
|
|
23483 |
switch (field) {
|
|
|
23484 |
case SUCCESS:
|
|
|
23485 |
return isSetSuccess();
|
|
|
23486 |
}
|
|
|
23487 |
throw new IllegalStateException();
|
|
|
23488 |
}
|
|
|
23489 |
|
|
|
23490 |
@Override
|
|
|
23491 |
public boolean equals(Object that) {
|
|
|
23492 |
if (that == null)
|
|
|
23493 |
return false;
|
|
|
23494 |
if (that instanceof getCompleteMovementNonSerializedInventoryByScans_result)
|
|
|
23495 |
return this.equals((getCompleteMovementNonSerializedInventoryByScans_result)that);
|
|
|
23496 |
return false;
|
|
|
23497 |
}
|
|
|
23498 |
|
|
|
23499 |
public boolean equals(getCompleteMovementNonSerializedInventoryByScans_result that) {
|
|
|
23500 |
if (that == null)
|
|
|
23501 |
return false;
|
|
|
23502 |
|
|
|
23503 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
23504 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
23505 |
if (this_present_success || that_present_success) {
|
|
|
23506 |
if (!(this_present_success && that_present_success))
|
|
|
23507 |
return false;
|
|
|
23508 |
if (!this.success.equals(that.success))
|
|
|
23509 |
return false;
|
|
|
23510 |
}
|
|
|
23511 |
|
|
|
23512 |
return true;
|
|
|
23513 |
}
|
|
|
23514 |
|
|
|
23515 |
@Override
|
|
|
23516 |
public int hashCode() {
|
|
|
23517 |
return 0;
|
|
|
23518 |
}
|
|
|
23519 |
|
|
|
23520 |
public int compareTo(getCompleteMovementNonSerializedInventoryByScans_result other) {
|
|
|
23521 |
if (!getClass().equals(other.getClass())) {
|
|
|
23522 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
23523 |
}
|
|
|
23524 |
|
|
|
23525 |
int lastComparison = 0;
|
|
|
23526 |
getCompleteMovementNonSerializedInventoryByScans_result typedOther = (getCompleteMovementNonSerializedInventoryByScans_result)other;
|
|
|
23527 |
|
|
|
23528 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
23529 |
if (lastComparison != 0) {
|
|
|
23530 |
return lastComparison;
|
|
|
23531 |
}
|
|
|
23532 |
if (isSetSuccess()) {
|
|
|
23533 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
23534 |
if (lastComparison != 0) {
|
|
|
23535 |
return lastComparison;
|
|
|
23536 |
}
|
|
|
23537 |
}
|
|
|
23538 |
return 0;
|
|
|
23539 |
}
|
|
|
23540 |
|
|
|
23541 |
public _Fields fieldForId(int fieldId) {
|
|
|
23542 |
return _Fields.findByThriftId(fieldId);
|
|
|
23543 |
}
|
|
|
23544 |
|
|
|
23545 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
23546 |
org.apache.thrift.protocol.TField field;
|
|
|
23547 |
iprot.readStructBegin();
|
|
|
23548 |
while (true)
|
|
|
23549 |
{
|
|
|
23550 |
field = iprot.readFieldBegin();
|
|
|
23551 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
23552 |
break;
|
|
|
23553 |
}
|
|
|
23554 |
switch (field.id) {
|
|
|
23555 |
case 0: // SUCCESS
|
|
|
23556 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
23557 |
{
|
|
|
23558 |
org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();
|
|
|
23559 |
this.success = new ArrayList<InventoryMovement>(_list72.size);
|
|
|
23560 |
for (int _i73 = 0; _i73 < _list72.size; ++_i73)
|
|
|
23561 |
{
|
|
|
23562 |
InventoryMovement _elem74; // required
|
|
|
23563 |
_elem74 = new InventoryMovement();
|
|
|
23564 |
_elem74.read(iprot);
|
|
|
23565 |
this.success.add(_elem74);
|
|
|
23566 |
}
|
|
|
23567 |
iprot.readListEnd();
|
|
|
23568 |
}
|
|
|
23569 |
} else {
|
|
|
23570 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
23571 |
}
|
|
|
23572 |
break;
|
|
|
23573 |
default:
|
|
|
23574 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
23575 |
}
|
|
|
23576 |
iprot.readFieldEnd();
|
|
|
23577 |
}
|
|
|
23578 |
iprot.readStructEnd();
|
|
|
23579 |
validate();
|
|
|
23580 |
}
|
|
|
23581 |
|
|
|
23582 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
23583 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
23584 |
|
|
|
23585 |
if (this.isSetSuccess()) {
|
|
|
23586 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
23587 |
{
|
|
|
23588 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
23589 |
for (InventoryMovement _iter75 : this.success)
|
|
|
23590 |
{
|
|
|
23591 |
_iter75.write(oprot);
|
|
|
23592 |
}
|
|
|
23593 |
oprot.writeListEnd();
|
|
|
23594 |
}
|
|
|
23595 |
oprot.writeFieldEnd();
|
|
|
23596 |
}
|
|
|
23597 |
oprot.writeFieldStop();
|
|
|
23598 |
oprot.writeStructEnd();
|
|
|
23599 |
}
|
|
|
23600 |
|
|
|
23601 |
@Override
|
|
|
23602 |
public String toString() {
|
|
|
23603 |
StringBuilder sb = new StringBuilder("getCompleteMovementNonSerializedInventoryByScans_result(");
|
|
|
23604 |
boolean first = true;
|
|
|
23605 |
|
|
|
23606 |
sb.append("success:");
|
|
|
23607 |
if (this.success == null) {
|
|
|
23608 |
sb.append("null");
|
|
|
23609 |
} else {
|
|
|
23610 |
sb.append(this.success);
|
|
|
23611 |
}
|
|
|
23612 |
first = false;
|
|
|
23613 |
sb.append(")");
|
|
|
23614 |
return sb.toString();
|
|
|
23615 |
}
|
|
|
23616 |
|
|
|
23617 |
public void validate() throws org.apache.thrift.TException {
|
|
|
23618 |
// check for required fields
|
|
|
23619 |
}
|
|
|
23620 |
|
|
|
23621 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
23622 |
try {
|
|
|
23623 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
23624 |
} catch (org.apache.thrift.TException te) {
|
|
|
23625 |
throw new java.io.IOException(te);
|
|
|
23626 |
}
|
|
|
23627 |
}
|
|
|
23628 |
|
|
|
23629 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
23630 |
try {
|
|
|
23631 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
23632 |
} catch (org.apache.thrift.TException te) {
|
|
|
23633 |
throw new java.io.IOException(te);
|
|
|
23634 |
}
|
|
|
23635 |
}
|
|
|
23636 |
|
|
|
23637 |
}
|
|
|
23638 |
|
| 7190 |
amar.kumar |
23639 |
public static class scanfreebie_args implements org.apache.thrift.TBase<scanfreebie_args, scanfreebie_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
23640 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanfreebie_args");
|
|
|
23641 |
|
|
|
23642 |
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);
|
|
|
23643 |
private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItemId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
23644 |
private static final org.apache.thrift.protocol.TField FREEBIE_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieWarehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
23645 |
private static final org.apache.thrift.protocol.TField SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("scanType", org.apache.thrift.protocol.TType.I32, (short)4);
|
|
|
23646 |
|
|
|
23647 |
private long orderId; // required
|
|
|
23648 |
private long freebieItemId; // required
|
|
|
23649 |
private long freebieWarehouseId; // required
|
|
|
23650 |
private ScanType scanType; // required
|
|
|
23651 |
|
|
|
23652 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
23653 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
23654 |
ORDER_ID((short)1, "orderId"),
|
|
|
23655 |
FREEBIE_ITEM_ID((short)2, "freebieItemId"),
|
|
|
23656 |
FREEBIE_WAREHOUSE_ID((short)3, "freebieWarehouseId"),
|
|
|
23657 |
/**
|
|
|
23658 |
*
|
|
|
23659 |
* @see ScanType
|
|
|
23660 |
*/
|
|
|
23661 |
SCAN_TYPE((short)4, "scanType");
|
|
|
23662 |
|
|
|
23663 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
23664 |
|
|
|
23665 |
static {
|
|
|
23666 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
23667 |
byName.put(field.getFieldName(), field);
|
|
|
23668 |
}
|
|
|
23669 |
}
|
|
|
23670 |
|
|
|
23671 |
/**
|
|
|
23672 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
23673 |
*/
|
|
|
23674 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
23675 |
switch(fieldId) {
|
|
|
23676 |
case 1: // ORDER_ID
|
|
|
23677 |
return ORDER_ID;
|
|
|
23678 |
case 2: // FREEBIE_ITEM_ID
|
|
|
23679 |
return FREEBIE_ITEM_ID;
|
|
|
23680 |
case 3: // FREEBIE_WAREHOUSE_ID
|
|
|
23681 |
return FREEBIE_WAREHOUSE_ID;
|
|
|
23682 |
case 4: // SCAN_TYPE
|
|
|
23683 |
return SCAN_TYPE;
|
|
|
23684 |
default:
|
|
|
23685 |
return null;
|
|
|
23686 |
}
|
|
|
23687 |
}
|
|
|
23688 |
|
|
|
23689 |
/**
|
|
|
23690 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
23691 |
* if it is not found.
|
|
|
23692 |
*/
|
|
|
23693 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
23694 |
_Fields fields = findByThriftId(fieldId);
|
|
|
23695 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
23696 |
return fields;
|
|
|
23697 |
}
|
|
|
23698 |
|
|
|
23699 |
/**
|
|
|
23700 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
23701 |
*/
|
|
|
23702 |
public static _Fields findByName(String name) {
|
|
|
23703 |
return byName.get(name);
|
|
|
23704 |
}
|
|
|
23705 |
|
|
|
23706 |
private final short _thriftId;
|
|
|
23707 |
private final String _fieldName;
|
|
|
23708 |
|
|
|
23709 |
_Fields(short thriftId, String fieldName) {
|
|
|
23710 |
_thriftId = thriftId;
|
|
|
23711 |
_fieldName = fieldName;
|
|
|
23712 |
}
|
|
|
23713 |
|
|
|
23714 |
public short getThriftFieldId() {
|
|
|
23715 |
return _thriftId;
|
|
|
23716 |
}
|
|
|
23717 |
|
|
|
23718 |
public String getFieldName() {
|
|
|
23719 |
return _fieldName;
|
|
|
23720 |
}
|
|
|
23721 |
}
|
|
|
23722 |
|
|
|
23723 |
// isset id assignments
|
|
|
23724 |
private static final int __ORDERID_ISSET_ID = 0;
|
|
|
23725 |
private static final int __FREEBIEITEMID_ISSET_ID = 1;
|
|
|
23726 |
private static final int __FREEBIEWAREHOUSEID_ISSET_ID = 2;
|
|
|
23727 |
private BitSet __isset_bit_vector = new BitSet(3);
|
|
|
23728 |
|
|
|
23729 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
23730 |
static {
|
|
|
23731 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
23732 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
23733 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
23734 |
tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
23735 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
23736 |
tmpMap.put(_Fields.FREEBIE_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
23737 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
23738 |
tmpMap.put(_Fields.SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("scanType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
23739 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
23740 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
23741 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanfreebie_args.class, metaDataMap);
|
|
|
23742 |
}
|
|
|
23743 |
|
|
|
23744 |
public scanfreebie_args() {
|
|
|
23745 |
}
|
|
|
23746 |
|
|
|
23747 |
public scanfreebie_args(
|
|
|
23748 |
long orderId,
|
|
|
23749 |
long freebieItemId,
|
|
|
23750 |
long freebieWarehouseId,
|
|
|
23751 |
ScanType scanType)
|
|
|
23752 |
{
|
|
|
23753 |
this();
|
|
|
23754 |
this.orderId = orderId;
|
|
|
23755 |
setOrderIdIsSet(true);
|
|
|
23756 |
this.freebieItemId = freebieItemId;
|
|
|
23757 |
setFreebieItemIdIsSet(true);
|
|
|
23758 |
this.freebieWarehouseId = freebieWarehouseId;
|
|
|
23759 |
setFreebieWarehouseIdIsSet(true);
|
|
|
23760 |
this.scanType = scanType;
|
|
|
23761 |
}
|
|
|
23762 |
|
|
|
23763 |
/**
|
|
|
23764 |
* Performs a deep copy on <i>other</i>.
|
|
|
23765 |
*/
|
|
|
23766 |
public scanfreebie_args(scanfreebie_args other) {
|
|
|
23767 |
__isset_bit_vector.clear();
|
|
|
23768 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
23769 |
this.orderId = other.orderId;
|
|
|
23770 |
this.freebieItemId = other.freebieItemId;
|
|
|
23771 |
this.freebieWarehouseId = other.freebieWarehouseId;
|
|
|
23772 |
if (other.isSetScanType()) {
|
|
|
23773 |
this.scanType = other.scanType;
|
|
|
23774 |
}
|
|
|
23775 |
}
|
|
|
23776 |
|
|
|
23777 |
public scanfreebie_args deepCopy() {
|
|
|
23778 |
return new scanfreebie_args(this);
|
|
|
23779 |
}
|
|
|
23780 |
|
|
|
23781 |
@Override
|
|
|
23782 |
public void clear() {
|
|
|
23783 |
setOrderIdIsSet(false);
|
|
|
23784 |
this.orderId = 0;
|
|
|
23785 |
setFreebieItemIdIsSet(false);
|
|
|
23786 |
this.freebieItemId = 0;
|
|
|
23787 |
setFreebieWarehouseIdIsSet(false);
|
|
|
23788 |
this.freebieWarehouseId = 0;
|
|
|
23789 |
this.scanType = null;
|
|
|
23790 |
}
|
|
|
23791 |
|
|
|
23792 |
public long getOrderId() {
|
|
|
23793 |
return this.orderId;
|
|
|
23794 |
}
|
|
|
23795 |
|
|
|
23796 |
public void setOrderId(long orderId) {
|
|
|
23797 |
this.orderId = orderId;
|
|
|
23798 |
setOrderIdIsSet(true);
|
|
|
23799 |
}
|
|
|
23800 |
|
|
|
23801 |
public void unsetOrderId() {
|
|
|
23802 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
23803 |
}
|
|
|
23804 |
|
|
|
23805 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
23806 |
public boolean isSetOrderId() {
|
|
|
23807 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
23808 |
}
|
|
|
23809 |
|
|
|
23810 |
public void setOrderIdIsSet(boolean value) {
|
|
|
23811 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
23812 |
}
|
|
|
23813 |
|
|
|
23814 |
public long getFreebieItemId() {
|
|
|
23815 |
return this.freebieItemId;
|
|
|
23816 |
}
|
|
|
23817 |
|
|
|
23818 |
public void setFreebieItemId(long freebieItemId) {
|
|
|
23819 |
this.freebieItemId = freebieItemId;
|
|
|
23820 |
setFreebieItemIdIsSet(true);
|
|
|
23821 |
}
|
|
|
23822 |
|
|
|
23823 |
public void unsetFreebieItemId() {
|
|
|
23824 |
__isset_bit_vector.clear(__FREEBIEITEMID_ISSET_ID);
|
|
|
23825 |
}
|
|
|
23826 |
|
|
|
23827 |
/** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */
|
|
|
23828 |
public boolean isSetFreebieItemId() {
|
|
|
23829 |
return __isset_bit_vector.get(__FREEBIEITEMID_ISSET_ID);
|
|
|
23830 |
}
|
|
|
23831 |
|
|
|
23832 |
public void setFreebieItemIdIsSet(boolean value) {
|
|
|
23833 |
__isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);
|
|
|
23834 |
}
|
|
|
23835 |
|
|
|
23836 |
public long getFreebieWarehouseId() {
|
|
|
23837 |
return this.freebieWarehouseId;
|
|
|
23838 |
}
|
|
|
23839 |
|
|
|
23840 |
public void setFreebieWarehouseId(long freebieWarehouseId) {
|
|
|
23841 |
this.freebieWarehouseId = freebieWarehouseId;
|
|
|
23842 |
setFreebieWarehouseIdIsSet(true);
|
|
|
23843 |
}
|
|
|
23844 |
|
|
|
23845 |
public void unsetFreebieWarehouseId() {
|
|
|
23846 |
__isset_bit_vector.clear(__FREEBIEWAREHOUSEID_ISSET_ID);
|
|
|
23847 |
}
|
|
|
23848 |
|
|
|
23849 |
/** Returns true if field freebieWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
23850 |
public boolean isSetFreebieWarehouseId() {
|
|
|
23851 |
return __isset_bit_vector.get(__FREEBIEWAREHOUSEID_ISSET_ID);
|
|
|
23852 |
}
|
|
|
23853 |
|
|
|
23854 |
public void setFreebieWarehouseIdIsSet(boolean value) {
|
|
|
23855 |
__isset_bit_vector.set(__FREEBIEWAREHOUSEID_ISSET_ID, value);
|
|
|
23856 |
}
|
|
|
23857 |
|
|
|
23858 |
/**
|
|
|
23859 |
*
|
|
|
23860 |
* @see ScanType
|
|
|
23861 |
*/
|
|
|
23862 |
public ScanType getScanType() {
|
|
|
23863 |
return this.scanType;
|
|
|
23864 |
}
|
|
|
23865 |
|
|
|
23866 |
/**
|
|
|
23867 |
*
|
|
|
23868 |
* @see ScanType
|
|
|
23869 |
*/
|
|
|
23870 |
public void setScanType(ScanType scanType) {
|
|
|
23871 |
this.scanType = scanType;
|
|
|
23872 |
}
|
|
|
23873 |
|
|
|
23874 |
public void unsetScanType() {
|
|
|
23875 |
this.scanType = null;
|
|
|
23876 |
}
|
|
|
23877 |
|
|
|
23878 |
/** Returns true if field scanType is set (has been assigned a value) and false otherwise */
|
|
|
23879 |
public boolean isSetScanType() {
|
|
|
23880 |
return this.scanType != null;
|
|
|
23881 |
}
|
|
|
23882 |
|
|
|
23883 |
public void setScanTypeIsSet(boolean value) {
|
|
|
23884 |
if (!value) {
|
|
|
23885 |
this.scanType = null;
|
|
|
23886 |
}
|
|
|
23887 |
}
|
|
|
23888 |
|
|
|
23889 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
23890 |
switch (field) {
|
|
|
23891 |
case ORDER_ID:
|
|
|
23892 |
if (value == null) {
|
|
|
23893 |
unsetOrderId();
|
|
|
23894 |
} else {
|
|
|
23895 |
setOrderId((Long)value);
|
|
|
23896 |
}
|
|
|
23897 |
break;
|
|
|
23898 |
|
|
|
23899 |
case FREEBIE_ITEM_ID:
|
|
|
23900 |
if (value == null) {
|
|
|
23901 |
unsetFreebieItemId();
|
|
|
23902 |
} else {
|
|
|
23903 |
setFreebieItemId((Long)value);
|
|
|
23904 |
}
|
|
|
23905 |
break;
|
|
|
23906 |
|
|
|
23907 |
case FREEBIE_WAREHOUSE_ID:
|
|
|
23908 |
if (value == null) {
|
|
|
23909 |
unsetFreebieWarehouseId();
|
|
|
23910 |
} else {
|
|
|
23911 |
setFreebieWarehouseId((Long)value);
|
|
|
23912 |
}
|
|
|
23913 |
break;
|
|
|
23914 |
|
|
|
23915 |
case SCAN_TYPE:
|
|
|
23916 |
if (value == null) {
|
|
|
23917 |
unsetScanType();
|
|
|
23918 |
} else {
|
|
|
23919 |
setScanType((ScanType)value);
|
|
|
23920 |
}
|
|
|
23921 |
break;
|
|
|
23922 |
|
|
|
23923 |
}
|
|
|
23924 |
}
|
|
|
23925 |
|
|
|
23926 |
public Object getFieldValue(_Fields field) {
|
|
|
23927 |
switch (field) {
|
|
|
23928 |
case ORDER_ID:
|
|
|
23929 |
return Long.valueOf(getOrderId());
|
|
|
23930 |
|
|
|
23931 |
case FREEBIE_ITEM_ID:
|
|
|
23932 |
return Long.valueOf(getFreebieItemId());
|
|
|
23933 |
|
|
|
23934 |
case FREEBIE_WAREHOUSE_ID:
|
|
|
23935 |
return Long.valueOf(getFreebieWarehouseId());
|
|
|
23936 |
|
|
|
23937 |
case SCAN_TYPE:
|
|
|
23938 |
return getScanType();
|
|
|
23939 |
|
|
|
23940 |
}
|
|
|
23941 |
throw new IllegalStateException();
|
|
|
23942 |
}
|
|
|
23943 |
|
|
|
23944 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
23945 |
public boolean isSet(_Fields field) {
|
|
|
23946 |
if (field == null) {
|
|
|
23947 |
throw new IllegalArgumentException();
|
|
|
23948 |
}
|
|
|
23949 |
|
|
|
23950 |
switch (field) {
|
|
|
23951 |
case ORDER_ID:
|
|
|
23952 |
return isSetOrderId();
|
|
|
23953 |
case FREEBIE_ITEM_ID:
|
|
|
23954 |
return isSetFreebieItemId();
|
|
|
23955 |
case FREEBIE_WAREHOUSE_ID:
|
|
|
23956 |
return isSetFreebieWarehouseId();
|
|
|
23957 |
case SCAN_TYPE:
|
|
|
23958 |
return isSetScanType();
|
|
|
23959 |
}
|
|
|
23960 |
throw new IllegalStateException();
|
|
|
23961 |
}
|
|
|
23962 |
|
|
|
23963 |
@Override
|
|
|
23964 |
public boolean equals(Object that) {
|
|
|
23965 |
if (that == null)
|
|
|
23966 |
return false;
|
|
|
23967 |
if (that instanceof scanfreebie_args)
|
|
|
23968 |
return this.equals((scanfreebie_args)that);
|
|
|
23969 |
return false;
|
|
|
23970 |
}
|
|
|
23971 |
|
|
|
23972 |
public boolean equals(scanfreebie_args that) {
|
|
|
23973 |
if (that == null)
|
|
|
23974 |
return false;
|
|
|
23975 |
|
|
|
23976 |
boolean this_present_orderId = true;
|
|
|
23977 |
boolean that_present_orderId = true;
|
|
|
23978 |
if (this_present_orderId || that_present_orderId) {
|
|
|
23979 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
23980 |
return false;
|
|
|
23981 |
if (this.orderId != that.orderId)
|
|
|
23982 |
return false;
|
|
|
23983 |
}
|
|
|
23984 |
|
|
|
23985 |
boolean this_present_freebieItemId = true;
|
|
|
23986 |
boolean that_present_freebieItemId = true;
|
|
|
23987 |
if (this_present_freebieItemId || that_present_freebieItemId) {
|
|
|
23988 |
if (!(this_present_freebieItemId && that_present_freebieItemId))
|
|
|
23989 |
return false;
|
|
|
23990 |
if (this.freebieItemId != that.freebieItemId)
|
|
|
23991 |
return false;
|
|
|
23992 |
}
|
|
|
23993 |
|
|
|
23994 |
boolean this_present_freebieWarehouseId = true;
|
|
|
23995 |
boolean that_present_freebieWarehouseId = true;
|
|
|
23996 |
if (this_present_freebieWarehouseId || that_present_freebieWarehouseId) {
|
|
|
23997 |
if (!(this_present_freebieWarehouseId && that_present_freebieWarehouseId))
|
|
|
23998 |
return false;
|
|
|
23999 |
if (this.freebieWarehouseId != that.freebieWarehouseId)
|
|
|
24000 |
return false;
|
|
|
24001 |
}
|
|
|
24002 |
|
|
|
24003 |
boolean this_present_scanType = true && this.isSetScanType();
|
|
|
24004 |
boolean that_present_scanType = true && that.isSetScanType();
|
|
|
24005 |
if (this_present_scanType || that_present_scanType) {
|
|
|
24006 |
if (!(this_present_scanType && that_present_scanType))
|
|
|
24007 |
return false;
|
|
|
24008 |
if (!this.scanType.equals(that.scanType))
|
|
|
24009 |
return false;
|
|
|
24010 |
}
|
|
|
24011 |
|
|
|
24012 |
return true;
|
|
|
24013 |
}
|
|
|
24014 |
|
|
|
24015 |
@Override
|
|
|
24016 |
public int hashCode() {
|
|
|
24017 |
return 0;
|
|
|
24018 |
}
|
|
|
24019 |
|
|
|
24020 |
public int compareTo(scanfreebie_args other) {
|
|
|
24021 |
if (!getClass().equals(other.getClass())) {
|
|
|
24022 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
24023 |
}
|
|
|
24024 |
|
|
|
24025 |
int lastComparison = 0;
|
|
|
24026 |
scanfreebie_args typedOther = (scanfreebie_args)other;
|
|
|
24027 |
|
|
|
24028 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
24029 |
if (lastComparison != 0) {
|
|
|
24030 |
return lastComparison;
|
|
|
24031 |
}
|
|
|
24032 |
if (isSetOrderId()) {
|
|
|
24033 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
24034 |
if (lastComparison != 0) {
|
|
|
24035 |
return lastComparison;
|
|
|
24036 |
}
|
|
|
24037 |
}
|
|
|
24038 |
lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());
|
|
|
24039 |
if (lastComparison != 0) {
|
|
|
24040 |
return lastComparison;
|
|
|
24041 |
}
|
|
|
24042 |
if (isSetFreebieItemId()) {
|
|
|
24043 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);
|
|
|
24044 |
if (lastComparison != 0) {
|
|
|
24045 |
return lastComparison;
|
|
|
24046 |
}
|
|
|
24047 |
}
|
|
|
24048 |
lastComparison = Boolean.valueOf(isSetFreebieWarehouseId()).compareTo(typedOther.isSetFreebieWarehouseId());
|
|
|
24049 |
if (lastComparison != 0) {
|
|
|
24050 |
return lastComparison;
|
|
|
24051 |
}
|
|
|
24052 |
if (isSetFreebieWarehouseId()) {
|
|
|
24053 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieWarehouseId, typedOther.freebieWarehouseId);
|
|
|
24054 |
if (lastComparison != 0) {
|
|
|
24055 |
return lastComparison;
|
|
|
24056 |
}
|
|
|
24057 |
}
|
|
|
24058 |
lastComparison = Boolean.valueOf(isSetScanType()).compareTo(typedOther.isSetScanType());
|
|
|
24059 |
if (lastComparison != 0) {
|
|
|
24060 |
return lastComparison;
|
|
|
24061 |
}
|
|
|
24062 |
if (isSetScanType()) {
|
|
|
24063 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scanType, typedOther.scanType);
|
|
|
24064 |
if (lastComparison != 0) {
|
|
|
24065 |
return lastComparison;
|
|
|
24066 |
}
|
|
|
24067 |
}
|
|
|
24068 |
return 0;
|
|
|
24069 |
}
|
|
|
24070 |
|
|
|
24071 |
public _Fields fieldForId(int fieldId) {
|
|
|
24072 |
return _Fields.findByThriftId(fieldId);
|
|
|
24073 |
}
|
|
|
24074 |
|
|
|
24075 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
24076 |
org.apache.thrift.protocol.TField field;
|
|
|
24077 |
iprot.readStructBegin();
|
|
|
24078 |
while (true)
|
|
|
24079 |
{
|
|
|
24080 |
field = iprot.readFieldBegin();
|
|
|
24081 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
24082 |
break;
|
|
|
24083 |
}
|
|
|
24084 |
switch (field.id) {
|
|
|
24085 |
case 1: // ORDER_ID
|
|
|
24086 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
24087 |
this.orderId = iprot.readI64();
|
|
|
24088 |
setOrderIdIsSet(true);
|
|
|
24089 |
} else {
|
|
|
24090 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
24091 |
}
|
|
|
24092 |
break;
|
|
|
24093 |
case 2: // FREEBIE_ITEM_ID
|
|
|
24094 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
24095 |
this.freebieItemId = iprot.readI64();
|
|
|
24096 |
setFreebieItemIdIsSet(true);
|
|
|
24097 |
} else {
|
|
|
24098 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
24099 |
}
|
|
|
24100 |
break;
|
|
|
24101 |
case 3: // FREEBIE_WAREHOUSE_ID
|
|
|
24102 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
24103 |
this.freebieWarehouseId = iprot.readI64();
|
|
|
24104 |
setFreebieWarehouseIdIsSet(true);
|
|
|
24105 |
} else {
|
|
|
24106 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
24107 |
}
|
|
|
24108 |
break;
|
|
|
24109 |
case 4: // SCAN_TYPE
|
|
|
24110 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
24111 |
this.scanType = ScanType.findByValue(iprot.readI32());
|
|
|
24112 |
} else {
|
|
|
24113 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
24114 |
}
|
|
|
24115 |
break;
|
|
|
24116 |
default:
|
|
|
24117 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
24118 |
}
|
|
|
24119 |
iprot.readFieldEnd();
|
|
|
24120 |
}
|
|
|
24121 |
iprot.readStructEnd();
|
|
|
24122 |
validate();
|
|
|
24123 |
}
|
|
|
24124 |
|
|
|
24125 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
24126 |
validate();
|
|
|
24127 |
|
|
|
24128 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
24129 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
24130 |
oprot.writeI64(this.orderId);
|
|
|
24131 |
oprot.writeFieldEnd();
|
|
|
24132 |
oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
|
|
|
24133 |
oprot.writeI64(this.freebieItemId);
|
|
|
24134 |
oprot.writeFieldEnd();
|
|
|
24135 |
oprot.writeFieldBegin(FREEBIE_WAREHOUSE_ID_FIELD_DESC);
|
|
|
24136 |
oprot.writeI64(this.freebieWarehouseId);
|
|
|
24137 |
oprot.writeFieldEnd();
|
|
|
24138 |
if (this.scanType != null) {
|
|
|
24139 |
oprot.writeFieldBegin(SCAN_TYPE_FIELD_DESC);
|
|
|
24140 |
oprot.writeI32(this.scanType.getValue());
|
|
|
24141 |
oprot.writeFieldEnd();
|
|
|
24142 |
}
|
|
|
24143 |
oprot.writeFieldStop();
|
|
|
24144 |
oprot.writeStructEnd();
|
|
|
24145 |
}
|
|
|
24146 |
|
|
|
24147 |
@Override
|
|
|
24148 |
public String toString() {
|
|
|
24149 |
StringBuilder sb = new StringBuilder("scanfreebie_args(");
|
|
|
24150 |
boolean first = true;
|
|
|
24151 |
|
|
|
24152 |
sb.append("orderId:");
|
|
|
24153 |
sb.append(this.orderId);
|
|
|
24154 |
first = false;
|
|
|
24155 |
if (!first) sb.append(", ");
|
|
|
24156 |
sb.append("freebieItemId:");
|
|
|
24157 |
sb.append(this.freebieItemId);
|
|
|
24158 |
first = false;
|
|
|
24159 |
if (!first) sb.append(", ");
|
|
|
24160 |
sb.append("freebieWarehouseId:");
|
|
|
24161 |
sb.append(this.freebieWarehouseId);
|
|
|
24162 |
first = false;
|
|
|
24163 |
if (!first) sb.append(", ");
|
|
|
24164 |
sb.append("scanType:");
|
|
|
24165 |
if (this.scanType == null) {
|
|
|
24166 |
sb.append("null");
|
|
|
24167 |
} else {
|
|
|
24168 |
sb.append(this.scanType);
|
|
|
24169 |
}
|
|
|
24170 |
first = false;
|
|
|
24171 |
sb.append(")");
|
|
|
24172 |
return sb.toString();
|
|
|
24173 |
}
|
|
|
24174 |
|
|
|
24175 |
public void validate() throws org.apache.thrift.TException {
|
|
|
24176 |
// check for required fields
|
|
|
24177 |
}
|
|
|
24178 |
|
|
|
24179 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
24180 |
try {
|
|
|
24181 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
24182 |
} catch (org.apache.thrift.TException te) {
|
|
|
24183 |
throw new java.io.IOException(te);
|
|
|
24184 |
}
|
|
|
24185 |
}
|
|
|
24186 |
|
|
|
24187 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
24188 |
try {
|
|
|
24189 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
24190 |
__isset_bit_vector = new BitSet(1);
|
|
|
24191 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
24192 |
} catch (org.apache.thrift.TException te) {
|
|
|
24193 |
throw new java.io.IOException(te);
|
|
|
24194 |
}
|
|
|
24195 |
}
|
|
|
24196 |
|
|
|
24197 |
}
|
|
|
24198 |
|
|
|
24199 |
public static class scanfreebie_result implements org.apache.thrift.TBase<scanfreebie_result, scanfreebie_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
24200 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanfreebie_result");
|
|
|
24201 |
|
|
|
24202 |
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);
|
|
|
24203 |
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);
|
|
|
24204 |
|
|
|
24205 |
private InventoryItem success; // required
|
|
|
24206 |
private WarehouseServiceException wex; // required
|
|
|
24207 |
|
|
|
24208 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
24209 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
24210 |
SUCCESS((short)0, "success"),
|
|
|
24211 |
WEX((short)1, "wex");
|
|
|
24212 |
|
|
|
24213 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
24214 |
|
|
|
24215 |
static {
|
|
|
24216 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
24217 |
byName.put(field.getFieldName(), field);
|
|
|
24218 |
}
|
|
|
24219 |
}
|
|
|
24220 |
|
|
|
24221 |
/**
|
|
|
24222 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
24223 |
*/
|
|
|
24224 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
24225 |
switch(fieldId) {
|
|
|
24226 |
case 0: // SUCCESS
|
|
|
24227 |
return SUCCESS;
|
|
|
24228 |
case 1: // WEX
|
|
|
24229 |
return WEX;
|
|
|
24230 |
default:
|
|
|
24231 |
return null;
|
|
|
24232 |
}
|
|
|
24233 |
}
|
|
|
24234 |
|
|
|
24235 |
/**
|
|
|
24236 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
24237 |
* if it is not found.
|
|
|
24238 |
*/
|
|
|
24239 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
24240 |
_Fields fields = findByThriftId(fieldId);
|
|
|
24241 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
24242 |
return fields;
|
|
|
24243 |
}
|
|
|
24244 |
|
|
|
24245 |
/**
|
|
|
24246 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
24247 |
*/
|
|
|
24248 |
public static _Fields findByName(String name) {
|
|
|
24249 |
return byName.get(name);
|
|
|
24250 |
}
|
|
|
24251 |
|
|
|
24252 |
private final short _thriftId;
|
|
|
24253 |
private final String _fieldName;
|
|
|
24254 |
|
|
|
24255 |
_Fields(short thriftId, String fieldName) {
|
|
|
24256 |
_thriftId = thriftId;
|
|
|
24257 |
_fieldName = fieldName;
|
|
|
24258 |
}
|
|
|
24259 |
|
|
|
24260 |
public short getThriftFieldId() {
|
|
|
24261 |
return _thriftId;
|
|
|
24262 |
}
|
|
|
24263 |
|
|
|
24264 |
public String getFieldName() {
|
|
|
24265 |
return _fieldName;
|
|
|
24266 |
}
|
|
|
24267 |
}
|
|
|
24268 |
|
|
|
24269 |
// isset id assignments
|
|
|
24270 |
|
|
|
24271 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
24272 |
static {
|
|
|
24273 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
24274 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
24275 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
|
|
|
24276 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
24277 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
24278 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
24279 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanfreebie_result.class, metaDataMap);
|
|
|
24280 |
}
|
|
|
24281 |
|
|
|
24282 |
public scanfreebie_result() {
|
|
|
24283 |
}
|
|
|
24284 |
|
|
|
24285 |
public scanfreebie_result(
|
|
|
24286 |
InventoryItem success,
|
|
|
24287 |
WarehouseServiceException wex)
|
|
|
24288 |
{
|
|
|
24289 |
this();
|
|
|
24290 |
this.success = success;
|
|
|
24291 |
this.wex = wex;
|
|
|
24292 |
}
|
|
|
24293 |
|
|
|
24294 |
/**
|
|
|
24295 |
* Performs a deep copy on <i>other</i>.
|
|
|
24296 |
*/
|
|
|
24297 |
public scanfreebie_result(scanfreebie_result other) {
|
|
|
24298 |
if (other.isSetSuccess()) {
|
|
|
24299 |
this.success = new InventoryItem(other.success);
|
|
|
24300 |
}
|
|
|
24301 |
if (other.isSetWex()) {
|
|
|
24302 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
24303 |
}
|
|
|
24304 |
}
|
|
|
24305 |
|
|
|
24306 |
public scanfreebie_result deepCopy() {
|
|
|
24307 |
return new scanfreebie_result(this);
|
|
|
24308 |
}
|
|
|
24309 |
|
|
|
24310 |
@Override
|
|
|
24311 |
public void clear() {
|
|
|
24312 |
this.success = null;
|
|
|
24313 |
this.wex = null;
|
|
|
24314 |
}
|
|
|
24315 |
|
|
|
24316 |
public InventoryItem getSuccess() {
|
|
|
24317 |
return this.success;
|
|
|
24318 |
}
|
|
|
24319 |
|
|
|
24320 |
public void setSuccess(InventoryItem success) {
|
|
|
24321 |
this.success = success;
|
|
|
24322 |
}
|
|
|
24323 |
|
|
|
24324 |
public void unsetSuccess() {
|
|
|
24325 |
this.success = null;
|
|
|
24326 |
}
|
|
|
24327 |
|
|
|
24328 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
24329 |
public boolean isSetSuccess() {
|
|
|
24330 |
return this.success != null;
|
|
|
24331 |
}
|
|
|
24332 |
|
|
|
24333 |
public void setSuccessIsSet(boolean value) {
|
|
|
24334 |
if (!value) {
|
|
|
24335 |
this.success = null;
|
|
|
24336 |
}
|
|
|
24337 |
}
|
|
|
24338 |
|
|
|
24339 |
public WarehouseServiceException getWex() {
|
|
|
24340 |
return this.wex;
|
|
|
24341 |
}
|
|
|
24342 |
|
|
|
24343 |
public void setWex(WarehouseServiceException wex) {
|
|
|
24344 |
this.wex = wex;
|
|
|
24345 |
}
|
|
|
24346 |
|
|
|
24347 |
public void unsetWex() {
|
|
|
24348 |
this.wex = null;
|
|
|
24349 |
}
|
|
|
24350 |
|
|
|
24351 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
24352 |
public boolean isSetWex() {
|
|
|
24353 |
return this.wex != null;
|
|
|
24354 |
}
|
|
|
24355 |
|
|
|
24356 |
public void setWexIsSet(boolean value) {
|
|
|
24357 |
if (!value) {
|
|
|
24358 |
this.wex = null;
|
|
|
24359 |
}
|
|
|
24360 |
}
|
|
|
24361 |
|
|
|
24362 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
24363 |
switch (field) {
|
|
|
24364 |
case SUCCESS:
|
|
|
24365 |
if (value == null) {
|
|
|
24366 |
unsetSuccess();
|
|
|
24367 |
} else {
|
|
|
24368 |
setSuccess((InventoryItem)value);
|
|
|
24369 |
}
|
|
|
24370 |
break;
|
|
|
24371 |
|
|
|
24372 |
case WEX:
|
|
|
24373 |
if (value == null) {
|
|
|
24374 |
unsetWex();
|
|
|
24375 |
} else {
|
|
|
24376 |
setWex((WarehouseServiceException)value);
|
|
|
24377 |
}
|
|
|
24378 |
break;
|
|
|
24379 |
|
|
|
24380 |
}
|
|
|
24381 |
}
|
|
|
24382 |
|
|
|
24383 |
public Object getFieldValue(_Fields field) {
|
|
|
24384 |
switch (field) {
|
|
|
24385 |
case SUCCESS:
|
|
|
24386 |
return getSuccess();
|
|
|
24387 |
|
|
|
24388 |
case WEX:
|
|
|
24389 |
return getWex();
|
|
|
24390 |
|
|
|
24391 |
}
|
|
|
24392 |
throw new IllegalStateException();
|
|
|
24393 |
}
|
|
|
24394 |
|
|
|
24395 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
24396 |
public boolean isSet(_Fields field) {
|
|
|
24397 |
if (field == null) {
|
|
|
24398 |
throw new IllegalArgumentException();
|
|
|
24399 |
}
|
|
|
24400 |
|
|
|
24401 |
switch (field) {
|
|
|
24402 |
case SUCCESS:
|
|
|
24403 |
return isSetSuccess();
|
|
|
24404 |
case WEX:
|
|
|
24405 |
return isSetWex();
|
|
|
24406 |
}
|
|
|
24407 |
throw new IllegalStateException();
|
|
|
24408 |
}
|
|
|
24409 |
|
|
|
24410 |
@Override
|
|
|
24411 |
public boolean equals(Object that) {
|
|
|
24412 |
if (that == null)
|
|
|
24413 |
return false;
|
|
|
24414 |
if (that instanceof scanfreebie_result)
|
|
|
24415 |
return this.equals((scanfreebie_result)that);
|
|
|
24416 |
return false;
|
|
|
24417 |
}
|
|
|
24418 |
|
|
|
24419 |
public boolean equals(scanfreebie_result that) {
|
|
|
24420 |
if (that == null)
|
|
|
24421 |
return false;
|
|
|
24422 |
|
|
|
24423 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
24424 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
24425 |
if (this_present_success || that_present_success) {
|
|
|
24426 |
if (!(this_present_success && that_present_success))
|
|
|
24427 |
return false;
|
|
|
24428 |
if (!this.success.equals(that.success))
|
|
|
24429 |
return false;
|
|
|
24430 |
}
|
|
|
24431 |
|
|
|
24432 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
24433 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
24434 |
if (this_present_wex || that_present_wex) {
|
|
|
24435 |
if (!(this_present_wex && that_present_wex))
|
|
|
24436 |
return false;
|
|
|
24437 |
if (!this.wex.equals(that.wex))
|
|
|
24438 |
return false;
|
|
|
24439 |
}
|
|
|
24440 |
|
|
|
24441 |
return true;
|
|
|
24442 |
}
|
|
|
24443 |
|
|
|
24444 |
@Override
|
|
|
24445 |
public int hashCode() {
|
|
|
24446 |
return 0;
|
|
|
24447 |
}
|
|
|
24448 |
|
|
|
24449 |
public int compareTo(scanfreebie_result other) {
|
|
|
24450 |
if (!getClass().equals(other.getClass())) {
|
|
|
24451 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
24452 |
}
|
|
|
24453 |
|
|
|
24454 |
int lastComparison = 0;
|
|
|
24455 |
scanfreebie_result typedOther = (scanfreebie_result)other;
|
|
|
24456 |
|
|
|
24457 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
24458 |
if (lastComparison != 0) {
|
|
|
24459 |
return lastComparison;
|
|
|
24460 |
}
|
|
|
24461 |
if (isSetSuccess()) {
|
|
|
24462 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
24463 |
if (lastComparison != 0) {
|
|
|
24464 |
return lastComparison;
|
|
|
24465 |
}
|
|
|
24466 |
}
|
|
|
24467 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
24468 |
if (lastComparison != 0) {
|
|
|
24469 |
return lastComparison;
|
|
|
24470 |
}
|
|
|
24471 |
if (isSetWex()) {
|
|
|
24472 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
24473 |
if (lastComparison != 0) {
|
|
|
24474 |
return lastComparison;
|
|
|
24475 |
}
|
|
|
24476 |
}
|
|
|
24477 |
return 0;
|
|
|
24478 |
}
|
|
|
24479 |
|
|
|
24480 |
public _Fields fieldForId(int fieldId) {
|
|
|
24481 |
return _Fields.findByThriftId(fieldId);
|
|
|
24482 |
}
|
|
|
24483 |
|
|
|
24484 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
24485 |
org.apache.thrift.protocol.TField field;
|
|
|
24486 |
iprot.readStructBegin();
|
|
|
24487 |
while (true)
|
|
|
24488 |
{
|
|
|
24489 |
field = iprot.readFieldBegin();
|
|
|
24490 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
24491 |
break;
|
|
|
24492 |
}
|
|
|
24493 |
switch (field.id) {
|
|
|
24494 |
case 0: // SUCCESS
|
|
|
24495 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
24496 |
this.success = new InventoryItem();
|
|
|
24497 |
this.success.read(iprot);
|
|
|
24498 |
} else {
|
|
|
24499 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
24500 |
}
|
|
|
24501 |
break;
|
|
|
24502 |
case 1: // WEX
|
|
|
24503 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
24504 |
this.wex = new WarehouseServiceException();
|
|
|
24505 |
this.wex.read(iprot);
|
|
|
24506 |
} else {
|
|
|
24507 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
24508 |
}
|
|
|
24509 |
break;
|
|
|
24510 |
default:
|
|
|
24511 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
24512 |
}
|
|
|
24513 |
iprot.readFieldEnd();
|
|
|
24514 |
}
|
|
|
24515 |
iprot.readStructEnd();
|
|
|
24516 |
validate();
|
|
|
24517 |
}
|
|
|
24518 |
|
|
|
24519 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
24520 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
24521 |
|
|
|
24522 |
if (this.isSetSuccess()) {
|
|
|
24523 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
24524 |
this.success.write(oprot);
|
|
|
24525 |
oprot.writeFieldEnd();
|
|
|
24526 |
} else if (this.isSetWex()) {
|
|
|
24527 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
24528 |
this.wex.write(oprot);
|
|
|
24529 |
oprot.writeFieldEnd();
|
|
|
24530 |
}
|
|
|
24531 |
oprot.writeFieldStop();
|
|
|
24532 |
oprot.writeStructEnd();
|
|
|
24533 |
}
|
|
|
24534 |
|
|
|
24535 |
@Override
|
|
|
24536 |
public String toString() {
|
|
|
24537 |
StringBuilder sb = new StringBuilder("scanfreebie_result(");
|
|
|
24538 |
boolean first = true;
|
|
|
24539 |
|
|
|
24540 |
sb.append("success:");
|
|
|
24541 |
if (this.success == null) {
|
|
|
24542 |
sb.append("null");
|
|
|
24543 |
} else {
|
|
|
24544 |
sb.append(this.success);
|
|
|
24545 |
}
|
|
|
24546 |
first = false;
|
|
|
24547 |
if (!first) sb.append(", ");
|
|
|
24548 |
sb.append("wex:");
|
|
|
24549 |
if (this.wex == null) {
|
|
|
24550 |
sb.append("null");
|
|
|
24551 |
} else {
|
|
|
24552 |
sb.append(this.wex);
|
|
|
24553 |
}
|
|
|
24554 |
first = false;
|
|
|
24555 |
sb.append(")");
|
|
|
24556 |
return sb.toString();
|
|
|
24557 |
}
|
|
|
24558 |
|
|
|
24559 |
public void validate() throws org.apache.thrift.TException {
|
|
|
24560 |
// check for required fields
|
|
|
24561 |
}
|
|
|
24562 |
|
|
|
24563 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
24564 |
try {
|
|
|
24565 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
24566 |
} catch (org.apache.thrift.TException te) {
|
|
|
24567 |
throw new java.io.IOException(te);
|
|
|
24568 |
}
|
|
|
24569 |
}
|
|
|
24570 |
|
|
|
24571 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
24572 |
try {
|
|
|
24573 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
24574 |
} catch (org.apache.thrift.TException te) {
|
|
|
24575 |
throw new java.io.IOException(te);
|
|
|
24576 |
}
|
|
|
24577 |
}
|
|
|
24578 |
|
|
|
24579 |
}
|
|
|
24580 |
|
| 7199 |
amar.kumar |
24581 |
public static class reshipfreebie_args implements org.apache.thrift.TBase<reshipfreebie_args, reshipfreebie_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
24582 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipfreebie_args");
|
|
|
24583 |
|
|
|
24584 |
private static final org.apache.thrift.protocol.TField OLD_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("oldOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
24585 |
private static final org.apache.thrift.protocol.TField NEW_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("newOrderId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
24586 |
private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItemId", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
24587 |
private static final org.apache.thrift.protocol.TField SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("scanType", org.apache.thrift.protocol.TType.I32, (short)4);
|
|
|
24588 |
|
|
|
24589 |
private long oldOrderId; // required
|
|
|
24590 |
private long newOrderId; // required
|
|
|
24591 |
private long freebieItemId; // required
|
|
|
24592 |
private ScanType scanType; // required
|
|
|
24593 |
|
|
|
24594 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
24595 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
24596 |
OLD_ORDER_ID((short)1, "oldOrderId"),
|
|
|
24597 |
NEW_ORDER_ID((short)2, "newOrderId"),
|
|
|
24598 |
FREEBIE_ITEM_ID((short)3, "freebieItemId"),
|
|
|
24599 |
/**
|
|
|
24600 |
*
|
|
|
24601 |
* @see ScanType
|
|
|
24602 |
*/
|
|
|
24603 |
SCAN_TYPE((short)4, "scanType");
|
|
|
24604 |
|
|
|
24605 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
24606 |
|
|
|
24607 |
static {
|
|
|
24608 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
24609 |
byName.put(field.getFieldName(), field);
|
|
|
24610 |
}
|
|
|
24611 |
}
|
|
|
24612 |
|
|
|
24613 |
/**
|
|
|
24614 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
24615 |
*/
|
|
|
24616 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
24617 |
switch(fieldId) {
|
|
|
24618 |
case 1: // OLD_ORDER_ID
|
|
|
24619 |
return OLD_ORDER_ID;
|
|
|
24620 |
case 2: // NEW_ORDER_ID
|
|
|
24621 |
return NEW_ORDER_ID;
|
|
|
24622 |
case 3: // FREEBIE_ITEM_ID
|
|
|
24623 |
return FREEBIE_ITEM_ID;
|
|
|
24624 |
case 4: // SCAN_TYPE
|
|
|
24625 |
return SCAN_TYPE;
|
|
|
24626 |
default:
|
|
|
24627 |
return null;
|
|
|
24628 |
}
|
|
|
24629 |
}
|
|
|
24630 |
|
|
|
24631 |
/**
|
|
|
24632 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
24633 |
* if it is not found.
|
|
|
24634 |
*/
|
|
|
24635 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
24636 |
_Fields fields = findByThriftId(fieldId);
|
|
|
24637 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
24638 |
return fields;
|
|
|
24639 |
}
|
|
|
24640 |
|
|
|
24641 |
/**
|
|
|
24642 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
24643 |
*/
|
|
|
24644 |
public static _Fields findByName(String name) {
|
|
|
24645 |
return byName.get(name);
|
|
|
24646 |
}
|
|
|
24647 |
|
|
|
24648 |
private final short _thriftId;
|
|
|
24649 |
private final String _fieldName;
|
|
|
24650 |
|
|
|
24651 |
_Fields(short thriftId, String fieldName) {
|
|
|
24652 |
_thriftId = thriftId;
|
|
|
24653 |
_fieldName = fieldName;
|
|
|
24654 |
}
|
|
|
24655 |
|
|
|
24656 |
public short getThriftFieldId() {
|
|
|
24657 |
return _thriftId;
|
|
|
24658 |
}
|
|
|
24659 |
|
|
|
24660 |
public String getFieldName() {
|
|
|
24661 |
return _fieldName;
|
|
|
24662 |
}
|
|
|
24663 |
}
|
|
|
24664 |
|
|
|
24665 |
// isset id assignments
|
|
|
24666 |
private static final int __OLDORDERID_ISSET_ID = 0;
|
|
|
24667 |
private static final int __NEWORDERID_ISSET_ID = 1;
|
|
|
24668 |
private static final int __FREEBIEITEMID_ISSET_ID = 2;
|
|
|
24669 |
private BitSet __isset_bit_vector = new BitSet(3);
|
|
|
24670 |
|
|
|
24671 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
24672 |
static {
|
|
|
24673 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
24674 |
tmpMap.put(_Fields.OLD_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("oldOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
24675 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
24676 |
tmpMap.put(_Fields.NEW_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("newOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
24677 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
24678 |
tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
24679 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
24680 |
tmpMap.put(_Fields.SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("scanType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
24681 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
24682 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
24683 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipfreebie_args.class, metaDataMap);
|
|
|
24684 |
}
|
|
|
24685 |
|
|
|
24686 |
public reshipfreebie_args() {
|
|
|
24687 |
}
|
|
|
24688 |
|
|
|
24689 |
public reshipfreebie_args(
|
|
|
24690 |
long oldOrderId,
|
|
|
24691 |
long newOrderId,
|
|
|
24692 |
long freebieItemId,
|
|
|
24693 |
ScanType scanType)
|
|
|
24694 |
{
|
|
|
24695 |
this();
|
|
|
24696 |
this.oldOrderId = oldOrderId;
|
|
|
24697 |
setOldOrderIdIsSet(true);
|
|
|
24698 |
this.newOrderId = newOrderId;
|
|
|
24699 |
setNewOrderIdIsSet(true);
|
|
|
24700 |
this.freebieItemId = freebieItemId;
|
|
|
24701 |
setFreebieItemIdIsSet(true);
|
|
|
24702 |
this.scanType = scanType;
|
|
|
24703 |
}
|
|
|
24704 |
|
|
|
24705 |
/**
|
|
|
24706 |
* Performs a deep copy on <i>other</i>.
|
|
|
24707 |
*/
|
|
|
24708 |
public reshipfreebie_args(reshipfreebie_args other) {
|
|
|
24709 |
__isset_bit_vector.clear();
|
|
|
24710 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
24711 |
this.oldOrderId = other.oldOrderId;
|
|
|
24712 |
this.newOrderId = other.newOrderId;
|
|
|
24713 |
this.freebieItemId = other.freebieItemId;
|
|
|
24714 |
if (other.isSetScanType()) {
|
|
|
24715 |
this.scanType = other.scanType;
|
|
|
24716 |
}
|
|
|
24717 |
}
|
|
|
24718 |
|
|
|
24719 |
public reshipfreebie_args deepCopy() {
|
|
|
24720 |
return new reshipfreebie_args(this);
|
|
|
24721 |
}
|
|
|
24722 |
|
|
|
24723 |
@Override
|
|
|
24724 |
public void clear() {
|
|
|
24725 |
setOldOrderIdIsSet(false);
|
|
|
24726 |
this.oldOrderId = 0;
|
|
|
24727 |
setNewOrderIdIsSet(false);
|
|
|
24728 |
this.newOrderId = 0;
|
|
|
24729 |
setFreebieItemIdIsSet(false);
|
|
|
24730 |
this.freebieItemId = 0;
|
|
|
24731 |
this.scanType = null;
|
|
|
24732 |
}
|
|
|
24733 |
|
|
|
24734 |
public long getOldOrderId() {
|
|
|
24735 |
return this.oldOrderId;
|
|
|
24736 |
}
|
|
|
24737 |
|
|
|
24738 |
public void setOldOrderId(long oldOrderId) {
|
|
|
24739 |
this.oldOrderId = oldOrderId;
|
|
|
24740 |
setOldOrderIdIsSet(true);
|
|
|
24741 |
}
|
|
|
24742 |
|
|
|
24743 |
public void unsetOldOrderId() {
|
|
|
24744 |
__isset_bit_vector.clear(__OLDORDERID_ISSET_ID);
|
|
|
24745 |
}
|
|
|
24746 |
|
|
|
24747 |
/** Returns true if field oldOrderId is set (has been assigned a value) and false otherwise */
|
|
|
24748 |
public boolean isSetOldOrderId() {
|
|
|
24749 |
return __isset_bit_vector.get(__OLDORDERID_ISSET_ID);
|
|
|
24750 |
}
|
|
|
24751 |
|
|
|
24752 |
public void setOldOrderIdIsSet(boolean value) {
|
|
|
24753 |
__isset_bit_vector.set(__OLDORDERID_ISSET_ID, value);
|
|
|
24754 |
}
|
|
|
24755 |
|
|
|
24756 |
public long getNewOrderId() {
|
|
|
24757 |
return this.newOrderId;
|
|
|
24758 |
}
|
|
|
24759 |
|
|
|
24760 |
public void setNewOrderId(long newOrderId) {
|
|
|
24761 |
this.newOrderId = newOrderId;
|
|
|
24762 |
setNewOrderIdIsSet(true);
|
|
|
24763 |
}
|
|
|
24764 |
|
|
|
24765 |
public void unsetNewOrderId() {
|
|
|
24766 |
__isset_bit_vector.clear(__NEWORDERID_ISSET_ID);
|
|
|
24767 |
}
|
|
|
24768 |
|
|
|
24769 |
/** Returns true if field newOrderId is set (has been assigned a value) and false otherwise */
|
|
|
24770 |
public boolean isSetNewOrderId() {
|
|
|
24771 |
return __isset_bit_vector.get(__NEWORDERID_ISSET_ID);
|
|
|
24772 |
}
|
|
|
24773 |
|
|
|
24774 |
public void setNewOrderIdIsSet(boolean value) {
|
|
|
24775 |
__isset_bit_vector.set(__NEWORDERID_ISSET_ID, value);
|
|
|
24776 |
}
|
|
|
24777 |
|
|
|
24778 |
public long getFreebieItemId() {
|
|
|
24779 |
return this.freebieItemId;
|
|
|
24780 |
}
|
|
|
24781 |
|
|
|
24782 |
public void setFreebieItemId(long freebieItemId) {
|
|
|
24783 |
this.freebieItemId = freebieItemId;
|
|
|
24784 |
setFreebieItemIdIsSet(true);
|
|
|
24785 |
}
|
|
|
24786 |
|
|
|
24787 |
public void unsetFreebieItemId() {
|
|
|
24788 |
__isset_bit_vector.clear(__FREEBIEITEMID_ISSET_ID);
|
|
|
24789 |
}
|
|
|
24790 |
|
|
|
24791 |
/** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */
|
|
|
24792 |
public boolean isSetFreebieItemId() {
|
|
|
24793 |
return __isset_bit_vector.get(__FREEBIEITEMID_ISSET_ID);
|
|
|
24794 |
}
|
|
|
24795 |
|
|
|
24796 |
public void setFreebieItemIdIsSet(boolean value) {
|
|
|
24797 |
__isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);
|
|
|
24798 |
}
|
|
|
24799 |
|
|
|
24800 |
/**
|
|
|
24801 |
*
|
|
|
24802 |
* @see ScanType
|
|
|
24803 |
*/
|
|
|
24804 |
public ScanType getScanType() {
|
|
|
24805 |
return this.scanType;
|
|
|
24806 |
}
|
|
|
24807 |
|
|
|
24808 |
/**
|
|
|
24809 |
*
|
|
|
24810 |
* @see ScanType
|
|
|
24811 |
*/
|
|
|
24812 |
public void setScanType(ScanType scanType) {
|
|
|
24813 |
this.scanType = scanType;
|
|
|
24814 |
}
|
|
|
24815 |
|
|
|
24816 |
public void unsetScanType() {
|
|
|
24817 |
this.scanType = null;
|
|
|
24818 |
}
|
|
|
24819 |
|
|
|
24820 |
/** Returns true if field scanType is set (has been assigned a value) and false otherwise */
|
|
|
24821 |
public boolean isSetScanType() {
|
|
|
24822 |
return this.scanType != null;
|
|
|
24823 |
}
|
|
|
24824 |
|
|
|
24825 |
public void setScanTypeIsSet(boolean value) {
|
|
|
24826 |
if (!value) {
|
|
|
24827 |
this.scanType = null;
|
|
|
24828 |
}
|
|
|
24829 |
}
|
|
|
24830 |
|
|
|
24831 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
24832 |
switch (field) {
|
|
|
24833 |
case OLD_ORDER_ID:
|
|
|
24834 |
if (value == null) {
|
|
|
24835 |
unsetOldOrderId();
|
|
|
24836 |
} else {
|
|
|
24837 |
setOldOrderId((Long)value);
|
|
|
24838 |
}
|
|
|
24839 |
break;
|
|
|
24840 |
|
|
|
24841 |
case NEW_ORDER_ID:
|
|
|
24842 |
if (value == null) {
|
|
|
24843 |
unsetNewOrderId();
|
|
|
24844 |
} else {
|
|
|
24845 |
setNewOrderId((Long)value);
|
|
|
24846 |
}
|
|
|
24847 |
break;
|
|
|
24848 |
|
|
|
24849 |
case FREEBIE_ITEM_ID:
|
|
|
24850 |
if (value == null) {
|
|
|
24851 |
unsetFreebieItemId();
|
|
|
24852 |
} else {
|
|
|
24853 |
setFreebieItemId((Long)value);
|
|
|
24854 |
}
|
|
|
24855 |
break;
|
|
|
24856 |
|
|
|
24857 |
case SCAN_TYPE:
|
|
|
24858 |
if (value == null) {
|
|
|
24859 |
unsetScanType();
|
|
|
24860 |
} else {
|
|
|
24861 |
setScanType((ScanType)value);
|
|
|
24862 |
}
|
|
|
24863 |
break;
|
|
|
24864 |
|
|
|
24865 |
}
|
|
|
24866 |
}
|
|
|
24867 |
|
|
|
24868 |
public Object getFieldValue(_Fields field) {
|
|
|
24869 |
switch (field) {
|
|
|
24870 |
case OLD_ORDER_ID:
|
|
|
24871 |
return Long.valueOf(getOldOrderId());
|
|
|
24872 |
|
|
|
24873 |
case NEW_ORDER_ID:
|
|
|
24874 |
return Long.valueOf(getNewOrderId());
|
|
|
24875 |
|
|
|
24876 |
case FREEBIE_ITEM_ID:
|
|
|
24877 |
return Long.valueOf(getFreebieItemId());
|
|
|
24878 |
|
|
|
24879 |
case SCAN_TYPE:
|
|
|
24880 |
return getScanType();
|
|
|
24881 |
|
|
|
24882 |
}
|
|
|
24883 |
throw new IllegalStateException();
|
|
|
24884 |
}
|
|
|
24885 |
|
|
|
24886 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
24887 |
public boolean isSet(_Fields field) {
|
|
|
24888 |
if (field == null) {
|
|
|
24889 |
throw new IllegalArgumentException();
|
|
|
24890 |
}
|
|
|
24891 |
|
|
|
24892 |
switch (field) {
|
|
|
24893 |
case OLD_ORDER_ID:
|
|
|
24894 |
return isSetOldOrderId();
|
|
|
24895 |
case NEW_ORDER_ID:
|
|
|
24896 |
return isSetNewOrderId();
|
|
|
24897 |
case FREEBIE_ITEM_ID:
|
|
|
24898 |
return isSetFreebieItemId();
|
|
|
24899 |
case SCAN_TYPE:
|
|
|
24900 |
return isSetScanType();
|
|
|
24901 |
}
|
|
|
24902 |
throw new IllegalStateException();
|
|
|
24903 |
}
|
|
|
24904 |
|
|
|
24905 |
@Override
|
|
|
24906 |
public boolean equals(Object that) {
|
|
|
24907 |
if (that == null)
|
|
|
24908 |
return false;
|
|
|
24909 |
if (that instanceof reshipfreebie_args)
|
|
|
24910 |
return this.equals((reshipfreebie_args)that);
|
|
|
24911 |
return false;
|
|
|
24912 |
}
|
|
|
24913 |
|
|
|
24914 |
public boolean equals(reshipfreebie_args that) {
|
|
|
24915 |
if (that == null)
|
|
|
24916 |
return false;
|
|
|
24917 |
|
|
|
24918 |
boolean this_present_oldOrderId = true;
|
|
|
24919 |
boolean that_present_oldOrderId = true;
|
|
|
24920 |
if (this_present_oldOrderId || that_present_oldOrderId) {
|
|
|
24921 |
if (!(this_present_oldOrderId && that_present_oldOrderId))
|
|
|
24922 |
return false;
|
|
|
24923 |
if (this.oldOrderId != that.oldOrderId)
|
|
|
24924 |
return false;
|
|
|
24925 |
}
|
|
|
24926 |
|
|
|
24927 |
boolean this_present_newOrderId = true;
|
|
|
24928 |
boolean that_present_newOrderId = true;
|
|
|
24929 |
if (this_present_newOrderId || that_present_newOrderId) {
|
|
|
24930 |
if (!(this_present_newOrderId && that_present_newOrderId))
|
|
|
24931 |
return false;
|
|
|
24932 |
if (this.newOrderId != that.newOrderId)
|
|
|
24933 |
return false;
|
|
|
24934 |
}
|
|
|
24935 |
|
|
|
24936 |
boolean this_present_freebieItemId = true;
|
|
|
24937 |
boolean that_present_freebieItemId = true;
|
|
|
24938 |
if (this_present_freebieItemId || that_present_freebieItemId) {
|
|
|
24939 |
if (!(this_present_freebieItemId && that_present_freebieItemId))
|
|
|
24940 |
return false;
|
|
|
24941 |
if (this.freebieItemId != that.freebieItemId)
|
|
|
24942 |
return false;
|
|
|
24943 |
}
|
|
|
24944 |
|
|
|
24945 |
boolean this_present_scanType = true && this.isSetScanType();
|
|
|
24946 |
boolean that_present_scanType = true && that.isSetScanType();
|
|
|
24947 |
if (this_present_scanType || that_present_scanType) {
|
|
|
24948 |
if (!(this_present_scanType && that_present_scanType))
|
|
|
24949 |
return false;
|
|
|
24950 |
if (!this.scanType.equals(that.scanType))
|
|
|
24951 |
return false;
|
|
|
24952 |
}
|
|
|
24953 |
|
|
|
24954 |
return true;
|
|
|
24955 |
}
|
|
|
24956 |
|
|
|
24957 |
@Override
|
|
|
24958 |
public int hashCode() {
|
|
|
24959 |
return 0;
|
|
|
24960 |
}
|
|
|
24961 |
|
|
|
24962 |
public int compareTo(reshipfreebie_args other) {
|
|
|
24963 |
if (!getClass().equals(other.getClass())) {
|
|
|
24964 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
24965 |
}
|
|
|
24966 |
|
|
|
24967 |
int lastComparison = 0;
|
|
|
24968 |
reshipfreebie_args typedOther = (reshipfreebie_args)other;
|
|
|
24969 |
|
|
|
24970 |
lastComparison = Boolean.valueOf(isSetOldOrderId()).compareTo(typedOther.isSetOldOrderId());
|
|
|
24971 |
if (lastComparison != 0) {
|
|
|
24972 |
return lastComparison;
|
|
|
24973 |
}
|
|
|
24974 |
if (isSetOldOrderId()) {
|
|
|
24975 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldOrderId, typedOther.oldOrderId);
|
|
|
24976 |
if (lastComparison != 0) {
|
|
|
24977 |
return lastComparison;
|
|
|
24978 |
}
|
|
|
24979 |
}
|
|
|
24980 |
lastComparison = Boolean.valueOf(isSetNewOrderId()).compareTo(typedOther.isSetNewOrderId());
|
|
|
24981 |
if (lastComparison != 0) {
|
|
|
24982 |
return lastComparison;
|
|
|
24983 |
}
|
|
|
24984 |
if (isSetNewOrderId()) {
|
|
|
24985 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newOrderId, typedOther.newOrderId);
|
|
|
24986 |
if (lastComparison != 0) {
|
|
|
24987 |
return lastComparison;
|
|
|
24988 |
}
|
|
|
24989 |
}
|
|
|
24990 |
lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());
|
|
|
24991 |
if (lastComparison != 0) {
|
|
|
24992 |
return lastComparison;
|
|
|
24993 |
}
|
|
|
24994 |
if (isSetFreebieItemId()) {
|
|
|
24995 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);
|
|
|
24996 |
if (lastComparison != 0) {
|
|
|
24997 |
return lastComparison;
|
|
|
24998 |
}
|
|
|
24999 |
}
|
|
|
25000 |
lastComparison = Boolean.valueOf(isSetScanType()).compareTo(typedOther.isSetScanType());
|
|
|
25001 |
if (lastComparison != 0) {
|
|
|
25002 |
return lastComparison;
|
|
|
25003 |
}
|
|
|
25004 |
if (isSetScanType()) {
|
|
|
25005 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scanType, typedOther.scanType);
|
|
|
25006 |
if (lastComparison != 0) {
|
|
|
25007 |
return lastComparison;
|
|
|
25008 |
}
|
|
|
25009 |
}
|
|
|
25010 |
return 0;
|
|
|
25011 |
}
|
|
|
25012 |
|
|
|
25013 |
public _Fields fieldForId(int fieldId) {
|
|
|
25014 |
return _Fields.findByThriftId(fieldId);
|
|
|
25015 |
}
|
|
|
25016 |
|
|
|
25017 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
25018 |
org.apache.thrift.protocol.TField field;
|
|
|
25019 |
iprot.readStructBegin();
|
|
|
25020 |
while (true)
|
|
|
25021 |
{
|
|
|
25022 |
field = iprot.readFieldBegin();
|
|
|
25023 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
25024 |
break;
|
|
|
25025 |
}
|
|
|
25026 |
switch (field.id) {
|
|
|
25027 |
case 1: // OLD_ORDER_ID
|
|
|
25028 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
25029 |
this.oldOrderId = iprot.readI64();
|
|
|
25030 |
setOldOrderIdIsSet(true);
|
|
|
25031 |
} else {
|
|
|
25032 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
25033 |
}
|
|
|
25034 |
break;
|
|
|
25035 |
case 2: // NEW_ORDER_ID
|
|
|
25036 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
25037 |
this.newOrderId = iprot.readI64();
|
|
|
25038 |
setNewOrderIdIsSet(true);
|
|
|
25039 |
} else {
|
|
|
25040 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
25041 |
}
|
|
|
25042 |
break;
|
|
|
25043 |
case 3: // FREEBIE_ITEM_ID
|
|
|
25044 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
25045 |
this.freebieItemId = iprot.readI64();
|
|
|
25046 |
setFreebieItemIdIsSet(true);
|
|
|
25047 |
} else {
|
|
|
25048 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
25049 |
}
|
|
|
25050 |
break;
|
|
|
25051 |
case 4: // SCAN_TYPE
|
|
|
25052 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
25053 |
this.scanType = ScanType.findByValue(iprot.readI32());
|
|
|
25054 |
} else {
|
|
|
25055 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
25056 |
}
|
|
|
25057 |
break;
|
|
|
25058 |
default:
|
|
|
25059 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
25060 |
}
|
|
|
25061 |
iprot.readFieldEnd();
|
|
|
25062 |
}
|
|
|
25063 |
iprot.readStructEnd();
|
|
|
25064 |
validate();
|
|
|
25065 |
}
|
|
|
25066 |
|
|
|
25067 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
25068 |
validate();
|
|
|
25069 |
|
|
|
25070 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
25071 |
oprot.writeFieldBegin(OLD_ORDER_ID_FIELD_DESC);
|
|
|
25072 |
oprot.writeI64(this.oldOrderId);
|
|
|
25073 |
oprot.writeFieldEnd();
|
|
|
25074 |
oprot.writeFieldBegin(NEW_ORDER_ID_FIELD_DESC);
|
|
|
25075 |
oprot.writeI64(this.newOrderId);
|
|
|
25076 |
oprot.writeFieldEnd();
|
|
|
25077 |
oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
|
|
|
25078 |
oprot.writeI64(this.freebieItemId);
|
|
|
25079 |
oprot.writeFieldEnd();
|
|
|
25080 |
if (this.scanType != null) {
|
|
|
25081 |
oprot.writeFieldBegin(SCAN_TYPE_FIELD_DESC);
|
|
|
25082 |
oprot.writeI32(this.scanType.getValue());
|
|
|
25083 |
oprot.writeFieldEnd();
|
|
|
25084 |
}
|
|
|
25085 |
oprot.writeFieldStop();
|
|
|
25086 |
oprot.writeStructEnd();
|
|
|
25087 |
}
|
|
|
25088 |
|
|
|
25089 |
@Override
|
|
|
25090 |
public String toString() {
|
|
|
25091 |
StringBuilder sb = new StringBuilder("reshipfreebie_args(");
|
|
|
25092 |
boolean first = true;
|
|
|
25093 |
|
|
|
25094 |
sb.append("oldOrderId:");
|
|
|
25095 |
sb.append(this.oldOrderId);
|
|
|
25096 |
first = false;
|
|
|
25097 |
if (!first) sb.append(", ");
|
|
|
25098 |
sb.append("newOrderId:");
|
|
|
25099 |
sb.append(this.newOrderId);
|
|
|
25100 |
first = false;
|
|
|
25101 |
if (!first) sb.append(", ");
|
|
|
25102 |
sb.append("freebieItemId:");
|
|
|
25103 |
sb.append(this.freebieItemId);
|
|
|
25104 |
first = false;
|
|
|
25105 |
if (!first) sb.append(", ");
|
|
|
25106 |
sb.append("scanType:");
|
|
|
25107 |
if (this.scanType == null) {
|
|
|
25108 |
sb.append("null");
|
|
|
25109 |
} else {
|
|
|
25110 |
sb.append(this.scanType);
|
|
|
25111 |
}
|
|
|
25112 |
first = false;
|
|
|
25113 |
sb.append(")");
|
|
|
25114 |
return sb.toString();
|
|
|
25115 |
}
|
|
|
25116 |
|
|
|
25117 |
public void validate() throws org.apache.thrift.TException {
|
|
|
25118 |
// check for required fields
|
|
|
25119 |
}
|
|
|
25120 |
|
|
|
25121 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
25122 |
try {
|
|
|
25123 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
25124 |
} catch (org.apache.thrift.TException te) {
|
|
|
25125 |
throw new java.io.IOException(te);
|
|
|
25126 |
}
|
|
|
25127 |
}
|
|
|
25128 |
|
|
|
25129 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
25130 |
try {
|
|
|
25131 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
25132 |
__isset_bit_vector = new BitSet(1);
|
|
|
25133 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
25134 |
} catch (org.apache.thrift.TException te) {
|
|
|
25135 |
throw new java.io.IOException(te);
|
|
|
25136 |
}
|
|
|
25137 |
}
|
|
|
25138 |
|
|
|
25139 |
}
|
|
|
25140 |
|
|
|
25141 |
public static class reshipfreebie_result implements org.apache.thrift.TBase<reshipfreebie_result, reshipfreebie_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
25142 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipfreebie_result");
|
|
|
25143 |
|
|
|
25144 |
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);
|
|
|
25145 |
|
|
|
25146 |
private WarehouseServiceException wex; // required
|
|
|
25147 |
|
|
|
25148 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
25149 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
25150 |
WEX((short)1, "wex");
|
|
|
25151 |
|
|
|
25152 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
25153 |
|
|
|
25154 |
static {
|
|
|
25155 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
25156 |
byName.put(field.getFieldName(), field);
|
|
|
25157 |
}
|
|
|
25158 |
}
|
|
|
25159 |
|
|
|
25160 |
/**
|
|
|
25161 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
25162 |
*/
|
|
|
25163 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
25164 |
switch(fieldId) {
|
|
|
25165 |
case 1: // WEX
|
|
|
25166 |
return WEX;
|
|
|
25167 |
default:
|
|
|
25168 |
return null;
|
|
|
25169 |
}
|
|
|
25170 |
}
|
|
|
25171 |
|
|
|
25172 |
/**
|
|
|
25173 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
25174 |
* if it is not found.
|
|
|
25175 |
*/
|
|
|
25176 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
25177 |
_Fields fields = findByThriftId(fieldId);
|
|
|
25178 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
25179 |
return fields;
|
|
|
25180 |
}
|
|
|
25181 |
|
|
|
25182 |
/**
|
|
|
25183 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
25184 |
*/
|
|
|
25185 |
public static _Fields findByName(String name) {
|
|
|
25186 |
return byName.get(name);
|
|
|
25187 |
}
|
|
|
25188 |
|
|
|
25189 |
private final short _thriftId;
|
|
|
25190 |
private final String _fieldName;
|
|
|
25191 |
|
|
|
25192 |
_Fields(short thriftId, String fieldName) {
|
|
|
25193 |
_thriftId = thriftId;
|
|
|
25194 |
_fieldName = fieldName;
|
|
|
25195 |
}
|
|
|
25196 |
|
|
|
25197 |
public short getThriftFieldId() {
|
|
|
25198 |
return _thriftId;
|
|
|
25199 |
}
|
|
|
25200 |
|
|
|
25201 |
public String getFieldName() {
|
|
|
25202 |
return _fieldName;
|
|
|
25203 |
}
|
|
|
25204 |
}
|
|
|
25205 |
|
|
|
25206 |
// isset id assignments
|
|
|
25207 |
|
|
|
25208 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
25209 |
static {
|
|
|
25210 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
25211 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
25212 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
25213 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
25214 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipfreebie_result.class, metaDataMap);
|
|
|
25215 |
}
|
|
|
25216 |
|
|
|
25217 |
public reshipfreebie_result() {
|
|
|
25218 |
}
|
|
|
25219 |
|
|
|
25220 |
public reshipfreebie_result(
|
|
|
25221 |
WarehouseServiceException wex)
|
|
|
25222 |
{
|
|
|
25223 |
this();
|
|
|
25224 |
this.wex = wex;
|
|
|
25225 |
}
|
|
|
25226 |
|
|
|
25227 |
/**
|
|
|
25228 |
* Performs a deep copy on <i>other</i>.
|
|
|
25229 |
*/
|
|
|
25230 |
public reshipfreebie_result(reshipfreebie_result other) {
|
|
|
25231 |
if (other.isSetWex()) {
|
|
|
25232 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
25233 |
}
|
|
|
25234 |
}
|
|
|
25235 |
|
|
|
25236 |
public reshipfreebie_result deepCopy() {
|
|
|
25237 |
return new reshipfreebie_result(this);
|
|
|
25238 |
}
|
|
|
25239 |
|
|
|
25240 |
@Override
|
|
|
25241 |
public void clear() {
|
|
|
25242 |
this.wex = null;
|
|
|
25243 |
}
|
|
|
25244 |
|
|
|
25245 |
public WarehouseServiceException getWex() {
|
|
|
25246 |
return this.wex;
|
|
|
25247 |
}
|
|
|
25248 |
|
|
|
25249 |
public void setWex(WarehouseServiceException wex) {
|
|
|
25250 |
this.wex = wex;
|
|
|
25251 |
}
|
|
|
25252 |
|
|
|
25253 |
public void unsetWex() {
|
|
|
25254 |
this.wex = null;
|
|
|
25255 |
}
|
|
|
25256 |
|
|
|
25257 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
|
|
25258 |
public boolean isSetWex() {
|
|
|
25259 |
return this.wex != null;
|
|
|
25260 |
}
|
|
|
25261 |
|
|
|
25262 |
public void setWexIsSet(boolean value) {
|
|
|
25263 |
if (!value) {
|
|
|
25264 |
this.wex = null;
|
|
|
25265 |
}
|
|
|
25266 |
}
|
|
|
25267 |
|
|
|
25268 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
25269 |
switch (field) {
|
|
|
25270 |
case WEX:
|
|
|
25271 |
if (value == null) {
|
|
|
25272 |
unsetWex();
|
|
|
25273 |
} else {
|
|
|
25274 |
setWex((WarehouseServiceException)value);
|
|
|
25275 |
}
|
|
|
25276 |
break;
|
|
|
25277 |
|
|
|
25278 |
}
|
|
|
25279 |
}
|
|
|
25280 |
|
|
|
25281 |
public Object getFieldValue(_Fields field) {
|
|
|
25282 |
switch (field) {
|
|
|
25283 |
case WEX:
|
|
|
25284 |
return getWex();
|
|
|
25285 |
|
|
|
25286 |
}
|
|
|
25287 |
throw new IllegalStateException();
|
|
|
25288 |
}
|
|
|
25289 |
|
|
|
25290 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
25291 |
public boolean isSet(_Fields field) {
|
|
|
25292 |
if (field == null) {
|
|
|
25293 |
throw new IllegalArgumentException();
|
|
|
25294 |
}
|
|
|
25295 |
|
|
|
25296 |
switch (field) {
|
|
|
25297 |
case WEX:
|
|
|
25298 |
return isSetWex();
|
|
|
25299 |
}
|
|
|
25300 |
throw new IllegalStateException();
|
|
|
25301 |
}
|
|
|
25302 |
|
|
|
25303 |
@Override
|
|
|
25304 |
public boolean equals(Object that) {
|
|
|
25305 |
if (that == null)
|
|
|
25306 |
return false;
|
|
|
25307 |
if (that instanceof reshipfreebie_result)
|
|
|
25308 |
return this.equals((reshipfreebie_result)that);
|
|
|
25309 |
return false;
|
|
|
25310 |
}
|
|
|
25311 |
|
|
|
25312 |
public boolean equals(reshipfreebie_result that) {
|
|
|
25313 |
if (that == null)
|
|
|
25314 |
return false;
|
|
|
25315 |
|
|
|
25316 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
25317 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
25318 |
if (this_present_wex || that_present_wex) {
|
|
|
25319 |
if (!(this_present_wex && that_present_wex))
|
|
|
25320 |
return false;
|
|
|
25321 |
if (!this.wex.equals(that.wex))
|
|
|
25322 |
return false;
|
|
|
25323 |
}
|
|
|
25324 |
|
|
|
25325 |
return true;
|
|
|
25326 |
}
|
|
|
25327 |
|
|
|
25328 |
@Override
|
|
|
25329 |
public int hashCode() {
|
|
|
25330 |
return 0;
|
|
|
25331 |
}
|
|
|
25332 |
|
|
|
25333 |
public int compareTo(reshipfreebie_result other) {
|
|
|
25334 |
if (!getClass().equals(other.getClass())) {
|
|
|
25335 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
25336 |
}
|
|
|
25337 |
|
|
|
25338 |
int lastComparison = 0;
|
|
|
25339 |
reshipfreebie_result typedOther = (reshipfreebie_result)other;
|
|
|
25340 |
|
|
|
25341 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
|
|
25342 |
if (lastComparison != 0) {
|
|
|
25343 |
return lastComparison;
|
|
|
25344 |
}
|
|
|
25345 |
if (isSetWex()) {
|
|
|
25346 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
25347 |
if (lastComparison != 0) {
|
|
|
25348 |
return lastComparison;
|
|
|
25349 |
}
|
|
|
25350 |
}
|
|
|
25351 |
return 0;
|
|
|
25352 |
}
|
|
|
25353 |
|
|
|
25354 |
public _Fields fieldForId(int fieldId) {
|
|
|
25355 |
return _Fields.findByThriftId(fieldId);
|
|
|
25356 |
}
|
|
|
25357 |
|
|
|
25358 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
25359 |
org.apache.thrift.protocol.TField field;
|
|
|
25360 |
iprot.readStructBegin();
|
|
|
25361 |
while (true)
|
|
|
25362 |
{
|
|
|
25363 |
field = iprot.readFieldBegin();
|
|
|
25364 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
25365 |
break;
|
|
|
25366 |
}
|
|
|
25367 |
switch (field.id) {
|
|
|
25368 |
case 1: // WEX
|
|
|
25369 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
25370 |
this.wex = new WarehouseServiceException();
|
|
|
25371 |
this.wex.read(iprot);
|
|
|
25372 |
} else {
|
|
|
25373 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
25374 |
}
|
|
|
25375 |
break;
|
|
|
25376 |
default:
|
|
|
25377 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
25378 |
}
|
|
|
25379 |
iprot.readFieldEnd();
|
|
|
25380 |
}
|
|
|
25381 |
iprot.readStructEnd();
|
|
|
25382 |
validate();
|
|
|
25383 |
}
|
|
|
25384 |
|
|
|
25385 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
25386 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
25387 |
|
|
|
25388 |
if (this.isSetWex()) {
|
|
|
25389 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
25390 |
this.wex.write(oprot);
|
|
|
25391 |
oprot.writeFieldEnd();
|
|
|
25392 |
}
|
|
|
25393 |
oprot.writeFieldStop();
|
|
|
25394 |
oprot.writeStructEnd();
|
|
|
25395 |
}
|
|
|
25396 |
|
|
|
25397 |
@Override
|
|
|
25398 |
public String toString() {
|
|
|
25399 |
StringBuilder sb = new StringBuilder("reshipfreebie_result(");
|
|
|
25400 |
boolean first = true;
|
|
|
25401 |
|
|
|
25402 |
sb.append("wex:");
|
|
|
25403 |
if (this.wex == null) {
|
|
|
25404 |
sb.append("null");
|
|
|
25405 |
} else {
|
|
|
25406 |
sb.append(this.wex);
|
|
|
25407 |
}
|
|
|
25408 |
first = false;
|
|
|
25409 |
sb.append(")");
|
|
|
25410 |
return sb.toString();
|
|
|
25411 |
}
|
|
|
25412 |
|
|
|
25413 |
public void validate() throws org.apache.thrift.TException {
|
|
|
25414 |
// check for required fields
|
|
|
25415 |
}
|
|
|
25416 |
|
|
|
25417 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
25418 |
try {
|
|
|
25419 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
25420 |
} catch (org.apache.thrift.TException te) {
|
|
|
25421 |
throw new java.io.IOException(te);
|
|
|
25422 |
}
|
|
|
25423 |
}
|
|
|
25424 |
|
|
|
25425 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
25426 |
try {
|
|
|
25427 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
25428 |
} catch (org.apache.thrift.TException te) {
|
|
|
25429 |
throw new java.io.IOException(te);
|
|
|
25430 |
}
|
|
|
25431 |
}
|
|
|
25432 |
|
|
|
25433 |
}
|
|
|
25434 |
|
| 2820 |
chandransh |
25435 |
}
|