| 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 |
/**
|
|
|
28 |
* Creates a purchase order based on the data in the given purchase order object.
|
|
|
29 |
* This method populates a nummber of missing fields
|
|
|
30 |
*
|
|
|
31 |
* @param purchaseOrder
|
|
|
32 |
*/
|
| 3430 |
rajveer |
33 |
public long createPurchaseOrder(PurchaseOrder purchaseOrder) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
34 |
|
|
|
35 |
/**
|
|
|
36 |
* Returns the purchase order with the given id. Throws an exception if there is no such purchase order.
|
|
|
37 |
*
|
|
|
38 |
* @param id
|
|
|
39 |
*/
|
| 3430 |
rajveer |
40 |
public PurchaseOrder getPurchaseOrder(long id) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
41 |
|
|
|
42 |
/**
|
| 3383 |
chandransh |
43 |
* Returns a list of all the purchase orders in the given state
|
|
|
44 |
*
|
|
|
45 |
* @param status
|
|
|
46 |
*/
|
| 3430 |
rajveer |
47 |
public List<PurchaseOrder> getAllPurchaseOrders(POStatus status) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 3383 |
chandransh |
48 |
|
|
|
49 |
/**
|
| 2832 |
chandransh |
50 |
* Returns the supplier with the given order id. Throws an exception if there is no such supplier.
|
|
|
51 |
*
|
|
|
52 |
* @param id
|
|
|
53 |
*/
|
| 3430 |
rajveer |
54 |
public Supplier getSupplier(long id) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2832 |
chandransh |
55 |
|
|
|
56 |
/**
|
| 2820 |
chandransh |
57 |
* Creates a purchase for the given purchase order.
|
|
|
58 |
* Throws an exception if no more purchases are allowed against the given purchase order.
|
|
|
59 |
*
|
|
|
60 |
* @param purchaseOrderId
|
|
|
61 |
* @param invoiceNumber
|
|
|
62 |
* @param freightCharges
|
|
|
63 |
*/
|
| 3430 |
rajveer |
64 |
public long startPurchase(long purchaseOrderId, String invoiceNumber, double freightCharges) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
65 |
|
|
|
66 |
/**
|
|
|
67 |
* Marks a purchase as complete and updates the receivedOn time.
|
|
|
68 |
* Throws an exception if no such purchase exists.
|
|
|
69 |
*
|
|
|
70 |
* @param purchaseId
|
|
|
71 |
*/
|
| 3430 |
rajveer |
72 |
public long closePurchase(long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
73 |
|
|
|
74 |
/**
|
| 3383 |
chandransh |
75 |
* Returns all open or closed purchases for the given purchase order. Throws an exception if no such purchase order exists
|
|
|
76 |
*
|
|
|
77 |
* @param purchaseOrderId
|
|
|
78 |
* @param open
|
|
|
79 |
*/
|
| 3430 |
rajveer |
80 |
public List<Purchase> getAllPurchases(long purchaseOrderId, boolean open) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 3383 |
chandransh |
81 |
|
|
|
82 |
/**
|
|
|
83 |
* Creates a Scan object using the given details.
|
| 2820 |
chandransh |
84 |
* Raises an exception if no more of the given item can be scanned in against the purchase order of the given purchase.
|
|
|
85 |
*
|
|
|
86 |
* @param purchaseId
|
|
|
87 |
* @param itemNumber
|
|
|
88 |
* @param imeiNumber
|
|
|
89 |
* @param type
|
|
|
90 |
*/
|
| 3430 |
rajveer |
91 |
public void scanIn(long purchaseId, String itemNumber, String imeiNumber, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
92 |
|
|
|
93 |
/**
|
| 3383 |
chandransh |
94 |
* Marks the Scan object with the given details as scanned out. In case, the imeiNumber is not given,
|
| 2820 |
chandransh |
95 |
* marks the oldest ItemInventory object as being scanned out.
|
|
|
96 |
* Raises an exception if:
|
|
|
97 |
* 1. There is no stock present corresponding to the given item details.
|
|
|
98 |
* 2. An older stock is present corresponding to the itemNumber which has not been scanned out.
|
|
|
99 |
*
|
|
|
100 |
* @param itemNumber
|
|
|
101 |
* @param imeiNumber
|
|
|
102 |
* @param type
|
|
|
103 |
*/
|
| 3430 |
rajveer |
104 |
public void scanOut(String itemNumber, String imeiNumber, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException;
|
| 2820 |
chandransh |
105 |
|
|
|
106 |
}
|
|
|
107 |
|
| 3430 |
rajveer |
108 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
|
|
109 |
|
|
|
110 |
public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
111 |
|
|
|
112 |
public void getPurchaseOrder(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
113 |
|
|
|
114 |
public void getAllPurchaseOrders(POStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPurchaseOrders_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
115 |
|
|
|
116 |
public void getSupplier(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSupplier_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
117 |
|
|
|
118 |
public void startPurchase(long purchaseOrderId, String invoiceNumber, double freightCharges, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.startPurchase_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
119 |
|
|
|
120 |
public void closePurchase(long purchaseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.closePurchase_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
121 |
|
|
|
122 |
public void getAllPurchases(long purchaseOrderId, boolean open, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPurchases_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
123 |
|
|
|
124 |
public void scanIn(long purchaseId, String itemNumber, String imeiNumber, ScanType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanIn_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
125 |
|
|
|
126 |
public void scanOut(String itemNumber, String imeiNumber, ScanType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanOut_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
127 |
|
|
|
128 |
}
|
|
|
129 |
|
| 3374 |
rajveer |
130 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 3430 |
rajveer |
131 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
|
|
132 |
public Factory() {}
|
|
|
133 |
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
|
|
|
134 |
return new Client(prot);
|
|
|
135 |
}
|
|
|
136 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
137 |
return new Client(iprot, oprot);
|
|
|
138 |
}
|
|
|
139 |
}
|
|
|
140 |
|
|
|
141 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
| 2820 |
chandransh |
142 |
{
|
| 3430 |
rajveer |
143 |
super(prot, prot);
|
| 2820 |
chandransh |
144 |
}
|
|
|
145 |
|
| 3430 |
rajveer |
146 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
| 3374 |
rajveer |
147 |
super(iprot, oprot);
|
| 2820 |
chandransh |
148 |
}
|
|
|
149 |
|
| 3430 |
rajveer |
150 |
public long createPurchaseOrder(PurchaseOrder purchaseOrder) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
151 |
{
|
|
|
152 |
send_createPurchaseOrder(purchaseOrder);
|
|
|
153 |
return recv_createPurchaseOrder();
|
|
|
154 |
}
|
|
|
155 |
|
| 3430 |
rajveer |
156 |
public void send_createPurchaseOrder(PurchaseOrder purchaseOrder) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
157 |
{
|
|
|
158 |
createPurchaseOrder_args args = new createPurchaseOrder_args();
|
| 3430 |
rajveer |
159 |
args.setPurchaseOrder(purchaseOrder);
|
|
|
160 |
sendBase("createPurchaseOrder", args);
|
| 2820 |
chandransh |
161 |
}
|
|
|
162 |
|
| 3430 |
rajveer |
163 |
public long recv_createPurchaseOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
164 |
{
|
|
|
165 |
createPurchaseOrder_result result = new createPurchaseOrder_result();
|
| 3430 |
rajveer |
166 |
receiveBase(result, "createPurchaseOrder");
|
| 2820 |
chandransh |
167 |
if (result.isSetSuccess()) {
|
|
|
168 |
return result.success;
|
|
|
169 |
}
|
|
|
170 |
if (result.wex != null) {
|
|
|
171 |
throw result.wex;
|
|
|
172 |
}
|
| 3430 |
rajveer |
173 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPurchaseOrder failed: unknown result");
|
| 2820 |
chandransh |
174 |
}
|
|
|
175 |
|
| 3430 |
rajveer |
176 |
public PurchaseOrder getPurchaseOrder(long id) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
177 |
{
|
|
|
178 |
send_getPurchaseOrder(id);
|
|
|
179 |
return recv_getPurchaseOrder();
|
|
|
180 |
}
|
|
|
181 |
|
| 3430 |
rajveer |
182 |
public void send_getPurchaseOrder(long id) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
183 |
{
|
|
|
184 |
getPurchaseOrder_args args = new getPurchaseOrder_args();
|
| 3430 |
rajveer |
185 |
args.setId(id);
|
|
|
186 |
sendBase("getPurchaseOrder", args);
|
| 2820 |
chandransh |
187 |
}
|
|
|
188 |
|
| 3430 |
rajveer |
189 |
public PurchaseOrder recv_getPurchaseOrder() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
190 |
{
|
|
|
191 |
getPurchaseOrder_result result = new getPurchaseOrder_result();
|
| 3430 |
rajveer |
192 |
receiveBase(result, "getPurchaseOrder");
|
| 2820 |
chandransh |
193 |
if (result.isSetSuccess()) {
|
|
|
194 |
return result.success;
|
|
|
195 |
}
|
|
|
196 |
if (result.wex != null) {
|
|
|
197 |
throw result.wex;
|
|
|
198 |
}
|
| 3430 |
rajveer |
199 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseOrder failed: unknown result");
|
| 2820 |
chandransh |
200 |
}
|
|
|
201 |
|
| 3430 |
rajveer |
202 |
public List<PurchaseOrder> getAllPurchaseOrders(POStatus status) throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
203 |
{
|
|
|
204 |
send_getAllPurchaseOrders(status);
|
|
|
205 |
return recv_getAllPurchaseOrders();
|
|
|
206 |
}
|
|
|
207 |
|
| 3430 |
rajveer |
208 |
public void send_getAllPurchaseOrders(POStatus status) throws org.apache.thrift.TException
|
| 3383 |
chandransh |
209 |
{
|
|
|
210 |
getAllPurchaseOrders_args args = new getAllPurchaseOrders_args();
|
| 3430 |
rajveer |
211 |
args.setStatus(status);
|
|
|
212 |
sendBase("getAllPurchaseOrders", args);
|
| 3383 |
chandransh |
213 |
}
|
|
|
214 |
|
| 3430 |
rajveer |
215 |
public List<PurchaseOrder> recv_getAllPurchaseOrders() throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
216 |
{
|
|
|
217 |
getAllPurchaseOrders_result result = new getAllPurchaseOrders_result();
|
| 3430 |
rajveer |
218 |
receiveBase(result, "getAllPurchaseOrders");
|
| 3383 |
chandransh |
219 |
if (result.isSetSuccess()) {
|
|
|
220 |
return result.success;
|
|
|
221 |
}
|
|
|
222 |
if (result.wex != null) {
|
|
|
223 |
throw result.wex;
|
|
|
224 |
}
|
| 3430 |
rajveer |
225 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPurchaseOrders failed: unknown result");
|
| 3383 |
chandransh |
226 |
}
|
|
|
227 |
|
| 3430 |
rajveer |
228 |
public Supplier getSupplier(long id) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2832 |
chandransh |
229 |
{
|
|
|
230 |
send_getSupplier(id);
|
|
|
231 |
return recv_getSupplier();
|
|
|
232 |
}
|
|
|
233 |
|
| 3430 |
rajveer |
234 |
public void send_getSupplier(long id) throws org.apache.thrift.TException
|
| 2832 |
chandransh |
235 |
{
|
|
|
236 |
getSupplier_args args = new getSupplier_args();
|
| 3430 |
rajveer |
237 |
args.setId(id);
|
|
|
238 |
sendBase("getSupplier", args);
|
| 2832 |
chandransh |
239 |
}
|
|
|
240 |
|
| 3430 |
rajveer |
241 |
public Supplier recv_getSupplier() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2832 |
chandransh |
242 |
{
|
|
|
243 |
getSupplier_result result = new getSupplier_result();
|
| 3430 |
rajveer |
244 |
receiveBase(result, "getSupplier");
|
| 2832 |
chandransh |
245 |
if (result.isSetSuccess()) {
|
|
|
246 |
return result.success;
|
|
|
247 |
}
|
|
|
248 |
if (result.wex != null) {
|
|
|
249 |
throw result.wex;
|
|
|
250 |
}
|
| 3430 |
rajveer |
251 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSupplier failed: unknown result");
|
| 2832 |
chandransh |
252 |
}
|
|
|
253 |
|
| 3430 |
rajveer |
254 |
public long startPurchase(long purchaseOrderId, String invoiceNumber, double freightCharges) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
255 |
{
|
|
|
256 |
send_startPurchase(purchaseOrderId, invoiceNumber, freightCharges);
|
|
|
257 |
return recv_startPurchase();
|
|
|
258 |
}
|
|
|
259 |
|
| 3430 |
rajveer |
260 |
public void send_startPurchase(long purchaseOrderId, String invoiceNumber, double freightCharges) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
261 |
{
|
|
|
262 |
startPurchase_args args = new startPurchase_args();
|
| 3430 |
rajveer |
263 |
args.setPurchaseOrderId(purchaseOrderId);
|
|
|
264 |
args.setInvoiceNumber(invoiceNumber);
|
|
|
265 |
args.setFreightCharges(freightCharges);
|
|
|
266 |
sendBase("startPurchase", args);
|
| 2820 |
chandransh |
267 |
}
|
|
|
268 |
|
| 3430 |
rajveer |
269 |
public long recv_startPurchase() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
270 |
{
|
|
|
271 |
startPurchase_result result = new startPurchase_result();
|
| 3430 |
rajveer |
272 |
receiveBase(result, "startPurchase");
|
| 2820 |
chandransh |
273 |
if (result.isSetSuccess()) {
|
|
|
274 |
return result.success;
|
|
|
275 |
}
|
|
|
276 |
if (result.wex != null) {
|
|
|
277 |
throw result.wex;
|
|
|
278 |
}
|
| 3430 |
rajveer |
279 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startPurchase failed: unknown result");
|
| 2820 |
chandransh |
280 |
}
|
|
|
281 |
|
| 3430 |
rajveer |
282 |
public long closePurchase(long purchaseId) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
283 |
{
|
|
|
284 |
send_closePurchase(purchaseId);
|
|
|
285 |
return recv_closePurchase();
|
|
|
286 |
}
|
|
|
287 |
|
| 3430 |
rajveer |
288 |
public void send_closePurchase(long purchaseId) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
289 |
{
|
|
|
290 |
closePurchase_args args = new closePurchase_args();
|
| 3430 |
rajveer |
291 |
args.setPurchaseId(purchaseId);
|
|
|
292 |
sendBase("closePurchase", args);
|
| 2820 |
chandransh |
293 |
}
|
|
|
294 |
|
| 3430 |
rajveer |
295 |
public long recv_closePurchase() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
296 |
{
|
|
|
297 |
closePurchase_result result = new closePurchase_result();
|
| 3430 |
rajveer |
298 |
receiveBase(result, "closePurchase");
|
| 2820 |
chandransh |
299 |
if (result.isSetSuccess()) {
|
|
|
300 |
return result.success;
|
|
|
301 |
}
|
|
|
302 |
if (result.wex != null) {
|
|
|
303 |
throw result.wex;
|
|
|
304 |
}
|
| 3430 |
rajveer |
305 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "closePurchase failed: unknown result");
|
| 2820 |
chandransh |
306 |
}
|
|
|
307 |
|
| 3430 |
rajveer |
308 |
public List<Purchase> getAllPurchases(long purchaseOrderId, boolean open) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
309 |
{
|
| 3383 |
chandransh |
310 |
send_getAllPurchases(purchaseOrderId, open);
|
|
|
311 |
return recv_getAllPurchases();
|
|
|
312 |
}
|
|
|
313 |
|
| 3430 |
rajveer |
314 |
public void send_getAllPurchases(long purchaseOrderId, boolean open) throws org.apache.thrift.TException
|
| 3383 |
chandransh |
315 |
{
|
|
|
316 |
getAllPurchases_args args = new getAllPurchases_args();
|
| 3430 |
rajveer |
317 |
args.setPurchaseOrderId(purchaseOrderId);
|
|
|
318 |
args.setOpen(open);
|
|
|
319 |
sendBase("getAllPurchases", args);
|
| 3383 |
chandransh |
320 |
}
|
|
|
321 |
|
| 3430 |
rajveer |
322 |
public List<Purchase> recv_getAllPurchases() throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
323 |
{
|
|
|
324 |
getAllPurchases_result result = new getAllPurchases_result();
|
| 3430 |
rajveer |
325 |
receiveBase(result, "getAllPurchases");
|
| 3383 |
chandransh |
326 |
if (result.isSetSuccess()) {
|
|
|
327 |
return result.success;
|
|
|
328 |
}
|
|
|
329 |
if (result.wex != null) {
|
|
|
330 |
throw result.wex;
|
|
|
331 |
}
|
| 3430 |
rajveer |
332 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPurchases failed: unknown result");
|
| 3383 |
chandransh |
333 |
}
|
|
|
334 |
|
| 3430 |
rajveer |
335 |
public void scanIn(long purchaseId, String itemNumber, String imeiNumber, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException
|
| 3383 |
chandransh |
336 |
{
|
|
|
337 |
send_scanIn(purchaseId, itemNumber, imeiNumber, type);
|
| 2820 |
chandransh |
338 |
recv_scanIn();
|
|
|
339 |
}
|
|
|
340 |
|
| 3430 |
rajveer |
341 |
public void send_scanIn(long purchaseId, String itemNumber, String imeiNumber, ScanType type) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
342 |
{
|
|
|
343 |
scanIn_args args = new scanIn_args();
|
| 3430 |
rajveer |
344 |
args.setPurchaseId(purchaseId);
|
|
|
345 |
args.setItemNumber(itemNumber);
|
|
|
346 |
args.setImeiNumber(imeiNumber);
|
|
|
347 |
args.setType(type);
|
|
|
348 |
sendBase("scanIn", args);
|
| 2820 |
chandransh |
349 |
}
|
|
|
350 |
|
| 3430 |
rajveer |
351 |
public void recv_scanIn() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
352 |
{
|
|
|
353 |
scanIn_result result = new scanIn_result();
|
| 3430 |
rajveer |
354 |
receiveBase(result, "scanIn");
|
| 2820 |
chandransh |
355 |
if (result.wex != null) {
|
|
|
356 |
throw result.wex;
|
|
|
357 |
}
|
|
|
358 |
return;
|
|
|
359 |
}
|
|
|
360 |
|
| 3430 |
rajveer |
361 |
public void scanOut(String itemNumber, String imeiNumber, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
362 |
{
|
|
|
363 |
send_scanOut(itemNumber, imeiNumber, type);
|
|
|
364 |
recv_scanOut();
|
|
|
365 |
}
|
|
|
366 |
|
| 3430 |
rajveer |
367 |
public void send_scanOut(String itemNumber, String imeiNumber, ScanType type) throws org.apache.thrift.TException
|
| 2820 |
chandransh |
368 |
{
|
|
|
369 |
scanOut_args args = new scanOut_args();
|
| 3430 |
rajveer |
370 |
args.setItemNumber(itemNumber);
|
|
|
371 |
args.setImeiNumber(imeiNumber);
|
|
|
372 |
args.setType(type);
|
|
|
373 |
sendBase("scanOut", args);
|
| 2820 |
chandransh |
374 |
}
|
|
|
375 |
|
| 3430 |
rajveer |
376 |
public void recv_scanOut() throws WarehouseServiceException, org.apache.thrift.TException
|
| 2820 |
chandransh |
377 |
{
|
|
|
378 |
scanOut_result result = new scanOut_result();
|
| 3430 |
rajveer |
379 |
receiveBase(result, "scanOut");
|
| 2820 |
chandransh |
380 |
if (result.wex != null) {
|
|
|
381 |
throw result.wex;
|
|
|
382 |
}
|
|
|
383 |
return;
|
|
|
384 |
}
|
|
|
385 |
|
|
|
386 |
}
|
| 3430 |
rajveer |
387 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
|
|
388 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
389 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
390 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
391 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
392 |
this.clientManager = clientManager;
|
|
|
393 |
this.protocolFactory = protocolFactory;
|
|
|
394 |
}
|
|
|
395 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
396 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
397 |
}
|
| 2820 |
chandransh |
398 |
}
|
|
|
399 |
|
| 3430 |
rajveer |
400 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
401 |
super(protocolFactory, clientManager, transport);
|
|
|
402 |
}
|
| 2820 |
chandransh |
403 |
|
| 3430 |
rajveer |
404 |
public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
405 |
checkReady();
|
|
|
406 |
createPurchaseOrder_call method_call = new createPurchaseOrder_call(purchaseOrder, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
407 |
this.___currentMethod = method_call;
|
|
|
408 |
___manager.call(method_call);
|
|
|
409 |
}
|
|
|
410 |
|
|
|
411 |
public static class createPurchaseOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
412 |
private PurchaseOrder purchaseOrder;
|
|
|
413 |
public createPurchaseOrder_call(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<createPurchaseOrder_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 {
|
|
|
414 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
415 |
this.purchaseOrder = purchaseOrder;
|
| 2820 |
chandransh |
416 |
}
|
| 3430 |
rajveer |
417 |
|
|
|
418 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
419 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPurchaseOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
420 |
createPurchaseOrder_args args = new createPurchaseOrder_args();
|
|
|
421 |
args.setPurchaseOrder(purchaseOrder);
|
|
|
422 |
args.write(prot);
|
|
|
423 |
prot.writeMessageEnd();
|
|
|
424 |
}
|
|
|
425 |
|
|
|
426 |
public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
427 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
428 |
throw new IllegalStateException("Method call not finished!");
|
|
|
429 |
}
|
|
|
430 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
431 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
432 |
return (new Client(prot)).recv_createPurchaseOrder();
|
|
|
433 |
}
|
| 2820 |
chandransh |
434 |
}
|
|
|
435 |
|
| 3430 |
rajveer |
436 |
public void getPurchaseOrder(long id, org.apache.thrift.async.AsyncMethodCallback<getPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
437 |
checkReady();
|
|
|
438 |
getPurchaseOrder_call method_call = new getPurchaseOrder_call(id, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
439 |
this.___currentMethod = method_call;
|
|
|
440 |
___manager.call(method_call);
|
|
|
441 |
}
|
|
|
442 |
|
|
|
443 |
public static class getPurchaseOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
444 |
private long id;
|
|
|
445 |
public getPurchaseOrder_call(long id, org.apache.thrift.async.AsyncMethodCallback<getPurchaseOrder_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 {
|
|
|
446 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
447 |
this.id = id;
|
|
|
448 |
}
|
|
|
449 |
|
|
|
450 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
451 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
452 |
getPurchaseOrder_args args = new getPurchaseOrder_args();
|
|
|
453 |
args.setId(id);
|
|
|
454 |
args.write(prot);
|
|
|
455 |
prot.writeMessageEnd();
|
|
|
456 |
}
|
|
|
457 |
|
|
|
458 |
public PurchaseOrder getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
459 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
460 |
throw new IllegalStateException("Method call not finished!");
|
|
|
461 |
}
|
|
|
462 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
463 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
464 |
return (new Client(prot)).recv_getPurchaseOrder();
|
|
|
465 |
}
|
|
|
466 |
}
|
|
|
467 |
|
|
|
468 |
public void getAllPurchaseOrders(POStatus status, org.apache.thrift.async.AsyncMethodCallback<getAllPurchaseOrders_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
469 |
checkReady();
|
|
|
470 |
getAllPurchaseOrders_call method_call = new getAllPurchaseOrders_call(status, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
471 |
this.___currentMethod = method_call;
|
|
|
472 |
___manager.call(method_call);
|
|
|
473 |
}
|
|
|
474 |
|
|
|
475 |
public static class getAllPurchaseOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
476 |
private POStatus status;
|
|
|
477 |
public getAllPurchaseOrders_call(POStatus status, org.apache.thrift.async.AsyncMethodCallback<getAllPurchaseOrders_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 {
|
|
|
478 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
479 |
this.status = status;
|
|
|
480 |
}
|
|
|
481 |
|
|
|
482 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
483 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPurchaseOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
484 |
getAllPurchaseOrders_args args = new getAllPurchaseOrders_args();
|
|
|
485 |
args.setStatus(status);
|
|
|
486 |
args.write(prot);
|
|
|
487 |
prot.writeMessageEnd();
|
|
|
488 |
}
|
|
|
489 |
|
|
|
490 |
public List<PurchaseOrder> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
491 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
492 |
throw new IllegalStateException("Method call not finished!");
|
|
|
493 |
}
|
|
|
494 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
495 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
496 |
return (new Client(prot)).recv_getAllPurchaseOrders();
|
|
|
497 |
}
|
|
|
498 |
}
|
|
|
499 |
|
|
|
500 |
public void getSupplier(long id, org.apache.thrift.async.AsyncMethodCallback<getSupplier_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
501 |
checkReady();
|
|
|
502 |
getSupplier_call method_call = new getSupplier_call(id, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
503 |
this.___currentMethod = method_call;
|
|
|
504 |
___manager.call(method_call);
|
|
|
505 |
}
|
|
|
506 |
|
|
|
507 |
public static class getSupplier_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
508 |
private long id;
|
|
|
509 |
public getSupplier_call(long id, org.apache.thrift.async.AsyncMethodCallback<getSupplier_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 {
|
|
|
510 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
511 |
this.id = id;
|
|
|
512 |
}
|
|
|
513 |
|
|
|
514 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
515 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSupplier", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
516 |
getSupplier_args args = new getSupplier_args();
|
|
|
517 |
args.setId(id);
|
|
|
518 |
args.write(prot);
|
|
|
519 |
prot.writeMessageEnd();
|
|
|
520 |
}
|
|
|
521 |
|
|
|
522 |
public Supplier getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
523 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
524 |
throw new IllegalStateException("Method call not finished!");
|
|
|
525 |
}
|
|
|
526 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
527 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
528 |
return (new Client(prot)).recv_getSupplier();
|
|
|
529 |
}
|
|
|
530 |
}
|
|
|
531 |
|
|
|
532 |
public void startPurchase(long purchaseOrderId, String invoiceNumber, double freightCharges, org.apache.thrift.async.AsyncMethodCallback<startPurchase_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
533 |
checkReady();
|
|
|
534 |
startPurchase_call method_call = new startPurchase_call(purchaseOrderId, invoiceNumber, freightCharges, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
535 |
this.___currentMethod = method_call;
|
|
|
536 |
___manager.call(method_call);
|
|
|
537 |
}
|
|
|
538 |
|
|
|
539 |
public static class startPurchase_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
540 |
private long purchaseOrderId;
|
|
|
541 |
private String invoiceNumber;
|
|
|
542 |
private double freightCharges;
|
|
|
543 |
public startPurchase_call(long purchaseOrderId, String invoiceNumber, double freightCharges, org.apache.thrift.async.AsyncMethodCallback<startPurchase_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 {
|
|
|
544 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
545 |
this.purchaseOrderId = purchaseOrderId;
|
|
|
546 |
this.invoiceNumber = invoiceNumber;
|
|
|
547 |
this.freightCharges = freightCharges;
|
|
|
548 |
}
|
|
|
549 |
|
|
|
550 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
551 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startPurchase", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
552 |
startPurchase_args args = new startPurchase_args();
|
|
|
553 |
args.setPurchaseOrderId(purchaseOrderId);
|
|
|
554 |
args.setInvoiceNumber(invoiceNumber);
|
|
|
555 |
args.setFreightCharges(freightCharges);
|
|
|
556 |
args.write(prot);
|
|
|
557 |
prot.writeMessageEnd();
|
|
|
558 |
}
|
|
|
559 |
|
|
|
560 |
public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
561 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
562 |
throw new IllegalStateException("Method call not finished!");
|
|
|
563 |
}
|
|
|
564 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
565 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
566 |
return (new Client(prot)).recv_startPurchase();
|
|
|
567 |
}
|
|
|
568 |
}
|
|
|
569 |
|
|
|
570 |
public void closePurchase(long purchaseId, org.apache.thrift.async.AsyncMethodCallback<closePurchase_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
571 |
checkReady();
|
|
|
572 |
closePurchase_call method_call = new closePurchase_call(purchaseId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
573 |
this.___currentMethod = method_call;
|
|
|
574 |
___manager.call(method_call);
|
|
|
575 |
}
|
|
|
576 |
|
|
|
577 |
public static class closePurchase_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
578 |
private long purchaseId;
|
|
|
579 |
public closePurchase_call(long purchaseId, org.apache.thrift.async.AsyncMethodCallback<closePurchase_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 {
|
|
|
580 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
581 |
this.purchaseId = purchaseId;
|
|
|
582 |
}
|
|
|
583 |
|
|
|
584 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
585 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("closePurchase", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
586 |
closePurchase_args args = new closePurchase_args();
|
|
|
587 |
args.setPurchaseId(purchaseId);
|
|
|
588 |
args.write(prot);
|
|
|
589 |
prot.writeMessageEnd();
|
|
|
590 |
}
|
|
|
591 |
|
|
|
592 |
public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
593 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
594 |
throw new IllegalStateException("Method call not finished!");
|
|
|
595 |
}
|
|
|
596 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
597 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
598 |
return (new Client(prot)).recv_closePurchase();
|
|
|
599 |
}
|
|
|
600 |
}
|
|
|
601 |
|
|
|
602 |
public void getAllPurchases(long purchaseOrderId, boolean open, org.apache.thrift.async.AsyncMethodCallback<getAllPurchases_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
603 |
checkReady();
|
|
|
604 |
getAllPurchases_call method_call = new getAllPurchases_call(purchaseOrderId, open, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
605 |
this.___currentMethod = method_call;
|
|
|
606 |
___manager.call(method_call);
|
|
|
607 |
}
|
|
|
608 |
|
|
|
609 |
public static class getAllPurchases_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
610 |
private long purchaseOrderId;
|
|
|
611 |
private boolean open;
|
|
|
612 |
public getAllPurchases_call(long purchaseOrderId, boolean open, org.apache.thrift.async.AsyncMethodCallback<getAllPurchases_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 {
|
|
|
613 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
614 |
this.purchaseOrderId = purchaseOrderId;
|
|
|
615 |
this.open = open;
|
|
|
616 |
}
|
|
|
617 |
|
|
|
618 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
619 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPurchases", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
620 |
getAllPurchases_args args = new getAllPurchases_args();
|
|
|
621 |
args.setPurchaseOrderId(purchaseOrderId);
|
|
|
622 |
args.setOpen(open);
|
|
|
623 |
args.write(prot);
|
|
|
624 |
prot.writeMessageEnd();
|
|
|
625 |
}
|
|
|
626 |
|
|
|
627 |
public List<Purchase> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
628 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
629 |
throw new IllegalStateException("Method call not finished!");
|
|
|
630 |
}
|
|
|
631 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
632 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
633 |
return (new Client(prot)).recv_getAllPurchases();
|
|
|
634 |
}
|
|
|
635 |
}
|
|
|
636 |
|
|
|
637 |
public void scanIn(long purchaseId, String itemNumber, String imeiNumber, ScanType type, org.apache.thrift.async.AsyncMethodCallback<scanIn_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
638 |
checkReady();
|
|
|
639 |
scanIn_call method_call = new scanIn_call(purchaseId, itemNumber, imeiNumber, type, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
640 |
this.___currentMethod = method_call;
|
|
|
641 |
___manager.call(method_call);
|
|
|
642 |
}
|
|
|
643 |
|
|
|
644 |
public static class scanIn_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
645 |
private long purchaseId;
|
|
|
646 |
private String itemNumber;
|
|
|
647 |
private String imeiNumber;
|
|
|
648 |
private ScanType type;
|
|
|
649 |
public scanIn_call(long purchaseId, String itemNumber, String imeiNumber, ScanType type, org.apache.thrift.async.AsyncMethodCallback<scanIn_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 {
|
|
|
650 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
651 |
this.purchaseId = purchaseId;
|
|
|
652 |
this.itemNumber = itemNumber;
|
|
|
653 |
this.imeiNumber = imeiNumber;
|
|
|
654 |
this.type = type;
|
|
|
655 |
}
|
|
|
656 |
|
|
|
657 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
658 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
659 |
scanIn_args args = new scanIn_args();
|
|
|
660 |
args.setPurchaseId(purchaseId);
|
|
|
661 |
args.setItemNumber(itemNumber);
|
|
|
662 |
args.setImeiNumber(imeiNumber);
|
|
|
663 |
args.setType(type);
|
|
|
664 |
args.write(prot);
|
|
|
665 |
prot.writeMessageEnd();
|
|
|
666 |
}
|
|
|
667 |
|
|
|
668 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
669 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
670 |
throw new IllegalStateException("Method call not finished!");
|
|
|
671 |
}
|
|
|
672 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
673 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
674 |
(new Client(prot)).recv_scanIn();
|
|
|
675 |
}
|
|
|
676 |
}
|
|
|
677 |
|
|
|
678 |
public void scanOut(String itemNumber, String imeiNumber, ScanType type, org.apache.thrift.async.AsyncMethodCallback<scanOut_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
679 |
checkReady();
|
|
|
680 |
scanOut_call method_call = new scanOut_call(itemNumber, imeiNumber, type, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
681 |
this.___currentMethod = method_call;
|
|
|
682 |
___manager.call(method_call);
|
|
|
683 |
}
|
|
|
684 |
|
|
|
685 |
public static class scanOut_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
686 |
private String itemNumber;
|
|
|
687 |
private String imeiNumber;
|
|
|
688 |
private ScanType type;
|
|
|
689 |
public scanOut_call(String itemNumber, String imeiNumber, ScanType type, org.apache.thrift.async.AsyncMethodCallback<scanOut_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 {
|
|
|
690 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
691 |
this.itemNumber = itemNumber;
|
|
|
692 |
this.imeiNumber = imeiNumber;
|
|
|
693 |
this.type = type;
|
|
|
694 |
}
|
|
|
695 |
|
|
|
696 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
697 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanOut", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
698 |
scanOut_args args = new scanOut_args();
|
|
|
699 |
args.setItemNumber(itemNumber);
|
|
|
700 |
args.setImeiNumber(imeiNumber);
|
|
|
701 |
args.setType(type);
|
|
|
702 |
args.write(prot);
|
|
|
703 |
prot.writeMessageEnd();
|
|
|
704 |
}
|
|
|
705 |
|
|
|
706 |
public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
|
|
|
707 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
708 |
throw new IllegalStateException("Method call not finished!");
|
|
|
709 |
}
|
|
|
710 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
711 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
712 |
(new Client(prot)).recv_scanOut();
|
|
|
713 |
}
|
|
|
714 |
}
|
|
|
715 |
|
|
|
716 |
}
|
|
|
717 |
|
|
|
718 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
|
|
719 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
720 |
public Processor(I iface) {
|
|
|
721 |
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
|
|
|
722 |
}
|
|
|
723 |
|
|
|
724 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
725 |
super(iface, getProcessMap(processMap));
|
|
|
726 |
}
|
|
|
727 |
|
|
|
728 |
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) {
|
|
|
729 |
processMap.put("createPurchaseOrder", new createPurchaseOrder());
|
|
|
730 |
processMap.put("getPurchaseOrder", new getPurchaseOrder());
|
|
|
731 |
processMap.put("getAllPurchaseOrders", new getAllPurchaseOrders());
|
|
|
732 |
processMap.put("getSupplier", new getSupplier());
|
|
|
733 |
processMap.put("startPurchase", new startPurchase());
|
|
|
734 |
processMap.put("closePurchase", new closePurchase());
|
|
|
735 |
processMap.put("getAllPurchases", new getAllPurchases());
|
|
|
736 |
processMap.put("scanIn", new scanIn());
|
|
|
737 |
processMap.put("scanOut", new scanOut());
|
|
|
738 |
return processMap;
|
|
|
739 |
}
|
|
|
740 |
|
|
|
741 |
private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
|
|
|
742 |
public createPurchaseOrder() {
|
|
|
743 |
super("createPurchaseOrder");
|
|
|
744 |
}
|
|
|
745 |
|
|
|
746 |
protected createPurchaseOrder_args getEmptyArgsInstance() {
|
|
|
747 |
return new createPurchaseOrder_args();
|
|
|
748 |
}
|
|
|
749 |
|
|
|
750 |
protected createPurchaseOrder_result getResult(I iface, createPurchaseOrder_args args) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
751 |
createPurchaseOrder_result result = new createPurchaseOrder_result();
|
|
|
752 |
try {
|
| 3430 |
rajveer |
753 |
result.success = iface.createPurchaseOrder(args.purchaseOrder);
|
| 2820 |
chandransh |
754 |
result.setSuccessIsSet(true);
|
|
|
755 |
} catch (WarehouseServiceException wex) {
|
|
|
756 |
result.wex = wex;
|
|
|
757 |
}
|
| 3430 |
rajveer |
758 |
return result;
|
| 2820 |
chandransh |
759 |
}
|
|
|
760 |
}
|
|
|
761 |
|
| 3430 |
rajveer |
762 |
private static class getPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseOrder_args> {
|
|
|
763 |
public getPurchaseOrder() {
|
|
|
764 |
super("getPurchaseOrder");
|
|
|
765 |
}
|
|
|
766 |
|
|
|
767 |
protected getPurchaseOrder_args getEmptyArgsInstance() {
|
|
|
768 |
return new getPurchaseOrder_args();
|
|
|
769 |
}
|
|
|
770 |
|
|
|
771 |
protected getPurchaseOrder_result getResult(I iface, getPurchaseOrder_args args) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
772 |
getPurchaseOrder_result result = new getPurchaseOrder_result();
|
|
|
773 |
try {
|
| 3430 |
rajveer |
774 |
result.success = iface.getPurchaseOrder(args.id);
|
| 2820 |
chandransh |
775 |
} catch (WarehouseServiceException wex) {
|
|
|
776 |
result.wex = wex;
|
|
|
777 |
}
|
| 3430 |
rajveer |
778 |
return result;
|
| 2820 |
chandransh |
779 |
}
|
|
|
780 |
}
|
|
|
781 |
|
| 3430 |
rajveer |
782 |
private static class getAllPurchaseOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPurchaseOrders_args> {
|
|
|
783 |
public getAllPurchaseOrders() {
|
|
|
784 |
super("getAllPurchaseOrders");
|
|
|
785 |
}
|
|
|
786 |
|
|
|
787 |
protected getAllPurchaseOrders_args getEmptyArgsInstance() {
|
|
|
788 |
return new getAllPurchaseOrders_args();
|
|
|
789 |
}
|
|
|
790 |
|
|
|
791 |
protected getAllPurchaseOrders_result getResult(I iface, getAllPurchaseOrders_args args) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
792 |
getAllPurchaseOrders_result result = new getAllPurchaseOrders_result();
|
|
|
793 |
try {
|
| 3430 |
rajveer |
794 |
result.success = iface.getAllPurchaseOrders(args.status);
|
| 3383 |
chandransh |
795 |
} catch (WarehouseServiceException wex) {
|
|
|
796 |
result.wex = wex;
|
|
|
797 |
}
|
| 3430 |
rajveer |
798 |
return result;
|
| 3383 |
chandransh |
799 |
}
|
|
|
800 |
}
|
|
|
801 |
|
| 3430 |
rajveer |
802 |
private static class getSupplier<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSupplier_args> {
|
|
|
803 |
public getSupplier() {
|
|
|
804 |
super("getSupplier");
|
|
|
805 |
}
|
|
|
806 |
|
|
|
807 |
protected getSupplier_args getEmptyArgsInstance() {
|
|
|
808 |
return new getSupplier_args();
|
|
|
809 |
}
|
|
|
810 |
|
|
|
811 |
protected getSupplier_result getResult(I iface, getSupplier_args args) throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
812 |
getSupplier_result result = new getSupplier_result();
|
|
|
813 |
try {
|
| 3430 |
rajveer |
814 |
result.success = iface.getSupplier(args.id);
|
| 2832 |
chandransh |
815 |
} catch (WarehouseServiceException wex) {
|
|
|
816 |
result.wex = wex;
|
|
|
817 |
}
|
| 3430 |
rajveer |
818 |
return result;
|
| 2832 |
chandransh |
819 |
}
|
|
|
820 |
}
|
|
|
821 |
|
| 3430 |
rajveer |
822 |
private static class startPurchase<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startPurchase_args> {
|
|
|
823 |
public startPurchase() {
|
|
|
824 |
super("startPurchase");
|
|
|
825 |
}
|
|
|
826 |
|
|
|
827 |
protected startPurchase_args getEmptyArgsInstance() {
|
|
|
828 |
return new startPurchase_args();
|
|
|
829 |
}
|
|
|
830 |
|
|
|
831 |
protected startPurchase_result getResult(I iface, startPurchase_args args) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
832 |
startPurchase_result result = new startPurchase_result();
|
|
|
833 |
try {
|
| 3430 |
rajveer |
834 |
result.success = iface.startPurchase(args.purchaseOrderId, args.invoiceNumber, args.freightCharges);
|
| 2820 |
chandransh |
835 |
result.setSuccessIsSet(true);
|
|
|
836 |
} catch (WarehouseServiceException wex) {
|
|
|
837 |
result.wex = wex;
|
|
|
838 |
}
|
| 3430 |
rajveer |
839 |
return result;
|
| 2820 |
chandransh |
840 |
}
|
|
|
841 |
}
|
|
|
842 |
|
| 3430 |
rajveer |
843 |
private static class closePurchase<I extends Iface> extends org.apache.thrift.ProcessFunction<I, closePurchase_args> {
|
|
|
844 |
public closePurchase() {
|
|
|
845 |
super("closePurchase");
|
|
|
846 |
}
|
|
|
847 |
|
|
|
848 |
protected closePurchase_args getEmptyArgsInstance() {
|
|
|
849 |
return new closePurchase_args();
|
|
|
850 |
}
|
|
|
851 |
|
|
|
852 |
protected closePurchase_result getResult(I iface, closePurchase_args args) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
853 |
closePurchase_result result = new closePurchase_result();
|
|
|
854 |
try {
|
| 3430 |
rajveer |
855 |
result.success = iface.closePurchase(args.purchaseId);
|
| 2820 |
chandransh |
856 |
result.setSuccessIsSet(true);
|
|
|
857 |
} catch (WarehouseServiceException wex) {
|
|
|
858 |
result.wex = wex;
|
|
|
859 |
}
|
| 3430 |
rajveer |
860 |
return result;
|
| 2820 |
chandransh |
861 |
}
|
|
|
862 |
}
|
|
|
863 |
|
| 3430 |
rajveer |
864 |
private static class getAllPurchases<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPurchases_args> {
|
|
|
865 |
public getAllPurchases() {
|
|
|
866 |
super("getAllPurchases");
|
|
|
867 |
}
|
|
|
868 |
|
|
|
869 |
protected getAllPurchases_args getEmptyArgsInstance() {
|
|
|
870 |
return new getAllPurchases_args();
|
|
|
871 |
}
|
|
|
872 |
|
|
|
873 |
protected getAllPurchases_result getResult(I iface, getAllPurchases_args args) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
874 |
getAllPurchases_result result = new getAllPurchases_result();
|
|
|
875 |
try {
|
| 3430 |
rajveer |
876 |
result.success = iface.getAllPurchases(args.purchaseOrderId, args.open);
|
| 3383 |
chandransh |
877 |
} catch (WarehouseServiceException wex) {
|
|
|
878 |
result.wex = wex;
|
|
|
879 |
}
|
| 3430 |
rajveer |
880 |
return result;
|
| 3383 |
chandransh |
881 |
}
|
|
|
882 |
}
|
|
|
883 |
|
| 3430 |
rajveer |
884 |
private static class scanIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanIn_args> {
|
|
|
885 |
public scanIn() {
|
|
|
886 |
super("scanIn");
|
|
|
887 |
}
|
|
|
888 |
|
|
|
889 |
protected scanIn_args getEmptyArgsInstance() {
|
|
|
890 |
return new scanIn_args();
|
|
|
891 |
}
|
|
|
892 |
|
|
|
893 |
protected scanIn_result getResult(I iface, scanIn_args args) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
894 |
scanIn_result result = new scanIn_result();
|
|
|
895 |
try {
|
| 3430 |
rajveer |
896 |
iface.scanIn(args.purchaseId, args.itemNumber, args.imeiNumber, args.type);
|
| 2820 |
chandransh |
897 |
} catch (WarehouseServiceException wex) {
|
|
|
898 |
result.wex = wex;
|
|
|
899 |
}
|
| 3430 |
rajveer |
900 |
return result;
|
| 2820 |
chandransh |
901 |
}
|
|
|
902 |
}
|
|
|
903 |
|
| 3430 |
rajveer |
904 |
private static class scanOut<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanOut_args> {
|
|
|
905 |
public scanOut() {
|
|
|
906 |
super("scanOut");
|
|
|
907 |
}
|
|
|
908 |
|
|
|
909 |
protected scanOut_args getEmptyArgsInstance() {
|
|
|
910 |
return new scanOut_args();
|
|
|
911 |
}
|
|
|
912 |
|
|
|
913 |
protected scanOut_result getResult(I iface, scanOut_args args) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
914 |
scanOut_result result = new scanOut_result();
|
|
|
915 |
try {
|
| 3430 |
rajveer |
916 |
iface.scanOut(args.itemNumber, args.imeiNumber, args.type);
|
| 2820 |
chandransh |
917 |
} catch (WarehouseServiceException wex) {
|
|
|
918 |
result.wex = wex;
|
|
|
919 |
}
|
| 3430 |
rajveer |
920 |
return result;
|
| 2820 |
chandransh |
921 |
}
|
|
|
922 |
}
|
|
|
923 |
|
|
|
924 |
}
|
|
|
925 |
|
| 3430 |
rajveer |
926 |
public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
927 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
|
| 2820 |
chandransh |
928 |
|
| 3430 |
rajveer |
929 |
private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrder", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| 2820 |
chandransh |
930 |
|
| 3430 |
rajveer |
931 |
private PurchaseOrder purchaseOrder; // required
|
| 2820 |
chandransh |
932 |
|
|
|
933 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
934 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2820 |
chandransh |
935 |
PURCHASE_ORDER((short)1, "purchaseOrder");
|
|
|
936 |
|
|
|
937 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
938 |
|
|
|
939 |
static {
|
|
|
940 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
941 |
byName.put(field.getFieldName(), field);
|
|
|
942 |
}
|
|
|
943 |
}
|
|
|
944 |
|
|
|
945 |
/**
|
|
|
946 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
947 |
*/
|
|
|
948 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
949 |
switch(fieldId) {
|
|
|
950 |
case 1: // PURCHASE_ORDER
|
|
|
951 |
return PURCHASE_ORDER;
|
|
|
952 |
default:
|
|
|
953 |
return null;
|
|
|
954 |
}
|
| 2820 |
chandransh |
955 |
}
|
|
|
956 |
|
|
|
957 |
/**
|
|
|
958 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
959 |
* if it is not found.
|
|
|
960 |
*/
|
|
|
961 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
962 |
_Fields fields = findByThriftId(fieldId);
|
|
|
963 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
964 |
return fields;
|
|
|
965 |
}
|
|
|
966 |
|
|
|
967 |
/**
|
|
|
968 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
969 |
*/
|
|
|
970 |
public static _Fields findByName(String name) {
|
|
|
971 |
return byName.get(name);
|
|
|
972 |
}
|
|
|
973 |
|
|
|
974 |
private final short _thriftId;
|
|
|
975 |
private final String _fieldName;
|
|
|
976 |
|
|
|
977 |
_Fields(short thriftId, String fieldName) {
|
|
|
978 |
_thriftId = thriftId;
|
|
|
979 |
_fieldName = fieldName;
|
|
|
980 |
}
|
|
|
981 |
|
|
|
982 |
public short getThriftFieldId() {
|
|
|
983 |
return _thriftId;
|
|
|
984 |
}
|
|
|
985 |
|
|
|
986 |
public String getFieldName() {
|
|
|
987 |
return _fieldName;
|
|
|
988 |
}
|
|
|
989 |
}
|
|
|
990 |
|
|
|
991 |
// isset id assignments
|
|
|
992 |
|
| 3430 |
rajveer |
993 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
994 |
static {
|
| 3430 |
rajveer |
995 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
996 |
tmpMap.put(_Fields.PURCHASE_ORDER, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrder", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
997 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PurchaseOrder.class)));
|
|
|
998 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
999 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseOrder_args.class, metaDataMap);
|
| 2820 |
chandransh |
1000 |
}
|
|
|
1001 |
|
|
|
1002 |
public createPurchaseOrder_args() {
|
|
|
1003 |
}
|
|
|
1004 |
|
|
|
1005 |
public createPurchaseOrder_args(
|
|
|
1006 |
PurchaseOrder purchaseOrder)
|
|
|
1007 |
{
|
|
|
1008 |
this();
|
|
|
1009 |
this.purchaseOrder = purchaseOrder;
|
|
|
1010 |
}
|
|
|
1011 |
|
|
|
1012 |
/**
|
|
|
1013 |
* Performs a deep copy on <i>other</i>.
|
|
|
1014 |
*/
|
|
|
1015 |
public createPurchaseOrder_args(createPurchaseOrder_args other) {
|
|
|
1016 |
if (other.isSetPurchaseOrder()) {
|
|
|
1017 |
this.purchaseOrder = new PurchaseOrder(other.purchaseOrder);
|
|
|
1018 |
}
|
|
|
1019 |
}
|
|
|
1020 |
|
|
|
1021 |
public createPurchaseOrder_args deepCopy() {
|
|
|
1022 |
return new createPurchaseOrder_args(this);
|
|
|
1023 |
}
|
|
|
1024 |
|
| 3430 |
rajveer |
1025 |
@Override
|
|
|
1026 |
public void clear() {
|
|
|
1027 |
this.purchaseOrder = null;
|
| 2820 |
chandransh |
1028 |
}
|
|
|
1029 |
|
|
|
1030 |
public PurchaseOrder getPurchaseOrder() {
|
|
|
1031 |
return this.purchaseOrder;
|
|
|
1032 |
}
|
|
|
1033 |
|
| 3430 |
rajveer |
1034 |
public void setPurchaseOrder(PurchaseOrder purchaseOrder) {
|
| 2820 |
chandransh |
1035 |
this.purchaseOrder = purchaseOrder;
|
|
|
1036 |
}
|
|
|
1037 |
|
|
|
1038 |
public void unsetPurchaseOrder() {
|
|
|
1039 |
this.purchaseOrder = null;
|
|
|
1040 |
}
|
|
|
1041 |
|
| 3430 |
rajveer |
1042 |
/** Returns true if field purchaseOrder is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
1043 |
public boolean isSetPurchaseOrder() {
|
|
|
1044 |
return this.purchaseOrder != null;
|
|
|
1045 |
}
|
|
|
1046 |
|
|
|
1047 |
public void setPurchaseOrderIsSet(boolean value) {
|
|
|
1048 |
if (!value) {
|
|
|
1049 |
this.purchaseOrder = null;
|
|
|
1050 |
}
|
|
|
1051 |
}
|
|
|
1052 |
|
|
|
1053 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1054 |
switch (field) {
|
|
|
1055 |
case PURCHASE_ORDER:
|
|
|
1056 |
if (value == null) {
|
|
|
1057 |
unsetPurchaseOrder();
|
|
|
1058 |
} else {
|
|
|
1059 |
setPurchaseOrder((PurchaseOrder)value);
|
|
|
1060 |
}
|
|
|
1061 |
break;
|
|
|
1062 |
|
|
|
1063 |
}
|
|
|
1064 |
}
|
|
|
1065 |
|
|
|
1066 |
public Object getFieldValue(_Fields field) {
|
|
|
1067 |
switch (field) {
|
|
|
1068 |
case PURCHASE_ORDER:
|
|
|
1069 |
return getPurchaseOrder();
|
|
|
1070 |
|
|
|
1071 |
}
|
|
|
1072 |
throw new IllegalStateException();
|
|
|
1073 |
}
|
|
|
1074 |
|
| 3430 |
rajveer |
1075 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1076 |
public boolean isSet(_Fields field) {
|
|
|
1077 |
if (field == null) {
|
|
|
1078 |
throw new IllegalArgumentException();
|
|
|
1079 |
}
|
| 2820 |
chandransh |
1080 |
|
|
|
1081 |
switch (field) {
|
|
|
1082 |
case PURCHASE_ORDER:
|
|
|
1083 |
return isSetPurchaseOrder();
|
|
|
1084 |
}
|
|
|
1085 |
throw new IllegalStateException();
|
|
|
1086 |
}
|
|
|
1087 |
|
|
|
1088 |
@Override
|
|
|
1089 |
public boolean equals(Object that) {
|
|
|
1090 |
if (that == null)
|
|
|
1091 |
return false;
|
|
|
1092 |
if (that instanceof createPurchaseOrder_args)
|
|
|
1093 |
return this.equals((createPurchaseOrder_args)that);
|
|
|
1094 |
return false;
|
|
|
1095 |
}
|
|
|
1096 |
|
|
|
1097 |
public boolean equals(createPurchaseOrder_args that) {
|
|
|
1098 |
if (that == null)
|
|
|
1099 |
return false;
|
|
|
1100 |
|
|
|
1101 |
boolean this_present_purchaseOrder = true && this.isSetPurchaseOrder();
|
|
|
1102 |
boolean that_present_purchaseOrder = true && that.isSetPurchaseOrder();
|
|
|
1103 |
if (this_present_purchaseOrder || that_present_purchaseOrder) {
|
|
|
1104 |
if (!(this_present_purchaseOrder && that_present_purchaseOrder))
|
|
|
1105 |
return false;
|
|
|
1106 |
if (!this.purchaseOrder.equals(that.purchaseOrder))
|
|
|
1107 |
return false;
|
|
|
1108 |
}
|
|
|
1109 |
|
|
|
1110 |
return true;
|
|
|
1111 |
}
|
|
|
1112 |
|
|
|
1113 |
@Override
|
|
|
1114 |
public int hashCode() {
|
|
|
1115 |
return 0;
|
|
|
1116 |
}
|
|
|
1117 |
|
|
|
1118 |
public int compareTo(createPurchaseOrder_args other) {
|
|
|
1119 |
if (!getClass().equals(other.getClass())) {
|
|
|
1120 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1121 |
}
|
|
|
1122 |
|
|
|
1123 |
int lastComparison = 0;
|
|
|
1124 |
createPurchaseOrder_args typedOther = (createPurchaseOrder_args)other;
|
|
|
1125 |
|
| 3430 |
rajveer |
1126 |
lastComparison = Boolean.valueOf(isSetPurchaseOrder()).compareTo(typedOther.isSetPurchaseOrder());
|
| 2820 |
chandransh |
1127 |
if (lastComparison != 0) {
|
|
|
1128 |
return lastComparison;
|
|
|
1129 |
}
|
| 3430 |
rajveer |
1130 |
if (isSetPurchaseOrder()) {
|
|
|
1131 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrder, typedOther.purchaseOrder);
|
|
|
1132 |
if (lastComparison != 0) {
|
|
|
1133 |
return lastComparison;
|
|
|
1134 |
}
|
| 2820 |
chandransh |
1135 |
}
|
|
|
1136 |
return 0;
|
|
|
1137 |
}
|
|
|
1138 |
|
| 3430 |
rajveer |
1139 |
public _Fields fieldForId(int fieldId) {
|
|
|
1140 |
return _Fields.findByThriftId(fieldId);
|
|
|
1141 |
}
|
|
|
1142 |
|
|
|
1143 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1144 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
1145 |
iprot.readStructBegin();
|
|
|
1146 |
while (true)
|
|
|
1147 |
{
|
|
|
1148 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1149 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
1150 |
break;
|
|
|
1151 |
}
|
| 3430 |
rajveer |
1152 |
switch (field.id) {
|
|
|
1153 |
case 1: // PURCHASE_ORDER
|
|
|
1154 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
1155 |
this.purchaseOrder = new PurchaseOrder();
|
|
|
1156 |
this.purchaseOrder.read(iprot);
|
|
|
1157 |
} else {
|
|
|
1158 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1159 |
}
|
|
|
1160 |
break;
|
|
|
1161 |
default:
|
|
|
1162 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
1163 |
}
|
| 3430 |
rajveer |
1164 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
1165 |
}
|
|
|
1166 |
iprot.readStructEnd();
|
|
|
1167 |
validate();
|
|
|
1168 |
}
|
|
|
1169 |
|
| 3430 |
rajveer |
1170 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
1171 |
validate();
|
|
|
1172 |
|
|
|
1173 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1174 |
if (this.purchaseOrder != null) {
|
|
|
1175 |
oprot.writeFieldBegin(PURCHASE_ORDER_FIELD_DESC);
|
|
|
1176 |
this.purchaseOrder.write(oprot);
|
|
|
1177 |
oprot.writeFieldEnd();
|
|
|
1178 |
}
|
|
|
1179 |
oprot.writeFieldStop();
|
|
|
1180 |
oprot.writeStructEnd();
|
|
|
1181 |
}
|
|
|
1182 |
|
|
|
1183 |
@Override
|
|
|
1184 |
public String toString() {
|
|
|
1185 |
StringBuilder sb = new StringBuilder("createPurchaseOrder_args(");
|
|
|
1186 |
boolean first = true;
|
|
|
1187 |
|
|
|
1188 |
sb.append("purchaseOrder:");
|
|
|
1189 |
if (this.purchaseOrder == null) {
|
|
|
1190 |
sb.append("null");
|
|
|
1191 |
} else {
|
|
|
1192 |
sb.append(this.purchaseOrder);
|
|
|
1193 |
}
|
|
|
1194 |
first = false;
|
|
|
1195 |
sb.append(")");
|
|
|
1196 |
return sb.toString();
|
|
|
1197 |
}
|
|
|
1198 |
|
| 3430 |
rajveer |
1199 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
1200 |
// check for required fields
|
|
|
1201 |
}
|
|
|
1202 |
|
| 3430 |
rajveer |
1203 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1204 |
try {
|
|
|
1205 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1206 |
} catch (org.apache.thrift.TException te) {
|
|
|
1207 |
throw new java.io.IOException(te);
|
|
|
1208 |
}
|
|
|
1209 |
}
|
|
|
1210 |
|
|
|
1211 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1212 |
try {
|
|
|
1213 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1214 |
} catch (org.apache.thrift.TException te) {
|
|
|
1215 |
throw new java.io.IOException(te);
|
|
|
1216 |
}
|
|
|
1217 |
}
|
|
|
1218 |
|
| 2820 |
chandransh |
1219 |
}
|
|
|
1220 |
|
| 3430 |
rajveer |
1221 |
public static class createPurchaseOrder_result implements org.apache.thrift.TBase<createPurchaseOrder_result, createPurchaseOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
1222 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_result");
|
| 2820 |
chandransh |
1223 |
|
| 3430 |
rajveer |
1224 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
|
|
|
1225 |
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 |
1226 |
|
| 3430 |
rajveer |
1227 |
private long success; // required
|
|
|
1228 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
1229 |
|
|
|
1230 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1231 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2820 |
chandransh |
1232 |
SUCCESS((short)0, "success"),
|
|
|
1233 |
WEX((short)1, "wex");
|
|
|
1234 |
|
|
|
1235 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1236 |
|
|
|
1237 |
static {
|
|
|
1238 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1239 |
byName.put(field.getFieldName(), field);
|
|
|
1240 |
}
|
|
|
1241 |
}
|
|
|
1242 |
|
|
|
1243 |
/**
|
|
|
1244 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1245 |
*/
|
|
|
1246 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1247 |
switch(fieldId) {
|
|
|
1248 |
case 0: // SUCCESS
|
|
|
1249 |
return SUCCESS;
|
|
|
1250 |
case 1: // WEX
|
|
|
1251 |
return WEX;
|
|
|
1252 |
default:
|
|
|
1253 |
return null;
|
|
|
1254 |
}
|
| 2820 |
chandransh |
1255 |
}
|
|
|
1256 |
|
|
|
1257 |
/**
|
|
|
1258 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1259 |
* if it is not found.
|
|
|
1260 |
*/
|
|
|
1261 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1262 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1263 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1264 |
return fields;
|
|
|
1265 |
}
|
|
|
1266 |
|
|
|
1267 |
/**
|
|
|
1268 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1269 |
*/
|
|
|
1270 |
public static _Fields findByName(String name) {
|
|
|
1271 |
return byName.get(name);
|
|
|
1272 |
}
|
|
|
1273 |
|
|
|
1274 |
private final short _thriftId;
|
|
|
1275 |
private final String _fieldName;
|
|
|
1276 |
|
|
|
1277 |
_Fields(short thriftId, String fieldName) {
|
|
|
1278 |
_thriftId = thriftId;
|
|
|
1279 |
_fieldName = fieldName;
|
|
|
1280 |
}
|
|
|
1281 |
|
|
|
1282 |
public short getThriftFieldId() {
|
|
|
1283 |
return _thriftId;
|
|
|
1284 |
}
|
|
|
1285 |
|
|
|
1286 |
public String getFieldName() {
|
|
|
1287 |
return _fieldName;
|
|
|
1288 |
}
|
|
|
1289 |
}
|
|
|
1290 |
|
|
|
1291 |
// isset id assignments
|
|
|
1292 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
1293 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
1294 |
|
| 3430 |
rajveer |
1295 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
1296 |
static {
|
| 3430 |
rajveer |
1297 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1298 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1299 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
1300 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1301 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
1302 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1303 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPurchaseOrder_result.class, metaDataMap);
|
| 2820 |
chandransh |
1304 |
}
|
|
|
1305 |
|
|
|
1306 |
public createPurchaseOrder_result() {
|
|
|
1307 |
}
|
|
|
1308 |
|
|
|
1309 |
public createPurchaseOrder_result(
|
|
|
1310 |
long success,
|
|
|
1311 |
WarehouseServiceException wex)
|
|
|
1312 |
{
|
|
|
1313 |
this();
|
|
|
1314 |
this.success = success;
|
|
|
1315 |
setSuccessIsSet(true);
|
|
|
1316 |
this.wex = wex;
|
|
|
1317 |
}
|
|
|
1318 |
|
|
|
1319 |
/**
|
|
|
1320 |
* Performs a deep copy on <i>other</i>.
|
|
|
1321 |
*/
|
|
|
1322 |
public createPurchaseOrder_result(createPurchaseOrder_result other) {
|
|
|
1323 |
__isset_bit_vector.clear();
|
|
|
1324 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
1325 |
this.success = other.success;
|
|
|
1326 |
if (other.isSetWex()) {
|
|
|
1327 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
1328 |
}
|
|
|
1329 |
}
|
|
|
1330 |
|
|
|
1331 |
public createPurchaseOrder_result deepCopy() {
|
|
|
1332 |
return new createPurchaseOrder_result(this);
|
|
|
1333 |
}
|
|
|
1334 |
|
| 3430 |
rajveer |
1335 |
@Override
|
|
|
1336 |
public void clear() {
|
|
|
1337 |
setSuccessIsSet(false);
|
|
|
1338 |
this.success = 0;
|
|
|
1339 |
this.wex = null;
|
| 2820 |
chandransh |
1340 |
}
|
|
|
1341 |
|
|
|
1342 |
public long getSuccess() {
|
|
|
1343 |
return this.success;
|
|
|
1344 |
}
|
|
|
1345 |
|
| 3430 |
rajveer |
1346 |
public void setSuccess(long success) {
|
| 2820 |
chandransh |
1347 |
this.success = success;
|
|
|
1348 |
setSuccessIsSet(true);
|
|
|
1349 |
}
|
|
|
1350 |
|
|
|
1351 |
public void unsetSuccess() {
|
|
|
1352 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
1353 |
}
|
|
|
1354 |
|
| 3430 |
rajveer |
1355 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
1356 |
public boolean isSetSuccess() {
|
|
|
1357 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
1358 |
}
|
|
|
1359 |
|
|
|
1360 |
public void setSuccessIsSet(boolean value) {
|
|
|
1361 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
1362 |
}
|
|
|
1363 |
|
|
|
1364 |
public WarehouseServiceException getWex() {
|
|
|
1365 |
return this.wex;
|
|
|
1366 |
}
|
|
|
1367 |
|
| 3430 |
rajveer |
1368 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
1369 |
this.wex = wex;
|
|
|
1370 |
}
|
|
|
1371 |
|
|
|
1372 |
public void unsetWex() {
|
|
|
1373 |
this.wex = null;
|
|
|
1374 |
}
|
|
|
1375 |
|
| 3430 |
rajveer |
1376 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
1377 |
public boolean isSetWex() {
|
|
|
1378 |
return this.wex != null;
|
|
|
1379 |
}
|
|
|
1380 |
|
|
|
1381 |
public void setWexIsSet(boolean value) {
|
|
|
1382 |
if (!value) {
|
|
|
1383 |
this.wex = null;
|
|
|
1384 |
}
|
|
|
1385 |
}
|
|
|
1386 |
|
|
|
1387 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1388 |
switch (field) {
|
|
|
1389 |
case SUCCESS:
|
|
|
1390 |
if (value == null) {
|
|
|
1391 |
unsetSuccess();
|
|
|
1392 |
} else {
|
|
|
1393 |
setSuccess((Long)value);
|
|
|
1394 |
}
|
|
|
1395 |
break;
|
|
|
1396 |
|
|
|
1397 |
case WEX:
|
|
|
1398 |
if (value == null) {
|
|
|
1399 |
unsetWex();
|
|
|
1400 |
} else {
|
|
|
1401 |
setWex((WarehouseServiceException)value);
|
|
|
1402 |
}
|
|
|
1403 |
break;
|
|
|
1404 |
|
|
|
1405 |
}
|
|
|
1406 |
}
|
|
|
1407 |
|
|
|
1408 |
public Object getFieldValue(_Fields field) {
|
|
|
1409 |
switch (field) {
|
|
|
1410 |
case SUCCESS:
|
| 3430 |
rajveer |
1411 |
return Long.valueOf(getSuccess());
|
| 2820 |
chandransh |
1412 |
|
|
|
1413 |
case WEX:
|
|
|
1414 |
return getWex();
|
|
|
1415 |
|
|
|
1416 |
}
|
|
|
1417 |
throw new IllegalStateException();
|
|
|
1418 |
}
|
|
|
1419 |
|
| 3430 |
rajveer |
1420 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1421 |
public boolean isSet(_Fields field) {
|
|
|
1422 |
if (field == null) {
|
|
|
1423 |
throw new IllegalArgumentException();
|
|
|
1424 |
}
|
| 2820 |
chandransh |
1425 |
|
|
|
1426 |
switch (field) {
|
|
|
1427 |
case SUCCESS:
|
|
|
1428 |
return isSetSuccess();
|
|
|
1429 |
case WEX:
|
|
|
1430 |
return isSetWex();
|
|
|
1431 |
}
|
|
|
1432 |
throw new IllegalStateException();
|
|
|
1433 |
}
|
|
|
1434 |
|
|
|
1435 |
@Override
|
|
|
1436 |
public boolean equals(Object that) {
|
|
|
1437 |
if (that == null)
|
|
|
1438 |
return false;
|
|
|
1439 |
if (that instanceof createPurchaseOrder_result)
|
|
|
1440 |
return this.equals((createPurchaseOrder_result)that);
|
|
|
1441 |
return false;
|
|
|
1442 |
}
|
|
|
1443 |
|
|
|
1444 |
public boolean equals(createPurchaseOrder_result that) {
|
|
|
1445 |
if (that == null)
|
|
|
1446 |
return false;
|
|
|
1447 |
|
|
|
1448 |
boolean this_present_success = true;
|
|
|
1449 |
boolean that_present_success = true;
|
|
|
1450 |
if (this_present_success || that_present_success) {
|
|
|
1451 |
if (!(this_present_success && that_present_success))
|
|
|
1452 |
return false;
|
|
|
1453 |
if (this.success != that.success)
|
|
|
1454 |
return false;
|
|
|
1455 |
}
|
|
|
1456 |
|
|
|
1457 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
1458 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
1459 |
if (this_present_wex || that_present_wex) {
|
|
|
1460 |
if (!(this_present_wex && that_present_wex))
|
|
|
1461 |
return false;
|
|
|
1462 |
if (!this.wex.equals(that.wex))
|
|
|
1463 |
return false;
|
|
|
1464 |
}
|
|
|
1465 |
|
|
|
1466 |
return true;
|
|
|
1467 |
}
|
|
|
1468 |
|
|
|
1469 |
@Override
|
|
|
1470 |
public int hashCode() {
|
|
|
1471 |
return 0;
|
|
|
1472 |
}
|
|
|
1473 |
|
|
|
1474 |
public int compareTo(createPurchaseOrder_result other) {
|
|
|
1475 |
if (!getClass().equals(other.getClass())) {
|
|
|
1476 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1477 |
}
|
|
|
1478 |
|
|
|
1479 |
int lastComparison = 0;
|
|
|
1480 |
createPurchaseOrder_result typedOther = (createPurchaseOrder_result)other;
|
|
|
1481 |
|
| 3430 |
rajveer |
1482 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2820 |
chandransh |
1483 |
if (lastComparison != 0) {
|
|
|
1484 |
return lastComparison;
|
|
|
1485 |
}
|
| 3430 |
rajveer |
1486 |
if (isSetSuccess()) {
|
|
|
1487 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
1488 |
if (lastComparison != 0) {
|
|
|
1489 |
return lastComparison;
|
|
|
1490 |
}
|
| 2820 |
chandransh |
1491 |
}
|
| 3430 |
rajveer |
1492 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
1493 |
if (lastComparison != 0) {
|
|
|
1494 |
return lastComparison;
|
|
|
1495 |
}
|
| 3430 |
rajveer |
1496 |
if (isSetWex()) {
|
|
|
1497 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
1498 |
if (lastComparison != 0) {
|
|
|
1499 |
return lastComparison;
|
|
|
1500 |
}
|
| 2820 |
chandransh |
1501 |
}
|
|
|
1502 |
return 0;
|
|
|
1503 |
}
|
|
|
1504 |
|
| 3430 |
rajveer |
1505 |
public _Fields fieldForId(int fieldId) {
|
|
|
1506 |
return _Fields.findByThriftId(fieldId);
|
|
|
1507 |
}
|
|
|
1508 |
|
|
|
1509 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1510 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
1511 |
iprot.readStructBegin();
|
|
|
1512 |
while (true)
|
|
|
1513 |
{
|
|
|
1514 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1515 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
1516 |
break;
|
|
|
1517 |
}
|
| 3430 |
rajveer |
1518 |
switch (field.id) {
|
|
|
1519 |
case 0: // SUCCESS
|
|
|
1520 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1521 |
this.success = iprot.readI64();
|
|
|
1522 |
setSuccessIsSet(true);
|
|
|
1523 |
} else {
|
|
|
1524 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1525 |
}
|
|
|
1526 |
break;
|
|
|
1527 |
case 1: // WEX
|
|
|
1528 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
1529 |
this.wex = new WarehouseServiceException();
|
|
|
1530 |
this.wex.read(iprot);
|
|
|
1531 |
} else {
|
|
|
1532 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1533 |
}
|
|
|
1534 |
break;
|
|
|
1535 |
default:
|
|
|
1536 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
1537 |
}
|
| 3430 |
rajveer |
1538 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
1539 |
}
|
|
|
1540 |
iprot.readStructEnd();
|
|
|
1541 |
validate();
|
|
|
1542 |
}
|
|
|
1543 |
|
| 3430 |
rajveer |
1544 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
1545 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1546 |
|
|
|
1547 |
if (this.isSetSuccess()) {
|
|
|
1548 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
1549 |
oprot.writeI64(this.success);
|
|
|
1550 |
oprot.writeFieldEnd();
|
|
|
1551 |
} else if (this.isSetWex()) {
|
|
|
1552 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
1553 |
this.wex.write(oprot);
|
|
|
1554 |
oprot.writeFieldEnd();
|
|
|
1555 |
}
|
|
|
1556 |
oprot.writeFieldStop();
|
|
|
1557 |
oprot.writeStructEnd();
|
|
|
1558 |
}
|
|
|
1559 |
|
|
|
1560 |
@Override
|
|
|
1561 |
public String toString() {
|
|
|
1562 |
StringBuilder sb = new StringBuilder("createPurchaseOrder_result(");
|
|
|
1563 |
boolean first = true;
|
|
|
1564 |
|
|
|
1565 |
sb.append("success:");
|
|
|
1566 |
sb.append(this.success);
|
|
|
1567 |
first = false;
|
|
|
1568 |
if (!first) sb.append(", ");
|
|
|
1569 |
sb.append("wex:");
|
|
|
1570 |
if (this.wex == null) {
|
|
|
1571 |
sb.append("null");
|
|
|
1572 |
} else {
|
|
|
1573 |
sb.append(this.wex);
|
|
|
1574 |
}
|
|
|
1575 |
first = false;
|
|
|
1576 |
sb.append(")");
|
|
|
1577 |
return sb.toString();
|
|
|
1578 |
}
|
|
|
1579 |
|
| 3430 |
rajveer |
1580 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
1581 |
// check for required fields
|
|
|
1582 |
}
|
|
|
1583 |
|
| 3430 |
rajveer |
1584 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1585 |
try {
|
|
|
1586 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1587 |
} catch (org.apache.thrift.TException te) {
|
|
|
1588 |
throw new java.io.IOException(te);
|
|
|
1589 |
}
|
|
|
1590 |
}
|
|
|
1591 |
|
|
|
1592 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1593 |
try {
|
|
|
1594 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1595 |
} catch (org.apache.thrift.TException te) {
|
|
|
1596 |
throw new java.io.IOException(te);
|
|
|
1597 |
}
|
|
|
1598 |
}
|
|
|
1599 |
|
| 2820 |
chandransh |
1600 |
}
|
|
|
1601 |
|
| 3430 |
rajveer |
1602 |
public static class getPurchaseOrder_args implements org.apache.thrift.TBase<getPurchaseOrder_args, getPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
1603 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseOrder_args");
|
| 2820 |
chandransh |
1604 |
|
| 3430 |
rajveer |
1605 |
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 2820 |
chandransh |
1606 |
|
| 3430 |
rajveer |
1607 |
private long id; // required
|
| 2820 |
chandransh |
1608 |
|
|
|
1609 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1610 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2820 |
chandransh |
1611 |
ID((short)1, "id");
|
|
|
1612 |
|
|
|
1613 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1614 |
|
|
|
1615 |
static {
|
|
|
1616 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1617 |
byName.put(field.getFieldName(), field);
|
|
|
1618 |
}
|
|
|
1619 |
}
|
|
|
1620 |
|
|
|
1621 |
/**
|
|
|
1622 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1623 |
*/
|
|
|
1624 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1625 |
switch(fieldId) {
|
|
|
1626 |
case 1: // ID
|
|
|
1627 |
return ID;
|
|
|
1628 |
default:
|
|
|
1629 |
return null;
|
|
|
1630 |
}
|
| 2820 |
chandransh |
1631 |
}
|
|
|
1632 |
|
|
|
1633 |
/**
|
|
|
1634 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1635 |
* if it is not found.
|
|
|
1636 |
*/
|
|
|
1637 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1638 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1639 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1640 |
return fields;
|
|
|
1641 |
}
|
|
|
1642 |
|
|
|
1643 |
/**
|
|
|
1644 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1645 |
*/
|
|
|
1646 |
public static _Fields findByName(String name) {
|
|
|
1647 |
return byName.get(name);
|
|
|
1648 |
}
|
|
|
1649 |
|
|
|
1650 |
private final short _thriftId;
|
|
|
1651 |
private final String _fieldName;
|
|
|
1652 |
|
|
|
1653 |
_Fields(short thriftId, String fieldName) {
|
|
|
1654 |
_thriftId = thriftId;
|
|
|
1655 |
_fieldName = fieldName;
|
|
|
1656 |
}
|
|
|
1657 |
|
|
|
1658 |
public short getThriftFieldId() {
|
|
|
1659 |
return _thriftId;
|
|
|
1660 |
}
|
|
|
1661 |
|
|
|
1662 |
public String getFieldName() {
|
|
|
1663 |
return _fieldName;
|
|
|
1664 |
}
|
|
|
1665 |
}
|
|
|
1666 |
|
|
|
1667 |
// isset id assignments
|
|
|
1668 |
private static final int __ID_ISSET_ID = 0;
|
|
|
1669 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
1670 |
|
| 3430 |
rajveer |
1671 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
1672 |
static {
|
| 3430 |
rajveer |
1673 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1674 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1675 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
1676 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1677 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseOrder_args.class, metaDataMap);
|
| 2820 |
chandransh |
1678 |
}
|
|
|
1679 |
|
|
|
1680 |
public getPurchaseOrder_args() {
|
|
|
1681 |
}
|
|
|
1682 |
|
|
|
1683 |
public getPurchaseOrder_args(
|
|
|
1684 |
long id)
|
|
|
1685 |
{
|
|
|
1686 |
this();
|
|
|
1687 |
this.id = id;
|
|
|
1688 |
setIdIsSet(true);
|
|
|
1689 |
}
|
|
|
1690 |
|
|
|
1691 |
/**
|
|
|
1692 |
* Performs a deep copy on <i>other</i>.
|
|
|
1693 |
*/
|
|
|
1694 |
public getPurchaseOrder_args(getPurchaseOrder_args other) {
|
|
|
1695 |
__isset_bit_vector.clear();
|
|
|
1696 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
1697 |
this.id = other.id;
|
|
|
1698 |
}
|
|
|
1699 |
|
|
|
1700 |
public getPurchaseOrder_args deepCopy() {
|
|
|
1701 |
return new getPurchaseOrder_args(this);
|
|
|
1702 |
}
|
|
|
1703 |
|
| 3430 |
rajveer |
1704 |
@Override
|
|
|
1705 |
public void clear() {
|
|
|
1706 |
setIdIsSet(false);
|
|
|
1707 |
this.id = 0;
|
| 2820 |
chandransh |
1708 |
}
|
|
|
1709 |
|
|
|
1710 |
public long getId() {
|
|
|
1711 |
return this.id;
|
|
|
1712 |
}
|
|
|
1713 |
|
| 3430 |
rajveer |
1714 |
public void setId(long id) {
|
| 2820 |
chandransh |
1715 |
this.id = id;
|
|
|
1716 |
setIdIsSet(true);
|
|
|
1717 |
}
|
|
|
1718 |
|
|
|
1719 |
public void unsetId() {
|
|
|
1720 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
1721 |
}
|
|
|
1722 |
|
| 3430 |
rajveer |
1723 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
1724 |
public boolean isSetId() {
|
|
|
1725 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
1726 |
}
|
|
|
1727 |
|
|
|
1728 |
public void setIdIsSet(boolean value) {
|
|
|
1729 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
1730 |
}
|
|
|
1731 |
|
|
|
1732 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1733 |
switch (field) {
|
|
|
1734 |
case ID:
|
|
|
1735 |
if (value == null) {
|
|
|
1736 |
unsetId();
|
|
|
1737 |
} else {
|
|
|
1738 |
setId((Long)value);
|
|
|
1739 |
}
|
|
|
1740 |
break;
|
|
|
1741 |
|
|
|
1742 |
}
|
|
|
1743 |
}
|
|
|
1744 |
|
|
|
1745 |
public Object getFieldValue(_Fields field) {
|
|
|
1746 |
switch (field) {
|
|
|
1747 |
case ID:
|
| 3430 |
rajveer |
1748 |
return Long.valueOf(getId());
|
| 2820 |
chandransh |
1749 |
|
|
|
1750 |
}
|
|
|
1751 |
throw new IllegalStateException();
|
|
|
1752 |
}
|
|
|
1753 |
|
| 3430 |
rajveer |
1754 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1755 |
public boolean isSet(_Fields field) {
|
|
|
1756 |
if (field == null) {
|
|
|
1757 |
throw new IllegalArgumentException();
|
|
|
1758 |
}
|
| 2820 |
chandransh |
1759 |
|
|
|
1760 |
switch (field) {
|
|
|
1761 |
case ID:
|
|
|
1762 |
return isSetId();
|
|
|
1763 |
}
|
|
|
1764 |
throw new IllegalStateException();
|
|
|
1765 |
}
|
|
|
1766 |
|
|
|
1767 |
@Override
|
|
|
1768 |
public boolean equals(Object that) {
|
|
|
1769 |
if (that == null)
|
|
|
1770 |
return false;
|
|
|
1771 |
if (that instanceof getPurchaseOrder_args)
|
|
|
1772 |
return this.equals((getPurchaseOrder_args)that);
|
|
|
1773 |
return false;
|
|
|
1774 |
}
|
|
|
1775 |
|
|
|
1776 |
public boolean equals(getPurchaseOrder_args that) {
|
|
|
1777 |
if (that == null)
|
|
|
1778 |
return false;
|
|
|
1779 |
|
|
|
1780 |
boolean this_present_id = true;
|
|
|
1781 |
boolean that_present_id = true;
|
|
|
1782 |
if (this_present_id || that_present_id) {
|
|
|
1783 |
if (!(this_present_id && that_present_id))
|
|
|
1784 |
return false;
|
|
|
1785 |
if (this.id != that.id)
|
|
|
1786 |
return false;
|
|
|
1787 |
}
|
|
|
1788 |
|
|
|
1789 |
return true;
|
|
|
1790 |
}
|
|
|
1791 |
|
|
|
1792 |
@Override
|
|
|
1793 |
public int hashCode() {
|
|
|
1794 |
return 0;
|
|
|
1795 |
}
|
|
|
1796 |
|
|
|
1797 |
public int compareTo(getPurchaseOrder_args other) {
|
|
|
1798 |
if (!getClass().equals(other.getClass())) {
|
|
|
1799 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1800 |
}
|
|
|
1801 |
|
|
|
1802 |
int lastComparison = 0;
|
|
|
1803 |
getPurchaseOrder_args typedOther = (getPurchaseOrder_args)other;
|
|
|
1804 |
|
| 3430 |
rajveer |
1805 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
| 2820 |
chandransh |
1806 |
if (lastComparison != 0) {
|
|
|
1807 |
return lastComparison;
|
|
|
1808 |
}
|
| 3430 |
rajveer |
1809 |
if (isSetId()) {
|
|
|
1810 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
1811 |
if (lastComparison != 0) {
|
|
|
1812 |
return lastComparison;
|
|
|
1813 |
}
|
| 2820 |
chandransh |
1814 |
}
|
|
|
1815 |
return 0;
|
|
|
1816 |
}
|
|
|
1817 |
|
| 3430 |
rajveer |
1818 |
public _Fields fieldForId(int fieldId) {
|
|
|
1819 |
return _Fields.findByThriftId(fieldId);
|
|
|
1820 |
}
|
|
|
1821 |
|
|
|
1822 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1823 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
1824 |
iprot.readStructBegin();
|
|
|
1825 |
while (true)
|
|
|
1826 |
{
|
|
|
1827 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1828 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
1829 |
break;
|
|
|
1830 |
}
|
| 3430 |
rajveer |
1831 |
switch (field.id) {
|
|
|
1832 |
case 1: // ID
|
|
|
1833 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1834 |
this.id = iprot.readI64();
|
|
|
1835 |
setIdIsSet(true);
|
|
|
1836 |
} else {
|
|
|
1837 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1838 |
}
|
|
|
1839 |
break;
|
|
|
1840 |
default:
|
|
|
1841 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
1842 |
}
|
| 3430 |
rajveer |
1843 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
1844 |
}
|
|
|
1845 |
iprot.readStructEnd();
|
|
|
1846 |
validate();
|
|
|
1847 |
}
|
|
|
1848 |
|
| 3430 |
rajveer |
1849 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
1850 |
validate();
|
|
|
1851 |
|
|
|
1852 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1853 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
1854 |
oprot.writeI64(this.id);
|
|
|
1855 |
oprot.writeFieldEnd();
|
|
|
1856 |
oprot.writeFieldStop();
|
|
|
1857 |
oprot.writeStructEnd();
|
|
|
1858 |
}
|
|
|
1859 |
|
|
|
1860 |
@Override
|
|
|
1861 |
public String toString() {
|
|
|
1862 |
StringBuilder sb = new StringBuilder("getPurchaseOrder_args(");
|
|
|
1863 |
boolean first = true;
|
|
|
1864 |
|
|
|
1865 |
sb.append("id:");
|
|
|
1866 |
sb.append(this.id);
|
|
|
1867 |
first = false;
|
|
|
1868 |
sb.append(")");
|
|
|
1869 |
return sb.toString();
|
|
|
1870 |
}
|
|
|
1871 |
|
| 3430 |
rajveer |
1872 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
1873 |
// check for required fields
|
|
|
1874 |
}
|
|
|
1875 |
|
| 3430 |
rajveer |
1876 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1877 |
try {
|
|
|
1878 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1879 |
} catch (org.apache.thrift.TException te) {
|
|
|
1880 |
throw new java.io.IOException(te);
|
|
|
1881 |
}
|
|
|
1882 |
}
|
|
|
1883 |
|
|
|
1884 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1885 |
try {
|
|
|
1886 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1887 |
} catch (org.apache.thrift.TException te) {
|
|
|
1888 |
throw new java.io.IOException(te);
|
|
|
1889 |
}
|
|
|
1890 |
}
|
|
|
1891 |
|
| 2820 |
chandransh |
1892 |
}
|
|
|
1893 |
|
| 3430 |
rajveer |
1894 |
public static class getPurchaseOrder_result implements org.apache.thrift.TBase<getPurchaseOrder_result, getPurchaseOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
1895 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseOrder_result");
|
| 2820 |
chandransh |
1896 |
|
| 3430 |
rajveer |
1897 |
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);
|
|
|
1898 |
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 |
1899 |
|
| 3430 |
rajveer |
1900 |
private PurchaseOrder success; // required
|
|
|
1901 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
1902 |
|
|
|
1903 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1904 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2820 |
chandransh |
1905 |
SUCCESS((short)0, "success"),
|
|
|
1906 |
WEX((short)1, "wex");
|
|
|
1907 |
|
|
|
1908 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1909 |
|
|
|
1910 |
static {
|
|
|
1911 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1912 |
byName.put(field.getFieldName(), field);
|
|
|
1913 |
}
|
|
|
1914 |
}
|
|
|
1915 |
|
|
|
1916 |
/**
|
|
|
1917 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1918 |
*/
|
|
|
1919 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1920 |
switch(fieldId) {
|
|
|
1921 |
case 0: // SUCCESS
|
|
|
1922 |
return SUCCESS;
|
|
|
1923 |
case 1: // WEX
|
|
|
1924 |
return WEX;
|
|
|
1925 |
default:
|
|
|
1926 |
return null;
|
|
|
1927 |
}
|
| 2820 |
chandransh |
1928 |
}
|
|
|
1929 |
|
|
|
1930 |
/**
|
|
|
1931 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1932 |
* if it is not found.
|
|
|
1933 |
*/
|
|
|
1934 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1935 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1936 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1937 |
return fields;
|
|
|
1938 |
}
|
|
|
1939 |
|
|
|
1940 |
/**
|
|
|
1941 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1942 |
*/
|
|
|
1943 |
public static _Fields findByName(String name) {
|
|
|
1944 |
return byName.get(name);
|
|
|
1945 |
}
|
|
|
1946 |
|
|
|
1947 |
private final short _thriftId;
|
|
|
1948 |
private final String _fieldName;
|
|
|
1949 |
|
|
|
1950 |
_Fields(short thriftId, String fieldName) {
|
|
|
1951 |
_thriftId = thriftId;
|
|
|
1952 |
_fieldName = fieldName;
|
|
|
1953 |
}
|
|
|
1954 |
|
|
|
1955 |
public short getThriftFieldId() {
|
|
|
1956 |
return _thriftId;
|
|
|
1957 |
}
|
|
|
1958 |
|
|
|
1959 |
public String getFieldName() {
|
|
|
1960 |
return _fieldName;
|
|
|
1961 |
}
|
|
|
1962 |
}
|
|
|
1963 |
|
|
|
1964 |
// isset id assignments
|
|
|
1965 |
|
| 3430 |
rajveer |
1966 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
1967 |
static {
|
| 3430 |
rajveer |
1968 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1969 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1970 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PurchaseOrder.class)));
|
|
|
1971 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1972 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
1973 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1974 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseOrder_result.class, metaDataMap);
|
| 2820 |
chandransh |
1975 |
}
|
|
|
1976 |
|
|
|
1977 |
public getPurchaseOrder_result() {
|
|
|
1978 |
}
|
|
|
1979 |
|
|
|
1980 |
public getPurchaseOrder_result(
|
|
|
1981 |
PurchaseOrder success,
|
|
|
1982 |
WarehouseServiceException wex)
|
|
|
1983 |
{
|
|
|
1984 |
this();
|
|
|
1985 |
this.success = success;
|
|
|
1986 |
this.wex = wex;
|
|
|
1987 |
}
|
|
|
1988 |
|
|
|
1989 |
/**
|
|
|
1990 |
* Performs a deep copy on <i>other</i>.
|
|
|
1991 |
*/
|
|
|
1992 |
public getPurchaseOrder_result(getPurchaseOrder_result other) {
|
|
|
1993 |
if (other.isSetSuccess()) {
|
|
|
1994 |
this.success = new PurchaseOrder(other.success);
|
|
|
1995 |
}
|
|
|
1996 |
if (other.isSetWex()) {
|
|
|
1997 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
1998 |
}
|
|
|
1999 |
}
|
|
|
2000 |
|
|
|
2001 |
public getPurchaseOrder_result deepCopy() {
|
|
|
2002 |
return new getPurchaseOrder_result(this);
|
|
|
2003 |
}
|
|
|
2004 |
|
| 3430 |
rajveer |
2005 |
@Override
|
|
|
2006 |
public void clear() {
|
|
|
2007 |
this.success = null;
|
|
|
2008 |
this.wex = null;
|
| 2820 |
chandransh |
2009 |
}
|
|
|
2010 |
|
|
|
2011 |
public PurchaseOrder getSuccess() {
|
|
|
2012 |
return this.success;
|
|
|
2013 |
}
|
|
|
2014 |
|
| 3430 |
rajveer |
2015 |
public void setSuccess(PurchaseOrder success) {
|
| 2820 |
chandransh |
2016 |
this.success = success;
|
|
|
2017 |
}
|
|
|
2018 |
|
|
|
2019 |
public void unsetSuccess() {
|
|
|
2020 |
this.success = null;
|
|
|
2021 |
}
|
|
|
2022 |
|
| 3430 |
rajveer |
2023 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
2024 |
public boolean isSetSuccess() {
|
|
|
2025 |
return this.success != null;
|
|
|
2026 |
}
|
|
|
2027 |
|
|
|
2028 |
public void setSuccessIsSet(boolean value) {
|
|
|
2029 |
if (!value) {
|
|
|
2030 |
this.success = null;
|
|
|
2031 |
}
|
|
|
2032 |
}
|
|
|
2033 |
|
|
|
2034 |
public WarehouseServiceException getWex() {
|
|
|
2035 |
return this.wex;
|
|
|
2036 |
}
|
|
|
2037 |
|
| 3430 |
rajveer |
2038 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
2039 |
this.wex = wex;
|
|
|
2040 |
}
|
|
|
2041 |
|
|
|
2042 |
public void unsetWex() {
|
|
|
2043 |
this.wex = null;
|
|
|
2044 |
}
|
|
|
2045 |
|
| 3430 |
rajveer |
2046 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
2047 |
public boolean isSetWex() {
|
|
|
2048 |
return this.wex != null;
|
|
|
2049 |
}
|
|
|
2050 |
|
|
|
2051 |
public void setWexIsSet(boolean value) {
|
|
|
2052 |
if (!value) {
|
|
|
2053 |
this.wex = null;
|
|
|
2054 |
}
|
|
|
2055 |
}
|
|
|
2056 |
|
|
|
2057 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2058 |
switch (field) {
|
|
|
2059 |
case SUCCESS:
|
|
|
2060 |
if (value == null) {
|
|
|
2061 |
unsetSuccess();
|
|
|
2062 |
} else {
|
|
|
2063 |
setSuccess((PurchaseOrder)value);
|
|
|
2064 |
}
|
|
|
2065 |
break;
|
|
|
2066 |
|
|
|
2067 |
case WEX:
|
|
|
2068 |
if (value == null) {
|
|
|
2069 |
unsetWex();
|
|
|
2070 |
} else {
|
|
|
2071 |
setWex((WarehouseServiceException)value);
|
|
|
2072 |
}
|
|
|
2073 |
break;
|
|
|
2074 |
|
|
|
2075 |
}
|
|
|
2076 |
}
|
|
|
2077 |
|
|
|
2078 |
public Object getFieldValue(_Fields field) {
|
|
|
2079 |
switch (field) {
|
|
|
2080 |
case SUCCESS:
|
|
|
2081 |
return getSuccess();
|
|
|
2082 |
|
|
|
2083 |
case WEX:
|
|
|
2084 |
return getWex();
|
|
|
2085 |
|
|
|
2086 |
}
|
|
|
2087 |
throw new IllegalStateException();
|
|
|
2088 |
}
|
|
|
2089 |
|
| 3430 |
rajveer |
2090 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2091 |
public boolean isSet(_Fields field) {
|
|
|
2092 |
if (field == null) {
|
|
|
2093 |
throw new IllegalArgumentException();
|
|
|
2094 |
}
|
| 2820 |
chandransh |
2095 |
|
|
|
2096 |
switch (field) {
|
|
|
2097 |
case SUCCESS:
|
|
|
2098 |
return isSetSuccess();
|
|
|
2099 |
case WEX:
|
|
|
2100 |
return isSetWex();
|
|
|
2101 |
}
|
|
|
2102 |
throw new IllegalStateException();
|
|
|
2103 |
}
|
|
|
2104 |
|
|
|
2105 |
@Override
|
|
|
2106 |
public boolean equals(Object that) {
|
|
|
2107 |
if (that == null)
|
|
|
2108 |
return false;
|
|
|
2109 |
if (that instanceof getPurchaseOrder_result)
|
|
|
2110 |
return this.equals((getPurchaseOrder_result)that);
|
|
|
2111 |
return false;
|
|
|
2112 |
}
|
|
|
2113 |
|
|
|
2114 |
public boolean equals(getPurchaseOrder_result that) {
|
|
|
2115 |
if (that == null)
|
|
|
2116 |
return false;
|
|
|
2117 |
|
|
|
2118 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
2119 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
2120 |
if (this_present_success || that_present_success) {
|
|
|
2121 |
if (!(this_present_success && that_present_success))
|
|
|
2122 |
return false;
|
|
|
2123 |
if (!this.success.equals(that.success))
|
|
|
2124 |
return false;
|
|
|
2125 |
}
|
|
|
2126 |
|
|
|
2127 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
2128 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
2129 |
if (this_present_wex || that_present_wex) {
|
|
|
2130 |
if (!(this_present_wex && that_present_wex))
|
|
|
2131 |
return false;
|
|
|
2132 |
if (!this.wex.equals(that.wex))
|
|
|
2133 |
return false;
|
|
|
2134 |
}
|
|
|
2135 |
|
|
|
2136 |
return true;
|
|
|
2137 |
}
|
|
|
2138 |
|
|
|
2139 |
@Override
|
|
|
2140 |
public int hashCode() {
|
|
|
2141 |
return 0;
|
|
|
2142 |
}
|
|
|
2143 |
|
|
|
2144 |
public int compareTo(getPurchaseOrder_result other) {
|
|
|
2145 |
if (!getClass().equals(other.getClass())) {
|
|
|
2146 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2147 |
}
|
|
|
2148 |
|
|
|
2149 |
int lastComparison = 0;
|
|
|
2150 |
getPurchaseOrder_result typedOther = (getPurchaseOrder_result)other;
|
|
|
2151 |
|
| 3430 |
rajveer |
2152 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2820 |
chandransh |
2153 |
if (lastComparison != 0) {
|
|
|
2154 |
return lastComparison;
|
|
|
2155 |
}
|
| 3430 |
rajveer |
2156 |
if (isSetSuccess()) {
|
|
|
2157 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
2158 |
if (lastComparison != 0) {
|
|
|
2159 |
return lastComparison;
|
|
|
2160 |
}
|
| 2820 |
chandransh |
2161 |
}
|
| 3430 |
rajveer |
2162 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
2163 |
if (lastComparison != 0) {
|
|
|
2164 |
return lastComparison;
|
|
|
2165 |
}
|
| 3430 |
rajveer |
2166 |
if (isSetWex()) {
|
|
|
2167 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
2168 |
if (lastComparison != 0) {
|
|
|
2169 |
return lastComparison;
|
|
|
2170 |
}
|
| 2820 |
chandransh |
2171 |
}
|
|
|
2172 |
return 0;
|
|
|
2173 |
}
|
|
|
2174 |
|
| 3430 |
rajveer |
2175 |
public _Fields fieldForId(int fieldId) {
|
|
|
2176 |
return _Fields.findByThriftId(fieldId);
|
|
|
2177 |
}
|
|
|
2178 |
|
|
|
2179 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2180 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
2181 |
iprot.readStructBegin();
|
|
|
2182 |
while (true)
|
|
|
2183 |
{
|
|
|
2184 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2185 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
2186 |
break;
|
|
|
2187 |
}
|
| 3430 |
rajveer |
2188 |
switch (field.id) {
|
|
|
2189 |
case 0: // SUCCESS
|
|
|
2190 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2191 |
this.success = new PurchaseOrder();
|
|
|
2192 |
this.success.read(iprot);
|
|
|
2193 |
} else {
|
|
|
2194 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2195 |
}
|
|
|
2196 |
break;
|
|
|
2197 |
case 1: // WEX
|
|
|
2198 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2199 |
this.wex = new WarehouseServiceException();
|
|
|
2200 |
this.wex.read(iprot);
|
|
|
2201 |
} else {
|
|
|
2202 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2203 |
}
|
|
|
2204 |
break;
|
|
|
2205 |
default:
|
|
|
2206 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
2207 |
}
|
| 3430 |
rajveer |
2208 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
2209 |
}
|
|
|
2210 |
iprot.readStructEnd();
|
|
|
2211 |
validate();
|
|
|
2212 |
}
|
|
|
2213 |
|
| 3430 |
rajveer |
2214 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
2215 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2216 |
|
|
|
2217 |
if (this.isSetSuccess()) {
|
|
|
2218 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
2219 |
this.success.write(oprot);
|
|
|
2220 |
oprot.writeFieldEnd();
|
|
|
2221 |
} else if (this.isSetWex()) {
|
|
|
2222 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
2223 |
this.wex.write(oprot);
|
|
|
2224 |
oprot.writeFieldEnd();
|
|
|
2225 |
}
|
|
|
2226 |
oprot.writeFieldStop();
|
|
|
2227 |
oprot.writeStructEnd();
|
|
|
2228 |
}
|
|
|
2229 |
|
|
|
2230 |
@Override
|
|
|
2231 |
public String toString() {
|
|
|
2232 |
StringBuilder sb = new StringBuilder("getPurchaseOrder_result(");
|
|
|
2233 |
boolean first = true;
|
|
|
2234 |
|
|
|
2235 |
sb.append("success:");
|
|
|
2236 |
if (this.success == null) {
|
|
|
2237 |
sb.append("null");
|
|
|
2238 |
} else {
|
|
|
2239 |
sb.append(this.success);
|
|
|
2240 |
}
|
|
|
2241 |
first = false;
|
|
|
2242 |
if (!first) sb.append(", ");
|
|
|
2243 |
sb.append("wex:");
|
|
|
2244 |
if (this.wex == null) {
|
|
|
2245 |
sb.append("null");
|
|
|
2246 |
} else {
|
|
|
2247 |
sb.append(this.wex);
|
|
|
2248 |
}
|
|
|
2249 |
first = false;
|
|
|
2250 |
sb.append(")");
|
|
|
2251 |
return sb.toString();
|
|
|
2252 |
}
|
|
|
2253 |
|
| 3430 |
rajveer |
2254 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
2255 |
// check for required fields
|
|
|
2256 |
}
|
|
|
2257 |
|
| 3430 |
rajveer |
2258 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2259 |
try {
|
|
|
2260 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2261 |
} catch (org.apache.thrift.TException te) {
|
|
|
2262 |
throw new java.io.IOException(te);
|
|
|
2263 |
}
|
|
|
2264 |
}
|
|
|
2265 |
|
|
|
2266 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2267 |
try {
|
|
|
2268 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2269 |
} catch (org.apache.thrift.TException te) {
|
|
|
2270 |
throw new java.io.IOException(te);
|
|
|
2271 |
}
|
|
|
2272 |
}
|
|
|
2273 |
|
| 2820 |
chandransh |
2274 |
}
|
|
|
2275 |
|
| 3430 |
rajveer |
2276 |
public static class getAllPurchaseOrders_args implements org.apache.thrift.TBase<getAllPurchaseOrders_args, getAllPurchaseOrders_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2277 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPurchaseOrders_args");
|
| 3383 |
chandransh |
2278 |
|
| 3430 |
rajveer |
2279 |
private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)1);
|
| 3383 |
chandransh |
2280 |
|
| 3430 |
rajveer |
2281 |
private POStatus status; // required
|
| 3383 |
chandransh |
2282 |
|
|
|
2283 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2284 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3383 |
chandransh |
2285 |
/**
|
|
|
2286 |
*
|
|
|
2287 |
* @see POStatus
|
|
|
2288 |
*/
|
|
|
2289 |
STATUS((short)1, "status");
|
|
|
2290 |
|
|
|
2291 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2292 |
|
|
|
2293 |
static {
|
|
|
2294 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2295 |
byName.put(field.getFieldName(), field);
|
|
|
2296 |
}
|
|
|
2297 |
}
|
|
|
2298 |
|
|
|
2299 |
/**
|
|
|
2300 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2301 |
*/
|
|
|
2302 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2303 |
switch(fieldId) {
|
|
|
2304 |
case 1: // STATUS
|
|
|
2305 |
return STATUS;
|
|
|
2306 |
default:
|
|
|
2307 |
return null;
|
|
|
2308 |
}
|
| 3383 |
chandransh |
2309 |
}
|
|
|
2310 |
|
|
|
2311 |
/**
|
|
|
2312 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2313 |
* if it is not found.
|
|
|
2314 |
*/
|
|
|
2315 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2316 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2317 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2318 |
return fields;
|
|
|
2319 |
}
|
|
|
2320 |
|
|
|
2321 |
/**
|
|
|
2322 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2323 |
*/
|
|
|
2324 |
public static _Fields findByName(String name) {
|
|
|
2325 |
return byName.get(name);
|
|
|
2326 |
}
|
|
|
2327 |
|
|
|
2328 |
private final short _thriftId;
|
|
|
2329 |
private final String _fieldName;
|
|
|
2330 |
|
|
|
2331 |
_Fields(short thriftId, String fieldName) {
|
|
|
2332 |
_thriftId = thriftId;
|
|
|
2333 |
_fieldName = fieldName;
|
|
|
2334 |
}
|
|
|
2335 |
|
|
|
2336 |
public short getThriftFieldId() {
|
|
|
2337 |
return _thriftId;
|
|
|
2338 |
}
|
|
|
2339 |
|
|
|
2340 |
public String getFieldName() {
|
|
|
2341 |
return _fieldName;
|
|
|
2342 |
}
|
|
|
2343 |
}
|
|
|
2344 |
|
|
|
2345 |
// isset id assignments
|
|
|
2346 |
|
| 3430 |
rajveer |
2347 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
2348 |
static {
|
| 3430 |
rajveer |
2349 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2350 |
tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2351 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, POStatus.class)));
|
|
|
2352 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2353 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPurchaseOrders_args.class, metaDataMap);
|
| 3383 |
chandransh |
2354 |
}
|
|
|
2355 |
|
|
|
2356 |
public getAllPurchaseOrders_args() {
|
|
|
2357 |
}
|
|
|
2358 |
|
|
|
2359 |
public getAllPurchaseOrders_args(
|
|
|
2360 |
POStatus status)
|
|
|
2361 |
{
|
|
|
2362 |
this();
|
|
|
2363 |
this.status = status;
|
|
|
2364 |
}
|
|
|
2365 |
|
|
|
2366 |
/**
|
|
|
2367 |
* Performs a deep copy on <i>other</i>.
|
|
|
2368 |
*/
|
|
|
2369 |
public getAllPurchaseOrders_args(getAllPurchaseOrders_args other) {
|
|
|
2370 |
if (other.isSetStatus()) {
|
|
|
2371 |
this.status = other.status;
|
|
|
2372 |
}
|
|
|
2373 |
}
|
|
|
2374 |
|
|
|
2375 |
public getAllPurchaseOrders_args deepCopy() {
|
|
|
2376 |
return new getAllPurchaseOrders_args(this);
|
|
|
2377 |
}
|
|
|
2378 |
|
| 3430 |
rajveer |
2379 |
@Override
|
|
|
2380 |
public void clear() {
|
|
|
2381 |
this.status = null;
|
| 3383 |
chandransh |
2382 |
}
|
|
|
2383 |
|
|
|
2384 |
/**
|
|
|
2385 |
*
|
|
|
2386 |
* @see POStatus
|
|
|
2387 |
*/
|
|
|
2388 |
public POStatus getStatus() {
|
|
|
2389 |
return this.status;
|
|
|
2390 |
}
|
|
|
2391 |
|
|
|
2392 |
/**
|
|
|
2393 |
*
|
|
|
2394 |
* @see POStatus
|
|
|
2395 |
*/
|
| 3430 |
rajveer |
2396 |
public void setStatus(POStatus status) {
|
| 3383 |
chandransh |
2397 |
this.status = status;
|
|
|
2398 |
}
|
|
|
2399 |
|
|
|
2400 |
public void unsetStatus() {
|
|
|
2401 |
this.status = null;
|
|
|
2402 |
}
|
|
|
2403 |
|
| 3430 |
rajveer |
2404 |
/** Returns true if field status is set (has been assigned a value) and false otherwise */
|
| 3383 |
chandransh |
2405 |
public boolean isSetStatus() {
|
|
|
2406 |
return this.status != null;
|
|
|
2407 |
}
|
|
|
2408 |
|
|
|
2409 |
public void setStatusIsSet(boolean value) {
|
|
|
2410 |
if (!value) {
|
|
|
2411 |
this.status = null;
|
|
|
2412 |
}
|
|
|
2413 |
}
|
|
|
2414 |
|
|
|
2415 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2416 |
switch (field) {
|
|
|
2417 |
case STATUS:
|
|
|
2418 |
if (value == null) {
|
|
|
2419 |
unsetStatus();
|
|
|
2420 |
} else {
|
|
|
2421 |
setStatus((POStatus)value);
|
|
|
2422 |
}
|
|
|
2423 |
break;
|
|
|
2424 |
|
|
|
2425 |
}
|
|
|
2426 |
}
|
|
|
2427 |
|
|
|
2428 |
public Object getFieldValue(_Fields field) {
|
|
|
2429 |
switch (field) {
|
|
|
2430 |
case STATUS:
|
|
|
2431 |
return getStatus();
|
|
|
2432 |
|
|
|
2433 |
}
|
|
|
2434 |
throw new IllegalStateException();
|
|
|
2435 |
}
|
|
|
2436 |
|
| 3430 |
rajveer |
2437 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2438 |
public boolean isSet(_Fields field) {
|
|
|
2439 |
if (field == null) {
|
|
|
2440 |
throw new IllegalArgumentException();
|
|
|
2441 |
}
|
| 3383 |
chandransh |
2442 |
|
|
|
2443 |
switch (field) {
|
|
|
2444 |
case STATUS:
|
|
|
2445 |
return isSetStatus();
|
|
|
2446 |
}
|
|
|
2447 |
throw new IllegalStateException();
|
|
|
2448 |
}
|
|
|
2449 |
|
|
|
2450 |
@Override
|
|
|
2451 |
public boolean equals(Object that) {
|
|
|
2452 |
if (that == null)
|
|
|
2453 |
return false;
|
|
|
2454 |
if (that instanceof getAllPurchaseOrders_args)
|
|
|
2455 |
return this.equals((getAllPurchaseOrders_args)that);
|
|
|
2456 |
return false;
|
|
|
2457 |
}
|
|
|
2458 |
|
|
|
2459 |
public boolean equals(getAllPurchaseOrders_args that) {
|
|
|
2460 |
if (that == null)
|
|
|
2461 |
return false;
|
|
|
2462 |
|
|
|
2463 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
2464 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
2465 |
if (this_present_status || that_present_status) {
|
|
|
2466 |
if (!(this_present_status && that_present_status))
|
|
|
2467 |
return false;
|
|
|
2468 |
if (!this.status.equals(that.status))
|
|
|
2469 |
return false;
|
|
|
2470 |
}
|
|
|
2471 |
|
|
|
2472 |
return true;
|
|
|
2473 |
}
|
|
|
2474 |
|
|
|
2475 |
@Override
|
|
|
2476 |
public int hashCode() {
|
|
|
2477 |
return 0;
|
|
|
2478 |
}
|
|
|
2479 |
|
|
|
2480 |
public int compareTo(getAllPurchaseOrders_args other) {
|
|
|
2481 |
if (!getClass().equals(other.getClass())) {
|
|
|
2482 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2483 |
}
|
|
|
2484 |
|
|
|
2485 |
int lastComparison = 0;
|
|
|
2486 |
getAllPurchaseOrders_args typedOther = (getAllPurchaseOrders_args)other;
|
|
|
2487 |
|
| 3430 |
rajveer |
2488 |
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
|
| 3383 |
chandransh |
2489 |
if (lastComparison != 0) {
|
|
|
2490 |
return lastComparison;
|
|
|
2491 |
}
|
| 3430 |
rajveer |
2492 |
if (isSetStatus()) {
|
|
|
2493 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
|
|
|
2494 |
if (lastComparison != 0) {
|
|
|
2495 |
return lastComparison;
|
|
|
2496 |
}
|
| 3383 |
chandransh |
2497 |
}
|
|
|
2498 |
return 0;
|
|
|
2499 |
}
|
|
|
2500 |
|
| 3430 |
rajveer |
2501 |
public _Fields fieldForId(int fieldId) {
|
|
|
2502 |
return _Fields.findByThriftId(fieldId);
|
|
|
2503 |
}
|
|
|
2504 |
|
|
|
2505 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2506 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
2507 |
iprot.readStructBegin();
|
|
|
2508 |
while (true)
|
|
|
2509 |
{
|
|
|
2510 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2511 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
2512 |
break;
|
|
|
2513 |
}
|
| 3430 |
rajveer |
2514 |
switch (field.id) {
|
|
|
2515 |
case 1: // STATUS
|
|
|
2516 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
2517 |
this.status = POStatus.findByValue(iprot.readI32());
|
|
|
2518 |
} else {
|
|
|
2519 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2520 |
}
|
|
|
2521 |
break;
|
|
|
2522 |
default:
|
|
|
2523 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
2524 |
}
|
| 3430 |
rajveer |
2525 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
2526 |
}
|
|
|
2527 |
iprot.readStructEnd();
|
|
|
2528 |
validate();
|
|
|
2529 |
}
|
|
|
2530 |
|
| 3430 |
rajveer |
2531 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
2532 |
validate();
|
|
|
2533 |
|
|
|
2534 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2535 |
if (this.status != null) {
|
|
|
2536 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
2537 |
oprot.writeI32(this.status.getValue());
|
|
|
2538 |
oprot.writeFieldEnd();
|
|
|
2539 |
}
|
|
|
2540 |
oprot.writeFieldStop();
|
|
|
2541 |
oprot.writeStructEnd();
|
|
|
2542 |
}
|
|
|
2543 |
|
|
|
2544 |
@Override
|
|
|
2545 |
public String toString() {
|
|
|
2546 |
StringBuilder sb = new StringBuilder("getAllPurchaseOrders_args(");
|
|
|
2547 |
boolean first = true;
|
|
|
2548 |
|
|
|
2549 |
sb.append("status:");
|
|
|
2550 |
if (this.status == null) {
|
|
|
2551 |
sb.append("null");
|
|
|
2552 |
} else {
|
|
|
2553 |
sb.append(this.status);
|
|
|
2554 |
}
|
|
|
2555 |
first = false;
|
|
|
2556 |
sb.append(")");
|
|
|
2557 |
return sb.toString();
|
|
|
2558 |
}
|
|
|
2559 |
|
| 3430 |
rajveer |
2560 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
2561 |
// check for required fields
|
|
|
2562 |
}
|
|
|
2563 |
|
| 3430 |
rajveer |
2564 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2565 |
try {
|
|
|
2566 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2567 |
} catch (org.apache.thrift.TException te) {
|
|
|
2568 |
throw new java.io.IOException(te);
|
|
|
2569 |
}
|
|
|
2570 |
}
|
|
|
2571 |
|
|
|
2572 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2573 |
try {
|
|
|
2574 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2575 |
} catch (org.apache.thrift.TException te) {
|
|
|
2576 |
throw new java.io.IOException(te);
|
|
|
2577 |
}
|
|
|
2578 |
}
|
|
|
2579 |
|
| 3383 |
chandransh |
2580 |
}
|
|
|
2581 |
|
| 3430 |
rajveer |
2582 |
public static class getAllPurchaseOrders_result implements org.apache.thrift.TBase<getAllPurchaseOrders_result, getAllPurchaseOrders_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
2583 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPurchaseOrders_result");
|
| 3383 |
chandransh |
2584 |
|
| 3430 |
rajveer |
2585 |
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);
|
|
|
2586 |
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 |
2587 |
|
| 3430 |
rajveer |
2588 |
private List<PurchaseOrder> success; // required
|
|
|
2589 |
private WarehouseServiceException wex; // required
|
| 3383 |
chandransh |
2590 |
|
|
|
2591 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2592 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3383 |
chandransh |
2593 |
SUCCESS((short)0, "success"),
|
|
|
2594 |
WEX((short)1, "wex");
|
|
|
2595 |
|
|
|
2596 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2597 |
|
|
|
2598 |
static {
|
|
|
2599 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2600 |
byName.put(field.getFieldName(), field);
|
|
|
2601 |
}
|
|
|
2602 |
}
|
|
|
2603 |
|
|
|
2604 |
/**
|
|
|
2605 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2606 |
*/
|
|
|
2607 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2608 |
switch(fieldId) {
|
|
|
2609 |
case 0: // SUCCESS
|
|
|
2610 |
return SUCCESS;
|
|
|
2611 |
case 1: // WEX
|
|
|
2612 |
return WEX;
|
|
|
2613 |
default:
|
|
|
2614 |
return null;
|
|
|
2615 |
}
|
| 3383 |
chandransh |
2616 |
}
|
|
|
2617 |
|
|
|
2618 |
/**
|
|
|
2619 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2620 |
* if it is not found.
|
|
|
2621 |
*/
|
|
|
2622 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2623 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2624 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2625 |
return fields;
|
|
|
2626 |
}
|
|
|
2627 |
|
|
|
2628 |
/**
|
|
|
2629 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2630 |
*/
|
|
|
2631 |
public static _Fields findByName(String name) {
|
|
|
2632 |
return byName.get(name);
|
|
|
2633 |
}
|
|
|
2634 |
|
|
|
2635 |
private final short _thriftId;
|
|
|
2636 |
private final String _fieldName;
|
|
|
2637 |
|
|
|
2638 |
_Fields(short thriftId, String fieldName) {
|
|
|
2639 |
_thriftId = thriftId;
|
|
|
2640 |
_fieldName = fieldName;
|
|
|
2641 |
}
|
|
|
2642 |
|
|
|
2643 |
public short getThriftFieldId() {
|
|
|
2644 |
return _thriftId;
|
|
|
2645 |
}
|
|
|
2646 |
|
|
|
2647 |
public String getFieldName() {
|
|
|
2648 |
return _fieldName;
|
|
|
2649 |
}
|
|
|
2650 |
}
|
|
|
2651 |
|
|
|
2652 |
// isset id assignments
|
|
|
2653 |
|
| 3430 |
rajveer |
2654 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
2655 |
static {
|
| 3430 |
rajveer |
2656 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2657 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2658 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
2659 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PurchaseOrder.class))));
|
|
|
2660 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2661 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
2662 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2663 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPurchaseOrders_result.class, metaDataMap);
|
| 3383 |
chandransh |
2664 |
}
|
|
|
2665 |
|
|
|
2666 |
public getAllPurchaseOrders_result() {
|
|
|
2667 |
}
|
|
|
2668 |
|
|
|
2669 |
public getAllPurchaseOrders_result(
|
|
|
2670 |
List<PurchaseOrder> success,
|
|
|
2671 |
WarehouseServiceException wex)
|
|
|
2672 |
{
|
|
|
2673 |
this();
|
|
|
2674 |
this.success = success;
|
|
|
2675 |
this.wex = wex;
|
|
|
2676 |
}
|
|
|
2677 |
|
|
|
2678 |
/**
|
|
|
2679 |
* Performs a deep copy on <i>other</i>.
|
|
|
2680 |
*/
|
|
|
2681 |
public getAllPurchaseOrders_result(getAllPurchaseOrders_result other) {
|
|
|
2682 |
if (other.isSetSuccess()) {
|
|
|
2683 |
List<PurchaseOrder> __this__success = new ArrayList<PurchaseOrder>();
|
|
|
2684 |
for (PurchaseOrder other_element : other.success) {
|
|
|
2685 |
__this__success.add(new PurchaseOrder(other_element));
|
|
|
2686 |
}
|
|
|
2687 |
this.success = __this__success;
|
|
|
2688 |
}
|
|
|
2689 |
if (other.isSetWex()) {
|
|
|
2690 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
2691 |
}
|
|
|
2692 |
}
|
|
|
2693 |
|
|
|
2694 |
public getAllPurchaseOrders_result deepCopy() {
|
|
|
2695 |
return new getAllPurchaseOrders_result(this);
|
|
|
2696 |
}
|
|
|
2697 |
|
| 3430 |
rajveer |
2698 |
@Override
|
|
|
2699 |
public void clear() {
|
|
|
2700 |
this.success = null;
|
|
|
2701 |
this.wex = null;
|
| 3383 |
chandransh |
2702 |
}
|
|
|
2703 |
|
|
|
2704 |
public int getSuccessSize() {
|
|
|
2705 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
2706 |
}
|
|
|
2707 |
|
|
|
2708 |
public java.util.Iterator<PurchaseOrder> getSuccessIterator() {
|
|
|
2709 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
2710 |
}
|
|
|
2711 |
|
|
|
2712 |
public void addToSuccess(PurchaseOrder elem) {
|
|
|
2713 |
if (this.success == null) {
|
|
|
2714 |
this.success = new ArrayList<PurchaseOrder>();
|
|
|
2715 |
}
|
|
|
2716 |
this.success.add(elem);
|
|
|
2717 |
}
|
|
|
2718 |
|
|
|
2719 |
public List<PurchaseOrder> getSuccess() {
|
|
|
2720 |
return this.success;
|
|
|
2721 |
}
|
|
|
2722 |
|
| 3430 |
rajveer |
2723 |
public void setSuccess(List<PurchaseOrder> success) {
|
| 3383 |
chandransh |
2724 |
this.success = success;
|
|
|
2725 |
}
|
|
|
2726 |
|
|
|
2727 |
public void unsetSuccess() {
|
|
|
2728 |
this.success = null;
|
|
|
2729 |
}
|
|
|
2730 |
|
| 3430 |
rajveer |
2731 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 3383 |
chandransh |
2732 |
public boolean isSetSuccess() {
|
|
|
2733 |
return this.success != null;
|
|
|
2734 |
}
|
|
|
2735 |
|
|
|
2736 |
public void setSuccessIsSet(boolean value) {
|
|
|
2737 |
if (!value) {
|
|
|
2738 |
this.success = null;
|
|
|
2739 |
}
|
|
|
2740 |
}
|
|
|
2741 |
|
|
|
2742 |
public WarehouseServiceException getWex() {
|
|
|
2743 |
return this.wex;
|
|
|
2744 |
}
|
|
|
2745 |
|
| 3430 |
rajveer |
2746 |
public void setWex(WarehouseServiceException wex) {
|
| 3383 |
chandransh |
2747 |
this.wex = wex;
|
|
|
2748 |
}
|
|
|
2749 |
|
|
|
2750 |
public void unsetWex() {
|
|
|
2751 |
this.wex = null;
|
|
|
2752 |
}
|
|
|
2753 |
|
| 3430 |
rajveer |
2754 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 3383 |
chandransh |
2755 |
public boolean isSetWex() {
|
|
|
2756 |
return this.wex != null;
|
|
|
2757 |
}
|
|
|
2758 |
|
|
|
2759 |
public void setWexIsSet(boolean value) {
|
|
|
2760 |
if (!value) {
|
|
|
2761 |
this.wex = null;
|
|
|
2762 |
}
|
|
|
2763 |
}
|
|
|
2764 |
|
|
|
2765 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2766 |
switch (field) {
|
|
|
2767 |
case SUCCESS:
|
|
|
2768 |
if (value == null) {
|
|
|
2769 |
unsetSuccess();
|
|
|
2770 |
} else {
|
|
|
2771 |
setSuccess((List<PurchaseOrder>)value);
|
|
|
2772 |
}
|
|
|
2773 |
break;
|
|
|
2774 |
|
|
|
2775 |
case WEX:
|
|
|
2776 |
if (value == null) {
|
|
|
2777 |
unsetWex();
|
|
|
2778 |
} else {
|
|
|
2779 |
setWex((WarehouseServiceException)value);
|
|
|
2780 |
}
|
|
|
2781 |
break;
|
|
|
2782 |
|
|
|
2783 |
}
|
|
|
2784 |
}
|
|
|
2785 |
|
|
|
2786 |
public Object getFieldValue(_Fields field) {
|
|
|
2787 |
switch (field) {
|
|
|
2788 |
case SUCCESS:
|
|
|
2789 |
return getSuccess();
|
|
|
2790 |
|
|
|
2791 |
case WEX:
|
|
|
2792 |
return getWex();
|
|
|
2793 |
|
|
|
2794 |
}
|
|
|
2795 |
throw new IllegalStateException();
|
|
|
2796 |
}
|
|
|
2797 |
|
| 3430 |
rajveer |
2798 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2799 |
public boolean isSet(_Fields field) {
|
|
|
2800 |
if (field == null) {
|
|
|
2801 |
throw new IllegalArgumentException();
|
|
|
2802 |
}
|
| 3383 |
chandransh |
2803 |
|
|
|
2804 |
switch (field) {
|
|
|
2805 |
case SUCCESS:
|
|
|
2806 |
return isSetSuccess();
|
|
|
2807 |
case WEX:
|
|
|
2808 |
return isSetWex();
|
|
|
2809 |
}
|
|
|
2810 |
throw new IllegalStateException();
|
|
|
2811 |
}
|
|
|
2812 |
|
|
|
2813 |
@Override
|
|
|
2814 |
public boolean equals(Object that) {
|
|
|
2815 |
if (that == null)
|
|
|
2816 |
return false;
|
|
|
2817 |
if (that instanceof getAllPurchaseOrders_result)
|
|
|
2818 |
return this.equals((getAllPurchaseOrders_result)that);
|
|
|
2819 |
return false;
|
|
|
2820 |
}
|
|
|
2821 |
|
|
|
2822 |
public boolean equals(getAllPurchaseOrders_result that) {
|
|
|
2823 |
if (that == null)
|
|
|
2824 |
return false;
|
|
|
2825 |
|
|
|
2826 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
2827 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
2828 |
if (this_present_success || that_present_success) {
|
|
|
2829 |
if (!(this_present_success && that_present_success))
|
|
|
2830 |
return false;
|
|
|
2831 |
if (!this.success.equals(that.success))
|
|
|
2832 |
return false;
|
|
|
2833 |
}
|
|
|
2834 |
|
|
|
2835 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
2836 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
2837 |
if (this_present_wex || that_present_wex) {
|
|
|
2838 |
if (!(this_present_wex && that_present_wex))
|
|
|
2839 |
return false;
|
|
|
2840 |
if (!this.wex.equals(that.wex))
|
|
|
2841 |
return false;
|
|
|
2842 |
}
|
|
|
2843 |
|
|
|
2844 |
return true;
|
|
|
2845 |
}
|
|
|
2846 |
|
|
|
2847 |
@Override
|
|
|
2848 |
public int hashCode() {
|
|
|
2849 |
return 0;
|
|
|
2850 |
}
|
|
|
2851 |
|
|
|
2852 |
public int compareTo(getAllPurchaseOrders_result other) {
|
|
|
2853 |
if (!getClass().equals(other.getClass())) {
|
|
|
2854 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2855 |
}
|
|
|
2856 |
|
|
|
2857 |
int lastComparison = 0;
|
|
|
2858 |
getAllPurchaseOrders_result typedOther = (getAllPurchaseOrders_result)other;
|
|
|
2859 |
|
| 3430 |
rajveer |
2860 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 3383 |
chandransh |
2861 |
if (lastComparison != 0) {
|
|
|
2862 |
return lastComparison;
|
|
|
2863 |
}
|
| 3430 |
rajveer |
2864 |
if (isSetSuccess()) {
|
|
|
2865 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
2866 |
if (lastComparison != 0) {
|
|
|
2867 |
return lastComparison;
|
|
|
2868 |
}
|
| 3383 |
chandransh |
2869 |
}
|
| 3430 |
rajveer |
2870 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 3383 |
chandransh |
2871 |
if (lastComparison != 0) {
|
|
|
2872 |
return lastComparison;
|
|
|
2873 |
}
|
| 3430 |
rajveer |
2874 |
if (isSetWex()) {
|
|
|
2875 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
2876 |
if (lastComparison != 0) {
|
|
|
2877 |
return lastComparison;
|
|
|
2878 |
}
|
| 3383 |
chandransh |
2879 |
}
|
|
|
2880 |
return 0;
|
|
|
2881 |
}
|
|
|
2882 |
|
| 3430 |
rajveer |
2883 |
public _Fields fieldForId(int fieldId) {
|
|
|
2884 |
return _Fields.findByThriftId(fieldId);
|
|
|
2885 |
}
|
|
|
2886 |
|
|
|
2887 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2888 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
2889 |
iprot.readStructBegin();
|
|
|
2890 |
while (true)
|
|
|
2891 |
{
|
|
|
2892 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2893 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
2894 |
break;
|
|
|
2895 |
}
|
| 3430 |
rajveer |
2896 |
switch (field.id) {
|
|
|
2897 |
case 0: // SUCCESS
|
|
|
2898 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
2899 |
{
|
|
|
2900 |
org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
|
|
|
2901 |
this.success = new ArrayList<PurchaseOrder>(_list4.size);
|
|
|
2902 |
for (int _i5 = 0; _i5 < _list4.size; ++_i5)
|
| 3383 |
chandransh |
2903 |
{
|
| 3430 |
rajveer |
2904 |
PurchaseOrder _elem6; // required
|
|
|
2905 |
_elem6 = new PurchaseOrder();
|
|
|
2906 |
_elem6.read(iprot);
|
|
|
2907 |
this.success.add(_elem6);
|
| 3383 |
chandransh |
2908 |
}
|
| 3430 |
rajveer |
2909 |
iprot.readListEnd();
|
| 3383 |
chandransh |
2910 |
}
|
| 3430 |
rajveer |
2911 |
} else {
|
|
|
2912 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2913 |
}
|
|
|
2914 |
break;
|
|
|
2915 |
case 1: // WEX
|
|
|
2916 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2917 |
this.wex = new WarehouseServiceException();
|
|
|
2918 |
this.wex.read(iprot);
|
|
|
2919 |
} else {
|
|
|
2920 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2921 |
}
|
|
|
2922 |
break;
|
|
|
2923 |
default:
|
|
|
2924 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
2925 |
}
|
| 3430 |
rajveer |
2926 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
2927 |
}
|
|
|
2928 |
iprot.readStructEnd();
|
|
|
2929 |
validate();
|
|
|
2930 |
}
|
|
|
2931 |
|
| 3430 |
rajveer |
2932 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
2933 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2934 |
|
|
|
2935 |
if (this.isSetSuccess()) {
|
|
|
2936 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
2937 |
{
|
| 3430 |
rajveer |
2938 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 3383 |
chandransh |
2939 |
for (PurchaseOrder _iter7 : this.success)
|
|
|
2940 |
{
|
|
|
2941 |
_iter7.write(oprot);
|
|
|
2942 |
}
|
|
|
2943 |
oprot.writeListEnd();
|
|
|
2944 |
}
|
|
|
2945 |
oprot.writeFieldEnd();
|
|
|
2946 |
} else if (this.isSetWex()) {
|
|
|
2947 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
2948 |
this.wex.write(oprot);
|
|
|
2949 |
oprot.writeFieldEnd();
|
|
|
2950 |
}
|
|
|
2951 |
oprot.writeFieldStop();
|
|
|
2952 |
oprot.writeStructEnd();
|
|
|
2953 |
}
|
|
|
2954 |
|
|
|
2955 |
@Override
|
|
|
2956 |
public String toString() {
|
|
|
2957 |
StringBuilder sb = new StringBuilder("getAllPurchaseOrders_result(");
|
|
|
2958 |
boolean first = true;
|
|
|
2959 |
|
|
|
2960 |
sb.append("success:");
|
|
|
2961 |
if (this.success == null) {
|
|
|
2962 |
sb.append("null");
|
|
|
2963 |
} else {
|
|
|
2964 |
sb.append(this.success);
|
|
|
2965 |
}
|
|
|
2966 |
first = false;
|
|
|
2967 |
if (!first) sb.append(", ");
|
|
|
2968 |
sb.append("wex:");
|
|
|
2969 |
if (this.wex == null) {
|
|
|
2970 |
sb.append("null");
|
|
|
2971 |
} else {
|
|
|
2972 |
sb.append(this.wex);
|
|
|
2973 |
}
|
|
|
2974 |
first = false;
|
|
|
2975 |
sb.append(")");
|
|
|
2976 |
return sb.toString();
|
|
|
2977 |
}
|
|
|
2978 |
|
| 3430 |
rajveer |
2979 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
2980 |
// check for required fields
|
|
|
2981 |
}
|
|
|
2982 |
|
| 3430 |
rajveer |
2983 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2984 |
try {
|
|
|
2985 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2986 |
} catch (org.apache.thrift.TException te) {
|
|
|
2987 |
throw new java.io.IOException(te);
|
|
|
2988 |
}
|
|
|
2989 |
}
|
|
|
2990 |
|
|
|
2991 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2992 |
try {
|
|
|
2993 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2994 |
} catch (org.apache.thrift.TException te) {
|
|
|
2995 |
throw new java.io.IOException(te);
|
|
|
2996 |
}
|
|
|
2997 |
}
|
|
|
2998 |
|
| 3383 |
chandransh |
2999 |
}
|
|
|
3000 |
|
| 3430 |
rajveer |
3001 |
public static class getSupplier_args implements org.apache.thrift.TBase<getSupplier_args, getSupplier_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3002 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSupplier_args");
|
| 2832 |
chandransh |
3003 |
|
| 3430 |
rajveer |
3004 |
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 2832 |
chandransh |
3005 |
|
| 3430 |
rajveer |
3006 |
private long id; // required
|
| 2832 |
chandransh |
3007 |
|
|
|
3008 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3009 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2832 |
chandransh |
3010 |
ID((short)1, "id");
|
|
|
3011 |
|
|
|
3012 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3013 |
|
|
|
3014 |
static {
|
|
|
3015 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3016 |
byName.put(field.getFieldName(), field);
|
|
|
3017 |
}
|
|
|
3018 |
}
|
|
|
3019 |
|
|
|
3020 |
/**
|
|
|
3021 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3022 |
*/
|
|
|
3023 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3024 |
switch(fieldId) {
|
|
|
3025 |
case 1: // ID
|
|
|
3026 |
return ID;
|
|
|
3027 |
default:
|
|
|
3028 |
return null;
|
|
|
3029 |
}
|
| 2832 |
chandransh |
3030 |
}
|
|
|
3031 |
|
|
|
3032 |
/**
|
|
|
3033 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3034 |
* if it is not found.
|
|
|
3035 |
*/
|
|
|
3036 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3037 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3038 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3039 |
return fields;
|
|
|
3040 |
}
|
|
|
3041 |
|
|
|
3042 |
/**
|
|
|
3043 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3044 |
*/
|
|
|
3045 |
public static _Fields findByName(String name) {
|
|
|
3046 |
return byName.get(name);
|
|
|
3047 |
}
|
|
|
3048 |
|
|
|
3049 |
private final short _thriftId;
|
|
|
3050 |
private final String _fieldName;
|
|
|
3051 |
|
|
|
3052 |
_Fields(short thriftId, String fieldName) {
|
|
|
3053 |
_thriftId = thriftId;
|
|
|
3054 |
_fieldName = fieldName;
|
|
|
3055 |
}
|
|
|
3056 |
|
|
|
3057 |
public short getThriftFieldId() {
|
|
|
3058 |
return _thriftId;
|
|
|
3059 |
}
|
|
|
3060 |
|
|
|
3061 |
public String getFieldName() {
|
|
|
3062 |
return _fieldName;
|
|
|
3063 |
}
|
|
|
3064 |
}
|
|
|
3065 |
|
|
|
3066 |
// isset id assignments
|
|
|
3067 |
private static final int __ID_ISSET_ID = 0;
|
|
|
3068 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
3069 |
|
| 3430 |
rajveer |
3070 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2832 |
chandransh |
3071 |
static {
|
| 3430 |
rajveer |
3072 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3073 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3074 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
3075 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3076 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSupplier_args.class, metaDataMap);
|
| 2832 |
chandransh |
3077 |
}
|
|
|
3078 |
|
|
|
3079 |
public getSupplier_args() {
|
|
|
3080 |
}
|
|
|
3081 |
|
|
|
3082 |
public getSupplier_args(
|
|
|
3083 |
long id)
|
|
|
3084 |
{
|
|
|
3085 |
this();
|
|
|
3086 |
this.id = id;
|
|
|
3087 |
setIdIsSet(true);
|
|
|
3088 |
}
|
|
|
3089 |
|
|
|
3090 |
/**
|
|
|
3091 |
* Performs a deep copy on <i>other</i>.
|
|
|
3092 |
*/
|
|
|
3093 |
public getSupplier_args(getSupplier_args other) {
|
|
|
3094 |
__isset_bit_vector.clear();
|
|
|
3095 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
3096 |
this.id = other.id;
|
|
|
3097 |
}
|
|
|
3098 |
|
|
|
3099 |
public getSupplier_args deepCopy() {
|
|
|
3100 |
return new getSupplier_args(this);
|
|
|
3101 |
}
|
|
|
3102 |
|
| 3430 |
rajveer |
3103 |
@Override
|
|
|
3104 |
public void clear() {
|
|
|
3105 |
setIdIsSet(false);
|
|
|
3106 |
this.id = 0;
|
| 2832 |
chandransh |
3107 |
}
|
|
|
3108 |
|
|
|
3109 |
public long getId() {
|
|
|
3110 |
return this.id;
|
|
|
3111 |
}
|
|
|
3112 |
|
| 3430 |
rajveer |
3113 |
public void setId(long id) {
|
| 2832 |
chandransh |
3114 |
this.id = id;
|
|
|
3115 |
setIdIsSet(true);
|
|
|
3116 |
}
|
|
|
3117 |
|
|
|
3118 |
public void unsetId() {
|
|
|
3119 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
3120 |
}
|
|
|
3121 |
|
| 3430 |
rajveer |
3122 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
| 2832 |
chandransh |
3123 |
public boolean isSetId() {
|
|
|
3124 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
3125 |
}
|
|
|
3126 |
|
|
|
3127 |
public void setIdIsSet(boolean value) {
|
|
|
3128 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
3129 |
}
|
|
|
3130 |
|
|
|
3131 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3132 |
switch (field) {
|
|
|
3133 |
case ID:
|
|
|
3134 |
if (value == null) {
|
|
|
3135 |
unsetId();
|
|
|
3136 |
} else {
|
|
|
3137 |
setId((Long)value);
|
|
|
3138 |
}
|
|
|
3139 |
break;
|
|
|
3140 |
|
|
|
3141 |
}
|
|
|
3142 |
}
|
|
|
3143 |
|
|
|
3144 |
public Object getFieldValue(_Fields field) {
|
|
|
3145 |
switch (field) {
|
|
|
3146 |
case ID:
|
| 3430 |
rajveer |
3147 |
return Long.valueOf(getId());
|
| 2832 |
chandransh |
3148 |
|
|
|
3149 |
}
|
|
|
3150 |
throw new IllegalStateException();
|
|
|
3151 |
}
|
|
|
3152 |
|
| 3430 |
rajveer |
3153 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3154 |
public boolean isSet(_Fields field) {
|
|
|
3155 |
if (field == null) {
|
|
|
3156 |
throw new IllegalArgumentException();
|
|
|
3157 |
}
|
| 2832 |
chandransh |
3158 |
|
|
|
3159 |
switch (field) {
|
|
|
3160 |
case ID:
|
|
|
3161 |
return isSetId();
|
|
|
3162 |
}
|
|
|
3163 |
throw new IllegalStateException();
|
|
|
3164 |
}
|
|
|
3165 |
|
|
|
3166 |
@Override
|
|
|
3167 |
public boolean equals(Object that) {
|
|
|
3168 |
if (that == null)
|
|
|
3169 |
return false;
|
|
|
3170 |
if (that instanceof getSupplier_args)
|
|
|
3171 |
return this.equals((getSupplier_args)that);
|
|
|
3172 |
return false;
|
|
|
3173 |
}
|
|
|
3174 |
|
|
|
3175 |
public boolean equals(getSupplier_args that) {
|
|
|
3176 |
if (that == null)
|
|
|
3177 |
return false;
|
|
|
3178 |
|
|
|
3179 |
boolean this_present_id = true;
|
|
|
3180 |
boolean that_present_id = true;
|
|
|
3181 |
if (this_present_id || that_present_id) {
|
|
|
3182 |
if (!(this_present_id && that_present_id))
|
|
|
3183 |
return false;
|
|
|
3184 |
if (this.id != that.id)
|
|
|
3185 |
return false;
|
|
|
3186 |
}
|
|
|
3187 |
|
|
|
3188 |
return true;
|
|
|
3189 |
}
|
|
|
3190 |
|
|
|
3191 |
@Override
|
|
|
3192 |
public int hashCode() {
|
|
|
3193 |
return 0;
|
|
|
3194 |
}
|
|
|
3195 |
|
|
|
3196 |
public int compareTo(getSupplier_args other) {
|
|
|
3197 |
if (!getClass().equals(other.getClass())) {
|
|
|
3198 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3199 |
}
|
|
|
3200 |
|
|
|
3201 |
int lastComparison = 0;
|
|
|
3202 |
getSupplier_args typedOther = (getSupplier_args)other;
|
|
|
3203 |
|
| 3430 |
rajveer |
3204 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
| 2832 |
chandransh |
3205 |
if (lastComparison != 0) {
|
|
|
3206 |
return lastComparison;
|
|
|
3207 |
}
|
| 3430 |
rajveer |
3208 |
if (isSetId()) {
|
|
|
3209 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
3210 |
if (lastComparison != 0) {
|
|
|
3211 |
return lastComparison;
|
|
|
3212 |
}
|
| 2832 |
chandransh |
3213 |
}
|
|
|
3214 |
return 0;
|
|
|
3215 |
}
|
|
|
3216 |
|
| 3430 |
rajveer |
3217 |
public _Fields fieldForId(int fieldId) {
|
|
|
3218 |
return _Fields.findByThriftId(fieldId);
|
|
|
3219 |
}
|
|
|
3220 |
|
|
|
3221 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3222 |
org.apache.thrift.protocol.TField field;
|
| 2832 |
chandransh |
3223 |
iprot.readStructBegin();
|
|
|
3224 |
while (true)
|
|
|
3225 |
{
|
|
|
3226 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3227 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2832 |
chandransh |
3228 |
break;
|
|
|
3229 |
}
|
| 3430 |
rajveer |
3230 |
switch (field.id) {
|
|
|
3231 |
case 1: // ID
|
|
|
3232 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3233 |
this.id = iprot.readI64();
|
|
|
3234 |
setIdIsSet(true);
|
|
|
3235 |
} else {
|
|
|
3236 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3237 |
}
|
|
|
3238 |
break;
|
|
|
3239 |
default:
|
|
|
3240 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2832 |
chandransh |
3241 |
}
|
| 3430 |
rajveer |
3242 |
iprot.readFieldEnd();
|
| 2832 |
chandransh |
3243 |
}
|
|
|
3244 |
iprot.readStructEnd();
|
|
|
3245 |
validate();
|
|
|
3246 |
}
|
|
|
3247 |
|
| 3430 |
rajveer |
3248 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
3249 |
validate();
|
|
|
3250 |
|
|
|
3251 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3252 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
3253 |
oprot.writeI64(this.id);
|
|
|
3254 |
oprot.writeFieldEnd();
|
|
|
3255 |
oprot.writeFieldStop();
|
|
|
3256 |
oprot.writeStructEnd();
|
|
|
3257 |
}
|
|
|
3258 |
|
|
|
3259 |
@Override
|
|
|
3260 |
public String toString() {
|
|
|
3261 |
StringBuilder sb = new StringBuilder("getSupplier_args(");
|
|
|
3262 |
boolean first = true;
|
|
|
3263 |
|
|
|
3264 |
sb.append("id:");
|
|
|
3265 |
sb.append(this.id);
|
|
|
3266 |
first = false;
|
|
|
3267 |
sb.append(")");
|
|
|
3268 |
return sb.toString();
|
|
|
3269 |
}
|
|
|
3270 |
|
| 3430 |
rajveer |
3271 |
public void validate() throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
3272 |
// check for required fields
|
|
|
3273 |
}
|
|
|
3274 |
|
| 3430 |
rajveer |
3275 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3276 |
try {
|
|
|
3277 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3278 |
} catch (org.apache.thrift.TException te) {
|
|
|
3279 |
throw new java.io.IOException(te);
|
|
|
3280 |
}
|
|
|
3281 |
}
|
|
|
3282 |
|
|
|
3283 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3284 |
try {
|
|
|
3285 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
3286 |
__isset_bit_vector = new BitSet(1);
|
|
|
3287 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3288 |
} catch (org.apache.thrift.TException te) {
|
|
|
3289 |
throw new java.io.IOException(te);
|
|
|
3290 |
}
|
|
|
3291 |
}
|
|
|
3292 |
|
| 2832 |
chandransh |
3293 |
}
|
|
|
3294 |
|
| 3430 |
rajveer |
3295 |
public static class getSupplier_result implements org.apache.thrift.TBase<getSupplier_result, getSupplier_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3296 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSupplier_result");
|
| 2832 |
chandransh |
3297 |
|
| 3430 |
rajveer |
3298 |
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);
|
|
|
3299 |
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 |
3300 |
|
| 3430 |
rajveer |
3301 |
private Supplier success; // required
|
|
|
3302 |
private WarehouseServiceException wex; // required
|
| 2832 |
chandransh |
3303 |
|
|
|
3304 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3305 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2832 |
chandransh |
3306 |
SUCCESS((short)0, "success"),
|
|
|
3307 |
WEX((short)1, "wex");
|
|
|
3308 |
|
|
|
3309 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3310 |
|
|
|
3311 |
static {
|
|
|
3312 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3313 |
byName.put(field.getFieldName(), field);
|
|
|
3314 |
}
|
|
|
3315 |
}
|
|
|
3316 |
|
|
|
3317 |
/**
|
|
|
3318 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3319 |
*/
|
|
|
3320 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3321 |
switch(fieldId) {
|
|
|
3322 |
case 0: // SUCCESS
|
|
|
3323 |
return SUCCESS;
|
|
|
3324 |
case 1: // WEX
|
|
|
3325 |
return WEX;
|
|
|
3326 |
default:
|
|
|
3327 |
return null;
|
|
|
3328 |
}
|
| 2832 |
chandransh |
3329 |
}
|
|
|
3330 |
|
|
|
3331 |
/**
|
|
|
3332 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3333 |
* if it is not found.
|
|
|
3334 |
*/
|
|
|
3335 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3336 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3337 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3338 |
return fields;
|
|
|
3339 |
}
|
|
|
3340 |
|
|
|
3341 |
/**
|
|
|
3342 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3343 |
*/
|
|
|
3344 |
public static _Fields findByName(String name) {
|
|
|
3345 |
return byName.get(name);
|
|
|
3346 |
}
|
|
|
3347 |
|
|
|
3348 |
private final short _thriftId;
|
|
|
3349 |
private final String _fieldName;
|
|
|
3350 |
|
|
|
3351 |
_Fields(short thriftId, String fieldName) {
|
|
|
3352 |
_thriftId = thriftId;
|
|
|
3353 |
_fieldName = fieldName;
|
|
|
3354 |
}
|
|
|
3355 |
|
|
|
3356 |
public short getThriftFieldId() {
|
|
|
3357 |
return _thriftId;
|
|
|
3358 |
}
|
|
|
3359 |
|
|
|
3360 |
public String getFieldName() {
|
|
|
3361 |
return _fieldName;
|
|
|
3362 |
}
|
|
|
3363 |
}
|
|
|
3364 |
|
|
|
3365 |
// isset id assignments
|
|
|
3366 |
|
| 3430 |
rajveer |
3367 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2832 |
chandransh |
3368 |
static {
|
| 3430 |
rajveer |
3369 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3370 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3371 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Supplier.class)));
|
|
|
3372 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3373 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
3374 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3375 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSupplier_result.class, metaDataMap);
|
| 2832 |
chandransh |
3376 |
}
|
|
|
3377 |
|
|
|
3378 |
public getSupplier_result() {
|
|
|
3379 |
}
|
|
|
3380 |
|
|
|
3381 |
public getSupplier_result(
|
|
|
3382 |
Supplier success,
|
|
|
3383 |
WarehouseServiceException wex)
|
|
|
3384 |
{
|
|
|
3385 |
this();
|
|
|
3386 |
this.success = success;
|
|
|
3387 |
this.wex = wex;
|
|
|
3388 |
}
|
|
|
3389 |
|
|
|
3390 |
/**
|
|
|
3391 |
* Performs a deep copy on <i>other</i>.
|
|
|
3392 |
*/
|
|
|
3393 |
public getSupplier_result(getSupplier_result other) {
|
|
|
3394 |
if (other.isSetSuccess()) {
|
|
|
3395 |
this.success = new Supplier(other.success);
|
|
|
3396 |
}
|
|
|
3397 |
if (other.isSetWex()) {
|
|
|
3398 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
3399 |
}
|
|
|
3400 |
}
|
|
|
3401 |
|
|
|
3402 |
public getSupplier_result deepCopy() {
|
|
|
3403 |
return new getSupplier_result(this);
|
|
|
3404 |
}
|
|
|
3405 |
|
| 3430 |
rajveer |
3406 |
@Override
|
|
|
3407 |
public void clear() {
|
|
|
3408 |
this.success = null;
|
|
|
3409 |
this.wex = null;
|
| 2832 |
chandransh |
3410 |
}
|
|
|
3411 |
|
|
|
3412 |
public Supplier getSuccess() {
|
|
|
3413 |
return this.success;
|
|
|
3414 |
}
|
|
|
3415 |
|
| 3430 |
rajveer |
3416 |
public void setSuccess(Supplier success) {
|
| 2832 |
chandransh |
3417 |
this.success = success;
|
|
|
3418 |
}
|
|
|
3419 |
|
|
|
3420 |
public void unsetSuccess() {
|
|
|
3421 |
this.success = null;
|
|
|
3422 |
}
|
|
|
3423 |
|
| 3430 |
rajveer |
3424 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2832 |
chandransh |
3425 |
public boolean isSetSuccess() {
|
|
|
3426 |
return this.success != null;
|
|
|
3427 |
}
|
|
|
3428 |
|
|
|
3429 |
public void setSuccessIsSet(boolean value) {
|
|
|
3430 |
if (!value) {
|
|
|
3431 |
this.success = null;
|
|
|
3432 |
}
|
|
|
3433 |
}
|
|
|
3434 |
|
|
|
3435 |
public WarehouseServiceException getWex() {
|
|
|
3436 |
return this.wex;
|
|
|
3437 |
}
|
|
|
3438 |
|
| 3430 |
rajveer |
3439 |
public void setWex(WarehouseServiceException wex) {
|
| 2832 |
chandransh |
3440 |
this.wex = wex;
|
|
|
3441 |
}
|
|
|
3442 |
|
|
|
3443 |
public void unsetWex() {
|
|
|
3444 |
this.wex = null;
|
|
|
3445 |
}
|
|
|
3446 |
|
| 3430 |
rajveer |
3447 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2832 |
chandransh |
3448 |
public boolean isSetWex() {
|
|
|
3449 |
return this.wex != null;
|
|
|
3450 |
}
|
|
|
3451 |
|
|
|
3452 |
public void setWexIsSet(boolean value) {
|
|
|
3453 |
if (!value) {
|
|
|
3454 |
this.wex = null;
|
|
|
3455 |
}
|
|
|
3456 |
}
|
|
|
3457 |
|
|
|
3458 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3459 |
switch (field) {
|
|
|
3460 |
case SUCCESS:
|
|
|
3461 |
if (value == null) {
|
|
|
3462 |
unsetSuccess();
|
|
|
3463 |
} else {
|
|
|
3464 |
setSuccess((Supplier)value);
|
|
|
3465 |
}
|
|
|
3466 |
break;
|
|
|
3467 |
|
|
|
3468 |
case WEX:
|
|
|
3469 |
if (value == null) {
|
|
|
3470 |
unsetWex();
|
|
|
3471 |
} else {
|
|
|
3472 |
setWex((WarehouseServiceException)value);
|
|
|
3473 |
}
|
|
|
3474 |
break;
|
|
|
3475 |
|
|
|
3476 |
}
|
|
|
3477 |
}
|
|
|
3478 |
|
|
|
3479 |
public Object getFieldValue(_Fields field) {
|
|
|
3480 |
switch (field) {
|
|
|
3481 |
case SUCCESS:
|
|
|
3482 |
return getSuccess();
|
|
|
3483 |
|
|
|
3484 |
case WEX:
|
|
|
3485 |
return getWex();
|
|
|
3486 |
|
|
|
3487 |
}
|
|
|
3488 |
throw new IllegalStateException();
|
|
|
3489 |
}
|
|
|
3490 |
|
| 3430 |
rajveer |
3491 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3492 |
public boolean isSet(_Fields field) {
|
|
|
3493 |
if (field == null) {
|
|
|
3494 |
throw new IllegalArgumentException();
|
|
|
3495 |
}
|
| 2832 |
chandransh |
3496 |
|
|
|
3497 |
switch (field) {
|
|
|
3498 |
case SUCCESS:
|
|
|
3499 |
return isSetSuccess();
|
|
|
3500 |
case WEX:
|
|
|
3501 |
return isSetWex();
|
|
|
3502 |
}
|
|
|
3503 |
throw new IllegalStateException();
|
|
|
3504 |
}
|
|
|
3505 |
|
|
|
3506 |
@Override
|
|
|
3507 |
public boolean equals(Object that) {
|
|
|
3508 |
if (that == null)
|
|
|
3509 |
return false;
|
|
|
3510 |
if (that instanceof getSupplier_result)
|
|
|
3511 |
return this.equals((getSupplier_result)that);
|
|
|
3512 |
return false;
|
|
|
3513 |
}
|
|
|
3514 |
|
|
|
3515 |
public boolean equals(getSupplier_result that) {
|
|
|
3516 |
if (that == null)
|
|
|
3517 |
return false;
|
|
|
3518 |
|
|
|
3519 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
3520 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
3521 |
if (this_present_success || that_present_success) {
|
|
|
3522 |
if (!(this_present_success && that_present_success))
|
|
|
3523 |
return false;
|
|
|
3524 |
if (!this.success.equals(that.success))
|
|
|
3525 |
return false;
|
|
|
3526 |
}
|
|
|
3527 |
|
|
|
3528 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
3529 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
3530 |
if (this_present_wex || that_present_wex) {
|
|
|
3531 |
if (!(this_present_wex && that_present_wex))
|
|
|
3532 |
return false;
|
|
|
3533 |
if (!this.wex.equals(that.wex))
|
|
|
3534 |
return false;
|
|
|
3535 |
}
|
|
|
3536 |
|
|
|
3537 |
return true;
|
|
|
3538 |
}
|
|
|
3539 |
|
|
|
3540 |
@Override
|
|
|
3541 |
public int hashCode() {
|
|
|
3542 |
return 0;
|
|
|
3543 |
}
|
|
|
3544 |
|
|
|
3545 |
public int compareTo(getSupplier_result other) {
|
|
|
3546 |
if (!getClass().equals(other.getClass())) {
|
|
|
3547 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3548 |
}
|
|
|
3549 |
|
|
|
3550 |
int lastComparison = 0;
|
|
|
3551 |
getSupplier_result typedOther = (getSupplier_result)other;
|
|
|
3552 |
|
| 3430 |
rajveer |
3553 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2832 |
chandransh |
3554 |
if (lastComparison != 0) {
|
|
|
3555 |
return lastComparison;
|
|
|
3556 |
}
|
| 3430 |
rajveer |
3557 |
if (isSetSuccess()) {
|
|
|
3558 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
3559 |
if (lastComparison != 0) {
|
|
|
3560 |
return lastComparison;
|
|
|
3561 |
}
|
| 2832 |
chandransh |
3562 |
}
|
| 3430 |
rajveer |
3563 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2832 |
chandransh |
3564 |
if (lastComparison != 0) {
|
|
|
3565 |
return lastComparison;
|
|
|
3566 |
}
|
| 3430 |
rajveer |
3567 |
if (isSetWex()) {
|
|
|
3568 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
3569 |
if (lastComparison != 0) {
|
|
|
3570 |
return lastComparison;
|
|
|
3571 |
}
|
| 2832 |
chandransh |
3572 |
}
|
|
|
3573 |
return 0;
|
|
|
3574 |
}
|
|
|
3575 |
|
| 3430 |
rajveer |
3576 |
public _Fields fieldForId(int fieldId) {
|
|
|
3577 |
return _Fields.findByThriftId(fieldId);
|
|
|
3578 |
}
|
|
|
3579 |
|
|
|
3580 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3581 |
org.apache.thrift.protocol.TField field;
|
| 2832 |
chandransh |
3582 |
iprot.readStructBegin();
|
|
|
3583 |
while (true)
|
|
|
3584 |
{
|
|
|
3585 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3586 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2832 |
chandransh |
3587 |
break;
|
|
|
3588 |
}
|
| 3430 |
rajveer |
3589 |
switch (field.id) {
|
|
|
3590 |
case 0: // SUCCESS
|
|
|
3591 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3592 |
this.success = new Supplier();
|
|
|
3593 |
this.success.read(iprot);
|
|
|
3594 |
} else {
|
|
|
3595 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3596 |
}
|
|
|
3597 |
break;
|
|
|
3598 |
case 1: // WEX
|
|
|
3599 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3600 |
this.wex = new WarehouseServiceException();
|
|
|
3601 |
this.wex.read(iprot);
|
|
|
3602 |
} else {
|
|
|
3603 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3604 |
}
|
|
|
3605 |
break;
|
|
|
3606 |
default:
|
|
|
3607 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2832 |
chandransh |
3608 |
}
|
| 3430 |
rajveer |
3609 |
iprot.readFieldEnd();
|
| 2832 |
chandransh |
3610 |
}
|
|
|
3611 |
iprot.readStructEnd();
|
|
|
3612 |
validate();
|
|
|
3613 |
}
|
|
|
3614 |
|
| 3430 |
rajveer |
3615 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
3616 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3617 |
|
|
|
3618 |
if (this.isSetSuccess()) {
|
|
|
3619 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
3620 |
this.success.write(oprot);
|
|
|
3621 |
oprot.writeFieldEnd();
|
|
|
3622 |
} else if (this.isSetWex()) {
|
|
|
3623 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
3624 |
this.wex.write(oprot);
|
|
|
3625 |
oprot.writeFieldEnd();
|
|
|
3626 |
}
|
|
|
3627 |
oprot.writeFieldStop();
|
|
|
3628 |
oprot.writeStructEnd();
|
|
|
3629 |
}
|
|
|
3630 |
|
|
|
3631 |
@Override
|
|
|
3632 |
public String toString() {
|
|
|
3633 |
StringBuilder sb = new StringBuilder("getSupplier_result(");
|
|
|
3634 |
boolean first = true;
|
|
|
3635 |
|
|
|
3636 |
sb.append("success:");
|
|
|
3637 |
if (this.success == null) {
|
|
|
3638 |
sb.append("null");
|
|
|
3639 |
} else {
|
|
|
3640 |
sb.append(this.success);
|
|
|
3641 |
}
|
|
|
3642 |
first = false;
|
|
|
3643 |
if (!first) sb.append(", ");
|
|
|
3644 |
sb.append("wex:");
|
|
|
3645 |
if (this.wex == null) {
|
|
|
3646 |
sb.append("null");
|
|
|
3647 |
} else {
|
|
|
3648 |
sb.append(this.wex);
|
|
|
3649 |
}
|
|
|
3650 |
first = false;
|
|
|
3651 |
sb.append(")");
|
|
|
3652 |
return sb.toString();
|
|
|
3653 |
}
|
|
|
3654 |
|
| 3430 |
rajveer |
3655 |
public void validate() throws org.apache.thrift.TException {
|
| 2832 |
chandransh |
3656 |
// check for required fields
|
|
|
3657 |
}
|
|
|
3658 |
|
| 3430 |
rajveer |
3659 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3660 |
try {
|
|
|
3661 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3662 |
} catch (org.apache.thrift.TException te) {
|
|
|
3663 |
throw new java.io.IOException(te);
|
|
|
3664 |
}
|
|
|
3665 |
}
|
|
|
3666 |
|
|
|
3667 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3668 |
try {
|
|
|
3669 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3670 |
} catch (org.apache.thrift.TException te) {
|
|
|
3671 |
throw new java.io.IOException(te);
|
|
|
3672 |
}
|
|
|
3673 |
}
|
|
|
3674 |
|
| 2832 |
chandransh |
3675 |
}
|
|
|
3676 |
|
| 3430 |
rajveer |
3677 |
public static class startPurchase_args implements org.apache.thrift.TBase<startPurchase_args, startPurchase_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3678 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startPurchase_args");
|
| 2820 |
chandransh |
3679 |
|
| 3430 |
rajveer |
3680 |
private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
3681 |
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)2);
|
|
|
3682 |
private static final org.apache.thrift.protocol.TField FREIGHT_CHARGES_FIELD_DESC = new org.apache.thrift.protocol.TField("freightCharges", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
|
| 2820 |
chandransh |
3683 |
|
| 3430 |
rajveer |
3684 |
private long purchaseOrderId; // required
|
|
|
3685 |
private String invoiceNumber; // required
|
|
|
3686 |
private double freightCharges; // required
|
| 2820 |
chandransh |
3687 |
|
|
|
3688 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3689 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2820 |
chandransh |
3690 |
PURCHASE_ORDER_ID((short)1, "purchaseOrderId"),
|
|
|
3691 |
INVOICE_NUMBER((short)2, "invoiceNumber"),
|
|
|
3692 |
FREIGHT_CHARGES((short)3, "freightCharges");
|
|
|
3693 |
|
|
|
3694 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3695 |
|
|
|
3696 |
static {
|
|
|
3697 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3698 |
byName.put(field.getFieldName(), field);
|
|
|
3699 |
}
|
|
|
3700 |
}
|
|
|
3701 |
|
|
|
3702 |
/**
|
|
|
3703 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3704 |
*/
|
|
|
3705 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3706 |
switch(fieldId) {
|
|
|
3707 |
case 1: // PURCHASE_ORDER_ID
|
|
|
3708 |
return PURCHASE_ORDER_ID;
|
|
|
3709 |
case 2: // INVOICE_NUMBER
|
|
|
3710 |
return INVOICE_NUMBER;
|
|
|
3711 |
case 3: // FREIGHT_CHARGES
|
|
|
3712 |
return FREIGHT_CHARGES;
|
|
|
3713 |
default:
|
|
|
3714 |
return null;
|
|
|
3715 |
}
|
| 2820 |
chandransh |
3716 |
}
|
|
|
3717 |
|
|
|
3718 |
/**
|
|
|
3719 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3720 |
* if it is not found.
|
|
|
3721 |
*/
|
|
|
3722 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3723 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3724 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3725 |
return fields;
|
|
|
3726 |
}
|
|
|
3727 |
|
|
|
3728 |
/**
|
|
|
3729 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3730 |
*/
|
|
|
3731 |
public static _Fields findByName(String name) {
|
|
|
3732 |
return byName.get(name);
|
|
|
3733 |
}
|
|
|
3734 |
|
|
|
3735 |
private final short _thriftId;
|
|
|
3736 |
private final String _fieldName;
|
|
|
3737 |
|
|
|
3738 |
_Fields(short thriftId, String fieldName) {
|
|
|
3739 |
_thriftId = thriftId;
|
|
|
3740 |
_fieldName = fieldName;
|
|
|
3741 |
}
|
|
|
3742 |
|
|
|
3743 |
public short getThriftFieldId() {
|
|
|
3744 |
return _thriftId;
|
|
|
3745 |
}
|
|
|
3746 |
|
|
|
3747 |
public String getFieldName() {
|
|
|
3748 |
return _fieldName;
|
|
|
3749 |
}
|
|
|
3750 |
}
|
|
|
3751 |
|
|
|
3752 |
// isset id assignments
|
|
|
3753 |
private static final int __PURCHASEORDERID_ISSET_ID = 0;
|
|
|
3754 |
private static final int __FREIGHTCHARGES_ISSET_ID = 1;
|
|
|
3755 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
3756 |
|
| 3430 |
rajveer |
3757 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
3758 |
static {
|
| 3430 |
rajveer |
3759 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3760 |
tmpMap.put(_Fields.PURCHASE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3761 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
3762 |
tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3763 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
3764 |
tmpMap.put(_Fields.FREIGHT_CHARGES, new org.apache.thrift.meta_data.FieldMetaData("freightCharges", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3765 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
3766 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3767 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startPurchase_args.class, metaDataMap);
|
| 2820 |
chandransh |
3768 |
}
|
|
|
3769 |
|
|
|
3770 |
public startPurchase_args() {
|
|
|
3771 |
}
|
|
|
3772 |
|
|
|
3773 |
public startPurchase_args(
|
|
|
3774 |
long purchaseOrderId,
|
|
|
3775 |
String invoiceNumber,
|
|
|
3776 |
double freightCharges)
|
|
|
3777 |
{
|
|
|
3778 |
this();
|
|
|
3779 |
this.purchaseOrderId = purchaseOrderId;
|
|
|
3780 |
setPurchaseOrderIdIsSet(true);
|
|
|
3781 |
this.invoiceNumber = invoiceNumber;
|
|
|
3782 |
this.freightCharges = freightCharges;
|
|
|
3783 |
setFreightChargesIsSet(true);
|
|
|
3784 |
}
|
|
|
3785 |
|
|
|
3786 |
/**
|
|
|
3787 |
* Performs a deep copy on <i>other</i>.
|
|
|
3788 |
*/
|
|
|
3789 |
public startPurchase_args(startPurchase_args other) {
|
|
|
3790 |
__isset_bit_vector.clear();
|
|
|
3791 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
3792 |
this.purchaseOrderId = other.purchaseOrderId;
|
|
|
3793 |
if (other.isSetInvoiceNumber()) {
|
|
|
3794 |
this.invoiceNumber = other.invoiceNumber;
|
|
|
3795 |
}
|
|
|
3796 |
this.freightCharges = other.freightCharges;
|
|
|
3797 |
}
|
|
|
3798 |
|
|
|
3799 |
public startPurchase_args deepCopy() {
|
|
|
3800 |
return new startPurchase_args(this);
|
|
|
3801 |
}
|
|
|
3802 |
|
| 3430 |
rajveer |
3803 |
@Override
|
|
|
3804 |
public void clear() {
|
|
|
3805 |
setPurchaseOrderIdIsSet(false);
|
|
|
3806 |
this.purchaseOrderId = 0;
|
|
|
3807 |
this.invoiceNumber = null;
|
|
|
3808 |
setFreightChargesIsSet(false);
|
|
|
3809 |
this.freightCharges = 0.0;
|
| 2820 |
chandransh |
3810 |
}
|
|
|
3811 |
|
|
|
3812 |
public long getPurchaseOrderId() {
|
|
|
3813 |
return this.purchaseOrderId;
|
|
|
3814 |
}
|
|
|
3815 |
|
| 3430 |
rajveer |
3816 |
public void setPurchaseOrderId(long purchaseOrderId) {
|
| 2820 |
chandransh |
3817 |
this.purchaseOrderId = purchaseOrderId;
|
|
|
3818 |
setPurchaseOrderIdIsSet(true);
|
|
|
3819 |
}
|
|
|
3820 |
|
|
|
3821 |
public void unsetPurchaseOrderId() {
|
|
|
3822 |
__isset_bit_vector.clear(__PURCHASEORDERID_ISSET_ID);
|
|
|
3823 |
}
|
|
|
3824 |
|
| 3430 |
rajveer |
3825 |
/** Returns true if field purchaseOrderId is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
3826 |
public boolean isSetPurchaseOrderId() {
|
|
|
3827 |
return __isset_bit_vector.get(__PURCHASEORDERID_ISSET_ID);
|
|
|
3828 |
}
|
|
|
3829 |
|
|
|
3830 |
public void setPurchaseOrderIdIsSet(boolean value) {
|
|
|
3831 |
__isset_bit_vector.set(__PURCHASEORDERID_ISSET_ID, value);
|
|
|
3832 |
}
|
|
|
3833 |
|
|
|
3834 |
public String getInvoiceNumber() {
|
|
|
3835 |
return this.invoiceNumber;
|
|
|
3836 |
}
|
|
|
3837 |
|
| 3430 |
rajveer |
3838 |
public void setInvoiceNumber(String invoiceNumber) {
|
| 2820 |
chandransh |
3839 |
this.invoiceNumber = invoiceNumber;
|
|
|
3840 |
}
|
|
|
3841 |
|
|
|
3842 |
public void unsetInvoiceNumber() {
|
|
|
3843 |
this.invoiceNumber = null;
|
|
|
3844 |
}
|
|
|
3845 |
|
| 3430 |
rajveer |
3846 |
/** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
3847 |
public boolean isSetInvoiceNumber() {
|
|
|
3848 |
return this.invoiceNumber != null;
|
|
|
3849 |
}
|
|
|
3850 |
|
|
|
3851 |
public void setInvoiceNumberIsSet(boolean value) {
|
|
|
3852 |
if (!value) {
|
|
|
3853 |
this.invoiceNumber = null;
|
|
|
3854 |
}
|
|
|
3855 |
}
|
|
|
3856 |
|
|
|
3857 |
public double getFreightCharges() {
|
|
|
3858 |
return this.freightCharges;
|
|
|
3859 |
}
|
|
|
3860 |
|
| 3430 |
rajveer |
3861 |
public void setFreightCharges(double freightCharges) {
|
| 2820 |
chandransh |
3862 |
this.freightCharges = freightCharges;
|
|
|
3863 |
setFreightChargesIsSet(true);
|
|
|
3864 |
}
|
|
|
3865 |
|
|
|
3866 |
public void unsetFreightCharges() {
|
|
|
3867 |
__isset_bit_vector.clear(__FREIGHTCHARGES_ISSET_ID);
|
|
|
3868 |
}
|
|
|
3869 |
|
| 3430 |
rajveer |
3870 |
/** Returns true if field freightCharges is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
3871 |
public boolean isSetFreightCharges() {
|
|
|
3872 |
return __isset_bit_vector.get(__FREIGHTCHARGES_ISSET_ID);
|
|
|
3873 |
}
|
|
|
3874 |
|
|
|
3875 |
public void setFreightChargesIsSet(boolean value) {
|
|
|
3876 |
__isset_bit_vector.set(__FREIGHTCHARGES_ISSET_ID, value);
|
|
|
3877 |
}
|
|
|
3878 |
|
|
|
3879 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3880 |
switch (field) {
|
|
|
3881 |
case PURCHASE_ORDER_ID:
|
|
|
3882 |
if (value == null) {
|
|
|
3883 |
unsetPurchaseOrderId();
|
|
|
3884 |
} else {
|
|
|
3885 |
setPurchaseOrderId((Long)value);
|
|
|
3886 |
}
|
|
|
3887 |
break;
|
|
|
3888 |
|
|
|
3889 |
case INVOICE_NUMBER:
|
|
|
3890 |
if (value == null) {
|
|
|
3891 |
unsetInvoiceNumber();
|
|
|
3892 |
} else {
|
|
|
3893 |
setInvoiceNumber((String)value);
|
|
|
3894 |
}
|
|
|
3895 |
break;
|
|
|
3896 |
|
|
|
3897 |
case FREIGHT_CHARGES:
|
|
|
3898 |
if (value == null) {
|
|
|
3899 |
unsetFreightCharges();
|
|
|
3900 |
} else {
|
|
|
3901 |
setFreightCharges((Double)value);
|
|
|
3902 |
}
|
|
|
3903 |
break;
|
|
|
3904 |
|
|
|
3905 |
}
|
|
|
3906 |
}
|
|
|
3907 |
|
|
|
3908 |
public Object getFieldValue(_Fields field) {
|
|
|
3909 |
switch (field) {
|
|
|
3910 |
case PURCHASE_ORDER_ID:
|
| 3430 |
rajveer |
3911 |
return Long.valueOf(getPurchaseOrderId());
|
| 2820 |
chandransh |
3912 |
|
|
|
3913 |
case INVOICE_NUMBER:
|
|
|
3914 |
return getInvoiceNumber();
|
|
|
3915 |
|
|
|
3916 |
case FREIGHT_CHARGES:
|
| 3430 |
rajveer |
3917 |
return Double.valueOf(getFreightCharges());
|
| 2820 |
chandransh |
3918 |
|
|
|
3919 |
}
|
|
|
3920 |
throw new IllegalStateException();
|
|
|
3921 |
}
|
|
|
3922 |
|
| 3430 |
rajveer |
3923 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3924 |
public boolean isSet(_Fields field) {
|
|
|
3925 |
if (field == null) {
|
|
|
3926 |
throw new IllegalArgumentException();
|
|
|
3927 |
}
|
| 2820 |
chandransh |
3928 |
|
|
|
3929 |
switch (field) {
|
|
|
3930 |
case PURCHASE_ORDER_ID:
|
|
|
3931 |
return isSetPurchaseOrderId();
|
|
|
3932 |
case INVOICE_NUMBER:
|
|
|
3933 |
return isSetInvoiceNumber();
|
|
|
3934 |
case FREIGHT_CHARGES:
|
|
|
3935 |
return isSetFreightCharges();
|
|
|
3936 |
}
|
|
|
3937 |
throw new IllegalStateException();
|
|
|
3938 |
}
|
|
|
3939 |
|
|
|
3940 |
@Override
|
|
|
3941 |
public boolean equals(Object that) {
|
|
|
3942 |
if (that == null)
|
|
|
3943 |
return false;
|
|
|
3944 |
if (that instanceof startPurchase_args)
|
|
|
3945 |
return this.equals((startPurchase_args)that);
|
|
|
3946 |
return false;
|
|
|
3947 |
}
|
|
|
3948 |
|
|
|
3949 |
public boolean equals(startPurchase_args that) {
|
|
|
3950 |
if (that == null)
|
|
|
3951 |
return false;
|
|
|
3952 |
|
|
|
3953 |
boolean this_present_purchaseOrderId = true;
|
|
|
3954 |
boolean that_present_purchaseOrderId = true;
|
|
|
3955 |
if (this_present_purchaseOrderId || that_present_purchaseOrderId) {
|
|
|
3956 |
if (!(this_present_purchaseOrderId && that_present_purchaseOrderId))
|
|
|
3957 |
return false;
|
|
|
3958 |
if (this.purchaseOrderId != that.purchaseOrderId)
|
|
|
3959 |
return false;
|
|
|
3960 |
}
|
|
|
3961 |
|
|
|
3962 |
boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
|
|
|
3963 |
boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
|
|
|
3964 |
if (this_present_invoiceNumber || that_present_invoiceNumber) {
|
|
|
3965 |
if (!(this_present_invoiceNumber && that_present_invoiceNumber))
|
|
|
3966 |
return false;
|
|
|
3967 |
if (!this.invoiceNumber.equals(that.invoiceNumber))
|
|
|
3968 |
return false;
|
|
|
3969 |
}
|
|
|
3970 |
|
|
|
3971 |
boolean this_present_freightCharges = true;
|
|
|
3972 |
boolean that_present_freightCharges = true;
|
|
|
3973 |
if (this_present_freightCharges || that_present_freightCharges) {
|
|
|
3974 |
if (!(this_present_freightCharges && that_present_freightCharges))
|
|
|
3975 |
return false;
|
|
|
3976 |
if (this.freightCharges != that.freightCharges)
|
|
|
3977 |
return false;
|
|
|
3978 |
}
|
|
|
3979 |
|
|
|
3980 |
return true;
|
|
|
3981 |
}
|
|
|
3982 |
|
|
|
3983 |
@Override
|
|
|
3984 |
public int hashCode() {
|
|
|
3985 |
return 0;
|
|
|
3986 |
}
|
|
|
3987 |
|
|
|
3988 |
public int compareTo(startPurchase_args other) {
|
|
|
3989 |
if (!getClass().equals(other.getClass())) {
|
|
|
3990 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3991 |
}
|
|
|
3992 |
|
|
|
3993 |
int lastComparison = 0;
|
|
|
3994 |
startPurchase_args typedOther = (startPurchase_args)other;
|
|
|
3995 |
|
| 3430 |
rajveer |
3996 |
lastComparison = Boolean.valueOf(isSetPurchaseOrderId()).compareTo(typedOther.isSetPurchaseOrderId());
|
| 2820 |
chandransh |
3997 |
if (lastComparison != 0) {
|
|
|
3998 |
return lastComparison;
|
|
|
3999 |
}
|
| 3430 |
rajveer |
4000 |
if (isSetPurchaseOrderId()) {
|
|
|
4001 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrderId, typedOther.purchaseOrderId);
|
|
|
4002 |
if (lastComparison != 0) {
|
|
|
4003 |
return lastComparison;
|
|
|
4004 |
}
|
| 2820 |
chandransh |
4005 |
}
|
| 3430 |
rajveer |
4006 |
lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
|
| 2820 |
chandransh |
4007 |
if (lastComparison != 0) {
|
|
|
4008 |
return lastComparison;
|
|
|
4009 |
}
|
| 3430 |
rajveer |
4010 |
if (isSetInvoiceNumber()) {
|
|
|
4011 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
|
|
|
4012 |
if (lastComparison != 0) {
|
|
|
4013 |
return lastComparison;
|
|
|
4014 |
}
|
| 2820 |
chandransh |
4015 |
}
|
| 3430 |
rajveer |
4016 |
lastComparison = Boolean.valueOf(isSetFreightCharges()).compareTo(typedOther.isSetFreightCharges());
|
| 2820 |
chandransh |
4017 |
if (lastComparison != 0) {
|
|
|
4018 |
return lastComparison;
|
|
|
4019 |
}
|
| 3430 |
rajveer |
4020 |
if (isSetFreightCharges()) {
|
|
|
4021 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freightCharges, typedOther.freightCharges);
|
|
|
4022 |
if (lastComparison != 0) {
|
|
|
4023 |
return lastComparison;
|
|
|
4024 |
}
|
| 2820 |
chandransh |
4025 |
}
|
|
|
4026 |
return 0;
|
|
|
4027 |
}
|
|
|
4028 |
|
| 3430 |
rajveer |
4029 |
public _Fields fieldForId(int fieldId) {
|
|
|
4030 |
return _Fields.findByThriftId(fieldId);
|
|
|
4031 |
}
|
|
|
4032 |
|
|
|
4033 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4034 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
4035 |
iprot.readStructBegin();
|
|
|
4036 |
while (true)
|
|
|
4037 |
{
|
|
|
4038 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4039 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
4040 |
break;
|
|
|
4041 |
}
|
| 3430 |
rajveer |
4042 |
switch (field.id) {
|
|
|
4043 |
case 1: // PURCHASE_ORDER_ID
|
|
|
4044 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4045 |
this.purchaseOrderId = iprot.readI64();
|
|
|
4046 |
setPurchaseOrderIdIsSet(true);
|
|
|
4047 |
} else {
|
|
|
4048 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4049 |
}
|
|
|
4050 |
break;
|
|
|
4051 |
case 2: // INVOICE_NUMBER
|
|
|
4052 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
4053 |
this.invoiceNumber = iprot.readString();
|
|
|
4054 |
} else {
|
|
|
4055 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4056 |
}
|
|
|
4057 |
break;
|
|
|
4058 |
case 3: // FREIGHT_CHARGES
|
|
|
4059 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
4060 |
this.freightCharges = iprot.readDouble();
|
|
|
4061 |
setFreightChargesIsSet(true);
|
|
|
4062 |
} else {
|
|
|
4063 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4064 |
}
|
|
|
4065 |
break;
|
|
|
4066 |
default:
|
|
|
4067 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
4068 |
}
|
| 3430 |
rajveer |
4069 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
4070 |
}
|
|
|
4071 |
iprot.readStructEnd();
|
|
|
4072 |
validate();
|
|
|
4073 |
}
|
|
|
4074 |
|
| 3430 |
rajveer |
4075 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
4076 |
validate();
|
|
|
4077 |
|
|
|
4078 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4079 |
oprot.writeFieldBegin(PURCHASE_ORDER_ID_FIELD_DESC);
|
|
|
4080 |
oprot.writeI64(this.purchaseOrderId);
|
|
|
4081 |
oprot.writeFieldEnd();
|
|
|
4082 |
if (this.invoiceNumber != null) {
|
|
|
4083 |
oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
|
|
|
4084 |
oprot.writeString(this.invoiceNumber);
|
|
|
4085 |
oprot.writeFieldEnd();
|
|
|
4086 |
}
|
|
|
4087 |
oprot.writeFieldBegin(FREIGHT_CHARGES_FIELD_DESC);
|
|
|
4088 |
oprot.writeDouble(this.freightCharges);
|
|
|
4089 |
oprot.writeFieldEnd();
|
|
|
4090 |
oprot.writeFieldStop();
|
|
|
4091 |
oprot.writeStructEnd();
|
|
|
4092 |
}
|
|
|
4093 |
|
|
|
4094 |
@Override
|
|
|
4095 |
public String toString() {
|
|
|
4096 |
StringBuilder sb = new StringBuilder("startPurchase_args(");
|
|
|
4097 |
boolean first = true;
|
|
|
4098 |
|
|
|
4099 |
sb.append("purchaseOrderId:");
|
|
|
4100 |
sb.append(this.purchaseOrderId);
|
|
|
4101 |
first = false;
|
|
|
4102 |
if (!first) sb.append(", ");
|
|
|
4103 |
sb.append("invoiceNumber:");
|
|
|
4104 |
if (this.invoiceNumber == null) {
|
|
|
4105 |
sb.append("null");
|
|
|
4106 |
} else {
|
|
|
4107 |
sb.append(this.invoiceNumber);
|
|
|
4108 |
}
|
|
|
4109 |
first = false;
|
|
|
4110 |
if (!first) sb.append(", ");
|
|
|
4111 |
sb.append("freightCharges:");
|
|
|
4112 |
sb.append(this.freightCharges);
|
|
|
4113 |
first = false;
|
|
|
4114 |
sb.append(")");
|
|
|
4115 |
return sb.toString();
|
|
|
4116 |
}
|
|
|
4117 |
|
| 3430 |
rajveer |
4118 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
4119 |
// check for required fields
|
|
|
4120 |
}
|
|
|
4121 |
|
| 3430 |
rajveer |
4122 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4123 |
try {
|
|
|
4124 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4125 |
} catch (org.apache.thrift.TException te) {
|
|
|
4126 |
throw new java.io.IOException(te);
|
|
|
4127 |
}
|
|
|
4128 |
}
|
|
|
4129 |
|
|
|
4130 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4131 |
try {
|
|
|
4132 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4133 |
} catch (org.apache.thrift.TException te) {
|
|
|
4134 |
throw new java.io.IOException(te);
|
|
|
4135 |
}
|
|
|
4136 |
}
|
|
|
4137 |
|
| 2820 |
chandransh |
4138 |
}
|
|
|
4139 |
|
| 3430 |
rajveer |
4140 |
public static class startPurchase_result implements org.apache.thrift.TBase<startPurchase_result, startPurchase_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
4141 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startPurchase_result");
|
| 2820 |
chandransh |
4142 |
|
| 3430 |
rajveer |
4143 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
|
|
|
4144 |
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 |
4145 |
|
| 3430 |
rajveer |
4146 |
private long success; // required
|
|
|
4147 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
4148 |
|
|
|
4149 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4150 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2820 |
chandransh |
4151 |
SUCCESS((short)0, "success"),
|
|
|
4152 |
WEX((short)1, "wex");
|
|
|
4153 |
|
|
|
4154 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4155 |
|
|
|
4156 |
static {
|
|
|
4157 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4158 |
byName.put(field.getFieldName(), field);
|
|
|
4159 |
}
|
|
|
4160 |
}
|
|
|
4161 |
|
|
|
4162 |
/**
|
|
|
4163 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4164 |
*/
|
|
|
4165 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4166 |
switch(fieldId) {
|
|
|
4167 |
case 0: // SUCCESS
|
|
|
4168 |
return SUCCESS;
|
|
|
4169 |
case 1: // WEX
|
|
|
4170 |
return WEX;
|
|
|
4171 |
default:
|
|
|
4172 |
return null;
|
|
|
4173 |
}
|
| 2820 |
chandransh |
4174 |
}
|
|
|
4175 |
|
|
|
4176 |
/**
|
|
|
4177 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4178 |
* if it is not found.
|
|
|
4179 |
*/
|
|
|
4180 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4181 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4182 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4183 |
return fields;
|
|
|
4184 |
}
|
|
|
4185 |
|
|
|
4186 |
/**
|
|
|
4187 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4188 |
*/
|
|
|
4189 |
public static _Fields findByName(String name) {
|
|
|
4190 |
return byName.get(name);
|
|
|
4191 |
}
|
|
|
4192 |
|
|
|
4193 |
private final short _thriftId;
|
|
|
4194 |
private final String _fieldName;
|
|
|
4195 |
|
|
|
4196 |
_Fields(short thriftId, String fieldName) {
|
|
|
4197 |
_thriftId = thriftId;
|
|
|
4198 |
_fieldName = fieldName;
|
|
|
4199 |
}
|
|
|
4200 |
|
|
|
4201 |
public short getThriftFieldId() {
|
|
|
4202 |
return _thriftId;
|
|
|
4203 |
}
|
|
|
4204 |
|
|
|
4205 |
public String getFieldName() {
|
|
|
4206 |
return _fieldName;
|
|
|
4207 |
}
|
|
|
4208 |
}
|
|
|
4209 |
|
|
|
4210 |
// isset id assignments
|
|
|
4211 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
4212 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
4213 |
|
| 3430 |
rajveer |
4214 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
4215 |
static {
|
| 3430 |
rajveer |
4216 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4217 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4218 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
4219 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4220 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
4221 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4222 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startPurchase_result.class, metaDataMap);
|
| 2820 |
chandransh |
4223 |
}
|
|
|
4224 |
|
|
|
4225 |
public startPurchase_result() {
|
|
|
4226 |
}
|
|
|
4227 |
|
|
|
4228 |
public startPurchase_result(
|
|
|
4229 |
long success,
|
|
|
4230 |
WarehouseServiceException wex)
|
|
|
4231 |
{
|
|
|
4232 |
this();
|
|
|
4233 |
this.success = success;
|
|
|
4234 |
setSuccessIsSet(true);
|
|
|
4235 |
this.wex = wex;
|
|
|
4236 |
}
|
|
|
4237 |
|
|
|
4238 |
/**
|
|
|
4239 |
* Performs a deep copy on <i>other</i>.
|
|
|
4240 |
*/
|
|
|
4241 |
public startPurchase_result(startPurchase_result other) {
|
|
|
4242 |
__isset_bit_vector.clear();
|
|
|
4243 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
4244 |
this.success = other.success;
|
|
|
4245 |
if (other.isSetWex()) {
|
|
|
4246 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
4247 |
}
|
|
|
4248 |
}
|
|
|
4249 |
|
|
|
4250 |
public startPurchase_result deepCopy() {
|
|
|
4251 |
return new startPurchase_result(this);
|
|
|
4252 |
}
|
|
|
4253 |
|
| 3430 |
rajveer |
4254 |
@Override
|
|
|
4255 |
public void clear() {
|
|
|
4256 |
setSuccessIsSet(false);
|
|
|
4257 |
this.success = 0;
|
|
|
4258 |
this.wex = null;
|
| 2820 |
chandransh |
4259 |
}
|
|
|
4260 |
|
|
|
4261 |
public long getSuccess() {
|
|
|
4262 |
return this.success;
|
|
|
4263 |
}
|
|
|
4264 |
|
| 3430 |
rajveer |
4265 |
public void setSuccess(long success) {
|
| 2820 |
chandransh |
4266 |
this.success = success;
|
|
|
4267 |
setSuccessIsSet(true);
|
|
|
4268 |
}
|
|
|
4269 |
|
|
|
4270 |
public void unsetSuccess() {
|
|
|
4271 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
4272 |
}
|
|
|
4273 |
|
| 3430 |
rajveer |
4274 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
4275 |
public boolean isSetSuccess() {
|
|
|
4276 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
4277 |
}
|
|
|
4278 |
|
|
|
4279 |
public void setSuccessIsSet(boolean value) {
|
|
|
4280 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
4281 |
}
|
|
|
4282 |
|
|
|
4283 |
public WarehouseServiceException getWex() {
|
|
|
4284 |
return this.wex;
|
|
|
4285 |
}
|
|
|
4286 |
|
| 3430 |
rajveer |
4287 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
4288 |
this.wex = wex;
|
|
|
4289 |
}
|
|
|
4290 |
|
|
|
4291 |
public void unsetWex() {
|
|
|
4292 |
this.wex = null;
|
|
|
4293 |
}
|
|
|
4294 |
|
| 3430 |
rajveer |
4295 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
4296 |
public boolean isSetWex() {
|
|
|
4297 |
return this.wex != null;
|
|
|
4298 |
}
|
|
|
4299 |
|
|
|
4300 |
public void setWexIsSet(boolean value) {
|
|
|
4301 |
if (!value) {
|
|
|
4302 |
this.wex = null;
|
|
|
4303 |
}
|
|
|
4304 |
}
|
|
|
4305 |
|
|
|
4306 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4307 |
switch (field) {
|
|
|
4308 |
case SUCCESS:
|
|
|
4309 |
if (value == null) {
|
|
|
4310 |
unsetSuccess();
|
|
|
4311 |
} else {
|
|
|
4312 |
setSuccess((Long)value);
|
|
|
4313 |
}
|
|
|
4314 |
break;
|
|
|
4315 |
|
|
|
4316 |
case WEX:
|
|
|
4317 |
if (value == null) {
|
|
|
4318 |
unsetWex();
|
|
|
4319 |
} else {
|
|
|
4320 |
setWex((WarehouseServiceException)value);
|
|
|
4321 |
}
|
|
|
4322 |
break;
|
|
|
4323 |
|
|
|
4324 |
}
|
|
|
4325 |
}
|
|
|
4326 |
|
|
|
4327 |
public Object getFieldValue(_Fields field) {
|
|
|
4328 |
switch (field) {
|
|
|
4329 |
case SUCCESS:
|
| 3430 |
rajveer |
4330 |
return Long.valueOf(getSuccess());
|
| 2820 |
chandransh |
4331 |
|
|
|
4332 |
case WEX:
|
|
|
4333 |
return getWex();
|
|
|
4334 |
|
|
|
4335 |
}
|
|
|
4336 |
throw new IllegalStateException();
|
|
|
4337 |
}
|
|
|
4338 |
|
| 3430 |
rajveer |
4339 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4340 |
public boolean isSet(_Fields field) {
|
|
|
4341 |
if (field == null) {
|
|
|
4342 |
throw new IllegalArgumentException();
|
|
|
4343 |
}
|
| 2820 |
chandransh |
4344 |
|
|
|
4345 |
switch (field) {
|
|
|
4346 |
case SUCCESS:
|
|
|
4347 |
return isSetSuccess();
|
|
|
4348 |
case WEX:
|
|
|
4349 |
return isSetWex();
|
|
|
4350 |
}
|
|
|
4351 |
throw new IllegalStateException();
|
|
|
4352 |
}
|
|
|
4353 |
|
|
|
4354 |
@Override
|
|
|
4355 |
public boolean equals(Object that) {
|
|
|
4356 |
if (that == null)
|
|
|
4357 |
return false;
|
|
|
4358 |
if (that instanceof startPurchase_result)
|
|
|
4359 |
return this.equals((startPurchase_result)that);
|
|
|
4360 |
return false;
|
|
|
4361 |
}
|
|
|
4362 |
|
|
|
4363 |
public boolean equals(startPurchase_result that) {
|
|
|
4364 |
if (that == null)
|
|
|
4365 |
return false;
|
|
|
4366 |
|
|
|
4367 |
boolean this_present_success = true;
|
|
|
4368 |
boolean that_present_success = true;
|
|
|
4369 |
if (this_present_success || that_present_success) {
|
|
|
4370 |
if (!(this_present_success && that_present_success))
|
|
|
4371 |
return false;
|
|
|
4372 |
if (this.success != that.success)
|
|
|
4373 |
return false;
|
|
|
4374 |
}
|
|
|
4375 |
|
|
|
4376 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
4377 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
4378 |
if (this_present_wex || that_present_wex) {
|
|
|
4379 |
if (!(this_present_wex && that_present_wex))
|
|
|
4380 |
return false;
|
|
|
4381 |
if (!this.wex.equals(that.wex))
|
|
|
4382 |
return false;
|
|
|
4383 |
}
|
|
|
4384 |
|
|
|
4385 |
return true;
|
|
|
4386 |
}
|
|
|
4387 |
|
|
|
4388 |
@Override
|
|
|
4389 |
public int hashCode() {
|
|
|
4390 |
return 0;
|
|
|
4391 |
}
|
|
|
4392 |
|
|
|
4393 |
public int compareTo(startPurchase_result other) {
|
|
|
4394 |
if (!getClass().equals(other.getClass())) {
|
|
|
4395 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4396 |
}
|
|
|
4397 |
|
|
|
4398 |
int lastComparison = 0;
|
|
|
4399 |
startPurchase_result typedOther = (startPurchase_result)other;
|
|
|
4400 |
|
| 3430 |
rajveer |
4401 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2820 |
chandransh |
4402 |
if (lastComparison != 0) {
|
|
|
4403 |
return lastComparison;
|
|
|
4404 |
}
|
| 3430 |
rajveer |
4405 |
if (isSetSuccess()) {
|
|
|
4406 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
4407 |
if (lastComparison != 0) {
|
|
|
4408 |
return lastComparison;
|
|
|
4409 |
}
|
| 2820 |
chandransh |
4410 |
}
|
| 3430 |
rajveer |
4411 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
4412 |
if (lastComparison != 0) {
|
|
|
4413 |
return lastComparison;
|
|
|
4414 |
}
|
| 3430 |
rajveer |
4415 |
if (isSetWex()) {
|
|
|
4416 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
4417 |
if (lastComparison != 0) {
|
|
|
4418 |
return lastComparison;
|
|
|
4419 |
}
|
| 2820 |
chandransh |
4420 |
}
|
|
|
4421 |
return 0;
|
|
|
4422 |
}
|
|
|
4423 |
|
| 3430 |
rajveer |
4424 |
public _Fields fieldForId(int fieldId) {
|
|
|
4425 |
return _Fields.findByThriftId(fieldId);
|
|
|
4426 |
}
|
|
|
4427 |
|
|
|
4428 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4429 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
4430 |
iprot.readStructBegin();
|
|
|
4431 |
while (true)
|
|
|
4432 |
{
|
|
|
4433 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4434 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
4435 |
break;
|
|
|
4436 |
}
|
| 3430 |
rajveer |
4437 |
switch (field.id) {
|
|
|
4438 |
case 0: // SUCCESS
|
|
|
4439 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4440 |
this.success = iprot.readI64();
|
|
|
4441 |
setSuccessIsSet(true);
|
|
|
4442 |
} else {
|
|
|
4443 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4444 |
}
|
|
|
4445 |
break;
|
|
|
4446 |
case 1: // WEX
|
|
|
4447 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4448 |
this.wex = new WarehouseServiceException();
|
|
|
4449 |
this.wex.read(iprot);
|
|
|
4450 |
} else {
|
|
|
4451 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4452 |
}
|
|
|
4453 |
break;
|
|
|
4454 |
default:
|
|
|
4455 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
4456 |
}
|
| 3430 |
rajveer |
4457 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
4458 |
}
|
|
|
4459 |
iprot.readStructEnd();
|
|
|
4460 |
validate();
|
|
|
4461 |
}
|
|
|
4462 |
|
| 3430 |
rajveer |
4463 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
4464 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4465 |
|
|
|
4466 |
if (this.isSetSuccess()) {
|
|
|
4467 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
4468 |
oprot.writeI64(this.success);
|
|
|
4469 |
oprot.writeFieldEnd();
|
|
|
4470 |
} else if (this.isSetWex()) {
|
|
|
4471 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
4472 |
this.wex.write(oprot);
|
|
|
4473 |
oprot.writeFieldEnd();
|
|
|
4474 |
}
|
|
|
4475 |
oprot.writeFieldStop();
|
|
|
4476 |
oprot.writeStructEnd();
|
|
|
4477 |
}
|
|
|
4478 |
|
|
|
4479 |
@Override
|
|
|
4480 |
public String toString() {
|
|
|
4481 |
StringBuilder sb = new StringBuilder("startPurchase_result(");
|
|
|
4482 |
boolean first = true;
|
|
|
4483 |
|
|
|
4484 |
sb.append("success:");
|
|
|
4485 |
sb.append(this.success);
|
|
|
4486 |
first = false;
|
|
|
4487 |
if (!first) sb.append(", ");
|
|
|
4488 |
sb.append("wex:");
|
|
|
4489 |
if (this.wex == null) {
|
|
|
4490 |
sb.append("null");
|
|
|
4491 |
} else {
|
|
|
4492 |
sb.append(this.wex);
|
|
|
4493 |
}
|
|
|
4494 |
first = false;
|
|
|
4495 |
sb.append(")");
|
|
|
4496 |
return sb.toString();
|
|
|
4497 |
}
|
|
|
4498 |
|
| 3430 |
rajveer |
4499 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
4500 |
// check for required fields
|
|
|
4501 |
}
|
|
|
4502 |
|
| 3430 |
rajveer |
4503 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4504 |
try {
|
|
|
4505 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4506 |
} catch (org.apache.thrift.TException te) {
|
|
|
4507 |
throw new java.io.IOException(te);
|
|
|
4508 |
}
|
|
|
4509 |
}
|
|
|
4510 |
|
|
|
4511 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4512 |
try {
|
|
|
4513 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4514 |
} catch (org.apache.thrift.TException te) {
|
|
|
4515 |
throw new java.io.IOException(te);
|
|
|
4516 |
}
|
|
|
4517 |
}
|
|
|
4518 |
|
| 2820 |
chandransh |
4519 |
}
|
|
|
4520 |
|
| 3430 |
rajveer |
4521 |
public static class closePurchase_args implements org.apache.thrift.TBase<closePurchase_args, closePurchase_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4522 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closePurchase_args");
|
| 2820 |
chandransh |
4523 |
|
| 3430 |
rajveer |
4524 |
private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 2820 |
chandransh |
4525 |
|
| 3430 |
rajveer |
4526 |
private long purchaseId; // required
|
| 2820 |
chandransh |
4527 |
|
|
|
4528 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4529 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2820 |
chandransh |
4530 |
PURCHASE_ID((short)1, "purchaseId");
|
|
|
4531 |
|
|
|
4532 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4533 |
|
|
|
4534 |
static {
|
|
|
4535 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4536 |
byName.put(field.getFieldName(), field);
|
|
|
4537 |
}
|
|
|
4538 |
}
|
|
|
4539 |
|
|
|
4540 |
/**
|
|
|
4541 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4542 |
*/
|
|
|
4543 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4544 |
switch(fieldId) {
|
|
|
4545 |
case 1: // PURCHASE_ID
|
|
|
4546 |
return PURCHASE_ID;
|
|
|
4547 |
default:
|
|
|
4548 |
return null;
|
|
|
4549 |
}
|
| 2820 |
chandransh |
4550 |
}
|
|
|
4551 |
|
|
|
4552 |
/**
|
|
|
4553 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4554 |
* if it is not found.
|
|
|
4555 |
*/
|
|
|
4556 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4557 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4558 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4559 |
return fields;
|
|
|
4560 |
}
|
|
|
4561 |
|
|
|
4562 |
/**
|
|
|
4563 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4564 |
*/
|
|
|
4565 |
public static _Fields findByName(String name) {
|
|
|
4566 |
return byName.get(name);
|
|
|
4567 |
}
|
|
|
4568 |
|
|
|
4569 |
private final short _thriftId;
|
|
|
4570 |
private final String _fieldName;
|
|
|
4571 |
|
|
|
4572 |
_Fields(short thriftId, String fieldName) {
|
|
|
4573 |
_thriftId = thriftId;
|
|
|
4574 |
_fieldName = fieldName;
|
|
|
4575 |
}
|
|
|
4576 |
|
|
|
4577 |
public short getThriftFieldId() {
|
|
|
4578 |
return _thriftId;
|
|
|
4579 |
}
|
|
|
4580 |
|
|
|
4581 |
public String getFieldName() {
|
|
|
4582 |
return _fieldName;
|
|
|
4583 |
}
|
|
|
4584 |
}
|
|
|
4585 |
|
|
|
4586 |
// isset id assignments
|
|
|
4587 |
private static final int __PURCHASEID_ISSET_ID = 0;
|
|
|
4588 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
4589 |
|
| 3430 |
rajveer |
4590 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
4591 |
static {
|
| 3430 |
rajveer |
4592 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4593 |
tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4594 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
4595 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4596 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closePurchase_args.class, metaDataMap);
|
| 2820 |
chandransh |
4597 |
}
|
|
|
4598 |
|
|
|
4599 |
public closePurchase_args() {
|
|
|
4600 |
}
|
|
|
4601 |
|
|
|
4602 |
public closePurchase_args(
|
|
|
4603 |
long purchaseId)
|
|
|
4604 |
{
|
|
|
4605 |
this();
|
|
|
4606 |
this.purchaseId = purchaseId;
|
|
|
4607 |
setPurchaseIdIsSet(true);
|
|
|
4608 |
}
|
|
|
4609 |
|
|
|
4610 |
/**
|
|
|
4611 |
* Performs a deep copy on <i>other</i>.
|
|
|
4612 |
*/
|
|
|
4613 |
public closePurchase_args(closePurchase_args other) {
|
|
|
4614 |
__isset_bit_vector.clear();
|
|
|
4615 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
4616 |
this.purchaseId = other.purchaseId;
|
|
|
4617 |
}
|
|
|
4618 |
|
|
|
4619 |
public closePurchase_args deepCopy() {
|
|
|
4620 |
return new closePurchase_args(this);
|
|
|
4621 |
}
|
|
|
4622 |
|
| 3430 |
rajveer |
4623 |
@Override
|
|
|
4624 |
public void clear() {
|
|
|
4625 |
setPurchaseIdIsSet(false);
|
|
|
4626 |
this.purchaseId = 0;
|
| 2820 |
chandransh |
4627 |
}
|
|
|
4628 |
|
|
|
4629 |
public long getPurchaseId() {
|
|
|
4630 |
return this.purchaseId;
|
|
|
4631 |
}
|
|
|
4632 |
|
| 3430 |
rajveer |
4633 |
public void setPurchaseId(long purchaseId) {
|
| 2820 |
chandransh |
4634 |
this.purchaseId = purchaseId;
|
|
|
4635 |
setPurchaseIdIsSet(true);
|
|
|
4636 |
}
|
|
|
4637 |
|
|
|
4638 |
public void unsetPurchaseId() {
|
|
|
4639 |
__isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
|
|
|
4640 |
}
|
|
|
4641 |
|
| 3430 |
rajveer |
4642 |
/** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
4643 |
public boolean isSetPurchaseId() {
|
|
|
4644 |
return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
|
|
|
4645 |
}
|
|
|
4646 |
|
|
|
4647 |
public void setPurchaseIdIsSet(boolean value) {
|
|
|
4648 |
__isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
|
|
|
4649 |
}
|
|
|
4650 |
|
|
|
4651 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4652 |
switch (field) {
|
|
|
4653 |
case PURCHASE_ID:
|
|
|
4654 |
if (value == null) {
|
|
|
4655 |
unsetPurchaseId();
|
|
|
4656 |
} else {
|
|
|
4657 |
setPurchaseId((Long)value);
|
|
|
4658 |
}
|
|
|
4659 |
break;
|
|
|
4660 |
|
|
|
4661 |
}
|
|
|
4662 |
}
|
|
|
4663 |
|
|
|
4664 |
public Object getFieldValue(_Fields field) {
|
|
|
4665 |
switch (field) {
|
|
|
4666 |
case PURCHASE_ID:
|
| 3430 |
rajveer |
4667 |
return Long.valueOf(getPurchaseId());
|
| 2820 |
chandransh |
4668 |
|
|
|
4669 |
}
|
|
|
4670 |
throw new IllegalStateException();
|
|
|
4671 |
}
|
|
|
4672 |
|
| 3430 |
rajveer |
4673 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4674 |
public boolean isSet(_Fields field) {
|
|
|
4675 |
if (field == null) {
|
|
|
4676 |
throw new IllegalArgumentException();
|
|
|
4677 |
}
|
| 2820 |
chandransh |
4678 |
|
|
|
4679 |
switch (field) {
|
|
|
4680 |
case PURCHASE_ID:
|
|
|
4681 |
return isSetPurchaseId();
|
|
|
4682 |
}
|
|
|
4683 |
throw new IllegalStateException();
|
|
|
4684 |
}
|
|
|
4685 |
|
|
|
4686 |
@Override
|
|
|
4687 |
public boolean equals(Object that) {
|
|
|
4688 |
if (that == null)
|
|
|
4689 |
return false;
|
|
|
4690 |
if (that instanceof closePurchase_args)
|
|
|
4691 |
return this.equals((closePurchase_args)that);
|
|
|
4692 |
return false;
|
|
|
4693 |
}
|
|
|
4694 |
|
|
|
4695 |
public boolean equals(closePurchase_args that) {
|
|
|
4696 |
if (that == null)
|
|
|
4697 |
return false;
|
|
|
4698 |
|
|
|
4699 |
boolean this_present_purchaseId = true;
|
|
|
4700 |
boolean that_present_purchaseId = true;
|
|
|
4701 |
if (this_present_purchaseId || that_present_purchaseId) {
|
|
|
4702 |
if (!(this_present_purchaseId && that_present_purchaseId))
|
|
|
4703 |
return false;
|
|
|
4704 |
if (this.purchaseId != that.purchaseId)
|
|
|
4705 |
return false;
|
|
|
4706 |
}
|
|
|
4707 |
|
|
|
4708 |
return true;
|
|
|
4709 |
}
|
|
|
4710 |
|
|
|
4711 |
@Override
|
|
|
4712 |
public int hashCode() {
|
|
|
4713 |
return 0;
|
|
|
4714 |
}
|
|
|
4715 |
|
|
|
4716 |
public int compareTo(closePurchase_args other) {
|
|
|
4717 |
if (!getClass().equals(other.getClass())) {
|
|
|
4718 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4719 |
}
|
|
|
4720 |
|
|
|
4721 |
int lastComparison = 0;
|
|
|
4722 |
closePurchase_args typedOther = (closePurchase_args)other;
|
|
|
4723 |
|
| 3430 |
rajveer |
4724 |
lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
|
| 2820 |
chandransh |
4725 |
if (lastComparison != 0) {
|
|
|
4726 |
return lastComparison;
|
|
|
4727 |
}
|
| 3430 |
rajveer |
4728 |
if (isSetPurchaseId()) {
|
|
|
4729 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
|
|
|
4730 |
if (lastComparison != 0) {
|
|
|
4731 |
return lastComparison;
|
|
|
4732 |
}
|
| 2820 |
chandransh |
4733 |
}
|
|
|
4734 |
return 0;
|
|
|
4735 |
}
|
|
|
4736 |
|
| 3430 |
rajveer |
4737 |
public _Fields fieldForId(int fieldId) {
|
|
|
4738 |
return _Fields.findByThriftId(fieldId);
|
|
|
4739 |
}
|
|
|
4740 |
|
|
|
4741 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4742 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
4743 |
iprot.readStructBegin();
|
|
|
4744 |
while (true)
|
|
|
4745 |
{
|
|
|
4746 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4747 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
4748 |
break;
|
|
|
4749 |
}
|
| 3430 |
rajveer |
4750 |
switch (field.id) {
|
|
|
4751 |
case 1: // PURCHASE_ID
|
|
|
4752 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4753 |
this.purchaseId = iprot.readI64();
|
|
|
4754 |
setPurchaseIdIsSet(true);
|
|
|
4755 |
} else {
|
|
|
4756 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4757 |
}
|
|
|
4758 |
break;
|
|
|
4759 |
default:
|
|
|
4760 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
4761 |
}
|
| 3430 |
rajveer |
4762 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
4763 |
}
|
|
|
4764 |
iprot.readStructEnd();
|
|
|
4765 |
validate();
|
|
|
4766 |
}
|
|
|
4767 |
|
| 3430 |
rajveer |
4768 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
4769 |
validate();
|
|
|
4770 |
|
|
|
4771 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4772 |
oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
|
|
|
4773 |
oprot.writeI64(this.purchaseId);
|
|
|
4774 |
oprot.writeFieldEnd();
|
|
|
4775 |
oprot.writeFieldStop();
|
|
|
4776 |
oprot.writeStructEnd();
|
|
|
4777 |
}
|
|
|
4778 |
|
|
|
4779 |
@Override
|
|
|
4780 |
public String toString() {
|
|
|
4781 |
StringBuilder sb = new StringBuilder("closePurchase_args(");
|
|
|
4782 |
boolean first = true;
|
|
|
4783 |
|
|
|
4784 |
sb.append("purchaseId:");
|
|
|
4785 |
sb.append(this.purchaseId);
|
|
|
4786 |
first = false;
|
|
|
4787 |
sb.append(")");
|
|
|
4788 |
return sb.toString();
|
|
|
4789 |
}
|
|
|
4790 |
|
| 3430 |
rajveer |
4791 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
4792 |
// check for required fields
|
|
|
4793 |
}
|
|
|
4794 |
|
| 3430 |
rajveer |
4795 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4796 |
try {
|
|
|
4797 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4798 |
} catch (org.apache.thrift.TException te) {
|
|
|
4799 |
throw new java.io.IOException(te);
|
|
|
4800 |
}
|
|
|
4801 |
}
|
|
|
4802 |
|
|
|
4803 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4804 |
try {
|
|
|
4805 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4806 |
} catch (org.apache.thrift.TException te) {
|
|
|
4807 |
throw new java.io.IOException(te);
|
|
|
4808 |
}
|
|
|
4809 |
}
|
|
|
4810 |
|
| 2820 |
chandransh |
4811 |
}
|
|
|
4812 |
|
| 3430 |
rajveer |
4813 |
public static class closePurchase_result implements org.apache.thrift.TBase<closePurchase_result, closePurchase_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
4814 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closePurchase_result");
|
| 2820 |
chandransh |
4815 |
|
| 3430 |
rajveer |
4816 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
|
|
|
4817 |
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 |
4818 |
|
| 3430 |
rajveer |
4819 |
private long success; // required
|
|
|
4820 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
4821 |
|
|
|
4822 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4823 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2820 |
chandransh |
4824 |
SUCCESS((short)0, "success"),
|
|
|
4825 |
WEX((short)1, "wex");
|
|
|
4826 |
|
|
|
4827 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4828 |
|
|
|
4829 |
static {
|
|
|
4830 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4831 |
byName.put(field.getFieldName(), field);
|
|
|
4832 |
}
|
|
|
4833 |
}
|
|
|
4834 |
|
|
|
4835 |
/**
|
|
|
4836 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4837 |
*/
|
|
|
4838 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4839 |
switch(fieldId) {
|
|
|
4840 |
case 0: // SUCCESS
|
|
|
4841 |
return SUCCESS;
|
|
|
4842 |
case 1: // WEX
|
|
|
4843 |
return WEX;
|
|
|
4844 |
default:
|
|
|
4845 |
return null;
|
|
|
4846 |
}
|
| 2820 |
chandransh |
4847 |
}
|
|
|
4848 |
|
|
|
4849 |
/**
|
|
|
4850 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4851 |
* if it is not found.
|
|
|
4852 |
*/
|
|
|
4853 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4854 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4855 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4856 |
return fields;
|
|
|
4857 |
}
|
|
|
4858 |
|
|
|
4859 |
/**
|
|
|
4860 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4861 |
*/
|
|
|
4862 |
public static _Fields findByName(String name) {
|
|
|
4863 |
return byName.get(name);
|
|
|
4864 |
}
|
|
|
4865 |
|
|
|
4866 |
private final short _thriftId;
|
|
|
4867 |
private final String _fieldName;
|
|
|
4868 |
|
|
|
4869 |
_Fields(short thriftId, String fieldName) {
|
|
|
4870 |
_thriftId = thriftId;
|
|
|
4871 |
_fieldName = fieldName;
|
|
|
4872 |
}
|
|
|
4873 |
|
|
|
4874 |
public short getThriftFieldId() {
|
|
|
4875 |
return _thriftId;
|
|
|
4876 |
}
|
|
|
4877 |
|
|
|
4878 |
public String getFieldName() {
|
|
|
4879 |
return _fieldName;
|
|
|
4880 |
}
|
|
|
4881 |
}
|
|
|
4882 |
|
|
|
4883 |
// isset id assignments
|
|
|
4884 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
4885 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
4886 |
|
| 3430 |
rajveer |
4887 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
4888 |
static {
|
| 3430 |
rajveer |
4889 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4890 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4891 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
4892 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4893 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
4894 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4895 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closePurchase_result.class, metaDataMap);
|
| 2820 |
chandransh |
4896 |
}
|
|
|
4897 |
|
|
|
4898 |
public closePurchase_result() {
|
|
|
4899 |
}
|
|
|
4900 |
|
|
|
4901 |
public closePurchase_result(
|
|
|
4902 |
long success,
|
|
|
4903 |
WarehouseServiceException wex)
|
|
|
4904 |
{
|
|
|
4905 |
this();
|
|
|
4906 |
this.success = success;
|
|
|
4907 |
setSuccessIsSet(true);
|
|
|
4908 |
this.wex = wex;
|
|
|
4909 |
}
|
|
|
4910 |
|
|
|
4911 |
/**
|
|
|
4912 |
* Performs a deep copy on <i>other</i>.
|
|
|
4913 |
*/
|
|
|
4914 |
public closePurchase_result(closePurchase_result other) {
|
|
|
4915 |
__isset_bit_vector.clear();
|
|
|
4916 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
4917 |
this.success = other.success;
|
|
|
4918 |
if (other.isSetWex()) {
|
|
|
4919 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
4920 |
}
|
|
|
4921 |
}
|
|
|
4922 |
|
|
|
4923 |
public closePurchase_result deepCopy() {
|
|
|
4924 |
return new closePurchase_result(this);
|
|
|
4925 |
}
|
|
|
4926 |
|
| 3430 |
rajveer |
4927 |
@Override
|
|
|
4928 |
public void clear() {
|
|
|
4929 |
setSuccessIsSet(false);
|
|
|
4930 |
this.success = 0;
|
|
|
4931 |
this.wex = null;
|
| 2820 |
chandransh |
4932 |
}
|
|
|
4933 |
|
|
|
4934 |
public long getSuccess() {
|
|
|
4935 |
return this.success;
|
|
|
4936 |
}
|
|
|
4937 |
|
| 3430 |
rajveer |
4938 |
public void setSuccess(long success) {
|
| 2820 |
chandransh |
4939 |
this.success = success;
|
|
|
4940 |
setSuccessIsSet(true);
|
|
|
4941 |
}
|
|
|
4942 |
|
|
|
4943 |
public void unsetSuccess() {
|
|
|
4944 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
4945 |
}
|
|
|
4946 |
|
| 3430 |
rajveer |
4947 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
4948 |
public boolean isSetSuccess() {
|
|
|
4949 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
4950 |
}
|
|
|
4951 |
|
|
|
4952 |
public void setSuccessIsSet(boolean value) {
|
|
|
4953 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
4954 |
}
|
|
|
4955 |
|
|
|
4956 |
public WarehouseServiceException getWex() {
|
|
|
4957 |
return this.wex;
|
|
|
4958 |
}
|
|
|
4959 |
|
| 3430 |
rajveer |
4960 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
4961 |
this.wex = wex;
|
|
|
4962 |
}
|
|
|
4963 |
|
|
|
4964 |
public void unsetWex() {
|
|
|
4965 |
this.wex = null;
|
|
|
4966 |
}
|
|
|
4967 |
|
| 3430 |
rajveer |
4968 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
4969 |
public boolean isSetWex() {
|
|
|
4970 |
return this.wex != null;
|
|
|
4971 |
}
|
|
|
4972 |
|
|
|
4973 |
public void setWexIsSet(boolean value) {
|
|
|
4974 |
if (!value) {
|
|
|
4975 |
this.wex = null;
|
|
|
4976 |
}
|
|
|
4977 |
}
|
|
|
4978 |
|
|
|
4979 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4980 |
switch (field) {
|
|
|
4981 |
case SUCCESS:
|
|
|
4982 |
if (value == null) {
|
|
|
4983 |
unsetSuccess();
|
|
|
4984 |
} else {
|
|
|
4985 |
setSuccess((Long)value);
|
|
|
4986 |
}
|
|
|
4987 |
break;
|
|
|
4988 |
|
|
|
4989 |
case WEX:
|
|
|
4990 |
if (value == null) {
|
|
|
4991 |
unsetWex();
|
|
|
4992 |
} else {
|
|
|
4993 |
setWex((WarehouseServiceException)value);
|
|
|
4994 |
}
|
|
|
4995 |
break;
|
|
|
4996 |
|
|
|
4997 |
}
|
|
|
4998 |
}
|
|
|
4999 |
|
|
|
5000 |
public Object getFieldValue(_Fields field) {
|
|
|
5001 |
switch (field) {
|
|
|
5002 |
case SUCCESS:
|
| 3430 |
rajveer |
5003 |
return Long.valueOf(getSuccess());
|
| 2820 |
chandransh |
5004 |
|
|
|
5005 |
case WEX:
|
|
|
5006 |
return getWex();
|
|
|
5007 |
|
|
|
5008 |
}
|
|
|
5009 |
throw new IllegalStateException();
|
|
|
5010 |
}
|
|
|
5011 |
|
| 3430 |
rajveer |
5012 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5013 |
public boolean isSet(_Fields field) {
|
|
|
5014 |
if (field == null) {
|
|
|
5015 |
throw new IllegalArgumentException();
|
|
|
5016 |
}
|
| 2820 |
chandransh |
5017 |
|
|
|
5018 |
switch (field) {
|
|
|
5019 |
case SUCCESS:
|
|
|
5020 |
return isSetSuccess();
|
|
|
5021 |
case WEX:
|
|
|
5022 |
return isSetWex();
|
|
|
5023 |
}
|
|
|
5024 |
throw new IllegalStateException();
|
|
|
5025 |
}
|
|
|
5026 |
|
|
|
5027 |
@Override
|
|
|
5028 |
public boolean equals(Object that) {
|
|
|
5029 |
if (that == null)
|
|
|
5030 |
return false;
|
|
|
5031 |
if (that instanceof closePurchase_result)
|
|
|
5032 |
return this.equals((closePurchase_result)that);
|
|
|
5033 |
return false;
|
|
|
5034 |
}
|
|
|
5035 |
|
|
|
5036 |
public boolean equals(closePurchase_result that) {
|
|
|
5037 |
if (that == null)
|
|
|
5038 |
return false;
|
|
|
5039 |
|
|
|
5040 |
boolean this_present_success = true;
|
|
|
5041 |
boolean that_present_success = true;
|
|
|
5042 |
if (this_present_success || that_present_success) {
|
|
|
5043 |
if (!(this_present_success && that_present_success))
|
|
|
5044 |
return false;
|
|
|
5045 |
if (this.success != that.success)
|
|
|
5046 |
return false;
|
|
|
5047 |
}
|
|
|
5048 |
|
|
|
5049 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
5050 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
5051 |
if (this_present_wex || that_present_wex) {
|
|
|
5052 |
if (!(this_present_wex && that_present_wex))
|
|
|
5053 |
return false;
|
|
|
5054 |
if (!this.wex.equals(that.wex))
|
|
|
5055 |
return false;
|
|
|
5056 |
}
|
|
|
5057 |
|
|
|
5058 |
return true;
|
|
|
5059 |
}
|
|
|
5060 |
|
|
|
5061 |
@Override
|
|
|
5062 |
public int hashCode() {
|
|
|
5063 |
return 0;
|
|
|
5064 |
}
|
|
|
5065 |
|
|
|
5066 |
public int compareTo(closePurchase_result other) {
|
|
|
5067 |
if (!getClass().equals(other.getClass())) {
|
|
|
5068 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5069 |
}
|
|
|
5070 |
|
|
|
5071 |
int lastComparison = 0;
|
|
|
5072 |
closePurchase_result typedOther = (closePurchase_result)other;
|
|
|
5073 |
|
| 3430 |
rajveer |
5074 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2820 |
chandransh |
5075 |
if (lastComparison != 0) {
|
|
|
5076 |
return lastComparison;
|
|
|
5077 |
}
|
| 3430 |
rajveer |
5078 |
if (isSetSuccess()) {
|
|
|
5079 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
5080 |
if (lastComparison != 0) {
|
|
|
5081 |
return lastComparison;
|
|
|
5082 |
}
|
| 2820 |
chandransh |
5083 |
}
|
| 3430 |
rajveer |
5084 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
5085 |
if (lastComparison != 0) {
|
|
|
5086 |
return lastComparison;
|
|
|
5087 |
}
|
| 3430 |
rajveer |
5088 |
if (isSetWex()) {
|
|
|
5089 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
5090 |
if (lastComparison != 0) {
|
|
|
5091 |
return lastComparison;
|
|
|
5092 |
}
|
| 2820 |
chandransh |
5093 |
}
|
|
|
5094 |
return 0;
|
|
|
5095 |
}
|
|
|
5096 |
|
| 3430 |
rajveer |
5097 |
public _Fields fieldForId(int fieldId) {
|
|
|
5098 |
return _Fields.findByThriftId(fieldId);
|
|
|
5099 |
}
|
|
|
5100 |
|
|
|
5101 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5102 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
5103 |
iprot.readStructBegin();
|
|
|
5104 |
while (true)
|
|
|
5105 |
{
|
|
|
5106 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5107 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
5108 |
break;
|
|
|
5109 |
}
|
| 3430 |
rajveer |
5110 |
switch (field.id) {
|
|
|
5111 |
case 0: // SUCCESS
|
|
|
5112 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5113 |
this.success = iprot.readI64();
|
|
|
5114 |
setSuccessIsSet(true);
|
|
|
5115 |
} else {
|
|
|
5116 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5117 |
}
|
|
|
5118 |
break;
|
|
|
5119 |
case 1: // WEX
|
|
|
5120 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5121 |
this.wex = new WarehouseServiceException();
|
|
|
5122 |
this.wex.read(iprot);
|
|
|
5123 |
} else {
|
|
|
5124 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5125 |
}
|
|
|
5126 |
break;
|
|
|
5127 |
default:
|
|
|
5128 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
5129 |
}
|
| 3430 |
rajveer |
5130 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
5131 |
}
|
|
|
5132 |
iprot.readStructEnd();
|
|
|
5133 |
validate();
|
|
|
5134 |
}
|
|
|
5135 |
|
| 3430 |
rajveer |
5136 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5137 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5138 |
|
|
|
5139 |
if (this.isSetSuccess()) {
|
|
|
5140 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
5141 |
oprot.writeI64(this.success);
|
|
|
5142 |
oprot.writeFieldEnd();
|
|
|
5143 |
} else if (this.isSetWex()) {
|
|
|
5144 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
5145 |
this.wex.write(oprot);
|
|
|
5146 |
oprot.writeFieldEnd();
|
|
|
5147 |
}
|
|
|
5148 |
oprot.writeFieldStop();
|
|
|
5149 |
oprot.writeStructEnd();
|
|
|
5150 |
}
|
|
|
5151 |
|
|
|
5152 |
@Override
|
|
|
5153 |
public String toString() {
|
|
|
5154 |
StringBuilder sb = new StringBuilder("closePurchase_result(");
|
|
|
5155 |
boolean first = true;
|
|
|
5156 |
|
|
|
5157 |
sb.append("success:");
|
|
|
5158 |
sb.append(this.success);
|
|
|
5159 |
first = false;
|
|
|
5160 |
if (!first) sb.append(", ");
|
|
|
5161 |
sb.append("wex:");
|
|
|
5162 |
if (this.wex == null) {
|
|
|
5163 |
sb.append("null");
|
|
|
5164 |
} else {
|
|
|
5165 |
sb.append(this.wex);
|
|
|
5166 |
}
|
|
|
5167 |
first = false;
|
|
|
5168 |
sb.append(")");
|
|
|
5169 |
return sb.toString();
|
|
|
5170 |
}
|
|
|
5171 |
|
| 3430 |
rajveer |
5172 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
5173 |
// check for required fields
|
|
|
5174 |
}
|
|
|
5175 |
|
| 3430 |
rajveer |
5176 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5177 |
try {
|
|
|
5178 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5179 |
} catch (org.apache.thrift.TException te) {
|
|
|
5180 |
throw new java.io.IOException(te);
|
|
|
5181 |
}
|
|
|
5182 |
}
|
|
|
5183 |
|
|
|
5184 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5185 |
try {
|
|
|
5186 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5187 |
} catch (org.apache.thrift.TException te) {
|
|
|
5188 |
throw new java.io.IOException(te);
|
|
|
5189 |
}
|
|
|
5190 |
}
|
|
|
5191 |
|
| 2820 |
chandransh |
5192 |
}
|
|
|
5193 |
|
| 3430 |
rajveer |
5194 |
public static class getAllPurchases_args implements org.apache.thrift.TBase<getAllPurchases_args, getAllPurchases_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
5195 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPurchases_args");
|
| 3383 |
chandransh |
5196 |
|
| 3430 |
rajveer |
5197 |
private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
5198 |
private static final org.apache.thrift.protocol.TField OPEN_FIELD_DESC = new org.apache.thrift.protocol.TField("open", org.apache.thrift.protocol.TType.BOOL, (short)2);
|
| 3383 |
chandransh |
5199 |
|
| 3430 |
rajveer |
5200 |
private long purchaseOrderId; // required
|
|
|
5201 |
private boolean open; // required
|
| 3383 |
chandransh |
5202 |
|
|
|
5203 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5204 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3383 |
chandransh |
5205 |
PURCHASE_ORDER_ID((short)1, "purchaseOrderId"),
|
|
|
5206 |
OPEN((short)2, "open");
|
|
|
5207 |
|
|
|
5208 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5209 |
|
|
|
5210 |
static {
|
|
|
5211 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5212 |
byName.put(field.getFieldName(), field);
|
|
|
5213 |
}
|
|
|
5214 |
}
|
|
|
5215 |
|
|
|
5216 |
/**
|
|
|
5217 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5218 |
*/
|
|
|
5219 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5220 |
switch(fieldId) {
|
|
|
5221 |
case 1: // PURCHASE_ORDER_ID
|
|
|
5222 |
return PURCHASE_ORDER_ID;
|
|
|
5223 |
case 2: // OPEN
|
|
|
5224 |
return OPEN;
|
|
|
5225 |
default:
|
|
|
5226 |
return null;
|
|
|
5227 |
}
|
| 3383 |
chandransh |
5228 |
}
|
|
|
5229 |
|
|
|
5230 |
/**
|
|
|
5231 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5232 |
* if it is not found.
|
|
|
5233 |
*/
|
|
|
5234 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5235 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5236 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5237 |
return fields;
|
|
|
5238 |
}
|
|
|
5239 |
|
|
|
5240 |
/**
|
|
|
5241 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5242 |
*/
|
|
|
5243 |
public static _Fields findByName(String name) {
|
|
|
5244 |
return byName.get(name);
|
|
|
5245 |
}
|
|
|
5246 |
|
|
|
5247 |
private final short _thriftId;
|
|
|
5248 |
private final String _fieldName;
|
|
|
5249 |
|
|
|
5250 |
_Fields(short thriftId, String fieldName) {
|
|
|
5251 |
_thriftId = thriftId;
|
|
|
5252 |
_fieldName = fieldName;
|
|
|
5253 |
}
|
|
|
5254 |
|
|
|
5255 |
public short getThriftFieldId() {
|
|
|
5256 |
return _thriftId;
|
|
|
5257 |
}
|
|
|
5258 |
|
|
|
5259 |
public String getFieldName() {
|
|
|
5260 |
return _fieldName;
|
|
|
5261 |
}
|
|
|
5262 |
}
|
|
|
5263 |
|
|
|
5264 |
// isset id assignments
|
|
|
5265 |
private static final int __PURCHASEORDERID_ISSET_ID = 0;
|
|
|
5266 |
private static final int __OPEN_ISSET_ID = 1;
|
|
|
5267 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
5268 |
|
| 3430 |
rajveer |
5269 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
5270 |
static {
|
| 3430 |
rajveer |
5271 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5272 |
tmpMap.put(_Fields.PURCHASE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5273 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5274 |
tmpMap.put(_Fields.OPEN, new org.apache.thrift.meta_data.FieldMetaData("open", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5275 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
5276 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5277 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPurchases_args.class, metaDataMap);
|
| 3383 |
chandransh |
5278 |
}
|
|
|
5279 |
|
|
|
5280 |
public getAllPurchases_args() {
|
|
|
5281 |
}
|
|
|
5282 |
|
|
|
5283 |
public getAllPurchases_args(
|
|
|
5284 |
long purchaseOrderId,
|
|
|
5285 |
boolean open)
|
|
|
5286 |
{
|
|
|
5287 |
this();
|
|
|
5288 |
this.purchaseOrderId = purchaseOrderId;
|
|
|
5289 |
setPurchaseOrderIdIsSet(true);
|
|
|
5290 |
this.open = open;
|
|
|
5291 |
setOpenIsSet(true);
|
|
|
5292 |
}
|
|
|
5293 |
|
|
|
5294 |
/**
|
|
|
5295 |
* Performs a deep copy on <i>other</i>.
|
|
|
5296 |
*/
|
|
|
5297 |
public getAllPurchases_args(getAllPurchases_args other) {
|
|
|
5298 |
__isset_bit_vector.clear();
|
|
|
5299 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
5300 |
this.purchaseOrderId = other.purchaseOrderId;
|
|
|
5301 |
this.open = other.open;
|
|
|
5302 |
}
|
|
|
5303 |
|
|
|
5304 |
public getAllPurchases_args deepCopy() {
|
|
|
5305 |
return new getAllPurchases_args(this);
|
|
|
5306 |
}
|
|
|
5307 |
|
| 3430 |
rajveer |
5308 |
@Override
|
|
|
5309 |
public void clear() {
|
|
|
5310 |
setPurchaseOrderIdIsSet(false);
|
|
|
5311 |
this.purchaseOrderId = 0;
|
|
|
5312 |
setOpenIsSet(false);
|
|
|
5313 |
this.open = false;
|
| 3383 |
chandransh |
5314 |
}
|
|
|
5315 |
|
|
|
5316 |
public long getPurchaseOrderId() {
|
|
|
5317 |
return this.purchaseOrderId;
|
|
|
5318 |
}
|
|
|
5319 |
|
| 3430 |
rajveer |
5320 |
public void setPurchaseOrderId(long purchaseOrderId) {
|
| 3383 |
chandransh |
5321 |
this.purchaseOrderId = purchaseOrderId;
|
|
|
5322 |
setPurchaseOrderIdIsSet(true);
|
|
|
5323 |
}
|
|
|
5324 |
|
|
|
5325 |
public void unsetPurchaseOrderId() {
|
|
|
5326 |
__isset_bit_vector.clear(__PURCHASEORDERID_ISSET_ID);
|
|
|
5327 |
}
|
|
|
5328 |
|
| 3430 |
rajveer |
5329 |
/** Returns true if field purchaseOrderId is set (has been assigned a value) and false otherwise */
|
| 3383 |
chandransh |
5330 |
public boolean isSetPurchaseOrderId() {
|
|
|
5331 |
return __isset_bit_vector.get(__PURCHASEORDERID_ISSET_ID);
|
|
|
5332 |
}
|
|
|
5333 |
|
|
|
5334 |
public void setPurchaseOrderIdIsSet(boolean value) {
|
|
|
5335 |
__isset_bit_vector.set(__PURCHASEORDERID_ISSET_ID, value);
|
|
|
5336 |
}
|
|
|
5337 |
|
|
|
5338 |
public boolean isOpen() {
|
|
|
5339 |
return this.open;
|
|
|
5340 |
}
|
|
|
5341 |
|
| 3430 |
rajveer |
5342 |
public void setOpen(boolean open) {
|
| 3383 |
chandransh |
5343 |
this.open = open;
|
|
|
5344 |
setOpenIsSet(true);
|
|
|
5345 |
}
|
|
|
5346 |
|
|
|
5347 |
public void unsetOpen() {
|
|
|
5348 |
__isset_bit_vector.clear(__OPEN_ISSET_ID);
|
|
|
5349 |
}
|
|
|
5350 |
|
| 3430 |
rajveer |
5351 |
/** Returns true if field open is set (has been assigned a value) and false otherwise */
|
| 3383 |
chandransh |
5352 |
public boolean isSetOpen() {
|
|
|
5353 |
return __isset_bit_vector.get(__OPEN_ISSET_ID);
|
|
|
5354 |
}
|
|
|
5355 |
|
|
|
5356 |
public void setOpenIsSet(boolean value) {
|
|
|
5357 |
__isset_bit_vector.set(__OPEN_ISSET_ID, value);
|
|
|
5358 |
}
|
|
|
5359 |
|
|
|
5360 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5361 |
switch (field) {
|
|
|
5362 |
case PURCHASE_ORDER_ID:
|
|
|
5363 |
if (value == null) {
|
|
|
5364 |
unsetPurchaseOrderId();
|
|
|
5365 |
} else {
|
|
|
5366 |
setPurchaseOrderId((Long)value);
|
|
|
5367 |
}
|
|
|
5368 |
break;
|
|
|
5369 |
|
|
|
5370 |
case OPEN:
|
|
|
5371 |
if (value == null) {
|
|
|
5372 |
unsetOpen();
|
|
|
5373 |
} else {
|
|
|
5374 |
setOpen((Boolean)value);
|
|
|
5375 |
}
|
|
|
5376 |
break;
|
|
|
5377 |
|
|
|
5378 |
}
|
|
|
5379 |
}
|
|
|
5380 |
|
|
|
5381 |
public Object getFieldValue(_Fields field) {
|
|
|
5382 |
switch (field) {
|
|
|
5383 |
case PURCHASE_ORDER_ID:
|
| 3430 |
rajveer |
5384 |
return Long.valueOf(getPurchaseOrderId());
|
| 3383 |
chandransh |
5385 |
|
|
|
5386 |
case OPEN:
|
| 3430 |
rajveer |
5387 |
return Boolean.valueOf(isOpen());
|
| 3383 |
chandransh |
5388 |
|
|
|
5389 |
}
|
|
|
5390 |
throw new IllegalStateException();
|
|
|
5391 |
}
|
|
|
5392 |
|
| 3430 |
rajveer |
5393 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5394 |
public boolean isSet(_Fields field) {
|
|
|
5395 |
if (field == null) {
|
|
|
5396 |
throw new IllegalArgumentException();
|
|
|
5397 |
}
|
| 3383 |
chandransh |
5398 |
|
|
|
5399 |
switch (field) {
|
|
|
5400 |
case PURCHASE_ORDER_ID:
|
|
|
5401 |
return isSetPurchaseOrderId();
|
|
|
5402 |
case OPEN:
|
|
|
5403 |
return isSetOpen();
|
|
|
5404 |
}
|
|
|
5405 |
throw new IllegalStateException();
|
|
|
5406 |
}
|
|
|
5407 |
|
|
|
5408 |
@Override
|
|
|
5409 |
public boolean equals(Object that) {
|
|
|
5410 |
if (that == null)
|
|
|
5411 |
return false;
|
|
|
5412 |
if (that instanceof getAllPurchases_args)
|
|
|
5413 |
return this.equals((getAllPurchases_args)that);
|
|
|
5414 |
return false;
|
|
|
5415 |
}
|
|
|
5416 |
|
|
|
5417 |
public boolean equals(getAllPurchases_args that) {
|
|
|
5418 |
if (that == null)
|
|
|
5419 |
return false;
|
|
|
5420 |
|
|
|
5421 |
boolean this_present_purchaseOrderId = true;
|
|
|
5422 |
boolean that_present_purchaseOrderId = true;
|
|
|
5423 |
if (this_present_purchaseOrderId || that_present_purchaseOrderId) {
|
|
|
5424 |
if (!(this_present_purchaseOrderId && that_present_purchaseOrderId))
|
|
|
5425 |
return false;
|
|
|
5426 |
if (this.purchaseOrderId != that.purchaseOrderId)
|
|
|
5427 |
return false;
|
|
|
5428 |
}
|
|
|
5429 |
|
|
|
5430 |
boolean this_present_open = true;
|
|
|
5431 |
boolean that_present_open = true;
|
|
|
5432 |
if (this_present_open || that_present_open) {
|
|
|
5433 |
if (!(this_present_open && that_present_open))
|
|
|
5434 |
return false;
|
|
|
5435 |
if (this.open != that.open)
|
|
|
5436 |
return false;
|
|
|
5437 |
}
|
|
|
5438 |
|
|
|
5439 |
return true;
|
|
|
5440 |
}
|
|
|
5441 |
|
|
|
5442 |
@Override
|
|
|
5443 |
public int hashCode() {
|
|
|
5444 |
return 0;
|
|
|
5445 |
}
|
|
|
5446 |
|
|
|
5447 |
public int compareTo(getAllPurchases_args other) {
|
|
|
5448 |
if (!getClass().equals(other.getClass())) {
|
|
|
5449 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5450 |
}
|
|
|
5451 |
|
|
|
5452 |
int lastComparison = 0;
|
|
|
5453 |
getAllPurchases_args typedOther = (getAllPurchases_args)other;
|
|
|
5454 |
|
| 3430 |
rajveer |
5455 |
lastComparison = Boolean.valueOf(isSetPurchaseOrderId()).compareTo(typedOther.isSetPurchaseOrderId());
|
| 3383 |
chandransh |
5456 |
if (lastComparison != 0) {
|
|
|
5457 |
return lastComparison;
|
|
|
5458 |
}
|
| 3430 |
rajveer |
5459 |
if (isSetPurchaseOrderId()) {
|
|
|
5460 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrderId, typedOther.purchaseOrderId);
|
|
|
5461 |
if (lastComparison != 0) {
|
|
|
5462 |
return lastComparison;
|
|
|
5463 |
}
|
| 3383 |
chandransh |
5464 |
}
|
| 3430 |
rajveer |
5465 |
lastComparison = Boolean.valueOf(isSetOpen()).compareTo(typedOther.isSetOpen());
|
| 3383 |
chandransh |
5466 |
if (lastComparison != 0) {
|
|
|
5467 |
return lastComparison;
|
|
|
5468 |
}
|
| 3430 |
rajveer |
5469 |
if (isSetOpen()) {
|
|
|
5470 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.open, typedOther.open);
|
|
|
5471 |
if (lastComparison != 0) {
|
|
|
5472 |
return lastComparison;
|
|
|
5473 |
}
|
| 3383 |
chandransh |
5474 |
}
|
|
|
5475 |
return 0;
|
|
|
5476 |
}
|
|
|
5477 |
|
| 3430 |
rajveer |
5478 |
public _Fields fieldForId(int fieldId) {
|
|
|
5479 |
return _Fields.findByThriftId(fieldId);
|
|
|
5480 |
}
|
|
|
5481 |
|
|
|
5482 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5483 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
5484 |
iprot.readStructBegin();
|
|
|
5485 |
while (true)
|
|
|
5486 |
{
|
|
|
5487 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5488 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
5489 |
break;
|
|
|
5490 |
}
|
| 3430 |
rajveer |
5491 |
switch (field.id) {
|
|
|
5492 |
case 1: // PURCHASE_ORDER_ID
|
|
|
5493 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5494 |
this.purchaseOrderId = iprot.readI64();
|
|
|
5495 |
setPurchaseOrderIdIsSet(true);
|
|
|
5496 |
} else {
|
|
|
5497 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5498 |
}
|
|
|
5499 |
break;
|
|
|
5500 |
case 2: // OPEN
|
|
|
5501 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
5502 |
this.open = iprot.readBool();
|
|
|
5503 |
setOpenIsSet(true);
|
|
|
5504 |
} else {
|
|
|
5505 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5506 |
}
|
|
|
5507 |
break;
|
|
|
5508 |
default:
|
|
|
5509 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
5510 |
}
|
| 3430 |
rajveer |
5511 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
5512 |
}
|
|
|
5513 |
iprot.readStructEnd();
|
|
|
5514 |
validate();
|
|
|
5515 |
}
|
|
|
5516 |
|
| 3430 |
rajveer |
5517 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
5518 |
validate();
|
|
|
5519 |
|
|
|
5520 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5521 |
oprot.writeFieldBegin(PURCHASE_ORDER_ID_FIELD_DESC);
|
|
|
5522 |
oprot.writeI64(this.purchaseOrderId);
|
|
|
5523 |
oprot.writeFieldEnd();
|
|
|
5524 |
oprot.writeFieldBegin(OPEN_FIELD_DESC);
|
|
|
5525 |
oprot.writeBool(this.open);
|
|
|
5526 |
oprot.writeFieldEnd();
|
|
|
5527 |
oprot.writeFieldStop();
|
|
|
5528 |
oprot.writeStructEnd();
|
|
|
5529 |
}
|
|
|
5530 |
|
|
|
5531 |
@Override
|
|
|
5532 |
public String toString() {
|
|
|
5533 |
StringBuilder sb = new StringBuilder("getAllPurchases_args(");
|
|
|
5534 |
boolean first = true;
|
|
|
5535 |
|
|
|
5536 |
sb.append("purchaseOrderId:");
|
|
|
5537 |
sb.append(this.purchaseOrderId);
|
|
|
5538 |
first = false;
|
|
|
5539 |
if (!first) sb.append(", ");
|
|
|
5540 |
sb.append("open:");
|
|
|
5541 |
sb.append(this.open);
|
|
|
5542 |
first = false;
|
|
|
5543 |
sb.append(")");
|
|
|
5544 |
return sb.toString();
|
|
|
5545 |
}
|
|
|
5546 |
|
| 3430 |
rajveer |
5547 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
5548 |
// check for required fields
|
|
|
5549 |
}
|
|
|
5550 |
|
| 3430 |
rajveer |
5551 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5552 |
try {
|
|
|
5553 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5554 |
} catch (org.apache.thrift.TException te) {
|
|
|
5555 |
throw new java.io.IOException(te);
|
|
|
5556 |
}
|
|
|
5557 |
}
|
|
|
5558 |
|
|
|
5559 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5560 |
try {
|
|
|
5561 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5562 |
} catch (org.apache.thrift.TException te) {
|
|
|
5563 |
throw new java.io.IOException(te);
|
|
|
5564 |
}
|
|
|
5565 |
}
|
|
|
5566 |
|
| 3383 |
chandransh |
5567 |
}
|
|
|
5568 |
|
| 3430 |
rajveer |
5569 |
public static class getAllPurchases_result implements org.apache.thrift.TBase<getAllPurchases_result, getAllPurchases_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
5570 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPurchases_result");
|
| 3383 |
chandransh |
5571 |
|
| 3430 |
rajveer |
5572 |
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);
|
|
|
5573 |
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 |
5574 |
|
| 3430 |
rajveer |
5575 |
private List<Purchase> success; // required
|
|
|
5576 |
private WarehouseServiceException wex; // required
|
| 3383 |
chandransh |
5577 |
|
|
|
5578 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5579 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3383 |
chandransh |
5580 |
SUCCESS((short)0, "success"),
|
|
|
5581 |
WEX((short)1, "wex");
|
|
|
5582 |
|
|
|
5583 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5584 |
|
|
|
5585 |
static {
|
|
|
5586 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5587 |
byName.put(field.getFieldName(), field);
|
|
|
5588 |
}
|
|
|
5589 |
}
|
|
|
5590 |
|
|
|
5591 |
/**
|
|
|
5592 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5593 |
*/
|
|
|
5594 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5595 |
switch(fieldId) {
|
|
|
5596 |
case 0: // SUCCESS
|
|
|
5597 |
return SUCCESS;
|
|
|
5598 |
case 1: // WEX
|
|
|
5599 |
return WEX;
|
|
|
5600 |
default:
|
|
|
5601 |
return null;
|
|
|
5602 |
}
|
| 3383 |
chandransh |
5603 |
}
|
|
|
5604 |
|
|
|
5605 |
/**
|
|
|
5606 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5607 |
* if it is not found.
|
|
|
5608 |
*/
|
|
|
5609 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5610 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5611 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5612 |
return fields;
|
|
|
5613 |
}
|
|
|
5614 |
|
|
|
5615 |
/**
|
|
|
5616 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5617 |
*/
|
|
|
5618 |
public static _Fields findByName(String name) {
|
|
|
5619 |
return byName.get(name);
|
|
|
5620 |
}
|
|
|
5621 |
|
|
|
5622 |
private final short _thriftId;
|
|
|
5623 |
private final String _fieldName;
|
|
|
5624 |
|
|
|
5625 |
_Fields(short thriftId, String fieldName) {
|
|
|
5626 |
_thriftId = thriftId;
|
|
|
5627 |
_fieldName = fieldName;
|
|
|
5628 |
}
|
|
|
5629 |
|
|
|
5630 |
public short getThriftFieldId() {
|
|
|
5631 |
return _thriftId;
|
|
|
5632 |
}
|
|
|
5633 |
|
|
|
5634 |
public String getFieldName() {
|
|
|
5635 |
return _fieldName;
|
|
|
5636 |
}
|
|
|
5637 |
}
|
|
|
5638 |
|
|
|
5639 |
// isset id assignments
|
|
|
5640 |
|
| 3430 |
rajveer |
5641 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 3383 |
chandransh |
5642 |
static {
|
| 3430 |
rajveer |
5643 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5644 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5645 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
5646 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Purchase.class))));
|
|
|
5647 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5648 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
5649 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5650 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPurchases_result.class, metaDataMap);
|
| 3383 |
chandransh |
5651 |
}
|
|
|
5652 |
|
|
|
5653 |
public getAllPurchases_result() {
|
|
|
5654 |
}
|
|
|
5655 |
|
|
|
5656 |
public getAllPurchases_result(
|
|
|
5657 |
List<Purchase> success,
|
|
|
5658 |
WarehouseServiceException wex)
|
|
|
5659 |
{
|
|
|
5660 |
this();
|
|
|
5661 |
this.success = success;
|
|
|
5662 |
this.wex = wex;
|
|
|
5663 |
}
|
|
|
5664 |
|
|
|
5665 |
/**
|
|
|
5666 |
* Performs a deep copy on <i>other</i>.
|
|
|
5667 |
*/
|
|
|
5668 |
public getAllPurchases_result(getAllPurchases_result other) {
|
|
|
5669 |
if (other.isSetSuccess()) {
|
|
|
5670 |
List<Purchase> __this__success = new ArrayList<Purchase>();
|
|
|
5671 |
for (Purchase other_element : other.success) {
|
|
|
5672 |
__this__success.add(new Purchase(other_element));
|
|
|
5673 |
}
|
|
|
5674 |
this.success = __this__success;
|
|
|
5675 |
}
|
|
|
5676 |
if (other.isSetWex()) {
|
|
|
5677 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
5678 |
}
|
|
|
5679 |
}
|
|
|
5680 |
|
|
|
5681 |
public getAllPurchases_result deepCopy() {
|
|
|
5682 |
return new getAllPurchases_result(this);
|
|
|
5683 |
}
|
|
|
5684 |
|
| 3430 |
rajveer |
5685 |
@Override
|
|
|
5686 |
public void clear() {
|
|
|
5687 |
this.success = null;
|
|
|
5688 |
this.wex = null;
|
| 3383 |
chandransh |
5689 |
}
|
|
|
5690 |
|
|
|
5691 |
public int getSuccessSize() {
|
|
|
5692 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
5693 |
}
|
|
|
5694 |
|
|
|
5695 |
public java.util.Iterator<Purchase> getSuccessIterator() {
|
|
|
5696 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
5697 |
}
|
|
|
5698 |
|
|
|
5699 |
public void addToSuccess(Purchase elem) {
|
|
|
5700 |
if (this.success == null) {
|
|
|
5701 |
this.success = new ArrayList<Purchase>();
|
|
|
5702 |
}
|
|
|
5703 |
this.success.add(elem);
|
|
|
5704 |
}
|
|
|
5705 |
|
|
|
5706 |
public List<Purchase> getSuccess() {
|
|
|
5707 |
return this.success;
|
|
|
5708 |
}
|
|
|
5709 |
|
| 3430 |
rajveer |
5710 |
public void setSuccess(List<Purchase> success) {
|
| 3383 |
chandransh |
5711 |
this.success = success;
|
|
|
5712 |
}
|
|
|
5713 |
|
|
|
5714 |
public void unsetSuccess() {
|
|
|
5715 |
this.success = null;
|
|
|
5716 |
}
|
|
|
5717 |
|
| 3430 |
rajveer |
5718 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 3383 |
chandransh |
5719 |
public boolean isSetSuccess() {
|
|
|
5720 |
return this.success != null;
|
|
|
5721 |
}
|
|
|
5722 |
|
|
|
5723 |
public void setSuccessIsSet(boolean value) {
|
|
|
5724 |
if (!value) {
|
|
|
5725 |
this.success = null;
|
|
|
5726 |
}
|
|
|
5727 |
}
|
|
|
5728 |
|
|
|
5729 |
public WarehouseServiceException getWex() {
|
|
|
5730 |
return this.wex;
|
|
|
5731 |
}
|
|
|
5732 |
|
| 3430 |
rajveer |
5733 |
public void setWex(WarehouseServiceException wex) {
|
| 3383 |
chandransh |
5734 |
this.wex = wex;
|
|
|
5735 |
}
|
|
|
5736 |
|
|
|
5737 |
public void unsetWex() {
|
|
|
5738 |
this.wex = null;
|
|
|
5739 |
}
|
|
|
5740 |
|
| 3430 |
rajveer |
5741 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 3383 |
chandransh |
5742 |
public boolean isSetWex() {
|
|
|
5743 |
return this.wex != null;
|
|
|
5744 |
}
|
|
|
5745 |
|
|
|
5746 |
public void setWexIsSet(boolean value) {
|
|
|
5747 |
if (!value) {
|
|
|
5748 |
this.wex = null;
|
|
|
5749 |
}
|
|
|
5750 |
}
|
|
|
5751 |
|
|
|
5752 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5753 |
switch (field) {
|
|
|
5754 |
case SUCCESS:
|
|
|
5755 |
if (value == null) {
|
|
|
5756 |
unsetSuccess();
|
|
|
5757 |
} else {
|
|
|
5758 |
setSuccess((List<Purchase>)value);
|
|
|
5759 |
}
|
|
|
5760 |
break;
|
|
|
5761 |
|
|
|
5762 |
case WEX:
|
|
|
5763 |
if (value == null) {
|
|
|
5764 |
unsetWex();
|
|
|
5765 |
} else {
|
|
|
5766 |
setWex((WarehouseServiceException)value);
|
|
|
5767 |
}
|
|
|
5768 |
break;
|
|
|
5769 |
|
|
|
5770 |
}
|
|
|
5771 |
}
|
|
|
5772 |
|
|
|
5773 |
public Object getFieldValue(_Fields field) {
|
|
|
5774 |
switch (field) {
|
|
|
5775 |
case SUCCESS:
|
|
|
5776 |
return getSuccess();
|
|
|
5777 |
|
|
|
5778 |
case WEX:
|
|
|
5779 |
return getWex();
|
|
|
5780 |
|
|
|
5781 |
}
|
|
|
5782 |
throw new IllegalStateException();
|
|
|
5783 |
}
|
|
|
5784 |
|
| 3430 |
rajveer |
5785 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5786 |
public boolean isSet(_Fields field) {
|
|
|
5787 |
if (field == null) {
|
|
|
5788 |
throw new IllegalArgumentException();
|
|
|
5789 |
}
|
| 3383 |
chandransh |
5790 |
|
|
|
5791 |
switch (field) {
|
|
|
5792 |
case SUCCESS:
|
|
|
5793 |
return isSetSuccess();
|
|
|
5794 |
case WEX:
|
|
|
5795 |
return isSetWex();
|
|
|
5796 |
}
|
|
|
5797 |
throw new IllegalStateException();
|
|
|
5798 |
}
|
|
|
5799 |
|
|
|
5800 |
@Override
|
|
|
5801 |
public boolean equals(Object that) {
|
|
|
5802 |
if (that == null)
|
|
|
5803 |
return false;
|
|
|
5804 |
if (that instanceof getAllPurchases_result)
|
|
|
5805 |
return this.equals((getAllPurchases_result)that);
|
|
|
5806 |
return false;
|
|
|
5807 |
}
|
|
|
5808 |
|
|
|
5809 |
public boolean equals(getAllPurchases_result that) {
|
|
|
5810 |
if (that == null)
|
|
|
5811 |
return false;
|
|
|
5812 |
|
|
|
5813 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
5814 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
5815 |
if (this_present_success || that_present_success) {
|
|
|
5816 |
if (!(this_present_success && that_present_success))
|
|
|
5817 |
return false;
|
|
|
5818 |
if (!this.success.equals(that.success))
|
|
|
5819 |
return false;
|
|
|
5820 |
}
|
|
|
5821 |
|
|
|
5822 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
5823 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
5824 |
if (this_present_wex || that_present_wex) {
|
|
|
5825 |
if (!(this_present_wex && that_present_wex))
|
|
|
5826 |
return false;
|
|
|
5827 |
if (!this.wex.equals(that.wex))
|
|
|
5828 |
return false;
|
|
|
5829 |
}
|
|
|
5830 |
|
|
|
5831 |
return true;
|
|
|
5832 |
}
|
|
|
5833 |
|
|
|
5834 |
@Override
|
|
|
5835 |
public int hashCode() {
|
|
|
5836 |
return 0;
|
|
|
5837 |
}
|
|
|
5838 |
|
|
|
5839 |
public int compareTo(getAllPurchases_result other) {
|
|
|
5840 |
if (!getClass().equals(other.getClass())) {
|
|
|
5841 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5842 |
}
|
|
|
5843 |
|
|
|
5844 |
int lastComparison = 0;
|
|
|
5845 |
getAllPurchases_result typedOther = (getAllPurchases_result)other;
|
|
|
5846 |
|
| 3430 |
rajveer |
5847 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 3383 |
chandransh |
5848 |
if (lastComparison != 0) {
|
|
|
5849 |
return lastComparison;
|
|
|
5850 |
}
|
| 3430 |
rajveer |
5851 |
if (isSetSuccess()) {
|
|
|
5852 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
5853 |
if (lastComparison != 0) {
|
|
|
5854 |
return lastComparison;
|
|
|
5855 |
}
|
| 3383 |
chandransh |
5856 |
}
|
| 3430 |
rajveer |
5857 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 3383 |
chandransh |
5858 |
if (lastComparison != 0) {
|
|
|
5859 |
return lastComparison;
|
|
|
5860 |
}
|
| 3430 |
rajveer |
5861 |
if (isSetWex()) {
|
|
|
5862 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
5863 |
if (lastComparison != 0) {
|
|
|
5864 |
return lastComparison;
|
|
|
5865 |
}
|
| 3383 |
chandransh |
5866 |
}
|
|
|
5867 |
return 0;
|
|
|
5868 |
}
|
|
|
5869 |
|
| 3430 |
rajveer |
5870 |
public _Fields fieldForId(int fieldId) {
|
|
|
5871 |
return _Fields.findByThriftId(fieldId);
|
|
|
5872 |
}
|
|
|
5873 |
|
|
|
5874 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5875 |
org.apache.thrift.protocol.TField field;
|
| 3383 |
chandransh |
5876 |
iprot.readStructBegin();
|
|
|
5877 |
while (true)
|
|
|
5878 |
{
|
|
|
5879 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5880 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 3383 |
chandransh |
5881 |
break;
|
|
|
5882 |
}
|
| 3430 |
rajveer |
5883 |
switch (field.id) {
|
|
|
5884 |
case 0: // SUCCESS
|
|
|
5885 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
5886 |
{
|
|
|
5887 |
org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
|
|
|
5888 |
this.success = new ArrayList<Purchase>(_list8.size);
|
|
|
5889 |
for (int _i9 = 0; _i9 < _list8.size; ++_i9)
|
| 3383 |
chandransh |
5890 |
{
|
| 3430 |
rajveer |
5891 |
Purchase _elem10; // required
|
|
|
5892 |
_elem10 = new Purchase();
|
|
|
5893 |
_elem10.read(iprot);
|
|
|
5894 |
this.success.add(_elem10);
|
| 3383 |
chandransh |
5895 |
}
|
| 3430 |
rajveer |
5896 |
iprot.readListEnd();
|
| 3383 |
chandransh |
5897 |
}
|
| 3430 |
rajveer |
5898 |
} else {
|
|
|
5899 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5900 |
}
|
|
|
5901 |
break;
|
|
|
5902 |
case 1: // WEX
|
|
|
5903 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5904 |
this.wex = new WarehouseServiceException();
|
|
|
5905 |
this.wex.read(iprot);
|
|
|
5906 |
} else {
|
|
|
5907 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5908 |
}
|
|
|
5909 |
break;
|
|
|
5910 |
default:
|
|
|
5911 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3383 |
chandransh |
5912 |
}
|
| 3430 |
rajveer |
5913 |
iprot.readFieldEnd();
|
| 3383 |
chandransh |
5914 |
}
|
|
|
5915 |
iprot.readStructEnd();
|
|
|
5916 |
validate();
|
|
|
5917 |
}
|
|
|
5918 |
|
| 3430 |
rajveer |
5919 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
5920 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5921 |
|
|
|
5922 |
if (this.isSetSuccess()) {
|
|
|
5923 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
5924 |
{
|
| 3430 |
rajveer |
5925 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 3383 |
chandransh |
5926 |
for (Purchase _iter11 : this.success)
|
|
|
5927 |
{
|
|
|
5928 |
_iter11.write(oprot);
|
|
|
5929 |
}
|
|
|
5930 |
oprot.writeListEnd();
|
|
|
5931 |
}
|
|
|
5932 |
oprot.writeFieldEnd();
|
|
|
5933 |
} else if (this.isSetWex()) {
|
|
|
5934 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
5935 |
this.wex.write(oprot);
|
|
|
5936 |
oprot.writeFieldEnd();
|
|
|
5937 |
}
|
|
|
5938 |
oprot.writeFieldStop();
|
|
|
5939 |
oprot.writeStructEnd();
|
|
|
5940 |
}
|
|
|
5941 |
|
|
|
5942 |
@Override
|
|
|
5943 |
public String toString() {
|
|
|
5944 |
StringBuilder sb = new StringBuilder("getAllPurchases_result(");
|
|
|
5945 |
boolean first = true;
|
|
|
5946 |
|
|
|
5947 |
sb.append("success:");
|
|
|
5948 |
if (this.success == null) {
|
|
|
5949 |
sb.append("null");
|
|
|
5950 |
} else {
|
|
|
5951 |
sb.append(this.success);
|
|
|
5952 |
}
|
|
|
5953 |
first = false;
|
|
|
5954 |
if (!first) sb.append(", ");
|
|
|
5955 |
sb.append("wex:");
|
|
|
5956 |
if (this.wex == null) {
|
|
|
5957 |
sb.append("null");
|
|
|
5958 |
} else {
|
|
|
5959 |
sb.append(this.wex);
|
|
|
5960 |
}
|
|
|
5961 |
first = false;
|
|
|
5962 |
sb.append(")");
|
|
|
5963 |
return sb.toString();
|
|
|
5964 |
}
|
|
|
5965 |
|
| 3430 |
rajveer |
5966 |
public void validate() throws org.apache.thrift.TException {
|
| 3383 |
chandransh |
5967 |
// check for required fields
|
|
|
5968 |
}
|
|
|
5969 |
|
| 3430 |
rajveer |
5970 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5971 |
try {
|
|
|
5972 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5973 |
} catch (org.apache.thrift.TException te) {
|
|
|
5974 |
throw new java.io.IOException(te);
|
|
|
5975 |
}
|
|
|
5976 |
}
|
|
|
5977 |
|
|
|
5978 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5979 |
try {
|
|
|
5980 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5981 |
} catch (org.apache.thrift.TException te) {
|
|
|
5982 |
throw new java.io.IOException(te);
|
|
|
5983 |
}
|
|
|
5984 |
}
|
|
|
5985 |
|
| 3383 |
chandransh |
5986 |
}
|
|
|
5987 |
|
| 3430 |
rajveer |
5988 |
public static class scanIn_args implements org.apache.thrift.TBase<scanIn_args, scanIn_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
5989 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanIn_args");
|
| 2820 |
chandransh |
5990 |
|
| 3430 |
rajveer |
5991 |
private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
5992 |
private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
5993 |
private static final org.apache.thrift.protocol.TField IMEI_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("imeiNumber", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
5994 |
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)4);
|
| 2820 |
chandransh |
5995 |
|
| 3430 |
rajveer |
5996 |
private long purchaseId; // required
|
|
|
5997 |
private String itemNumber; // required
|
|
|
5998 |
private String imeiNumber; // required
|
|
|
5999 |
private ScanType type; // required
|
| 2820 |
chandransh |
6000 |
|
|
|
6001 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6002 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2820 |
chandransh |
6003 |
PURCHASE_ID((short)1, "purchaseId"),
|
| 3383 |
chandransh |
6004 |
ITEM_NUMBER((short)2, "itemNumber"),
|
|
|
6005 |
IMEI_NUMBER((short)3, "imeiNumber"),
|
| 2820 |
chandransh |
6006 |
/**
|
|
|
6007 |
*
|
|
|
6008 |
* @see ScanType
|
|
|
6009 |
*/
|
| 3383 |
chandransh |
6010 |
TYPE((short)4, "type");
|
| 2820 |
chandransh |
6011 |
|
|
|
6012 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6013 |
|
|
|
6014 |
static {
|
|
|
6015 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6016 |
byName.put(field.getFieldName(), field);
|
|
|
6017 |
}
|
|
|
6018 |
}
|
|
|
6019 |
|
|
|
6020 |
/**
|
|
|
6021 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6022 |
*/
|
|
|
6023 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6024 |
switch(fieldId) {
|
|
|
6025 |
case 1: // PURCHASE_ID
|
|
|
6026 |
return PURCHASE_ID;
|
|
|
6027 |
case 2: // ITEM_NUMBER
|
|
|
6028 |
return ITEM_NUMBER;
|
|
|
6029 |
case 3: // IMEI_NUMBER
|
|
|
6030 |
return IMEI_NUMBER;
|
|
|
6031 |
case 4: // TYPE
|
|
|
6032 |
return TYPE;
|
|
|
6033 |
default:
|
|
|
6034 |
return null;
|
|
|
6035 |
}
|
| 2820 |
chandransh |
6036 |
}
|
|
|
6037 |
|
|
|
6038 |
/**
|
|
|
6039 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6040 |
* if it is not found.
|
|
|
6041 |
*/
|
|
|
6042 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6043 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6044 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6045 |
return fields;
|
|
|
6046 |
}
|
|
|
6047 |
|
|
|
6048 |
/**
|
|
|
6049 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6050 |
*/
|
|
|
6051 |
public static _Fields findByName(String name) {
|
|
|
6052 |
return byName.get(name);
|
|
|
6053 |
}
|
|
|
6054 |
|
|
|
6055 |
private final short _thriftId;
|
|
|
6056 |
private final String _fieldName;
|
|
|
6057 |
|
|
|
6058 |
_Fields(short thriftId, String fieldName) {
|
|
|
6059 |
_thriftId = thriftId;
|
|
|
6060 |
_fieldName = fieldName;
|
|
|
6061 |
}
|
|
|
6062 |
|
|
|
6063 |
public short getThriftFieldId() {
|
|
|
6064 |
return _thriftId;
|
|
|
6065 |
}
|
|
|
6066 |
|
|
|
6067 |
public String getFieldName() {
|
|
|
6068 |
return _fieldName;
|
|
|
6069 |
}
|
|
|
6070 |
}
|
|
|
6071 |
|
|
|
6072 |
// isset id assignments
|
|
|
6073 |
private static final int __PURCHASEID_ISSET_ID = 0;
|
| 3383 |
chandransh |
6074 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 2820 |
chandransh |
6075 |
|
| 3430 |
rajveer |
6076 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
6077 |
static {
|
| 3430 |
rajveer |
6078 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6079 |
tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6080 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
6081 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6082 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6083 |
tmpMap.put(_Fields.IMEI_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("imeiNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6084 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6085 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6086 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
6087 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6088 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanIn_args.class, metaDataMap);
|
| 2820 |
chandransh |
6089 |
}
|
|
|
6090 |
|
|
|
6091 |
public scanIn_args() {
|
|
|
6092 |
}
|
|
|
6093 |
|
|
|
6094 |
public scanIn_args(
|
|
|
6095 |
long purchaseId,
|
|
|
6096 |
String itemNumber,
|
|
|
6097 |
String imeiNumber,
|
|
|
6098 |
ScanType type)
|
|
|
6099 |
{
|
|
|
6100 |
this();
|
|
|
6101 |
this.purchaseId = purchaseId;
|
|
|
6102 |
setPurchaseIdIsSet(true);
|
|
|
6103 |
this.itemNumber = itemNumber;
|
|
|
6104 |
this.imeiNumber = imeiNumber;
|
|
|
6105 |
this.type = type;
|
|
|
6106 |
}
|
|
|
6107 |
|
|
|
6108 |
/**
|
|
|
6109 |
* Performs a deep copy on <i>other</i>.
|
|
|
6110 |
*/
|
|
|
6111 |
public scanIn_args(scanIn_args other) {
|
|
|
6112 |
__isset_bit_vector.clear();
|
|
|
6113 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
6114 |
this.purchaseId = other.purchaseId;
|
|
|
6115 |
if (other.isSetItemNumber()) {
|
|
|
6116 |
this.itemNumber = other.itemNumber;
|
|
|
6117 |
}
|
|
|
6118 |
if (other.isSetImeiNumber()) {
|
|
|
6119 |
this.imeiNumber = other.imeiNumber;
|
|
|
6120 |
}
|
|
|
6121 |
if (other.isSetType()) {
|
|
|
6122 |
this.type = other.type;
|
|
|
6123 |
}
|
|
|
6124 |
}
|
|
|
6125 |
|
|
|
6126 |
public scanIn_args deepCopy() {
|
|
|
6127 |
return new scanIn_args(this);
|
|
|
6128 |
}
|
|
|
6129 |
|
| 3430 |
rajveer |
6130 |
@Override
|
|
|
6131 |
public void clear() {
|
|
|
6132 |
setPurchaseIdIsSet(false);
|
|
|
6133 |
this.purchaseId = 0;
|
|
|
6134 |
this.itemNumber = null;
|
|
|
6135 |
this.imeiNumber = null;
|
|
|
6136 |
this.type = null;
|
| 2820 |
chandransh |
6137 |
}
|
|
|
6138 |
|
|
|
6139 |
public long getPurchaseId() {
|
|
|
6140 |
return this.purchaseId;
|
|
|
6141 |
}
|
|
|
6142 |
|
| 3430 |
rajveer |
6143 |
public void setPurchaseId(long purchaseId) {
|
| 2820 |
chandransh |
6144 |
this.purchaseId = purchaseId;
|
|
|
6145 |
setPurchaseIdIsSet(true);
|
|
|
6146 |
}
|
|
|
6147 |
|
|
|
6148 |
public void unsetPurchaseId() {
|
|
|
6149 |
__isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
|
|
|
6150 |
}
|
|
|
6151 |
|
| 3430 |
rajveer |
6152 |
/** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
6153 |
public boolean isSetPurchaseId() {
|
|
|
6154 |
return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
|
|
|
6155 |
}
|
|
|
6156 |
|
|
|
6157 |
public void setPurchaseIdIsSet(boolean value) {
|
|
|
6158 |
__isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
|
|
|
6159 |
}
|
|
|
6160 |
|
|
|
6161 |
public String getItemNumber() {
|
|
|
6162 |
return this.itemNumber;
|
|
|
6163 |
}
|
|
|
6164 |
|
| 3430 |
rajveer |
6165 |
public void setItemNumber(String itemNumber) {
|
| 2820 |
chandransh |
6166 |
this.itemNumber = itemNumber;
|
|
|
6167 |
}
|
|
|
6168 |
|
|
|
6169 |
public void unsetItemNumber() {
|
|
|
6170 |
this.itemNumber = null;
|
|
|
6171 |
}
|
|
|
6172 |
|
| 3430 |
rajveer |
6173 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
6174 |
public boolean isSetItemNumber() {
|
|
|
6175 |
return this.itemNumber != null;
|
|
|
6176 |
}
|
|
|
6177 |
|
|
|
6178 |
public void setItemNumberIsSet(boolean value) {
|
|
|
6179 |
if (!value) {
|
|
|
6180 |
this.itemNumber = null;
|
|
|
6181 |
}
|
|
|
6182 |
}
|
|
|
6183 |
|
|
|
6184 |
public String getImeiNumber() {
|
|
|
6185 |
return this.imeiNumber;
|
|
|
6186 |
}
|
|
|
6187 |
|
| 3430 |
rajveer |
6188 |
public void setImeiNumber(String imeiNumber) {
|
| 2820 |
chandransh |
6189 |
this.imeiNumber = imeiNumber;
|
|
|
6190 |
}
|
|
|
6191 |
|
|
|
6192 |
public void unsetImeiNumber() {
|
|
|
6193 |
this.imeiNumber = null;
|
|
|
6194 |
}
|
|
|
6195 |
|
| 3430 |
rajveer |
6196 |
/** Returns true if field imeiNumber is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
6197 |
public boolean isSetImeiNumber() {
|
|
|
6198 |
return this.imeiNumber != null;
|
|
|
6199 |
}
|
|
|
6200 |
|
|
|
6201 |
public void setImeiNumberIsSet(boolean value) {
|
|
|
6202 |
if (!value) {
|
|
|
6203 |
this.imeiNumber = null;
|
|
|
6204 |
}
|
|
|
6205 |
}
|
|
|
6206 |
|
|
|
6207 |
/**
|
|
|
6208 |
*
|
|
|
6209 |
* @see ScanType
|
|
|
6210 |
*/
|
|
|
6211 |
public ScanType getType() {
|
|
|
6212 |
return this.type;
|
|
|
6213 |
}
|
|
|
6214 |
|
|
|
6215 |
/**
|
|
|
6216 |
*
|
|
|
6217 |
* @see ScanType
|
|
|
6218 |
*/
|
| 3430 |
rajveer |
6219 |
public void setType(ScanType type) {
|
| 2820 |
chandransh |
6220 |
this.type = type;
|
|
|
6221 |
}
|
|
|
6222 |
|
|
|
6223 |
public void unsetType() {
|
|
|
6224 |
this.type = null;
|
|
|
6225 |
}
|
|
|
6226 |
|
| 3430 |
rajveer |
6227 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
6228 |
public boolean isSetType() {
|
|
|
6229 |
return this.type != null;
|
|
|
6230 |
}
|
|
|
6231 |
|
|
|
6232 |
public void setTypeIsSet(boolean value) {
|
|
|
6233 |
if (!value) {
|
|
|
6234 |
this.type = null;
|
|
|
6235 |
}
|
|
|
6236 |
}
|
|
|
6237 |
|
|
|
6238 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6239 |
switch (field) {
|
|
|
6240 |
case PURCHASE_ID:
|
|
|
6241 |
if (value == null) {
|
|
|
6242 |
unsetPurchaseId();
|
|
|
6243 |
} else {
|
|
|
6244 |
setPurchaseId((Long)value);
|
|
|
6245 |
}
|
|
|
6246 |
break;
|
|
|
6247 |
|
|
|
6248 |
case ITEM_NUMBER:
|
|
|
6249 |
if (value == null) {
|
|
|
6250 |
unsetItemNumber();
|
|
|
6251 |
} else {
|
|
|
6252 |
setItemNumber((String)value);
|
|
|
6253 |
}
|
|
|
6254 |
break;
|
|
|
6255 |
|
|
|
6256 |
case IMEI_NUMBER:
|
|
|
6257 |
if (value == null) {
|
|
|
6258 |
unsetImeiNumber();
|
|
|
6259 |
} else {
|
|
|
6260 |
setImeiNumber((String)value);
|
|
|
6261 |
}
|
|
|
6262 |
break;
|
|
|
6263 |
|
|
|
6264 |
case TYPE:
|
|
|
6265 |
if (value == null) {
|
|
|
6266 |
unsetType();
|
|
|
6267 |
} else {
|
|
|
6268 |
setType((ScanType)value);
|
|
|
6269 |
}
|
|
|
6270 |
break;
|
|
|
6271 |
|
|
|
6272 |
}
|
|
|
6273 |
}
|
|
|
6274 |
|
|
|
6275 |
public Object getFieldValue(_Fields field) {
|
|
|
6276 |
switch (field) {
|
|
|
6277 |
case PURCHASE_ID:
|
| 3430 |
rajveer |
6278 |
return Long.valueOf(getPurchaseId());
|
| 2820 |
chandransh |
6279 |
|
|
|
6280 |
case ITEM_NUMBER:
|
|
|
6281 |
return getItemNumber();
|
|
|
6282 |
|
|
|
6283 |
case IMEI_NUMBER:
|
|
|
6284 |
return getImeiNumber();
|
|
|
6285 |
|
|
|
6286 |
case TYPE:
|
|
|
6287 |
return getType();
|
|
|
6288 |
|
|
|
6289 |
}
|
|
|
6290 |
throw new IllegalStateException();
|
|
|
6291 |
}
|
|
|
6292 |
|
| 3430 |
rajveer |
6293 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6294 |
public boolean isSet(_Fields field) {
|
|
|
6295 |
if (field == null) {
|
|
|
6296 |
throw new IllegalArgumentException();
|
|
|
6297 |
}
|
| 2820 |
chandransh |
6298 |
|
|
|
6299 |
switch (field) {
|
|
|
6300 |
case PURCHASE_ID:
|
|
|
6301 |
return isSetPurchaseId();
|
|
|
6302 |
case ITEM_NUMBER:
|
|
|
6303 |
return isSetItemNumber();
|
|
|
6304 |
case IMEI_NUMBER:
|
|
|
6305 |
return isSetImeiNumber();
|
|
|
6306 |
case TYPE:
|
|
|
6307 |
return isSetType();
|
|
|
6308 |
}
|
|
|
6309 |
throw new IllegalStateException();
|
|
|
6310 |
}
|
|
|
6311 |
|
|
|
6312 |
@Override
|
|
|
6313 |
public boolean equals(Object that) {
|
|
|
6314 |
if (that == null)
|
|
|
6315 |
return false;
|
|
|
6316 |
if (that instanceof scanIn_args)
|
|
|
6317 |
return this.equals((scanIn_args)that);
|
|
|
6318 |
return false;
|
|
|
6319 |
}
|
|
|
6320 |
|
|
|
6321 |
public boolean equals(scanIn_args that) {
|
|
|
6322 |
if (that == null)
|
|
|
6323 |
return false;
|
|
|
6324 |
|
|
|
6325 |
boolean this_present_purchaseId = true;
|
|
|
6326 |
boolean that_present_purchaseId = true;
|
|
|
6327 |
if (this_present_purchaseId || that_present_purchaseId) {
|
|
|
6328 |
if (!(this_present_purchaseId && that_present_purchaseId))
|
|
|
6329 |
return false;
|
|
|
6330 |
if (this.purchaseId != that.purchaseId)
|
|
|
6331 |
return false;
|
|
|
6332 |
}
|
|
|
6333 |
|
|
|
6334 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
6335 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
6336 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
6337 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
6338 |
return false;
|
|
|
6339 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
6340 |
return false;
|
|
|
6341 |
}
|
|
|
6342 |
|
|
|
6343 |
boolean this_present_imeiNumber = true && this.isSetImeiNumber();
|
|
|
6344 |
boolean that_present_imeiNumber = true && that.isSetImeiNumber();
|
|
|
6345 |
if (this_present_imeiNumber || that_present_imeiNumber) {
|
|
|
6346 |
if (!(this_present_imeiNumber && that_present_imeiNumber))
|
|
|
6347 |
return false;
|
|
|
6348 |
if (!this.imeiNumber.equals(that.imeiNumber))
|
|
|
6349 |
return false;
|
|
|
6350 |
}
|
|
|
6351 |
|
|
|
6352 |
boolean this_present_type = true && this.isSetType();
|
|
|
6353 |
boolean that_present_type = true && that.isSetType();
|
|
|
6354 |
if (this_present_type || that_present_type) {
|
|
|
6355 |
if (!(this_present_type && that_present_type))
|
|
|
6356 |
return false;
|
|
|
6357 |
if (!this.type.equals(that.type))
|
|
|
6358 |
return false;
|
|
|
6359 |
}
|
|
|
6360 |
|
|
|
6361 |
return true;
|
|
|
6362 |
}
|
|
|
6363 |
|
|
|
6364 |
@Override
|
|
|
6365 |
public int hashCode() {
|
|
|
6366 |
return 0;
|
|
|
6367 |
}
|
|
|
6368 |
|
|
|
6369 |
public int compareTo(scanIn_args other) {
|
|
|
6370 |
if (!getClass().equals(other.getClass())) {
|
|
|
6371 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6372 |
}
|
|
|
6373 |
|
|
|
6374 |
int lastComparison = 0;
|
|
|
6375 |
scanIn_args typedOther = (scanIn_args)other;
|
|
|
6376 |
|
| 3430 |
rajveer |
6377 |
lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
|
| 2820 |
chandransh |
6378 |
if (lastComparison != 0) {
|
|
|
6379 |
return lastComparison;
|
|
|
6380 |
}
|
| 3430 |
rajveer |
6381 |
if (isSetPurchaseId()) {
|
|
|
6382 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
|
|
|
6383 |
if (lastComparison != 0) {
|
|
|
6384 |
return lastComparison;
|
|
|
6385 |
}
|
| 2820 |
chandransh |
6386 |
}
|
| 3430 |
rajveer |
6387 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
| 2820 |
chandransh |
6388 |
if (lastComparison != 0) {
|
|
|
6389 |
return lastComparison;
|
|
|
6390 |
}
|
| 3430 |
rajveer |
6391 |
if (isSetItemNumber()) {
|
|
|
6392 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
6393 |
if (lastComparison != 0) {
|
|
|
6394 |
return lastComparison;
|
|
|
6395 |
}
|
| 2820 |
chandransh |
6396 |
}
|
| 3430 |
rajveer |
6397 |
lastComparison = Boolean.valueOf(isSetImeiNumber()).compareTo(typedOther.isSetImeiNumber());
|
| 2820 |
chandransh |
6398 |
if (lastComparison != 0) {
|
|
|
6399 |
return lastComparison;
|
|
|
6400 |
}
|
| 3430 |
rajveer |
6401 |
if (isSetImeiNumber()) {
|
|
|
6402 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imeiNumber, typedOther.imeiNumber);
|
|
|
6403 |
if (lastComparison != 0) {
|
|
|
6404 |
return lastComparison;
|
|
|
6405 |
}
|
| 2820 |
chandransh |
6406 |
}
|
| 3430 |
rajveer |
6407 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 2820 |
chandransh |
6408 |
if (lastComparison != 0) {
|
|
|
6409 |
return lastComparison;
|
|
|
6410 |
}
|
| 3430 |
rajveer |
6411 |
if (isSetType()) {
|
|
|
6412 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
6413 |
if (lastComparison != 0) {
|
|
|
6414 |
return lastComparison;
|
|
|
6415 |
}
|
| 2820 |
chandransh |
6416 |
}
|
|
|
6417 |
return 0;
|
|
|
6418 |
}
|
|
|
6419 |
|
| 3430 |
rajveer |
6420 |
public _Fields fieldForId(int fieldId) {
|
|
|
6421 |
return _Fields.findByThriftId(fieldId);
|
|
|
6422 |
}
|
|
|
6423 |
|
|
|
6424 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6425 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
6426 |
iprot.readStructBegin();
|
|
|
6427 |
while (true)
|
|
|
6428 |
{
|
|
|
6429 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6430 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
6431 |
break;
|
|
|
6432 |
}
|
| 3430 |
rajveer |
6433 |
switch (field.id) {
|
|
|
6434 |
case 1: // PURCHASE_ID
|
|
|
6435 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6436 |
this.purchaseId = iprot.readI64();
|
|
|
6437 |
setPurchaseIdIsSet(true);
|
|
|
6438 |
} else {
|
|
|
6439 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6440 |
}
|
|
|
6441 |
break;
|
|
|
6442 |
case 2: // ITEM_NUMBER
|
|
|
6443 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
6444 |
this.itemNumber = iprot.readString();
|
|
|
6445 |
} else {
|
|
|
6446 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6447 |
}
|
|
|
6448 |
break;
|
|
|
6449 |
case 3: // IMEI_NUMBER
|
|
|
6450 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
6451 |
this.imeiNumber = iprot.readString();
|
|
|
6452 |
} else {
|
|
|
6453 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6454 |
}
|
|
|
6455 |
break;
|
|
|
6456 |
case 4: // TYPE
|
|
|
6457 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
6458 |
this.type = ScanType.findByValue(iprot.readI32());
|
|
|
6459 |
} else {
|
|
|
6460 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6461 |
}
|
|
|
6462 |
break;
|
|
|
6463 |
default:
|
|
|
6464 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
6465 |
}
|
| 3430 |
rajveer |
6466 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
6467 |
}
|
|
|
6468 |
iprot.readStructEnd();
|
|
|
6469 |
validate();
|
|
|
6470 |
}
|
|
|
6471 |
|
| 3430 |
rajveer |
6472 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6473 |
validate();
|
|
|
6474 |
|
|
|
6475 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6476 |
oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
|
|
|
6477 |
oprot.writeI64(this.purchaseId);
|
|
|
6478 |
oprot.writeFieldEnd();
|
|
|
6479 |
if (this.itemNumber != null) {
|
|
|
6480 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
6481 |
oprot.writeString(this.itemNumber);
|
|
|
6482 |
oprot.writeFieldEnd();
|
|
|
6483 |
}
|
|
|
6484 |
if (this.imeiNumber != null) {
|
|
|
6485 |
oprot.writeFieldBegin(IMEI_NUMBER_FIELD_DESC);
|
|
|
6486 |
oprot.writeString(this.imeiNumber);
|
|
|
6487 |
oprot.writeFieldEnd();
|
|
|
6488 |
}
|
|
|
6489 |
if (this.type != null) {
|
|
|
6490 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
6491 |
oprot.writeI32(this.type.getValue());
|
|
|
6492 |
oprot.writeFieldEnd();
|
|
|
6493 |
}
|
|
|
6494 |
oprot.writeFieldStop();
|
|
|
6495 |
oprot.writeStructEnd();
|
|
|
6496 |
}
|
|
|
6497 |
|
|
|
6498 |
@Override
|
|
|
6499 |
public String toString() {
|
|
|
6500 |
StringBuilder sb = new StringBuilder("scanIn_args(");
|
|
|
6501 |
boolean first = true;
|
|
|
6502 |
|
|
|
6503 |
sb.append("purchaseId:");
|
|
|
6504 |
sb.append(this.purchaseId);
|
|
|
6505 |
first = false;
|
|
|
6506 |
if (!first) sb.append(", ");
|
|
|
6507 |
sb.append("itemNumber:");
|
|
|
6508 |
if (this.itemNumber == null) {
|
|
|
6509 |
sb.append("null");
|
|
|
6510 |
} else {
|
|
|
6511 |
sb.append(this.itemNumber);
|
|
|
6512 |
}
|
|
|
6513 |
first = false;
|
|
|
6514 |
if (!first) sb.append(", ");
|
|
|
6515 |
sb.append("imeiNumber:");
|
|
|
6516 |
if (this.imeiNumber == null) {
|
|
|
6517 |
sb.append("null");
|
|
|
6518 |
} else {
|
|
|
6519 |
sb.append(this.imeiNumber);
|
|
|
6520 |
}
|
|
|
6521 |
first = false;
|
|
|
6522 |
if (!first) sb.append(", ");
|
|
|
6523 |
sb.append("type:");
|
|
|
6524 |
if (this.type == null) {
|
|
|
6525 |
sb.append("null");
|
|
|
6526 |
} else {
|
|
|
6527 |
sb.append(this.type);
|
|
|
6528 |
}
|
|
|
6529 |
first = false;
|
|
|
6530 |
sb.append(")");
|
|
|
6531 |
return sb.toString();
|
|
|
6532 |
}
|
|
|
6533 |
|
| 3430 |
rajveer |
6534 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6535 |
// check for required fields
|
|
|
6536 |
}
|
|
|
6537 |
|
| 3430 |
rajveer |
6538 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6539 |
try {
|
|
|
6540 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6541 |
} catch (org.apache.thrift.TException te) {
|
|
|
6542 |
throw new java.io.IOException(te);
|
|
|
6543 |
}
|
|
|
6544 |
}
|
|
|
6545 |
|
|
|
6546 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6547 |
try {
|
|
|
6548 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6549 |
} catch (org.apache.thrift.TException te) {
|
|
|
6550 |
throw new java.io.IOException(te);
|
|
|
6551 |
}
|
|
|
6552 |
}
|
|
|
6553 |
|
| 2820 |
chandransh |
6554 |
}
|
|
|
6555 |
|
| 3430 |
rajveer |
6556 |
public static class scanIn_result implements org.apache.thrift.TBase<scanIn_result, scanIn_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6557 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanIn_result");
|
| 2820 |
chandransh |
6558 |
|
| 3430 |
rajveer |
6559 |
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 |
6560 |
|
| 3430 |
rajveer |
6561 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
6562 |
|
|
|
6563 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6564 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2820 |
chandransh |
6565 |
WEX((short)1, "wex");
|
|
|
6566 |
|
|
|
6567 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6568 |
|
|
|
6569 |
static {
|
|
|
6570 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6571 |
byName.put(field.getFieldName(), field);
|
|
|
6572 |
}
|
|
|
6573 |
}
|
|
|
6574 |
|
|
|
6575 |
/**
|
|
|
6576 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6577 |
*/
|
|
|
6578 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6579 |
switch(fieldId) {
|
|
|
6580 |
case 1: // WEX
|
|
|
6581 |
return WEX;
|
|
|
6582 |
default:
|
|
|
6583 |
return null;
|
|
|
6584 |
}
|
| 2820 |
chandransh |
6585 |
}
|
|
|
6586 |
|
|
|
6587 |
/**
|
|
|
6588 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6589 |
* if it is not found.
|
|
|
6590 |
*/
|
|
|
6591 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6592 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6593 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6594 |
return fields;
|
|
|
6595 |
}
|
|
|
6596 |
|
|
|
6597 |
/**
|
|
|
6598 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6599 |
*/
|
|
|
6600 |
public static _Fields findByName(String name) {
|
|
|
6601 |
return byName.get(name);
|
|
|
6602 |
}
|
|
|
6603 |
|
|
|
6604 |
private final short _thriftId;
|
|
|
6605 |
private final String _fieldName;
|
|
|
6606 |
|
|
|
6607 |
_Fields(short thriftId, String fieldName) {
|
|
|
6608 |
_thriftId = thriftId;
|
|
|
6609 |
_fieldName = fieldName;
|
|
|
6610 |
}
|
|
|
6611 |
|
|
|
6612 |
public short getThriftFieldId() {
|
|
|
6613 |
return _thriftId;
|
|
|
6614 |
}
|
|
|
6615 |
|
|
|
6616 |
public String getFieldName() {
|
|
|
6617 |
return _fieldName;
|
|
|
6618 |
}
|
|
|
6619 |
}
|
|
|
6620 |
|
|
|
6621 |
// isset id assignments
|
|
|
6622 |
|
| 3430 |
rajveer |
6623 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
6624 |
static {
|
| 3430 |
rajveer |
6625 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6626 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6627 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
6628 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6629 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanIn_result.class, metaDataMap);
|
| 2820 |
chandransh |
6630 |
}
|
|
|
6631 |
|
|
|
6632 |
public scanIn_result() {
|
|
|
6633 |
}
|
|
|
6634 |
|
|
|
6635 |
public scanIn_result(
|
|
|
6636 |
WarehouseServiceException wex)
|
|
|
6637 |
{
|
|
|
6638 |
this();
|
|
|
6639 |
this.wex = wex;
|
|
|
6640 |
}
|
|
|
6641 |
|
|
|
6642 |
/**
|
|
|
6643 |
* Performs a deep copy on <i>other</i>.
|
|
|
6644 |
*/
|
|
|
6645 |
public scanIn_result(scanIn_result other) {
|
|
|
6646 |
if (other.isSetWex()) {
|
|
|
6647 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
6648 |
}
|
|
|
6649 |
}
|
|
|
6650 |
|
|
|
6651 |
public scanIn_result deepCopy() {
|
|
|
6652 |
return new scanIn_result(this);
|
|
|
6653 |
}
|
|
|
6654 |
|
| 3430 |
rajveer |
6655 |
@Override
|
|
|
6656 |
public void clear() {
|
|
|
6657 |
this.wex = null;
|
| 2820 |
chandransh |
6658 |
}
|
|
|
6659 |
|
|
|
6660 |
public WarehouseServiceException getWex() {
|
|
|
6661 |
return this.wex;
|
|
|
6662 |
}
|
|
|
6663 |
|
| 3430 |
rajveer |
6664 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
6665 |
this.wex = wex;
|
|
|
6666 |
}
|
|
|
6667 |
|
|
|
6668 |
public void unsetWex() {
|
|
|
6669 |
this.wex = null;
|
|
|
6670 |
}
|
|
|
6671 |
|
| 3430 |
rajveer |
6672 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
6673 |
public boolean isSetWex() {
|
|
|
6674 |
return this.wex != null;
|
|
|
6675 |
}
|
|
|
6676 |
|
|
|
6677 |
public void setWexIsSet(boolean value) {
|
|
|
6678 |
if (!value) {
|
|
|
6679 |
this.wex = null;
|
|
|
6680 |
}
|
|
|
6681 |
}
|
|
|
6682 |
|
|
|
6683 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6684 |
switch (field) {
|
|
|
6685 |
case WEX:
|
|
|
6686 |
if (value == null) {
|
|
|
6687 |
unsetWex();
|
|
|
6688 |
} else {
|
|
|
6689 |
setWex((WarehouseServiceException)value);
|
|
|
6690 |
}
|
|
|
6691 |
break;
|
|
|
6692 |
|
|
|
6693 |
}
|
|
|
6694 |
}
|
|
|
6695 |
|
|
|
6696 |
public Object getFieldValue(_Fields field) {
|
|
|
6697 |
switch (field) {
|
|
|
6698 |
case WEX:
|
|
|
6699 |
return getWex();
|
|
|
6700 |
|
|
|
6701 |
}
|
|
|
6702 |
throw new IllegalStateException();
|
|
|
6703 |
}
|
|
|
6704 |
|
| 3430 |
rajveer |
6705 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6706 |
public boolean isSet(_Fields field) {
|
|
|
6707 |
if (field == null) {
|
|
|
6708 |
throw new IllegalArgumentException();
|
|
|
6709 |
}
|
| 2820 |
chandransh |
6710 |
|
|
|
6711 |
switch (field) {
|
|
|
6712 |
case WEX:
|
|
|
6713 |
return isSetWex();
|
|
|
6714 |
}
|
|
|
6715 |
throw new IllegalStateException();
|
|
|
6716 |
}
|
|
|
6717 |
|
|
|
6718 |
@Override
|
|
|
6719 |
public boolean equals(Object that) {
|
|
|
6720 |
if (that == null)
|
|
|
6721 |
return false;
|
|
|
6722 |
if (that instanceof scanIn_result)
|
|
|
6723 |
return this.equals((scanIn_result)that);
|
|
|
6724 |
return false;
|
|
|
6725 |
}
|
|
|
6726 |
|
|
|
6727 |
public boolean equals(scanIn_result that) {
|
|
|
6728 |
if (that == null)
|
|
|
6729 |
return false;
|
|
|
6730 |
|
|
|
6731 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
6732 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
6733 |
if (this_present_wex || that_present_wex) {
|
|
|
6734 |
if (!(this_present_wex && that_present_wex))
|
|
|
6735 |
return false;
|
|
|
6736 |
if (!this.wex.equals(that.wex))
|
|
|
6737 |
return false;
|
|
|
6738 |
}
|
|
|
6739 |
|
|
|
6740 |
return true;
|
|
|
6741 |
}
|
|
|
6742 |
|
|
|
6743 |
@Override
|
|
|
6744 |
public int hashCode() {
|
|
|
6745 |
return 0;
|
|
|
6746 |
}
|
|
|
6747 |
|
|
|
6748 |
public int compareTo(scanIn_result other) {
|
|
|
6749 |
if (!getClass().equals(other.getClass())) {
|
|
|
6750 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6751 |
}
|
|
|
6752 |
|
|
|
6753 |
int lastComparison = 0;
|
|
|
6754 |
scanIn_result typedOther = (scanIn_result)other;
|
|
|
6755 |
|
| 3430 |
rajveer |
6756 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
6757 |
if (lastComparison != 0) {
|
|
|
6758 |
return lastComparison;
|
|
|
6759 |
}
|
| 3430 |
rajveer |
6760 |
if (isSetWex()) {
|
|
|
6761 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
6762 |
if (lastComparison != 0) {
|
|
|
6763 |
return lastComparison;
|
|
|
6764 |
}
|
| 2820 |
chandransh |
6765 |
}
|
|
|
6766 |
return 0;
|
|
|
6767 |
}
|
|
|
6768 |
|
| 3430 |
rajveer |
6769 |
public _Fields fieldForId(int fieldId) {
|
|
|
6770 |
return _Fields.findByThriftId(fieldId);
|
|
|
6771 |
}
|
|
|
6772 |
|
|
|
6773 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6774 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
6775 |
iprot.readStructBegin();
|
|
|
6776 |
while (true)
|
|
|
6777 |
{
|
|
|
6778 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6779 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
6780 |
break;
|
|
|
6781 |
}
|
| 3430 |
rajveer |
6782 |
switch (field.id) {
|
|
|
6783 |
case 1: // WEX
|
|
|
6784 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6785 |
this.wex = new WarehouseServiceException();
|
|
|
6786 |
this.wex.read(iprot);
|
|
|
6787 |
} else {
|
|
|
6788 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6789 |
}
|
|
|
6790 |
break;
|
|
|
6791 |
default:
|
|
|
6792 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
6793 |
}
|
| 3430 |
rajveer |
6794 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
6795 |
}
|
|
|
6796 |
iprot.readStructEnd();
|
|
|
6797 |
validate();
|
|
|
6798 |
}
|
|
|
6799 |
|
| 3430 |
rajveer |
6800 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6801 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6802 |
|
|
|
6803 |
if (this.isSetWex()) {
|
|
|
6804 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
6805 |
this.wex.write(oprot);
|
|
|
6806 |
oprot.writeFieldEnd();
|
|
|
6807 |
}
|
|
|
6808 |
oprot.writeFieldStop();
|
|
|
6809 |
oprot.writeStructEnd();
|
|
|
6810 |
}
|
|
|
6811 |
|
|
|
6812 |
@Override
|
|
|
6813 |
public String toString() {
|
|
|
6814 |
StringBuilder sb = new StringBuilder("scanIn_result(");
|
|
|
6815 |
boolean first = true;
|
|
|
6816 |
|
|
|
6817 |
sb.append("wex:");
|
|
|
6818 |
if (this.wex == null) {
|
|
|
6819 |
sb.append("null");
|
|
|
6820 |
} else {
|
|
|
6821 |
sb.append(this.wex);
|
|
|
6822 |
}
|
|
|
6823 |
first = false;
|
|
|
6824 |
sb.append(")");
|
|
|
6825 |
return sb.toString();
|
|
|
6826 |
}
|
|
|
6827 |
|
| 3430 |
rajveer |
6828 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
6829 |
// check for required fields
|
|
|
6830 |
}
|
|
|
6831 |
|
| 3430 |
rajveer |
6832 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6833 |
try {
|
|
|
6834 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6835 |
} catch (org.apache.thrift.TException te) {
|
|
|
6836 |
throw new java.io.IOException(te);
|
|
|
6837 |
}
|
|
|
6838 |
}
|
|
|
6839 |
|
|
|
6840 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6841 |
try {
|
|
|
6842 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6843 |
} catch (org.apache.thrift.TException te) {
|
|
|
6844 |
throw new java.io.IOException(te);
|
|
|
6845 |
}
|
|
|
6846 |
}
|
|
|
6847 |
|
| 2820 |
chandransh |
6848 |
}
|
|
|
6849 |
|
| 3430 |
rajveer |
6850 |
public static class scanOut_args implements org.apache.thrift.TBase<scanOut_args, scanOut_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6851 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanOut_args");
|
| 2820 |
chandransh |
6852 |
|
| 3430 |
rajveer |
6853 |
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);
|
|
|
6854 |
private static final org.apache.thrift.protocol.TField IMEI_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("imeiNumber", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
6855 |
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)3);
|
| 2820 |
chandransh |
6856 |
|
| 3430 |
rajveer |
6857 |
private String itemNumber; // required
|
|
|
6858 |
private String imeiNumber; // required
|
|
|
6859 |
private ScanType type; // required
|
| 2820 |
chandransh |
6860 |
|
|
|
6861 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6862 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2820 |
chandransh |
6863 |
ITEM_NUMBER((short)1, "itemNumber"),
|
|
|
6864 |
IMEI_NUMBER((short)2, "imeiNumber"),
|
|
|
6865 |
/**
|
|
|
6866 |
*
|
|
|
6867 |
* @see ScanType
|
|
|
6868 |
*/
|
|
|
6869 |
TYPE((short)3, "type");
|
|
|
6870 |
|
|
|
6871 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6872 |
|
|
|
6873 |
static {
|
|
|
6874 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6875 |
byName.put(field.getFieldName(), field);
|
|
|
6876 |
}
|
|
|
6877 |
}
|
|
|
6878 |
|
|
|
6879 |
/**
|
|
|
6880 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6881 |
*/
|
|
|
6882 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6883 |
switch(fieldId) {
|
|
|
6884 |
case 1: // ITEM_NUMBER
|
|
|
6885 |
return ITEM_NUMBER;
|
|
|
6886 |
case 2: // IMEI_NUMBER
|
|
|
6887 |
return IMEI_NUMBER;
|
|
|
6888 |
case 3: // TYPE
|
|
|
6889 |
return TYPE;
|
|
|
6890 |
default:
|
|
|
6891 |
return null;
|
|
|
6892 |
}
|
| 2820 |
chandransh |
6893 |
}
|
|
|
6894 |
|
|
|
6895 |
/**
|
|
|
6896 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6897 |
* if it is not found.
|
|
|
6898 |
*/
|
|
|
6899 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6900 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6901 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6902 |
return fields;
|
|
|
6903 |
}
|
|
|
6904 |
|
|
|
6905 |
/**
|
|
|
6906 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6907 |
*/
|
|
|
6908 |
public static _Fields findByName(String name) {
|
|
|
6909 |
return byName.get(name);
|
|
|
6910 |
}
|
|
|
6911 |
|
|
|
6912 |
private final short _thriftId;
|
|
|
6913 |
private final String _fieldName;
|
|
|
6914 |
|
|
|
6915 |
_Fields(short thriftId, String fieldName) {
|
|
|
6916 |
_thriftId = thriftId;
|
|
|
6917 |
_fieldName = fieldName;
|
|
|
6918 |
}
|
|
|
6919 |
|
|
|
6920 |
public short getThriftFieldId() {
|
|
|
6921 |
return _thriftId;
|
|
|
6922 |
}
|
|
|
6923 |
|
|
|
6924 |
public String getFieldName() {
|
|
|
6925 |
return _fieldName;
|
|
|
6926 |
}
|
|
|
6927 |
}
|
|
|
6928 |
|
|
|
6929 |
// isset id assignments
|
|
|
6930 |
|
| 3430 |
rajveer |
6931 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
6932 |
static {
|
| 3430 |
rajveer |
6933 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6934 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6935 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6936 |
tmpMap.put(_Fields.IMEI_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("imeiNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6937 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6938 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6939 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
|
|
|
6940 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6941 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanOut_args.class, metaDataMap);
|
| 2820 |
chandransh |
6942 |
}
|
|
|
6943 |
|
|
|
6944 |
public scanOut_args() {
|
|
|
6945 |
}
|
|
|
6946 |
|
|
|
6947 |
public scanOut_args(
|
| 3424 |
chandransh |
6948 |
String itemNumber,
|
|
|
6949 |
String imeiNumber,
|
| 2820 |
chandransh |
6950 |
ScanType type)
|
|
|
6951 |
{
|
|
|
6952 |
this();
|
|
|
6953 |
this.itemNumber = itemNumber;
|
|
|
6954 |
this.imeiNumber = imeiNumber;
|
|
|
6955 |
this.type = type;
|
|
|
6956 |
}
|
|
|
6957 |
|
|
|
6958 |
/**
|
|
|
6959 |
* Performs a deep copy on <i>other</i>.
|
|
|
6960 |
*/
|
|
|
6961 |
public scanOut_args(scanOut_args other) {
|
| 3424 |
chandransh |
6962 |
if (other.isSetItemNumber()) {
|
|
|
6963 |
this.itemNumber = other.itemNumber;
|
|
|
6964 |
}
|
|
|
6965 |
if (other.isSetImeiNumber()) {
|
|
|
6966 |
this.imeiNumber = other.imeiNumber;
|
|
|
6967 |
}
|
| 2820 |
chandransh |
6968 |
if (other.isSetType()) {
|
|
|
6969 |
this.type = other.type;
|
|
|
6970 |
}
|
|
|
6971 |
}
|
|
|
6972 |
|
|
|
6973 |
public scanOut_args deepCopy() {
|
|
|
6974 |
return new scanOut_args(this);
|
|
|
6975 |
}
|
|
|
6976 |
|
| 3430 |
rajveer |
6977 |
@Override
|
|
|
6978 |
public void clear() {
|
|
|
6979 |
this.itemNumber = null;
|
|
|
6980 |
this.imeiNumber = null;
|
|
|
6981 |
this.type = null;
|
| 2820 |
chandransh |
6982 |
}
|
|
|
6983 |
|
| 3424 |
chandransh |
6984 |
public String getItemNumber() {
|
| 2820 |
chandransh |
6985 |
return this.itemNumber;
|
|
|
6986 |
}
|
|
|
6987 |
|
| 3430 |
rajveer |
6988 |
public void setItemNumber(String itemNumber) {
|
| 2820 |
chandransh |
6989 |
this.itemNumber = itemNumber;
|
|
|
6990 |
}
|
|
|
6991 |
|
|
|
6992 |
public void unsetItemNumber() {
|
| 3424 |
chandransh |
6993 |
this.itemNumber = null;
|
| 2820 |
chandransh |
6994 |
}
|
|
|
6995 |
|
| 3430 |
rajveer |
6996 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
6997 |
public boolean isSetItemNumber() {
|
| 3424 |
chandransh |
6998 |
return this.itemNumber != null;
|
| 2820 |
chandransh |
6999 |
}
|
|
|
7000 |
|
|
|
7001 |
public void setItemNumberIsSet(boolean value) {
|
| 3424 |
chandransh |
7002 |
if (!value) {
|
|
|
7003 |
this.itemNumber = null;
|
|
|
7004 |
}
|
| 2820 |
chandransh |
7005 |
}
|
|
|
7006 |
|
| 3424 |
chandransh |
7007 |
public String getImeiNumber() {
|
| 2820 |
chandransh |
7008 |
return this.imeiNumber;
|
|
|
7009 |
}
|
|
|
7010 |
|
| 3430 |
rajveer |
7011 |
public void setImeiNumber(String imeiNumber) {
|
| 2820 |
chandransh |
7012 |
this.imeiNumber = imeiNumber;
|
|
|
7013 |
}
|
|
|
7014 |
|
|
|
7015 |
public void unsetImeiNumber() {
|
| 3424 |
chandransh |
7016 |
this.imeiNumber = null;
|
| 2820 |
chandransh |
7017 |
}
|
|
|
7018 |
|
| 3430 |
rajveer |
7019 |
/** Returns true if field imeiNumber is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
7020 |
public boolean isSetImeiNumber() {
|
| 3424 |
chandransh |
7021 |
return this.imeiNumber != null;
|
| 2820 |
chandransh |
7022 |
}
|
|
|
7023 |
|
|
|
7024 |
public void setImeiNumberIsSet(boolean value) {
|
| 3424 |
chandransh |
7025 |
if (!value) {
|
|
|
7026 |
this.imeiNumber = null;
|
|
|
7027 |
}
|
| 2820 |
chandransh |
7028 |
}
|
|
|
7029 |
|
|
|
7030 |
/**
|
|
|
7031 |
*
|
|
|
7032 |
* @see ScanType
|
|
|
7033 |
*/
|
|
|
7034 |
public ScanType getType() {
|
|
|
7035 |
return this.type;
|
|
|
7036 |
}
|
|
|
7037 |
|
|
|
7038 |
/**
|
|
|
7039 |
*
|
|
|
7040 |
* @see ScanType
|
|
|
7041 |
*/
|
| 3430 |
rajveer |
7042 |
public void setType(ScanType type) {
|
| 2820 |
chandransh |
7043 |
this.type = type;
|
|
|
7044 |
}
|
|
|
7045 |
|
|
|
7046 |
public void unsetType() {
|
|
|
7047 |
this.type = null;
|
|
|
7048 |
}
|
|
|
7049 |
|
| 3430 |
rajveer |
7050 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
7051 |
public boolean isSetType() {
|
|
|
7052 |
return this.type != null;
|
|
|
7053 |
}
|
|
|
7054 |
|
|
|
7055 |
public void setTypeIsSet(boolean value) {
|
|
|
7056 |
if (!value) {
|
|
|
7057 |
this.type = null;
|
|
|
7058 |
}
|
|
|
7059 |
}
|
|
|
7060 |
|
|
|
7061 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7062 |
switch (field) {
|
|
|
7063 |
case ITEM_NUMBER:
|
|
|
7064 |
if (value == null) {
|
|
|
7065 |
unsetItemNumber();
|
|
|
7066 |
} else {
|
| 3424 |
chandransh |
7067 |
setItemNumber((String)value);
|
| 2820 |
chandransh |
7068 |
}
|
|
|
7069 |
break;
|
|
|
7070 |
|
|
|
7071 |
case IMEI_NUMBER:
|
|
|
7072 |
if (value == null) {
|
|
|
7073 |
unsetImeiNumber();
|
|
|
7074 |
} else {
|
| 3424 |
chandransh |
7075 |
setImeiNumber((String)value);
|
| 2820 |
chandransh |
7076 |
}
|
|
|
7077 |
break;
|
|
|
7078 |
|
|
|
7079 |
case TYPE:
|
|
|
7080 |
if (value == null) {
|
|
|
7081 |
unsetType();
|
|
|
7082 |
} else {
|
|
|
7083 |
setType((ScanType)value);
|
|
|
7084 |
}
|
|
|
7085 |
break;
|
|
|
7086 |
|
|
|
7087 |
}
|
|
|
7088 |
}
|
|
|
7089 |
|
|
|
7090 |
public Object getFieldValue(_Fields field) {
|
|
|
7091 |
switch (field) {
|
|
|
7092 |
case ITEM_NUMBER:
|
| 3424 |
chandransh |
7093 |
return getItemNumber();
|
| 2820 |
chandransh |
7094 |
|
|
|
7095 |
case IMEI_NUMBER:
|
| 3424 |
chandransh |
7096 |
return getImeiNumber();
|
| 2820 |
chandransh |
7097 |
|
|
|
7098 |
case TYPE:
|
|
|
7099 |
return getType();
|
|
|
7100 |
|
|
|
7101 |
}
|
|
|
7102 |
throw new IllegalStateException();
|
|
|
7103 |
}
|
|
|
7104 |
|
| 3430 |
rajveer |
7105 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7106 |
public boolean isSet(_Fields field) {
|
|
|
7107 |
if (field == null) {
|
|
|
7108 |
throw new IllegalArgumentException();
|
|
|
7109 |
}
|
| 2820 |
chandransh |
7110 |
|
|
|
7111 |
switch (field) {
|
|
|
7112 |
case ITEM_NUMBER:
|
|
|
7113 |
return isSetItemNumber();
|
|
|
7114 |
case IMEI_NUMBER:
|
|
|
7115 |
return isSetImeiNumber();
|
|
|
7116 |
case TYPE:
|
|
|
7117 |
return isSetType();
|
|
|
7118 |
}
|
|
|
7119 |
throw new IllegalStateException();
|
|
|
7120 |
}
|
|
|
7121 |
|
|
|
7122 |
@Override
|
|
|
7123 |
public boolean equals(Object that) {
|
|
|
7124 |
if (that == null)
|
|
|
7125 |
return false;
|
|
|
7126 |
if (that instanceof scanOut_args)
|
|
|
7127 |
return this.equals((scanOut_args)that);
|
|
|
7128 |
return false;
|
|
|
7129 |
}
|
|
|
7130 |
|
|
|
7131 |
public boolean equals(scanOut_args that) {
|
|
|
7132 |
if (that == null)
|
|
|
7133 |
return false;
|
|
|
7134 |
|
| 3424 |
chandransh |
7135 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
7136 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
| 2820 |
chandransh |
7137 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
7138 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
7139 |
return false;
|
| 3424 |
chandransh |
7140 |
if (!this.itemNumber.equals(that.itemNumber))
|
| 2820 |
chandransh |
7141 |
return false;
|
|
|
7142 |
}
|
|
|
7143 |
|
| 3424 |
chandransh |
7144 |
boolean this_present_imeiNumber = true && this.isSetImeiNumber();
|
|
|
7145 |
boolean that_present_imeiNumber = true && that.isSetImeiNumber();
|
| 2820 |
chandransh |
7146 |
if (this_present_imeiNumber || that_present_imeiNumber) {
|
|
|
7147 |
if (!(this_present_imeiNumber && that_present_imeiNumber))
|
|
|
7148 |
return false;
|
| 3424 |
chandransh |
7149 |
if (!this.imeiNumber.equals(that.imeiNumber))
|
| 2820 |
chandransh |
7150 |
return false;
|
|
|
7151 |
}
|
|
|
7152 |
|
|
|
7153 |
boolean this_present_type = true && this.isSetType();
|
|
|
7154 |
boolean that_present_type = true && that.isSetType();
|
|
|
7155 |
if (this_present_type || that_present_type) {
|
|
|
7156 |
if (!(this_present_type && that_present_type))
|
|
|
7157 |
return false;
|
|
|
7158 |
if (!this.type.equals(that.type))
|
|
|
7159 |
return false;
|
|
|
7160 |
}
|
|
|
7161 |
|
|
|
7162 |
return true;
|
|
|
7163 |
}
|
|
|
7164 |
|
|
|
7165 |
@Override
|
|
|
7166 |
public int hashCode() {
|
|
|
7167 |
return 0;
|
|
|
7168 |
}
|
|
|
7169 |
|
|
|
7170 |
public int compareTo(scanOut_args other) {
|
|
|
7171 |
if (!getClass().equals(other.getClass())) {
|
|
|
7172 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7173 |
}
|
|
|
7174 |
|
|
|
7175 |
int lastComparison = 0;
|
|
|
7176 |
scanOut_args typedOther = (scanOut_args)other;
|
|
|
7177 |
|
| 3430 |
rajveer |
7178 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
| 2820 |
chandransh |
7179 |
if (lastComparison != 0) {
|
|
|
7180 |
return lastComparison;
|
|
|
7181 |
}
|
| 3430 |
rajveer |
7182 |
if (isSetItemNumber()) {
|
|
|
7183 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
7184 |
if (lastComparison != 0) {
|
|
|
7185 |
return lastComparison;
|
|
|
7186 |
}
|
| 2820 |
chandransh |
7187 |
}
|
| 3430 |
rajveer |
7188 |
lastComparison = Boolean.valueOf(isSetImeiNumber()).compareTo(typedOther.isSetImeiNumber());
|
| 2820 |
chandransh |
7189 |
if (lastComparison != 0) {
|
|
|
7190 |
return lastComparison;
|
|
|
7191 |
}
|
| 3430 |
rajveer |
7192 |
if (isSetImeiNumber()) {
|
|
|
7193 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imeiNumber, typedOther.imeiNumber);
|
|
|
7194 |
if (lastComparison != 0) {
|
|
|
7195 |
return lastComparison;
|
|
|
7196 |
}
|
| 2820 |
chandransh |
7197 |
}
|
| 3430 |
rajveer |
7198 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 2820 |
chandransh |
7199 |
if (lastComparison != 0) {
|
|
|
7200 |
return lastComparison;
|
|
|
7201 |
}
|
| 3430 |
rajveer |
7202 |
if (isSetType()) {
|
|
|
7203 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
7204 |
if (lastComparison != 0) {
|
|
|
7205 |
return lastComparison;
|
|
|
7206 |
}
|
| 2820 |
chandransh |
7207 |
}
|
|
|
7208 |
return 0;
|
|
|
7209 |
}
|
|
|
7210 |
|
| 3430 |
rajveer |
7211 |
public _Fields fieldForId(int fieldId) {
|
|
|
7212 |
return _Fields.findByThriftId(fieldId);
|
|
|
7213 |
}
|
|
|
7214 |
|
|
|
7215 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7216 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
7217 |
iprot.readStructBegin();
|
|
|
7218 |
while (true)
|
|
|
7219 |
{
|
|
|
7220 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
7221 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
7222 |
break;
|
|
|
7223 |
}
|
| 3430 |
rajveer |
7224 |
switch (field.id) {
|
|
|
7225 |
case 1: // ITEM_NUMBER
|
|
|
7226 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7227 |
this.itemNumber = iprot.readString();
|
|
|
7228 |
} else {
|
|
|
7229 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7230 |
}
|
|
|
7231 |
break;
|
|
|
7232 |
case 2: // IMEI_NUMBER
|
|
|
7233 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7234 |
this.imeiNumber = iprot.readString();
|
|
|
7235 |
} else {
|
|
|
7236 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7237 |
}
|
|
|
7238 |
break;
|
|
|
7239 |
case 3: // TYPE
|
|
|
7240 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
7241 |
this.type = ScanType.findByValue(iprot.readI32());
|
|
|
7242 |
} else {
|
|
|
7243 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7244 |
}
|
|
|
7245 |
break;
|
|
|
7246 |
default:
|
|
|
7247 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
7248 |
}
|
| 3430 |
rajveer |
7249 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
7250 |
}
|
|
|
7251 |
iprot.readStructEnd();
|
|
|
7252 |
validate();
|
|
|
7253 |
}
|
|
|
7254 |
|
| 3430 |
rajveer |
7255 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
7256 |
validate();
|
|
|
7257 |
|
|
|
7258 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 3424 |
chandransh |
7259 |
if (this.itemNumber != null) {
|
|
|
7260 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
7261 |
oprot.writeString(this.itemNumber);
|
|
|
7262 |
oprot.writeFieldEnd();
|
|
|
7263 |
}
|
|
|
7264 |
if (this.imeiNumber != null) {
|
|
|
7265 |
oprot.writeFieldBegin(IMEI_NUMBER_FIELD_DESC);
|
|
|
7266 |
oprot.writeString(this.imeiNumber);
|
|
|
7267 |
oprot.writeFieldEnd();
|
|
|
7268 |
}
|
| 2820 |
chandransh |
7269 |
if (this.type != null) {
|
|
|
7270 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
7271 |
oprot.writeI32(this.type.getValue());
|
|
|
7272 |
oprot.writeFieldEnd();
|
|
|
7273 |
}
|
|
|
7274 |
oprot.writeFieldStop();
|
|
|
7275 |
oprot.writeStructEnd();
|
|
|
7276 |
}
|
|
|
7277 |
|
|
|
7278 |
@Override
|
|
|
7279 |
public String toString() {
|
|
|
7280 |
StringBuilder sb = new StringBuilder("scanOut_args(");
|
|
|
7281 |
boolean first = true;
|
|
|
7282 |
|
|
|
7283 |
sb.append("itemNumber:");
|
| 3424 |
chandransh |
7284 |
if (this.itemNumber == null) {
|
|
|
7285 |
sb.append("null");
|
|
|
7286 |
} else {
|
|
|
7287 |
sb.append(this.itemNumber);
|
|
|
7288 |
}
|
| 2820 |
chandransh |
7289 |
first = false;
|
|
|
7290 |
if (!first) sb.append(", ");
|
|
|
7291 |
sb.append("imeiNumber:");
|
| 3424 |
chandransh |
7292 |
if (this.imeiNumber == null) {
|
|
|
7293 |
sb.append("null");
|
|
|
7294 |
} else {
|
|
|
7295 |
sb.append(this.imeiNumber);
|
|
|
7296 |
}
|
| 2820 |
chandransh |
7297 |
first = false;
|
|
|
7298 |
if (!first) sb.append(", ");
|
|
|
7299 |
sb.append("type:");
|
|
|
7300 |
if (this.type == null) {
|
|
|
7301 |
sb.append("null");
|
|
|
7302 |
} else {
|
|
|
7303 |
sb.append(this.type);
|
|
|
7304 |
}
|
|
|
7305 |
first = false;
|
|
|
7306 |
sb.append(")");
|
|
|
7307 |
return sb.toString();
|
|
|
7308 |
}
|
|
|
7309 |
|
| 3430 |
rajveer |
7310 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
7311 |
// check for required fields
|
|
|
7312 |
}
|
|
|
7313 |
|
| 3430 |
rajveer |
7314 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7315 |
try {
|
|
|
7316 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7317 |
} catch (org.apache.thrift.TException te) {
|
|
|
7318 |
throw new java.io.IOException(te);
|
|
|
7319 |
}
|
|
|
7320 |
}
|
|
|
7321 |
|
|
|
7322 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7323 |
try {
|
|
|
7324 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7325 |
} catch (org.apache.thrift.TException te) {
|
|
|
7326 |
throw new java.io.IOException(te);
|
|
|
7327 |
}
|
|
|
7328 |
}
|
|
|
7329 |
|
| 2820 |
chandransh |
7330 |
}
|
|
|
7331 |
|
| 3430 |
rajveer |
7332 |
public static class scanOut_result implements org.apache.thrift.TBase<scanOut_result, scanOut_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7333 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanOut_result");
|
| 2820 |
chandransh |
7334 |
|
| 3430 |
rajveer |
7335 |
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 |
7336 |
|
| 3430 |
rajveer |
7337 |
private WarehouseServiceException wex; // required
|
| 2820 |
chandransh |
7338 |
|
|
|
7339 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
7340 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2820 |
chandransh |
7341 |
WEX((short)1, "wex");
|
|
|
7342 |
|
|
|
7343 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7344 |
|
|
|
7345 |
static {
|
|
|
7346 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7347 |
byName.put(field.getFieldName(), field);
|
|
|
7348 |
}
|
|
|
7349 |
}
|
|
|
7350 |
|
|
|
7351 |
/**
|
|
|
7352 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7353 |
*/
|
|
|
7354 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
7355 |
switch(fieldId) {
|
|
|
7356 |
case 1: // WEX
|
|
|
7357 |
return WEX;
|
|
|
7358 |
default:
|
|
|
7359 |
return null;
|
|
|
7360 |
}
|
| 2820 |
chandransh |
7361 |
}
|
|
|
7362 |
|
|
|
7363 |
/**
|
|
|
7364 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7365 |
* if it is not found.
|
|
|
7366 |
*/
|
|
|
7367 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7368 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7369 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7370 |
return fields;
|
|
|
7371 |
}
|
|
|
7372 |
|
|
|
7373 |
/**
|
|
|
7374 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7375 |
*/
|
|
|
7376 |
public static _Fields findByName(String name) {
|
|
|
7377 |
return byName.get(name);
|
|
|
7378 |
}
|
|
|
7379 |
|
|
|
7380 |
private final short _thriftId;
|
|
|
7381 |
private final String _fieldName;
|
|
|
7382 |
|
|
|
7383 |
_Fields(short thriftId, String fieldName) {
|
|
|
7384 |
_thriftId = thriftId;
|
|
|
7385 |
_fieldName = fieldName;
|
|
|
7386 |
}
|
|
|
7387 |
|
|
|
7388 |
public short getThriftFieldId() {
|
|
|
7389 |
return _thriftId;
|
|
|
7390 |
}
|
|
|
7391 |
|
|
|
7392 |
public String getFieldName() {
|
|
|
7393 |
return _fieldName;
|
|
|
7394 |
}
|
|
|
7395 |
}
|
|
|
7396 |
|
|
|
7397 |
// isset id assignments
|
|
|
7398 |
|
| 3430 |
rajveer |
7399 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2820 |
chandransh |
7400 |
static {
|
| 3430 |
rajveer |
7401 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7402 |
tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7403 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
7404 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7405 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanOut_result.class, metaDataMap);
|
| 2820 |
chandransh |
7406 |
}
|
|
|
7407 |
|
|
|
7408 |
public scanOut_result() {
|
|
|
7409 |
}
|
|
|
7410 |
|
|
|
7411 |
public scanOut_result(
|
|
|
7412 |
WarehouseServiceException wex)
|
|
|
7413 |
{
|
|
|
7414 |
this();
|
|
|
7415 |
this.wex = wex;
|
|
|
7416 |
}
|
|
|
7417 |
|
|
|
7418 |
/**
|
|
|
7419 |
* Performs a deep copy on <i>other</i>.
|
|
|
7420 |
*/
|
|
|
7421 |
public scanOut_result(scanOut_result other) {
|
|
|
7422 |
if (other.isSetWex()) {
|
|
|
7423 |
this.wex = new WarehouseServiceException(other.wex);
|
|
|
7424 |
}
|
|
|
7425 |
}
|
|
|
7426 |
|
|
|
7427 |
public scanOut_result deepCopy() {
|
|
|
7428 |
return new scanOut_result(this);
|
|
|
7429 |
}
|
|
|
7430 |
|
| 3430 |
rajveer |
7431 |
@Override
|
|
|
7432 |
public void clear() {
|
|
|
7433 |
this.wex = null;
|
| 2820 |
chandransh |
7434 |
}
|
|
|
7435 |
|
|
|
7436 |
public WarehouseServiceException getWex() {
|
|
|
7437 |
return this.wex;
|
|
|
7438 |
}
|
|
|
7439 |
|
| 3430 |
rajveer |
7440 |
public void setWex(WarehouseServiceException wex) {
|
| 2820 |
chandransh |
7441 |
this.wex = wex;
|
|
|
7442 |
}
|
|
|
7443 |
|
|
|
7444 |
public void unsetWex() {
|
|
|
7445 |
this.wex = null;
|
|
|
7446 |
}
|
|
|
7447 |
|
| 3430 |
rajveer |
7448 |
/** Returns true if field wex is set (has been assigned a value) and false otherwise */
|
| 2820 |
chandransh |
7449 |
public boolean isSetWex() {
|
|
|
7450 |
return this.wex != null;
|
|
|
7451 |
}
|
|
|
7452 |
|
|
|
7453 |
public void setWexIsSet(boolean value) {
|
|
|
7454 |
if (!value) {
|
|
|
7455 |
this.wex = null;
|
|
|
7456 |
}
|
|
|
7457 |
}
|
|
|
7458 |
|
|
|
7459 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7460 |
switch (field) {
|
|
|
7461 |
case WEX:
|
|
|
7462 |
if (value == null) {
|
|
|
7463 |
unsetWex();
|
|
|
7464 |
} else {
|
|
|
7465 |
setWex((WarehouseServiceException)value);
|
|
|
7466 |
}
|
|
|
7467 |
break;
|
|
|
7468 |
|
|
|
7469 |
}
|
|
|
7470 |
}
|
|
|
7471 |
|
|
|
7472 |
public Object getFieldValue(_Fields field) {
|
|
|
7473 |
switch (field) {
|
|
|
7474 |
case WEX:
|
|
|
7475 |
return getWex();
|
|
|
7476 |
|
|
|
7477 |
}
|
|
|
7478 |
throw new IllegalStateException();
|
|
|
7479 |
}
|
|
|
7480 |
|
| 3430 |
rajveer |
7481 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7482 |
public boolean isSet(_Fields field) {
|
|
|
7483 |
if (field == null) {
|
|
|
7484 |
throw new IllegalArgumentException();
|
|
|
7485 |
}
|
| 2820 |
chandransh |
7486 |
|
|
|
7487 |
switch (field) {
|
|
|
7488 |
case WEX:
|
|
|
7489 |
return isSetWex();
|
|
|
7490 |
}
|
|
|
7491 |
throw new IllegalStateException();
|
|
|
7492 |
}
|
|
|
7493 |
|
|
|
7494 |
@Override
|
|
|
7495 |
public boolean equals(Object that) {
|
|
|
7496 |
if (that == null)
|
|
|
7497 |
return false;
|
|
|
7498 |
if (that instanceof scanOut_result)
|
|
|
7499 |
return this.equals((scanOut_result)that);
|
|
|
7500 |
return false;
|
|
|
7501 |
}
|
|
|
7502 |
|
|
|
7503 |
public boolean equals(scanOut_result that) {
|
|
|
7504 |
if (that == null)
|
|
|
7505 |
return false;
|
|
|
7506 |
|
|
|
7507 |
boolean this_present_wex = true && this.isSetWex();
|
|
|
7508 |
boolean that_present_wex = true && that.isSetWex();
|
|
|
7509 |
if (this_present_wex || that_present_wex) {
|
|
|
7510 |
if (!(this_present_wex && that_present_wex))
|
|
|
7511 |
return false;
|
|
|
7512 |
if (!this.wex.equals(that.wex))
|
|
|
7513 |
return false;
|
|
|
7514 |
}
|
|
|
7515 |
|
|
|
7516 |
return true;
|
|
|
7517 |
}
|
|
|
7518 |
|
|
|
7519 |
@Override
|
|
|
7520 |
public int hashCode() {
|
|
|
7521 |
return 0;
|
|
|
7522 |
}
|
|
|
7523 |
|
|
|
7524 |
public int compareTo(scanOut_result other) {
|
|
|
7525 |
if (!getClass().equals(other.getClass())) {
|
|
|
7526 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7527 |
}
|
|
|
7528 |
|
|
|
7529 |
int lastComparison = 0;
|
|
|
7530 |
scanOut_result typedOther = (scanOut_result)other;
|
|
|
7531 |
|
| 3430 |
rajveer |
7532 |
lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
|
| 2820 |
chandransh |
7533 |
if (lastComparison != 0) {
|
|
|
7534 |
return lastComparison;
|
|
|
7535 |
}
|
| 3430 |
rajveer |
7536 |
if (isSetWex()) {
|
|
|
7537 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
|
|
|
7538 |
if (lastComparison != 0) {
|
|
|
7539 |
return lastComparison;
|
|
|
7540 |
}
|
| 2820 |
chandransh |
7541 |
}
|
|
|
7542 |
return 0;
|
|
|
7543 |
}
|
|
|
7544 |
|
| 3430 |
rajveer |
7545 |
public _Fields fieldForId(int fieldId) {
|
|
|
7546 |
return _Fields.findByThriftId(fieldId);
|
|
|
7547 |
}
|
|
|
7548 |
|
|
|
7549 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7550 |
org.apache.thrift.protocol.TField field;
|
| 2820 |
chandransh |
7551 |
iprot.readStructBegin();
|
|
|
7552 |
while (true)
|
|
|
7553 |
{
|
|
|
7554 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
7555 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2820 |
chandransh |
7556 |
break;
|
|
|
7557 |
}
|
| 3430 |
rajveer |
7558 |
switch (field.id) {
|
|
|
7559 |
case 1: // WEX
|
|
|
7560 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
7561 |
this.wex = new WarehouseServiceException();
|
|
|
7562 |
this.wex.read(iprot);
|
|
|
7563 |
} else {
|
|
|
7564 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7565 |
}
|
|
|
7566 |
break;
|
|
|
7567 |
default:
|
|
|
7568 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2820 |
chandransh |
7569 |
}
|
| 3430 |
rajveer |
7570 |
iprot.readFieldEnd();
|
| 2820 |
chandransh |
7571 |
}
|
|
|
7572 |
iprot.readStructEnd();
|
|
|
7573 |
validate();
|
|
|
7574 |
}
|
|
|
7575 |
|
| 3430 |
rajveer |
7576 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
7577 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7578 |
|
|
|
7579 |
if (this.isSetWex()) {
|
|
|
7580 |
oprot.writeFieldBegin(WEX_FIELD_DESC);
|
|
|
7581 |
this.wex.write(oprot);
|
|
|
7582 |
oprot.writeFieldEnd();
|
|
|
7583 |
}
|
|
|
7584 |
oprot.writeFieldStop();
|
|
|
7585 |
oprot.writeStructEnd();
|
|
|
7586 |
}
|
|
|
7587 |
|
|
|
7588 |
@Override
|
|
|
7589 |
public String toString() {
|
|
|
7590 |
StringBuilder sb = new StringBuilder("scanOut_result(");
|
|
|
7591 |
boolean first = true;
|
|
|
7592 |
|
|
|
7593 |
sb.append("wex:");
|
|
|
7594 |
if (this.wex == null) {
|
|
|
7595 |
sb.append("null");
|
|
|
7596 |
} else {
|
|
|
7597 |
sb.append(this.wex);
|
|
|
7598 |
}
|
|
|
7599 |
first = false;
|
|
|
7600 |
sb.append(")");
|
|
|
7601 |
return sb.toString();
|
|
|
7602 |
}
|
|
|
7603 |
|
| 3430 |
rajveer |
7604 |
public void validate() throws org.apache.thrift.TException {
|
| 2820 |
chandransh |
7605 |
// check for required fields
|
|
|
7606 |
}
|
|
|
7607 |
|
| 3430 |
rajveer |
7608 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7609 |
try {
|
|
|
7610 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7611 |
} catch (org.apache.thrift.TException te) {
|
|
|
7612 |
throw new java.io.IOException(te);
|
|
|
7613 |
}
|
|
|
7614 |
}
|
|
|
7615 |
|
|
|
7616 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7617 |
try {
|
|
|
7618 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7619 |
} catch (org.apache.thrift.TException te) {
|
|
|
7620 |
throw new java.io.IOException(te);
|
|
|
7621 |
}
|
|
|
7622 |
}
|
|
|
7623 |
|
| 2820 |
chandransh |
7624 |
}
|
|
|
7625 |
|
|
|
7626 |
}
|