Subversion Repositories SmartDukaan

Rev

Rev 3424 | Rev 4496 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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