Subversion Repositories SmartDukaan

Rev

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

Rev 5527 Rev 5553
Line 360... Line 360...
360
     */
360
     */
361
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
361
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
362
 
362
 
363
    public void markOrderAsDelivered(long orderId, long deliveryTimestamp, String receiver) throws TransactionServiceException, org.apache.thrift.TException;
363
    public void markOrderAsDelivered(long orderId, long deliveryTimestamp, String receiver) throws TransactionServiceException, org.apache.thrift.TException;
364
 
364
 
-
 
365
    public void markOrderAsReceivedAtStore(long orderId, long deliveryTimestamp) throws TransactionServiceException, org.apache.thrift.TException;
-
 
366
 
365
    /**
367
    /**
366
     * Once user raise the request for a DOA, order status will be changed from DELVIERY_SUCCESS to DOA_REQUEST_RECEIVED
368
     * Once user raise the request for a DOA, order status will be changed from DELVIERY_SUCCESS to DOA_REQUEST_RECEIVED
367
     * 
369
     * 
368
     * @param orderId
370
     * @param orderId
369
     */
371
     */
Line 814... Line 816...
814
     * @param transactionId
816
     * @param transactionId
815
     * @param attribute
817
     * @param attribute
816
     */
818
     */
817
    public void setOrderAttributeForTransaction(long transactionId, Attribute attribute) throws org.apache.thrift.TException;
819
    public void setOrderAttributeForTransaction(long transactionId, Attribute attribute) throws org.apache.thrift.TException;
818
 
820
 
-
 
821
    public List<Order> getReceivePendingOrders(long storeId) throws org.apache.thrift.TException;
-
 
822
 
-
 
823
    public List<Order> getReceivedAtStoreOrders(long storeId) throws org.apache.thrift.TException;
-
 
824
 
819
  }
825
  }
820
 
826
 
821
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
827
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
822
 
828
 
823
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
829
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 922... Line 928...
922
 
928
 
923
    public void toggleDOAFlag(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.toggleDOAFlag_call> resultHandler) throws org.apache.thrift.TException;
929
    public void toggleDOAFlag(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.toggleDOAFlag_call> resultHandler) throws org.apache.thrift.TException;
924
 
930
 
925
    public void markOrderAsDelivered(long orderId, long deliveryTimestamp, String receiver, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderAsDelivered_call> resultHandler) throws org.apache.thrift.TException;
931
    public void markOrderAsDelivered(long orderId, long deliveryTimestamp, String receiver, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderAsDelivered_call> resultHandler) throws org.apache.thrift.TException;
926
 
932
 
-
 
933
    public void markOrderAsReceivedAtStore(long orderId, long deliveryTimestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderAsReceivedAtStore_call> resultHandler) throws org.apache.thrift.TException;
-
 
934
 
927
    public void markOrderDoaRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
935
    public void markOrderDoaRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
928
 
936
 
929
    public void markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestAuthorized_call> resultHandler) throws org.apache.thrift.TException;
937
    public void markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestAuthorized_call> resultHandler) throws org.apache.thrift.TException;
930
 
938
 
931
    public void markOrderReturnRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderReturnRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
939
    public void markOrderReturnRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderReturnRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
Line 1052... Line 1060...
1052
 
1060
 
1053
    public void getAllAttributesForOrderId(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAttributesForOrderId_call> resultHandler) throws org.apache.thrift.TException;
1061
    public void getAllAttributesForOrderId(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAttributesForOrderId_call> resultHandler) throws org.apache.thrift.TException;
1054
 
1062
 
1055
    public void setOrderAttributeForTransaction(long transactionId, Attribute attribute, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setOrderAttributeForTransaction_call> resultHandler) throws org.apache.thrift.TException;
1063
    public void setOrderAttributeForTransaction(long transactionId, Attribute attribute, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setOrderAttributeForTransaction_call> resultHandler) throws org.apache.thrift.TException;
1056
 
1064
 
-
 
1065
    public void getReceivePendingOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReceivePendingOrders_call> resultHandler) throws org.apache.thrift.TException;
-
 
1066
 
-
 
1067
    public void getReceivedAtStoreOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReceivedAtStoreOrders_call> resultHandler) throws org.apache.thrift.TException;
-
 
1068
 
1057
  }
1069
  }
1058
 
1070
 
1059
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1071
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1060
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1072
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1061
      public Factory() {}
1073
      public Factory() {}
Line 2403... Line 2415...
2403
        throw result.ex;
2415
        throw result.ex;
2404
      }
2416
      }
2405
      return;
2417
      return;
2406
    }
2418
    }
2407
 
2419
 
-
 
2420
    public void markOrderAsReceivedAtStore(long orderId, long deliveryTimestamp) throws TransactionServiceException, org.apache.thrift.TException
-
 
2421
    {
-
 
2422
      send_markOrderAsReceivedAtStore(orderId, deliveryTimestamp);
-
 
2423
      recv_markOrderAsReceivedAtStore();
-
 
2424
    }
-
 
2425
 
-
 
2426
    public void send_markOrderAsReceivedAtStore(long orderId, long deliveryTimestamp) throws org.apache.thrift.TException
-
 
2427
    {
-
 
2428
      markOrderAsReceivedAtStore_args args = new markOrderAsReceivedAtStore_args();
-
 
2429
      args.setOrderId(orderId);
-
 
2430
      args.setDeliveryTimestamp(deliveryTimestamp);
-
 
2431
      sendBase("markOrderAsReceivedAtStore", args);
-
 
2432
    }
-
 
2433
 
-
 
2434
    public void recv_markOrderAsReceivedAtStore() throws TransactionServiceException, org.apache.thrift.TException
-
 
2435
    {
-
 
2436
      markOrderAsReceivedAtStore_result result = new markOrderAsReceivedAtStore_result();
-
 
2437
      receiveBase(result, "markOrderAsReceivedAtStore");
-
 
2438
      if (result.ex != null) {
-
 
2439
        throw result.ex;
-
 
2440
      }
-
 
2441
      return;
-
 
2442
    }
-
 
2443
 
2408
    public boolean markOrderDoaRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2444
    public boolean markOrderDoaRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2409
    {
2445
    {
2410
      send_markOrderDoaRequestReceived(orderId);
2446
      send_markOrderDoaRequestReceived(orderId);
2411
      return recv_markOrderDoaRequestReceived();
2447
      return recv_markOrderDoaRequestReceived();
2412
    }
2448
    }
Line 4055... Line 4091...
4055
      setOrderAttributeForTransaction_result result = new setOrderAttributeForTransaction_result();
4091
      setOrderAttributeForTransaction_result result = new setOrderAttributeForTransaction_result();
4056
      receiveBase(result, "setOrderAttributeForTransaction");
4092
      receiveBase(result, "setOrderAttributeForTransaction");
4057
      return;
4093
      return;
4058
    }
4094
    }
4059
 
4095
 
-
 
4096
    public List<Order> getReceivePendingOrders(long storeId) throws org.apache.thrift.TException
-
 
4097
    {
-
 
4098
      send_getReceivePendingOrders(storeId);
-
 
4099
      return recv_getReceivePendingOrders();
-
 
4100
    }
-
 
4101
 
-
 
4102
    public void send_getReceivePendingOrders(long storeId) throws org.apache.thrift.TException
-
 
4103
    {
-
 
4104
      getReceivePendingOrders_args args = new getReceivePendingOrders_args();
-
 
4105
      args.setStoreId(storeId);
-
 
4106
      sendBase("getReceivePendingOrders", args);
-
 
4107
    }
-
 
4108
 
-
 
4109
    public List<Order> recv_getReceivePendingOrders() throws org.apache.thrift.TException
-
 
4110
    {
-
 
4111
      getReceivePendingOrders_result result = new getReceivePendingOrders_result();
-
 
4112
      receiveBase(result, "getReceivePendingOrders");
-
 
4113
      if (result.isSetSuccess()) {
-
 
4114
        return result.success;
-
 
4115
      }
-
 
4116
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReceivePendingOrders failed: unknown result");
-
 
4117
    }
-
 
4118
 
-
 
4119
    public List<Order> getReceivedAtStoreOrders(long storeId) throws org.apache.thrift.TException
-
 
4120
    {
-
 
4121
      send_getReceivedAtStoreOrders(storeId);
-
 
4122
      return recv_getReceivedAtStoreOrders();
-
 
4123
    }
-
 
4124
 
-
 
4125
    public void send_getReceivedAtStoreOrders(long storeId) throws org.apache.thrift.TException
-
 
4126
    {
-
 
4127
      getReceivedAtStoreOrders_args args = new getReceivedAtStoreOrders_args();
-
 
4128
      args.setStoreId(storeId);
-
 
4129
      sendBase("getReceivedAtStoreOrders", args);
-
 
4130
    }
-
 
4131
 
-
 
4132
    public List<Order> recv_getReceivedAtStoreOrders() throws org.apache.thrift.TException
-
 
4133
    {
-
 
4134
      getReceivedAtStoreOrders_result result = new getReceivedAtStoreOrders_result();
-
 
4135
      receiveBase(result, "getReceivedAtStoreOrders");
-
 
4136
      if (result.isSetSuccess()) {
-
 
4137
        return result.success;
-
 
4138
      }
-
 
4139
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReceivedAtStoreOrders failed: unknown result");
-
 
4140
    }
-
 
4141
 
4060
  }
4142
  }
4061
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4143
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4062
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4144
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4063
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4145
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4064
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4146
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5902... Line 5984...
5902
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5984
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5903
        (new Client(prot)).recv_markOrderAsDelivered();
5985
        (new Client(prot)).recv_markOrderAsDelivered();
5904
      }
5986
      }
5905
    }
5987
    }
5906
 
5988
 
-
 
5989
    public void markOrderAsReceivedAtStore(long orderId, long deliveryTimestamp, org.apache.thrift.async.AsyncMethodCallback<markOrderAsReceivedAtStore_call> resultHandler) throws org.apache.thrift.TException {
-
 
5990
      checkReady();
-
 
5991
      markOrderAsReceivedAtStore_call method_call = new markOrderAsReceivedAtStore_call(orderId, deliveryTimestamp, resultHandler, this, ___protocolFactory, ___transport);
-
 
5992
      this.___currentMethod = method_call;
-
 
5993
      ___manager.call(method_call);
-
 
5994
    }
-
 
5995
 
-
 
5996
    public static class markOrderAsReceivedAtStore_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5997
      private long orderId;
-
 
5998
      private long deliveryTimestamp;
-
 
5999
      public markOrderAsReceivedAtStore_call(long orderId, long deliveryTimestamp, org.apache.thrift.async.AsyncMethodCallback<markOrderAsReceivedAtStore_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 {
-
 
6000
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6001
        this.orderId = orderId;
-
 
6002
        this.deliveryTimestamp = deliveryTimestamp;
-
 
6003
      }
-
 
6004
 
-
 
6005
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6006
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderAsReceivedAtStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6007
        markOrderAsReceivedAtStore_args args = new markOrderAsReceivedAtStore_args();
-
 
6008
        args.setOrderId(orderId);
-
 
6009
        args.setDeliveryTimestamp(deliveryTimestamp);
-
 
6010
        args.write(prot);
-
 
6011
        prot.writeMessageEnd();
-
 
6012
      }
-
 
6013
 
-
 
6014
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
6015
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6016
          throw new IllegalStateException("Method call not finished!");
-
 
6017
        }
-
 
6018
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6019
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6020
        (new Client(prot)).recv_markOrderAsReceivedAtStore();
-
 
6021
      }
-
 
6022
    }
-
 
6023
 
5907
    public void markOrderDoaRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderDoaRequestReceived_call> resultHandler) throws org.apache.thrift.TException {
6024
    public void markOrderDoaRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderDoaRequestReceived_call> resultHandler) throws org.apache.thrift.TException {
5908
      checkReady();
6025
      checkReady();
5909
      markOrderDoaRequestReceived_call method_call = new markOrderDoaRequestReceived_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
6026
      markOrderDoaRequestReceived_call method_call = new markOrderDoaRequestReceived_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
5910
      this.___currentMethod = method_call;
6027
      this.___currentMethod = method_call;
5911
      ___manager.call(method_call);
6028
      ___manager.call(method_call);
Line 8174... Line 8291...
8174
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8291
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8175
        (new Client(prot)).recv_setOrderAttributeForTransaction();
8292
        (new Client(prot)).recv_setOrderAttributeForTransaction();
8176
      }
8293
      }
8177
    }
8294
    }
8178
 
8295
 
-
 
8296
    public void getReceivePendingOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<getReceivePendingOrders_call> resultHandler) throws org.apache.thrift.TException {
-
 
8297
      checkReady();
-
 
8298
      getReceivePendingOrders_call method_call = new getReceivePendingOrders_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
-
 
8299
      this.___currentMethod = method_call;
-
 
8300
      ___manager.call(method_call);
-
 
8301
    }
-
 
8302
 
-
 
8303
    public static class getReceivePendingOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
8304
      private long storeId;
-
 
8305
      public getReceivePendingOrders_call(long storeId, org.apache.thrift.async.AsyncMethodCallback<getReceivePendingOrders_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 {
-
 
8306
        super(client, protocolFactory, transport, resultHandler, false);
-
 
8307
        this.storeId = storeId;
-
 
8308
      }
-
 
8309
 
-
 
8310
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
8311
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReceivePendingOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
8312
        getReceivePendingOrders_args args = new getReceivePendingOrders_args();
-
 
8313
        args.setStoreId(storeId);
-
 
8314
        args.write(prot);
-
 
8315
        prot.writeMessageEnd();
-
 
8316
      }
-
 
8317
 
-
 
8318
      public List<Order> getResult() throws org.apache.thrift.TException {
-
 
8319
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
8320
          throw new IllegalStateException("Method call not finished!");
-
 
8321
        }
-
 
8322
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
8323
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
8324
        return (new Client(prot)).recv_getReceivePendingOrders();
-
 
8325
      }
-
 
8326
    }
-
 
8327
 
-
 
8328
    public void getReceivedAtStoreOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<getReceivedAtStoreOrders_call> resultHandler) throws org.apache.thrift.TException {
-
 
8329
      checkReady();
-
 
8330
      getReceivedAtStoreOrders_call method_call = new getReceivedAtStoreOrders_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
-
 
8331
      this.___currentMethod = method_call;
-
 
8332
      ___manager.call(method_call);
-
 
8333
    }
-
 
8334
 
-
 
8335
    public static class getReceivedAtStoreOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
8336
      private long storeId;
-
 
8337
      public getReceivedAtStoreOrders_call(long storeId, org.apache.thrift.async.AsyncMethodCallback<getReceivedAtStoreOrders_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 {
-
 
8338
        super(client, protocolFactory, transport, resultHandler, false);
-
 
8339
        this.storeId = storeId;
-
 
8340
      }
-
 
8341
 
-
 
8342
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
8343
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReceivedAtStoreOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
8344
        getReceivedAtStoreOrders_args args = new getReceivedAtStoreOrders_args();
-
 
8345
        args.setStoreId(storeId);
-
 
8346
        args.write(prot);
-
 
8347
        prot.writeMessageEnd();
-
 
8348
      }
-
 
8349
 
-
 
8350
      public List<Order> getResult() throws org.apache.thrift.TException {
-
 
8351
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
8352
          throw new IllegalStateException("Method call not finished!");
-
 
8353
        }
-
 
8354
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
8355
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
8356
        return (new Client(prot)).recv_getReceivedAtStoreOrders();
-
 
8357
      }
-
 
8358
    }
-
 
8359
 
8179
  }
8360
  }
8180
 
8361
 
8181
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
8362
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
8182
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
8363
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
8183
    public Processor(I iface) {
8364
    public Processor(I iface) {
Line 8239... Line 8420...
8239
      processMap.put("markOrdersAsFirstDeliveryAttempted", new markOrdersAsFirstDeliveryAttempted());
8420
      processMap.put("markOrdersAsFirstDeliveryAttempted", new markOrdersAsFirstDeliveryAttempted());
8240
      processMap.put("getUndeliveredOrders", new getUndeliveredOrders());
8421
      processMap.put("getUndeliveredOrders", new getUndeliveredOrders());
8241
      processMap.put("getUndeliveredOrdersExpectedDeliveryDateNotMet", new getUndeliveredOrdersExpectedDeliveryDateNotMet());
8422
      processMap.put("getUndeliveredOrdersExpectedDeliveryDateNotMet", new getUndeliveredOrdersExpectedDeliveryDateNotMet());
8242
      processMap.put("toggleDOAFlag", new toggleDOAFlag());
8423
      processMap.put("toggleDOAFlag", new toggleDOAFlag());
8243
      processMap.put("markOrderAsDelivered", new markOrderAsDelivered());
8424
      processMap.put("markOrderAsDelivered", new markOrderAsDelivered());
-
 
8425
      processMap.put("markOrderAsReceivedAtStore", new markOrderAsReceivedAtStore());
8244
      processMap.put("markOrderDoaRequestReceived", new markOrderDoaRequestReceived());
8426
      processMap.put("markOrderDoaRequestReceived", new markOrderDoaRequestReceived());
8245
      processMap.put("markOrderDoaRequestAuthorized", new markOrderDoaRequestAuthorized());
8427
      processMap.put("markOrderDoaRequestAuthorized", new markOrderDoaRequestAuthorized());
8246
      processMap.put("markOrderReturnRequestReceived", new markOrderReturnRequestReceived());
8428
      processMap.put("markOrderReturnRequestReceived", new markOrderReturnRequestReceived());
8247
      processMap.put("markOrderReturnRequestAuthorized", new markOrderReturnRequestAuthorized());
8429
      processMap.put("markOrderReturnRequestAuthorized", new markOrderReturnRequestAuthorized());
8248
      processMap.put("requestPickupNumber", new requestPickupNumber());
8430
      processMap.put("requestPickupNumber", new requestPickupNumber());
Line 8304... Line 8486...
8304
      processMap.put("updateOrderOnlyAsPaidToVendor", new updateOrderOnlyAsPaidToVendor());
8486
      processMap.put("updateOrderOnlyAsPaidToVendor", new updateOrderOnlyAsPaidToVendor());
8305
      processMap.put("getRefundedOrdersMarkedPaid", new getRefundedOrdersMarkedPaid());
8487
      processMap.put("getRefundedOrdersMarkedPaid", new getRefundedOrdersMarkedPaid());
8306
      processMap.put("getAllVerificationAgents", new getAllVerificationAgents());
8488
      processMap.put("getAllVerificationAgents", new getAllVerificationAgents());
8307
      processMap.put("getAllAttributesForOrderId", new getAllAttributesForOrderId());
8489
      processMap.put("getAllAttributesForOrderId", new getAllAttributesForOrderId());
8308
      processMap.put("setOrderAttributeForTransaction", new setOrderAttributeForTransaction());
8490
      processMap.put("setOrderAttributeForTransaction", new setOrderAttributeForTransaction());
-
 
8491
      processMap.put("getReceivePendingOrders", new getReceivePendingOrders());
-
 
8492
      processMap.put("getReceivedAtStoreOrders", new getReceivedAtStoreOrders());
8309
      return processMap;
8493
      return processMap;
8310
    }
8494
    }
8311
 
8495
 
8312
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
8496
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
8313
      public createTransaction() {
8497
      public createTransaction() {
Line 9301... Line 9485...
9301
        }
9485
        }
9302
        return result;
9486
        return result;
9303
      }
9487
      }
9304
    }
9488
    }
9305
 
9489
 
-
 
9490
    private static class markOrderAsReceivedAtStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderAsReceivedAtStore_args> {
-
 
9491
      public markOrderAsReceivedAtStore() {
-
 
9492
        super("markOrderAsReceivedAtStore");
-
 
9493
      }
-
 
9494
 
-
 
9495
      protected markOrderAsReceivedAtStore_args getEmptyArgsInstance() {
-
 
9496
        return new markOrderAsReceivedAtStore_args();
-
 
9497
      }
-
 
9498
 
-
 
9499
      protected markOrderAsReceivedAtStore_result getResult(I iface, markOrderAsReceivedAtStore_args args) throws org.apache.thrift.TException {
-
 
9500
        markOrderAsReceivedAtStore_result result = new markOrderAsReceivedAtStore_result();
-
 
9501
        try {
-
 
9502
          iface.markOrderAsReceivedAtStore(args.orderId, args.deliveryTimestamp);
-
 
9503
        } catch (TransactionServiceException ex) {
-
 
9504
          result.ex = ex;
-
 
9505
        }
-
 
9506
        return result;
-
 
9507
      }
-
 
9508
    }
-
 
9509
 
9306
    private static class markOrderDoaRequestReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderDoaRequestReceived_args> {
9510
    private static class markOrderDoaRequestReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderDoaRequestReceived_args> {
9307
      public markOrderDoaRequestReceived() {
9511
      public markOrderDoaRequestReceived() {
9308
        super("markOrderDoaRequestReceived");
9512
        super("markOrderDoaRequestReceived");
9309
      }
9513
      }
9310
 
9514
 
Line 10564... Line 10768...
10564
        iface.setOrderAttributeForTransaction(args.transactionId, args.attribute);
10768
        iface.setOrderAttributeForTransaction(args.transactionId, args.attribute);
10565
        return result;
10769
        return result;
10566
      }
10770
      }
10567
    }
10771
    }
10568
 
10772
 
-
 
10773
    private static class getReceivePendingOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReceivePendingOrders_args> {
-
 
10774
      public getReceivePendingOrders() {
-
 
10775
        super("getReceivePendingOrders");
-
 
10776
      }
-
 
10777
 
-
 
10778
      protected getReceivePendingOrders_args getEmptyArgsInstance() {
-
 
10779
        return new getReceivePendingOrders_args();
-
 
10780
      }
-
 
10781
 
-
 
10782
      protected getReceivePendingOrders_result getResult(I iface, getReceivePendingOrders_args args) throws org.apache.thrift.TException {
-
 
10783
        getReceivePendingOrders_result result = new getReceivePendingOrders_result();
-
 
10784
        result.success = iface.getReceivePendingOrders(args.storeId);
-
 
10785
        return result;
-
 
10786
      }
-
 
10787
    }
-
 
10788
 
-
 
10789
    private static class getReceivedAtStoreOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReceivedAtStoreOrders_args> {
-
 
10790
      public getReceivedAtStoreOrders() {
-
 
10791
        super("getReceivedAtStoreOrders");
-
 
10792
      }
-
 
10793
 
-
 
10794
      protected getReceivedAtStoreOrders_args getEmptyArgsInstance() {
-
 
10795
        return new getReceivedAtStoreOrders_args();
-
 
10796
      }
-
 
10797
 
-
 
10798
      protected getReceivedAtStoreOrders_result getResult(I iface, getReceivedAtStoreOrders_args args) throws org.apache.thrift.TException {
-
 
10799
        getReceivedAtStoreOrders_result result = new getReceivedAtStoreOrders_result();
-
 
10800
        result.success = iface.getReceivedAtStoreOrders(args.storeId);
-
 
10801
        return result;
-
 
10802
      }
-
 
10803
    }
-
 
10804
 
10569
  }
10805
  }
10570
 
10806
 
10571
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
10807
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
10572
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
10808
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
10573
 
10809
 
Line 49588... Line 49824...
49588
      }
49824
      }
49589
    }
49825
    }
49590
 
49826
 
49591
  }
49827
  }
49592
 
49828
 
-
 
49829
  public static class markOrderAsReceivedAtStore_args implements org.apache.thrift.TBase<markOrderAsReceivedAtStore_args, markOrderAsReceivedAtStore_args._Fields>, java.io.Serializable, Cloneable   {
-
 
49830
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsReceivedAtStore_args");
-
 
49831
 
-
 
49832
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
49833
    private static final org.apache.thrift.protocol.TField DELIVERY_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("deliveryTimestamp", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
49834
 
-
 
49835
    private long orderId; // required
-
 
49836
    private long deliveryTimestamp; // required
-
 
49837
 
-
 
49838
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
49839
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
49840
      ORDER_ID((short)1, "orderId"),
-
 
49841
      DELIVERY_TIMESTAMP((short)2, "deliveryTimestamp");
-
 
49842
 
-
 
49843
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
49844
 
-
 
49845
      static {
-
 
49846
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
49847
          byName.put(field.getFieldName(), field);
-
 
49848
        }
-
 
49849
      }
-
 
49850
 
-
 
49851
      /**
-
 
49852
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
49853
       */
-
 
49854
      public static _Fields findByThriftId(int fieldId) {
-
 
49855
        switch(fieldId) {
-
 
49856
          case 1: // ORDER_ID
-
 
49857
            return ORDER_ID;
-
 
49858
          case 2: // DELIVERY_TIMESTAMP
-
 
49859
            return DELIVERY_TIMESTAMP;
-
 
49860
          default:
-
 
49861
            return null;
-
 
49862
        }
-
 
49863
      }
-
 
49864
 
-
 
49865
      /**
-
 
49866
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
49867
       * if it is not found.
-
 
49868
       */
-
 
49869
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
49870
        _Fields fields = findByThriftId(fieldId);
-
 
49871
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
49872
        return fields;
-
 
49873
      }
-
 
49874
 
-
 
49875
      /**
-
 
49876
       * Find the _Fields constant that matches name, or null if its not found.
-
 
49877
       */
-
 
49878
      public static _Fields findByName(String name) {
-
 
49879
        return byName.get(name);
-
 
49880
      }
-
 
49881
 
-
 
49882
      private final short _thriftId;
-
 
49883
      private final String _fieldName;
-
 
49884
 
-
 
49885
      _Fields(short thriftId, String fieldName) {
-
 
49886
        _thriftId = thriftId;
-
 
49887
        _fieldName = fieldName;
-
 
49888
      }
-
 
49889
 
-
 
49890
      public short getThriftFieldId() {
-
 
49891
        return _thriftId;
-
 
49892
      }
-
 
49893
 
-
 
49894
      public String getFieldName() {
-
 
49895
        return _fieldName;
-
 
49896
      }
-
 
49897
    }
-
 
49898
 
-
 
49899
    // isset id assignments
-
 
49900
    private static final int __ORDERID_ISSET_ID = 0;
-
 
49901
    private static final int __DELIVERYTIMESTAMP_ISSET_ID = 1;
-
 
49902
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
49903
 
-
 
49904
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
49905
    static {
-
 
49906
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
49907
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
49908
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
49909
      tmpMap.put(_Fields.DELIVERY_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("deliveryTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
49910
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
49911
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
49912
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsReceivedAtStore_args.class, metaDataMap);
-
 
49913
    }
-
 
49914
 
-
 
49915
    public markOrderAsReceivedAtStore_args() {
-
 
49916
    }
-
 
49917
 
-
 
49918
    public markOrderAsReceivedAtStore_args(
-
 
49919
      long orderId,
-
 
49920
      long deliveryTimestamp)
-
 
49921
    {
-
 
49922
      this();
-
 
49923
      this.orderId = orderId;
-
 
49924
      setOrderIdIsSet(true);
-
 
49925
      this.deliveryTimestamp = deliveryTimestamp;
-
 
49926
      setDeliveryTimestampIsSet(true);
-
 
49927
    }
-
 
49928
 
-
 
49929
    /**
-
 
49930
     * Performs a deep copy on <i>other</i>.
-
 
49931
     */
-
 
49932
    public markOrderAsReceivedAtStore_args(markOrderAsReceivedAtStore_args other) {
-
 
49933
      __isset_bit_vector.clear();
-
 
49934
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
49935
      this.orderId = other.orderId;
-
 
49936
      this.deliveryTimestamp = other.deliveryTimestamp;
-
 
49937
    }
-
 
49938
 
-
 
49939
    public markOrderAsReceivedAtStore_args deepCopy() {
-
 
49940
      return new markOrderAsReceivedAtStore_args(this);
-
 
49941
    }
-
 
49942
 
-
 
49943
    @Override
-
 
49944
    public void clear() {
-
 
49945
      setOrderIdIsSet(false);
-
 
49946
      this.orderId = 0;
-
 
49947
      setDeliveryTimestampIsSet(false);
-
 
49948
      this.deliveryTimestamp = 0;
-
 
49949
    }
-
 
49950
 
-
 
49951
    public long getOrderId() {
-
 
49952
      return this.orderId;
-
 
49953
    }
-
 
49954
 
-
 
49955
    public void setOrderId(long orderId) {
-
 
49956
      this.orderId = orderId;
-
 
49957
      setOrderIdIsSet(true);
-
 
49958
    }
-
 
49959
 
-
 
49960
    public void unsetOrderId() {
-
 
49961
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
49962
    }
-
 
49963
 
-
 
49964
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
49965
    public boolean isSetOrderId() {
-
 
49966
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
49967
    }
-
 
49968
 
-
 
49969
    public void setOrderIdIsSet(boolean value) {
-
 
49970
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
49971
    }
-
 
49972
 
-
 
49973
    public long getDeliveryTimestamp() {
-
 
49974
      return this.deliveryTimestamp;
-
 
49975
    }
-
 
49976
 
-
 
49977
    public void setDeliveryTimestamp(long deliveryTimestamp) {
-
 
49978
      this.deliveryTimestamp = deliveryTimestamp;
-
 
49979
      setDeliveryTimestampIsSet(true);
-
 
49980
    }
-
 
49981
 
-
 
49982
    public void unsetDeliveryTimestamp() {
-
 
49983
      __isset_bit_vector.clear(__DELIVERYTIMESTAMP_ISSET_ID);
-
 
49984
    }
-
 
49985
 
-
 
49986
    /** Returns true if field deliveryTimestamp is set (has been assigned a value) and false otherwise */
-
 
49987
    public boolean isSetDeliveryTimestamp() {
-
 
49988
      return __isset_bit_vector.get(__DELIVERYTIMESTAMP_ISSET_ID);
-
 
49989
    }
-
 
49990
 
-
 
49991
    public void setDeliveryTimestampIsSet(boolean value) {
-
 
49992
      __isset_bit_vector.set(__DELIVERYTIMESTAMP_ISSET_ID, value);
-
 
49993
    }
-
 
49994
 
-
 
49995
    public void setFieldValue(_Fields field, Object value) {
-
 
49996
      switch (field) {
-
 
49997
      case ORDER_ID:
-
 
49998
        if (value == null) {
-
 
49999
          unsetOrderId();
-
 
50000
        } else {
-
 
50001
          setOrderId((Long)value);
-
 
50002
        }
-
 
50003
        break;
-
 
50004
 
-
 
50005
      case DELIVERY_TIMESTAMP:
-
 
50006
        if (value == null) {
-
 
50007
          unsetDeliveryTimestamp();
-
 
50008
        } else {
-
 
50009
          setDeliveryTimestamp((Long)value);
-
 
50010
        }
-
 
50011
        break;
-
 
50012
 
-
 
50013
      }
-
 
50014
    }
-
 
50015
 
-
 
50016
    public Object getFieldValue(_Fields field) {
-
 
50017
      switch (field) {
-
 
50018
      case ORDER_ID:
-
 
50019
        return Long.valueOf(getOrderId());
-
 
50020
 
-
 
50021
      case DELIVERY_TIMESTAMP:
-
 
50022
        return Long.valueOf(getDeliveryTimestamp());
-
 
50023
 
-
 
50024
      }
-
 
50025
      throw new IllegalStateException();
-
 
50026
    }
-
 
50027
 
-
 
50028
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
50029
    public boolean isSet(_Fields field) {
-
 
50030
      if (field == null) {
-
 
50031
        throw new IllegalArgumentException();
-
 
50032
      }
-
 
50033
 
-
 
50034
      switch (field) {
-
 
50035
      case ORDER_ID:
-
 
50036
        return isSetOrderId();
-
 
50037
      case DELIVERY_TIMESTAMP:
-
 
50038
        return isSetDeliveryTimestamp();
-
 
50039
      }
-
 
50040
      throw new IllegalStateException();
-
 
50041
    }
-
 
50042
 
-
 
50043
    @Override
-
 
50044
    public boolean equals(Object that) {
-
 
50045
      if (that == null)
-
 
50046
        return false;
-
 
50047
      if (that instanceof markOrderAsReceivedAtStore_args)
-
 
50048
        return this.equals((markOrderAsReceivedAtStore_args)that);
-
 
50049
      return false;
-
 
50050
    }
-
 
50051
 
-
 
50052
    public boolean equals(markOrderAsReceivedAtStore_args that) {
-
 
50053
      if (that == null)
-
 
50054
        return false;
-
 
50055
 
-
 
50056
      boolean this_present_orderId = true;
-
 
50057
      boolean that_present_orderId = true;
-
 
50058
      if (this_present_orderId || that_present_orderId) {
-
 
50059
        if (!(this_present_orderId && that_present_orderId))
-
 
50060
          return false;
-
 
50061
        if (this.orderId != that.orderId)
-
 
50062
          return false;
-
 
50063
      }
-
 
50064
 
-
 
50065
      boolean this_present_deliveryTimestamp = true;
-
 
50066
      boolean that_present_deliveryTimestamp = true;
-
 
50067
      if (this_present_deliveryTimestamp || that_present_deliveryTimestamp) {
-
 
50068
        if (!(this_present_deliveryTimestamp && that_present_deliveryTimestamp))
-
 
50069
          return false;
-
 
50070
        if (this.deliveryTimestamp != that.deliveryTimestamp)
-
 
50071
          return false;
-
 
50072
      }
-
 
50073
 
-
 
50074
      return true;
-
 
50075
    }
-
 
50076
 
-
 
50077
    @Override
-
 
50078
    public int hashCode() {
-
 
50079
      return 0;
-
 
50080
    }
-
 
50081
 
-
 
50082
    public int compareTo(markOrderAsReceivedAtStore_args other) {
-
 
50083
      if (!getClass().equals(other.getClass())) {
-
 
50084
        return getClass().getName().compareTo(other.getClass().getName());
-
 
50085
      }
-
 
50086
 
-
 
50087
      int lastComparison = 0;
-
 
50088
      markOrderAsReceivedAtStore_args typedOther = (markOrderAsReceivedAtStore_args)other;
-
 
50089
 
-
 
50090
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
50091
      if (lastComparison != 0) {
-
 
50092
        return lastComparison;
-
 
50093
      }
-
 
50094
      if (isSetOrderId()) {
-
 
50095
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
50096
        if (lastComparison != 0) {
-
 
50097
          return lastComparison;
-
 
50098
        }
-
 
50099
      }
-
 
50100
      lastComparison = Boolean.valueOf(isSetDeliveryTimestamp()).compareTo(typedOther.isSetDeliveryTimestamp());
-
 
50101
      if (lastComparison != 0) {
-
 
50102
        return lastComparison;
-
 
50103
      }
-
 
50104
      if (isSetDeliveryTimestamp()) {
-
 
50105
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deliveryTimestamp, typedOther.deliveryTimestamp);
-
 
50106
        if (lastComparison != 0) {
-
 
50107
          return lastComparison;
-
 
50108
        }
-
 
50109
      }
-
 
50110
      return 0;
-
 
50111
    }
-
 
50112
 
-
 
50113
    public _Fields fieldForId(int fieldId) {
-
 
50114
      return _Fields.findByThriftId(fieldId);
-
 
50115
    }
-
 
50116
 
-
 
50117
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
50118
      org.apache.thrift.protocol.TField field;
-
 
50119
      iprot.readStructBegin();
-
 
50120
      while (true)
-
 
50121
      {
-
 
50122
        field = iprot.readFieldBegin();
-
 
50123
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
50124
          break;
-
 
50125
        }
-
 
50126
        switch (field.id) {
-
 
50127
          case 1: // ORDER_ID
-
 
50128
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
50129
              this.orderId = iprot.readI64();
-
 
50130
              setOrderIdIsSet(true);
-
 
50131
            } else { 
-
 
50132
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
50133
            }
-
 
50134
            break;
-
 
50135
          case 2: // DELIVERY_TIMESTAMP
-
 
50136
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
50137
              this.deliveryTimestamp = iprot.readI64();
-
 
50138
              setDeliveryTimestampIsSet(true);
-
 
50139
            } else { 
-
 
50140
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
50141
            }
-
 
50142
            break;
-
 
50143
          default:
-
 
50144
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
50145
        }
-
 
50146
        iprot.readFieldEnd();
-
 
50147
      }
-
 
50148
      iprot.readStructEnd();
-
 
50149
      validate();
-
 
50150
    }
-
 
50151
 
-
 
50152
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
50153
      validate();
-
 
50154
 
-
 
50155
      oprot.writeStructBegin(STRUCT_DESC);
-
 
50156
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
50157
      oprot.writeI64(this.orderId);
-
 
50158
      oprot.writeFieldEnd();
-
 
50159
      oprot.writeFieldBegin(DELIVERY_TIMESTAMP_FIELD_DESC);
-
 
50160
      oprot.writeI64(this.deliveryTimestamp);
-
 
50161
      oprot.writeFieldEnd();
-
 
50162
      oprot.writeFieldStop();
-
 
50163
      oprot.writeStructEnd();
-
 
50164
    }
-
 
50165
 
-
 
50166
    @Override
-
 
50167
    public String toString() {
-
 
50168
      StringBuilder sb = new StringBuilder("markOrderAsReceivedAtStore_args(");
-
 
50169
      boolean first = true;
-
 
50170
 
-
 
50171
      sb.append("orderId:");
-
 
50172
      sb.append(this.orderId);
-
 
50173
      first = false;
-
 
50174
      if (!first) sb.append(", ");
-
 
50175
      sb.append("deliveryTimestamp:");
-
 
50176
      sb.append(this.deliveryTimestamp);
-
 
50177
      first = false;
-
 
50178
      sb.append(")");
-
 
50179
      return sb.toString();
-
 
50180
    }
-
 
50181
 
-
 
50182
    public void validate() throws org.apache.thrift.TException {
-
 
50183
      // check for required fields
-
 
50184
    }
-
 
50185
 
-
 
50186
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
50187
      try {
-
 
50188
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
50189
      } catch (org.apache.thrift.TException te) {
-
 
50190
        throw new java.io.IOException(te);
-
 
50191
      }
-
 
50192
    }
-
 
50193
 
-
 
50194
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
50195
      try {
-
 
50196
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
50197
        __isset_bit_vector = new BitSet(1);
-
 
50198
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
50199
      } catch (org.apache.thrift.TException te) {
-
 
50200
        throw new java.io.IOException(te);
-
 
50201
      }
-
 
50202
    }
-
 
50203
 
-
 
50204
  }
-
 
50205
 
-
 
50206
  public static class markOrderAsReceivedAtStore_result implements org.apache.thrift.TBase<markOrderAsReceivedAtStore_result, markOrderAsReceivedAtStore_result._Fields>, java.io.Serializable, Cloneable   {
-
 
50207
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsReceivedAtStore_result");
-
 
50208
 
-
 
50209
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
50210
 
-
 
50211
    private TransactionServiceException ex; // required
-
 
50212
 
-
 
50213
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
50214
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
50215
      EX((short)1, "ex");
-
 
50216
 
-
 
50217
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
50218
 
-
 
50219
      static {
-
 
50220
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
50221
          byName.put(field.getFieldName(), field);
-
 
50222
        }
-
 
50223
      }
-
 
50224
 
-
 
50225
      /**
-
 
50226
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
50227
       */
-
 
50228
      public static _Fields findByThriftId(int fieldId) {
-
 
50229
        switch(fieldId) {
-
 
50230
          case 1: // EX
-
 
50231
            return EX;
-
 
50232
          default:
-
 
50233
            return null;
-
 
50234
        }
-
 
50235
      }
-
 
50236
 
-
 
50237
      /**
-
 
50238
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
50239
       * if it is not found.
-
 
50240
       */
-
 
50241
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
50242
        _Fields fields = findByThriftId(fieldId);
-
 
50243
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
50244
        return fields;
-
 
50245
      }
-
 
50246
 
-
 
50247
      /**
-
 
50248
       * Find the _Fields constant that matches name, or null if its not found.
-
 
50249
       */
-
 
50250
      public static _Fields findByName(String name) {
-
 
50251
        return byName.get(name);
-
 
50252
      }
-
 
50253
 
-
 
50254
      private final short _thriftId;
-
 
50255
      private final String _fieldName;
-
 
50256
 
-
 
50257
      _Fields(short thriftId, String fieldName) {
-
 
50258
        _thriftId = thriftId;
-
 
50259
        _fieldName = fieldName;
-
 
50260
      }
-
 
50261
 
-
 
50262
      public short getThriftFieldId() {
-
 
50263
        return _thriftId;
-
 
50264
      }
-
 
50265
 
-
 
50266
      public String getFieldName() {
-
 
50267
        return _fieldName;
-
 
50268
      }
-
 
50269
    }
-
 
50270
 
-
 
50271
    // isset id assignments
-
 
50272
 
-
 
50273
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
50274
    static {
-
 
50275
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
50276
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
50277
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
50278
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
50279
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsReceivedAtStore_result.class, metaDataMap);
-
 
50280
    }
-
 
50281
 
-
 
50282
    public markOrderAsReceivedAtStore_result() {
-
 
50283
    }
-
 
50284
 
-
 
50285
    public markOrderAsReceivedAtStore_result(
-
 
50286
      TransactionServiceException ex)
-
 
50287
    {
-
 
50288
      this();
-
 
50289
      this.ex = ex;
-
 
50290
    }
-
 
50291
 
-
 
50292
    /**
-
 
50293
     * Performs a deep copy on <i>other</i>.
-
 
50294
     */
-
 
50295
    public markOrderAsReceivedAtStore_result(markOrderAsReceivedAtStore_result other) {
-
 
50296
      if (other.isSetEx()) {
-
 
50297
        this.ex = new TransactionServiceException(other.ex);
-
 
50298
      }
-
 
50299
    }
-
 
50300
 
-
 
50301
    public markOrderAsReceivedAtStore_result deepCopy() {
-
 
50302
      return new markOrderAsReceivedAtStore_result(this);
-
 
50303
    }
-
 
50304
 
-
 
50305
    @Override
-
 
50306
    public void clear() {
-
 
50307
      this.ex = null;
-
 
50308
    }
-
 
50309
 
-
 
50310
    public TransactionServiceException getEx() {
-
 
50311
      return this.ex;
-
 
50312
    }
-
 
50313
 
-
 
50314
    public void setEx(TransactionServiceException ex) {
-
 
50315
      this.ex = ex;
-
 
50316
    }
-
 
50317
 
-
 
50318
    public void unsetEx() {
-
 
50319
      this.ex = null;
-
 
50320
    }
-
 
50321
 
-
 
50322
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
50323
    public boolean isSetEx() {
-
 
50324
      return this.ex != null;
-
 
50325
    }
-
 
50326
 
-
 
50327
    public void setExIsSet(boolean value) {
-
 
50328
      if (!value) {
-
 
50329
        this.ex = null;
-
 
50330
      }
-
 
50331
    }
-
 
50332
 
-
 
50333
    public void setFieldValue(_Fields field, Object value) {
-
 
50334
      switch (field) {
-
 
50335
      case EX:
-
 
50336
        if (value == null) {
-
 
50337
          unsetEx();
-
 
50338
        } else {
-
 
50339
          setEx((TransactionServiceException)value);
-
 
50340
        }
-
 
50341
        break;
-
 
50342
 
-
 
50343
      }
-
 
50344
    }
-
 
50345
 
-
 
50346
    public Object getFieldValue(_Fields field) {
-
 
50347
      switch (field) {
-
 
50348
      case EX:
-
 
50349
        return getEx();
-
 
50350
 
-
 
50351
      }
-
 
50352
      throw new IllegalStateException();
-
 
50353
    }
-
 
50354
 
-
 
50355
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
50356
    public boolean isSet(_Fields field) {
-
 
50357
      if (field == null) {
-
 
50358
        throw new IllegalArgumentException();
-
 
50359
      }
-
 
50360
 
-
 
50361
      switch (field) {
-
 
50362
      case EX:
-
 
50363
        return isSetEx();
-
 
50364
      }
-
 
50365
      throw new IllegalStateException();
-
 
50366
    }
-
 
50367
 
-
 
50368
    @Override
-
 
50369
    public boolean equals(Object that) {
-
 
50370
      if (that == null)
-
 
50371
        return false;
-
 
50372
      if (that instanceof markOrderAsReceivedAtStore_result)
-
 
50373
        return this.equals((markOrderAsReceivedAtStore_result)that);
-
 
50374
      return false;
-
 
50375
    }
-
 
50376
 
-
 
50377
    public boolean equals(markOrderAsReceivedAtStore_result that) {
-
 
50378
      if (that == null)
-
 
50379
        return false;
-
 
50380
 
-
 
50381
      boolean this_present_ex = true && this.isSetEx();
-
 
50382
      boolean that_present_ex = true && that.isSetEx();
-
 
50383
      if (this_present_ex || that_present_ex) {
-
 
50384
        if (!(this_present_ex && that_present_ex))
-
 
50385
          return false;
-
 
50386
        if (!this.ex.equals(that.ex))
-
 
50387
          return false;
-
 
50388
      }
-
 
50389
 
-
 
50390
      return true;
-
 
50391
    }
-
 
50392
 
-
 
50393
    @Override
-
 
50394
    public int hashCode() {
-
 
50395
      return 0;
-
 
50396
    }
-
 
50397
 
-
 
50398
    public int compareTo(markOrderAsReceivedAtStore_result other) {
-
 
50399
      if (!getClass().equals(other.getClass())) {
-
 
50400
        return getClass().getName().compareTo(other.getClass().getName());
-
 
50401
      }
-
 
50402
 
-
 
50403
      int lastComparison = 0;
-
 
50404
      markOrderAsReceivedAtStore_result typedOther = (markOrderAsReceivedAtStore_result)other;
-
 
50405
 
-
 
50406
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
50407
      if (lastComparison != 0) {
-
 
50408
        return lastComparison;
-
 
50409
      }
-
 
50410
      if (isSetEx()) {
-
 
50411
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
50412
        if (lastComparison != 0) {
-
 
50413
          return lastComparison;
-
 
50414
        }
-
 
50415
      }
-
 
50416
      return 0;
-
 
50417
    }
-
 
50418
 
-
 
50419
    public _Fields fieldForId(int fieldId) {
-
 
50420
      return _Fields.findByThriftId(fieldId);
-
 
50421
    }
-
 
50422
 
-
 
50423
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
50424
      org.apache.thrift.protocol.TField field;
-
 
50425
      iprot.readStructBegin();
-
 
50426
      while (true)
-
 
50427
      {
-
 
50428
        field = iprot.readFieldBegin();
-
 
50429
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
50430
          break;
-
 
50431
        }
-
 
50432
        switch (field.id) {
-
 
50433
          case 1: // EX
-
 
50434
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
50435
              this.ex = new TransactionServiceException();
-
 
50436
              this.ex.read(iprot);
-
 
50437
            } else { 
-
 
50438
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
50439
            }
-
 
50440
            break;
-
 
50441
          default:
-
 
50442
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
50443
        }
-
 
50444
        iprot.readFieldEnd();
-
 
50445
      }
-
 
50446
      iprot.readStructEnd();
-
 
50447
      validate();
-
 
50448
    }
-
 
50449
 
-
 
50450
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
50451
      oprot.writeStructBegin(STRUCT_DESC);
-
 
50452
 
-
 
50453
      if (this.isSetEx()) {
-
 
50454
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
50455
        this.ex.write(oprot);
-
 
50456
        oprot.writeFieldEnd();
-
 
50457
      }
-
 
50458
      oprot.writeFieldStop();
-
 
50459
      oprot.writeStructEnd();
-
 
50460
    }
-
 
50461
 
-
 
50462
    @Override
-
 
50463
    public String toString() {
-
 
50464
      StringBuilder sb = new StringBuilder("markOrderAsReceivedAtStore_result(");
-
 
50465
      boolean first = true;
-
 
50466
 
-
 
50467
      sb.append("ex:");
-
 
50468
      if (this.ex == null) {
-
 
50469
        sb.append("null");
-
 
50470
      } else {
-
 
50471
        sb.append(this.ex);
-
 
50472
      }
-
 
50473
      first = false;
-
 
50474
      sb.append(")");
-
 
50475
      return sb.toString();
-
 
50476
    }
-
 
50477
 
-
 
50478
    public void validate() throws org.apache.thrift.TException {
-
 
50479
      // check for required fields
-
 
50480
    }
-
 
50481
 
-
 
50482
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
50483
      try {
-
 
50484
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
50485
      } catch (org.apache.thrift.TException te) {
-
 
50486
        throw new java.io.IOException(te);
-
 
50487
      }
-
 
50488
    }
-
 
50489
 
-
 
50490
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
50491
      try {
-
 
50492
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
50493
      } catch (org.apache.thrift.TException te) {
-
 
50494
        throw new java.io.IOException(te);
-
 
50495
      }
-
 
50496
    }
-
 
50497
 
-
 
50498
  }
-
 
50499
 
49593
  public static class markOrderDoaRequestReceived_args implements org.apache.thrift.TBase<markOrderDoaRequestReceived_args, markOrderDoaRequestReceived_args._Fields>, java.io.Serializable, Cloneable   {
50500
  public static class markOrderDoaRequestReceived_args implements org.apache.thrift.TBase<markOrderDoaRequestReceived_args, markOrderDoaRequestReceived_args._Fields>, java.io.Serializable, Cloneable   {
49594
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderDoaRequestReceived_args");
50501
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderDoaRequestReceived_args");
49595
 
50502
 
49596
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
50503
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
49597
 
50504
 
Line 96295... Line 97202...
96295
        }
97202
        }
96296
        switch (field.id) {
97203
        switch (field.id) {
96297
          case 0: // SUCCESS
97204
          case 0: // SUCCESS
96298
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
97205
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
96299
              {
97206
              {
96300
                org.apache.thrift.protocol.TList _list316 = iprot.readListBegin();
97207
                org.apache.thrift.protocol.TList _list320 = iprot.readListBegin();
96301
                this.success = new ArrayList<Attribute>(_list316.size);
97208
                this.success = new ArrayList<Attribute>(_list320.size);
96302
                for (int _i317 = 0; _i317 < _list316.size; ++_i317)
97209
                for (int _i321 = 0; _i321 < _list320.size; ++_i321)
96303
                {
97210
                {
96304
                  Attribute _elem318; // required
97211
                  Attribute _elem322; // required
96305
                  _elem318 = new Attribute();
97212
                  _elem322 = new Attribute();
96306
                  _elem318.read(iprot);
97213
                  _elem322.read(iprot);
96307
                  this.success.add(_elem318);
97214
                  this.success.add(_elem322);
96308
                }
97215
                }
96309
                iprot.readListEnd();
97216
                iprot.readListEnd();
96310
              }
97217
              }
96311
            } else { 
97218
            } else { 
96312
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
97219
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 96326... Line 97233...
96326
 
97233
 
96327
      if (this.isSetSuccess()) {
97234
      if (this.isSetSuccess()) {
96328
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
97235
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
96329
        {
97236
        {
96330
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
97237
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
96331
          for (Attribute _iter319 : this.success)
97238
          for (Attribute _iter323 : this.success)
96332
          {
97239
          {
96333
            _iter319.write(oprot);
97240
            _iter323.write(oprot);
96334
          }
97241
          }
96335
          oprot.writeListEnd();
97242
          oprot.writeListEnd();
96336
        }
97243
        }
96337
        oprot.writeFieldEnd();
97244
        oprot.writeFieldEnd();
96338
      }
97245
      }
Line 96937... Line 97844...
96937
      sb.append(")");
97844
      sb.append(")");
96938
      return sb.toString();
97845
      return sb.toString();
96939
    }
97846
    }
96940
 
97847
 
96941
    public void validate() throws org.apache.thrift.TException {
97848
    public void validate() throws org.apache.thrift.TException {
-
 
97849
      // check for required fields
-
 
97850
    }
-
 
97851
 
-
 
97852
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
97853
      try {
-
 
97854
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
97855
      } catch (org.apache.thrift.TException te) {
-
 
97856
        throw new java.io.IOException(te);
-
 
97857
      }
-
 
97858
    }
-
 
97859
 
-
 
97860
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
97861
      try {
-
 
97862
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
97863
      } catch (org.apache.thrift.TException te) {
-
 
97864
        throw new java.io.IOException(te);
-
 
97865
      }
-
 
97866
    }
-
 
97867
 
-
 
97868
  }
-
 
97869
 
-
 
97870
  public static class getReceivePendingOrders_args implements org.apache.thrift.TBase<getReceivePendingOrders_args, getReceivePendingOrders_args._Fields>, java.io.Serializable, Cloneable   {
-
 
97871
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReceivePendingOrders_args");
-
 
97872
 
-
 
97873
    private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
97874
 
-
 
97875
    private long storeId; // required
-
 
97876
 
-
 
97877
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
97878
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
97879
      STORE_ID((short)1, "storeId");
-
 
97880
 
-
 
97881
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
97882
 
-
 
97883
      static {
-
 
97884
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
97885
          byName.put(field.getFieldName(), field);
-
 
97886
        }
-
 
97887
      }
-
 
97888
 
-
 
97889
      /**
-
 
97890
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
97891
       */
-
 
97892
      public static _Fields findByThriftId(int fieldId) {
-
 
97893
        switch(fieldId) {
-
 
97894
          case 1: // STORE_ID
-
 
97895
            return STORE_ID;
-
 
97896
          default:
-
 
97897
            return null;
-
 
97898
        }
-
 
97899
      }
-
 
97900
 
-
 
97901
      /**
-
 
97902
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
97903
       * if it is not found.
-
 
97904
       */
-
 
97905
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
97906
        _Fields fields = findByThriftId(fieldId);
-
 
97907
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
97908
        return fields;
-
 
97909
      }
-
 
97910
 
-
 
97911
      /**
-
 
97912
       * Find the _Fields constant that matches name, or null if its not found.
-
 
97913
       */
-
 
97914
      public static _Fields findByName(String name) {
-
 
97915
        return byName.get(name);
-
 
97916
      }
-
 
97917
 
-
 
97918
      private final short _thriftId;
-
 
97919
      private final String _fieldName;
-
 
97920
 
-
 
97921
      _Fields(short thriftId, String fieldName) {
-
 
97922
        _thriftId = thriftId;
-
 
97923
        _fieldName = fieldName;
-
 
97924
      }
-
 
97925
 
-
 
97926
      public short getThriftFieldId() {
-
 
97927
        return _thriftId;
-
 
97928
      }
-
 
97929
 
-
 
97930
      public String getFieldName() {
-
 
97931
        return _fieldName;
-
 
97932
      }
-
 
97933
    }
-
 
97934
 
-
 
97935
    // isset id assignments
-
 
97936
    private static final int __STOREID_ISSET_ID = 0;
-
 
97937
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
97938
 
-
 
97939
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
97940
    static {
-
 
97941
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
97942
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
97943
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
97944
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
97945
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReceivePendingOrders_args.class, metaDataMap);
-
 
97946
    }
-
 
97947
 
-
 
97948
    public getReceivePendingOrders_args() {
-
 
97949
    }
-
 
97950
 
-
 
97951
    public getReceivePendingOrders_args(
-
 
97952
      long storeId)
-
 
97953
    {
-
 
97954
      this();
-
 
97955
      this.storeId = storeId;
-
 
97956
      setStoreIdIsSet(true);
-
 
97957
    }
-
 
97958
 
-
 
97959
    /**
-
 
97960
     * Performs a deep copy on <i>other</i>.
-
 
97961
     */
-
 
97962
    public getReceivePendingOrders_args(getReceivePendingOrders_args other) {
-
 
97963
      __isset_bit_vector.clear();
-
 
97964
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
97965
      this.storeId = other.storeId;
-
 
97966
    }
-
 
97967
 
-
 
97968
    public getReceivePendingOrders_args deepCopy() {
-
 
97969
      return new getReceivePendingOrders_args(this);
-
 
97970
    }
-
 
97971
 
-
 
97972
    @Override
-
 
97973
    public void clear() {
-
 
97974
      setStoreIdIsSet(false);
-
 
97975
      this.storeId = 0;
-
 
97976
    }
-
 
97977
 
-
 
97978
    public long getStoreId() {
-
 
97979
      return this.storeId;
-
 
97980
    }
-
 
97981
 
-
 
97982
    public void setStoreId(long storeId) {
-
 
97983
      this.storeId = storeId;
-
 
97984
      setStoreIdIsSet(true);
-
 
97985
    }
-
 
97986
 
-
 
97987
    public void unsetStoreId() {
-
 
97988
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
-
 
97989
    }
-
 
97990
 
-
 
97991
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
-
 
97992
    public boolean isSetStoreId() {
-
 
97993
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
-
 
97994
    }
-
 
97995
 
-
 
97996
    public void setStoreIdIsSet(boolean value) {
-
 
97997
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
-
 
97998
    }
-
 
97999
 
-
 
98000
    public void setFieldValue(_Fields field, Object value) {
-
 
98001
      switch (field) {
-
 
98002
      case STORE_ID:
-
 
98003
        if (value == null) {
-
 
98004
          unsetStoreId();
-
 
98005
        } else {
-
 
98006
          setStoreId((Long)value);
-
 
98007
        }
-
 
98008
        break;
-
 
98009
 
-
 
98010
      }
-
 
98011
    }
-
 
98012
 
-
 
98013
    public Object getFieldValue(_Fields field) {
-
 
98014
      switch (field) {
-
 
98015
      case STORE_ID:
-
 
98016
        return Long.valueOf(getStoreId());
-
 
98017
 
-
 
98018
      }
-
 
98019
      throw new IllegalStateException();
-
 
98020
    }
-
 
98021
 
-
 
98022
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
98023
    public boolean isSet(_Fields field) {
-
 
98024
      if (field == null) {
-
 
98025
        throw new IllegalArgumentException();
-
 
98026
      }
-
 
98027
 
-
 
98028
      switch (field) {
-
 
98029
      case STORE_ID:
-
 
98030
        return isSetStoreId();
-
 
98031
      }
-
 
98032
      throw new IllegalStateException();
-
 
98033
    }
-
 
98034
 
-
 
98035
    @Override
-
 
98036
    public boolean equals(Object that) {
-
 
98037
      if (that == null)
-
 
98038
        return false;
-
 
98039
      if (that instanceof getReceivePendingOrders_args)
-
 
98040
        return this.equals((getReceivePendingOrders_args)that);
-
 
98041
      return false;
-
 
98042
    }
-
 
98043
 
-
 
98044
    public boolean equals(getReceivePendingOrders_args that) {
-
 
98045
      if (that == null)
-
 
98046
        return false;
-
 
98047
 
-
 
98048
      boolean this_present_storeId = true;
-
 
98049
      boolean that_present_storeId = true;
-
 
98050
      if (this_present_storeId || that_present_storeId) {
-
 
98051
        if (!(this_present_storeId && that_present_storeId))
-
 
98052
          return false;
-
 
98053
        if (this.storeId != that.storeId)
-
 
98054
          return false;
-
 
98055
      }
-
 
98056
 
-
 
98057
      return true;
-
 
98058
    }
-
 
98059
 
-
 
98060
    @Override
-
 
98061
    public int hashCode() {
-
 
98062
      return 0;
-
 
98063
    }
-
 
98064
 
-
 
98065
    public int compareTo(getReceivePendingOrders_args other) {
-
 
98066
      if (!getClass().equals(other.getClass())) {
-
 
98067
        return getClass().getName().compareTo(other.getClass().getName());
-
 
98068
      }
-
 
98069
 
-
 
98070
      int lastComparison = 0;
-
 
98071
      getReceivePendingOrders_args typedOther = (getReceivePendingOrders_args)other;
-
 
98072
 
-
 
98073
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
-
 
98074
      if (lastComparison != 0) {
-
 
98075
        return lastComparison;
-
 
98076
      }
-
 
98077
      if (isSetStoreId()) {
-
 
98078
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
-
 
98079
        if (lastComparison != 0) {
-
 
98080
          return lastComparison;
-
 
98081
        }
-
 
98082
      }
-
 
98083
      return 0;
-
 
98084
    }
-
 
98085
 
-
 
98086
    public _Fields fieldForId(int fieldId) {
-
 
98087
      return _Fields.findByThriftId(fieldId);
-
 
98088
    }
-
 
98089
 
-
 
98090
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
98091
      org.apache.thrift.protocol.TField field;
-
 
98092
      iprot.readStructBegin();
-
 
98093
      while (true)
-
 
98094
      {
-
 
98095
        field = iprot.readFieldBegin();
-
 
98096
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
98097
          break;
-
 
98098
        }
-
 
98099
        switch (field.id) {
-
 
98100
          case 1: // STORE_ID
-
 
98101
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
98102
              this.storeId = iprot.readI64();
-
 
98103
              setStoreIdIsSet(true);
-
 
98104
            } else { 
-
 
98105
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
98106
            }
-
 
98107
            break;
-
 
98108
          default:
-
 
98109
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
98110
        }
-
 
98111
        iprot.readFieldEnd();
-
 
98112
      }
-
 
98113
      iprot.readStructEnd();
-
 
98114
      validate();
-
 
98115
    }
-
 
98116
 
-
 
98117
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
98118
      validate();
-
 
98119
 
-
 
98120
      oprot.writeStructBegin(STRUCT_DESC);
-
 
98121
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
-
 
98122
      oprot.writeI64(this.storeId);
-
 
98123
      oprot.writeFieldEnd();
-
 
98124
      oprot.writeFieldStop();
-
 
98125
      oprot.writeStructEnd();
-
 
98126
    }
-
 
98127
 
-
 
98128
    @Override
-
 
98129
    public String toString() {
-
 
98130
      StringBuilder sb = new StringBuilder("getReceivePendingOrders_args(");
-
 
98131
      boolean first = true;
-
 
98132
 
-
 
98133
      sb.append("storeId:");
-
 
98134
      sb.append(this.storeId);
-
 
98135
      first = false;
-
 
98136
      sb.append(")");
-
 
98137
      return sb.toString();
-
 
98138
    }
-
 
98139
 
-
 
98140
    public void validate() throws org.apache.thrift.TException {
-
 
98141
      // check for required fields
-
 
98142
    }
-
 
98143
 
-
 
98144
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
98145
      try {
-
 
98146
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
98147
      } catch (org.apache.thrift.TException te) {
-
 
98148
        throw new java.io.IOException(te);
-
 
98149
      }
-
 
98150
    }
-
 
98151
 
-
 
98152
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
98153
      try {
-
 
98154
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
98155
        __isset_bit_vector = new BitSet(1);
-
 
98156
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
98157
      } catch (org.apache.thrift.TException te) {
-
 
98158
        throw new java.io.IOException(te);
-
 
98159
      }
-
 
98160
    }
-
 
98161
 
-
 
98162
  }
-
 
98163
 
-
 
98164
  public static class getReceivePendingOrders_result implements org.apache.thrift.TBase<getReceivePendingOrders_result, getReceivePendingOrders_result._Fields>, java.io.Serializable, Cloneable   {
-
 
98165
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReceivePendingOrders_result");
-
 
98166
 
-
 
98167
    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);
-
 
98168
 
-
 
98169
    private List<Order> success; // required
-
 
98170
 
-
 
98171
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
98172
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
98173
      SUCCESS((short)0, "success");
-
 
98174
 
-
 
98175
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
98176
 
-
 
98177
      static {
-
 
98178
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
98179
          byName.put(field.getFieldName(), field);
-
 
98180
        }
-
 
98181
      }
-
 
98182
 
-
 
98183
      /**
-
 
98184
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
98185
       */
-
 
98186
      public static _Fields findByThriftId(int fieldId) {
-
 
98187
        switch(fieldId) {
-
 
98188
          case 0: // SUCCESS
-
 
98189
            return SUCCESS;
-
 
98190
          default:
-
 
98191
            return null;
-
 
98192
        }
-
 
98193
      }
-
 
98194
 
-
 
98195
      /**
-
 
98196
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
98197
       * if it is not found.
-
 
98198
       */
-
 
98199
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
98200
        _Fields fields = findByThriftId(fieldId);
-
 
98201
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
98202
        return fields;
-
 
98203
      }
-
 
98204
 
-
 
98205
      /**
-
 
98206
       * Find the _Fields constant that matches name, or null if its not found.
-
 
98207
       */
-
 
98208
      public static _Fields findByName(String name) {
-
 
98209
        return byName.get(name);
-
 
98210
      }
-
 
98211
 
-
 
98212
      private final short _thriftId;
-
 
98213
      private final String _fieldName;
-
 
98214
 
-
 
98215
      _Fields(short thriftId, String fieldName) {
-
 
98216
        _thriftId = thriftId;
-
 
98217
        _fieldName = fieldName;
-
 
98218
      }
-
 
98219
 
-
 
98220
      public short getThriftFieldId() {
-
 
98221
        return _thriftId;
-
 
98222
      }
-
 
98223
 
-
 
98224
      public String getFieldName() {
-
 
98225
        return _fieldName;
-
 
98226
      }
-
 
98227
    }
-
 
98228
 
-
 
98229
    // isset id assignments
-
 
98230
 
-
 
98231
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
98232
    static {
-
 
98233
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
98234
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
98235
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
98236
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
-
 
98237
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
98238
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReceivePendingOrders_result.class, metaDataMap);
-
 
98239
    }
-
 
98240
 
-
 
98241
    public getReceivePendingOrders_result() {
-
 
98242
    }
-
 
98243
 
-
 
98244
    public getReceivePendingOrders_result(
-
 
98245
      List<Order> success)
-
 
98246
    {
-
 
98247
      this();
-
 
98248
      this.success = success;
-
 
98249
    }
-
 
98250
 
-
 
98251
    /**
-
 
98252
     * Performs a deep copy on <i>other</i>.
-
 
98253
     */
-
 
98254
    public getReceivePendingOrders_result(getReceivePendingOrders_result other) {
-
 
98255
      if (other.isSetSuccess()) {
-
 
98256
        List<Order> __this__success = new ArrayList<Order>();
-
 
98257
        for (Order other_element : other.success) {
-
 
98258
          __this__success.add(new Order(other_element));
-
 
98259
        }
-
 
98260
        this.success = __this__success;
-
 
98261
      }
-
 
98262
    }
-
 
98263
 
-
 
98264
    public getReceivePendingOrders_result deepCopy() {
-
 
98265
      return new getReceivePendingOrders_result(this);
-
 
98266
    }
-
 
98267
 
-
 
98268
    @Override
-
 
98269
    public void clear() {
-
 
98270
      this.success = null;
-
 
98271
    }
-
 
98272
 
-
 
98273
    public int getSuccessSize() {
-
 
98274
      return (this.success == null) ? 0 : this.success.size();
-
 
98275
    }
-
 
98276
 
-
 
98277
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
98278
      return (this.success == null) ? null : this.success.iterator();
-
 
98279
    }
-
 
98280
 
-
 
98281
    public void addToSuccess(Order elem) {
-
 
98282
      if (this.success == null) {
-
 
98283
        this.success = new ArrayList<Order>();
-
 
98284
      }
-
 
98285
      this.success.add(elem);
-
 
98286
    }
-
 
98287
 
-
 
98288
    public List<Order> getSuccess() {
-
 
98289
      return this.success;
-
 
98290
    }
-
 
98291
 
-
 
98292
    public void setSuccess(List<Order> success) {
-
 
98293
      this.success = success;
-
 
98294
    }
-
 
98295
 
-
 
98296
    public void unsetSuccess() {
-
 
98297
      this.success = null;
-
 
98298
    }
-
 
98299
 
-
 
98300
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
98301
    public boolean isSetSuccess() {
-
 
98302
      return this.success != null;
-
 
98303
    }
-
 
98304
 
-
 
98305
    public void setSuccessIsSet(boolean value) {
-
 
98306
      if (!value) {
-
 
98307
        this.success = null;
-
 
98308
      }
-
 
98309
    }
-
 
98310
 
-
 
98311
    public void setFieldValue(_Fields field, Object value) {
-
 
98312
      switch (field) {
-
 
98313
      case SUCCESS:
-
 
98314
        if (value == null) {
-
 
98315
          unsetSuccess();
-
 
98316
        } else {
-
 
98317
          setSuccess((List<Order>)value);
-
 
98318
        }
-
 
98319
        break;
-
 
98320
 
-
 
98321
      }
-
 
98322
    }
-
 
98323
 
-
 
98324
    public Object getFieldValue(_Fields field) {
-
 
98325
      switch (field) {
-
 
98326
      case SUCCESS:
-
 
98327
        return getSuccess();
-
 
98328
 
-
 
98329
      }
-
 
98330
      throw new IllegalStateException();
-
 
98331
    }
-
 
98332
 
-
 
98333
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
98334
    public boolean isSet(_Fields field) {
-
 
98335
      if (field == null) {
-
 
98336
        throw new IllegalArgumentException();
-
 
98337
      }
-
 
98338
 
-
 
98339
      switch (field) {
-
 
98340
      case SUCCESS:
-
 
98341
        return isSetSuccess();
-
 
98342
      }
-
 
98343
      throw new IllegalStateException();
-
 
98344
    }
-
 
98345
 
-
 
98346
    @Override
-
 
98347
    public boolean equals(Object that) {
-
 
98348
      if (that == null)
-
 
98349
        return false;
-
 
98350
      if (that instanceof getReceivePendingOrders_result)
-
 
98351
        return this.equals((getReceivePendingOrders_result)that);
-
 
98352
      return false;
-
 
98353
    }
-
 
98354
 
-
 
98355
    public boolean equals(getReceivePendingOrders_result that) {
-
 
98356
      if (that == null)
-
 
98357
        return false;
-
 
98358
 
-
 
98359
      boolean this_present_success = true && this.isSetSuccess();
-
 
98360
      boolean that_present_success = true && that.isSetSuccess();
-
 
98361
      if (this_present_success || that_present_success) {
-
 
98362
        if (!(this_present_success && that_present_success))
-
 
98363
          return false;
-
 
98364
        if (!this.success.equals(that.success))
-
 
98365
          return false;
-
 
98366
      }
-
 
98367
 
-
 
98368
      return true;
-
 
98369
    }
-
 
98370
 
-
 
98371
    @Override
-
 
98372
    public int hashCode() {
-
 
98373
      return 0;
-
 
98374
    }
-
 
98375
 
-
 
98376
    public int compareTo(getReceivePendingOrders_result other) {
-
 
98377
      if (!getClass().equals(other.getClass())) {
-
 
98378
        return getClass().getName().compareTo(other.getClass().getName());
-
 
98379
      }
-
 
98380
 
-
 
98381
      int lastComparison = 0;
-
 
98382
      getReceivePendingOrders_result typedOther = (getReceivePendingOrders_result)other;
-
 
98383
 
-
 
98384
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
98385
      if (lastComparison != 0) {
-
 
98386
        return lastComparison;
-
 
98387
      }
-
 
98388
      if (isSetSuccess()) {
-
 
98389
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
98390
        if (lastComparison != 0) {
-
 
98391
          return lastComparison;
-
 
98392
        }
-
 
98393
      }
-
 
98394
      return 0;
-
 
98395
    }
-
 
98396
 
-
 
98397
    public _Fields fieldForId(int fieldId) {
-
 
98398
      return _Fields.findByThriftId(fieldId);
-
 
98399
    }
-
 
98400
 
-
 
98401
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
98402
      org.apache.thrift.protocol.TField field;
-
 
98403
      iprot.readStructBegin();
-
 
98404
      while (true)
-
 
98405
      {
-
 
98406
        field = iprot.readFieldBegin();
-
 
98407
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
98408
          break;
-
 
98409
        }
-
 
98410
        switch (field.id) {
-
 
98411
          case 0: // SUCCESS
-
 
98412
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
98413
              {
-
 
98414
                org.apache.thrift.protocol.TList _list324 = iprot.readListBegin();
-
 
98415
                this.success = new ArrayList<Order>(_list324.size);
-
 
98416
                for (int _i325 = 0; _i325 < _list324.size; ++_i325)
-
 
98417
                {
-
 
98418
                  Order _elem326; // required
-
 
98419
                  _elem326 = new Order();
-
 
98420
                  _elem326.read(iprot);
-
 
98421
                  this.success.add(_elem326);
-
 
98422
                }
-
 
98423
                iprot.readListEnd();
-
 
98424
              }
-
 
98425
            } else { 
-
 
98426
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
98427
            }
-
 
98428
            break;
-
 
98429
          default:
-
 
98430
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
98431
        }
-
 
98432
        iprot.readFieldEnd();
-
 
98433
      }
-
 
98434
      iprot.readStructEnd();
-
 
98435
      validate();
-
 
98436
    }
-
 
98437
 
-
 
98438
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
98439
      oprot.writeStructBegin(STRUCT_DESC);
-
 
98440
 
-
 
98441
      if (this.isSetSuccess()) {
-
 
98442
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
98443
        {
-
 
98444
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
98445
          for (Order _iter327 : this.success)
-
 
98446
          {
-
 
98447
            _iter327.write(oprot);
-
 
98448
          }
-
 
98449
          oprot.writeListEnd();
-
 
98450
        }
-
 
98451
        oprot.writeFieldEnd();
-
 
98452
      }
-
 
98453
      oprot.writeFieldStop();
-
 
98454
      oprot.writeStructEnd();
-
 
98455
    }
-
 
98456
 
-
 
98457
    @Override
-
 
98458
    public String toString() {
-
 
98459
      StringBuilder sb = new StringBuilder("getReceivePendingOrders_result(");
-
 
98460
      boolean first = true;
-
 
98461
 
-
 
98462
      sb.append("success:");
-
 
98463
      if (this.success == null) {
-
 
98464
        sb.append("null");
-
 
98465
      } else {
-
 
98466
        sb.append(this.success);
-
 
98467
      }
-
 
98468
      first = false;
-
 
98469
      sb.append(")");
-
 
98470
      return sb.toString();
-
 
98471
    }
-
 
98472
 
-
 
98473
    public void validate() throws org.apache.thrift.TException {
-
 
98474
      // check for required fields
-
 
98475
    }
-
 
98476
 
-
 
98477
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
98478
      try {
-
 
98479
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
98480
      } catch (org.apache.thrift.TException te) {
-
 
98481
        throw new java.io.IOException(te);
-
 
98482
      }
-
 
98483
    }
-
 
98484
 
-
 
98485
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
98486
      try {
-
 
98487
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
98488
      } catch (org.apache.thrift.TException te) {
-
 
98489
        throw new java.io.IOException(te);
-
 
98490
      }
-
 
98491
    }
-
 
98492
 
-
 
98493
  }
-
 
98494
 
-
 
98495
  public static class getReceivedAtStoreOrders_args implements org.apache.thrift.TBase<getReceivedAtStoreOrders_args, getReceivedAtStoreOrders_args._Fields>, java.io.Serializable, Cloneable   {
-
 
98496
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReceivedAtStoreOrders_args");
-
 
98497
 
-
 
98498
    private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
98499
 
-
 
98500
    private long storeId; // required
-
 
98501
 
-
 
98502
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
98503
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
98504
      STORE_ID((short)1, "storeId");
-
 
98505
 
-
 
98506
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
98507
 
-
 
98508
      static {
-
 
98509
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
98510
          byName.put(field.getFieldName(), field);
-
 
98511
        }
-
 
98512
      }
-
 
98513
 
-
 
98514
      /**
-
 
98515
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
98516
       */
-
 
98517
      public static _Fields findByThriftId(int fieldId) {
-
 
98518
        switch(fieldId) {
-
 
98519
          case 1: // STORE_ID
-
 
98520
            return STORE_ID;
-
 
98521
          default:
-
 
98522
            return null;
-
 
98523
        }
-
 
98524
      }
-
 
98525
 
-
 
98526
      /**
-
 
98527
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
98528
       * if it is not found.
-
 
98529
       */
-
 
98530
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
98531
        _Fields fields = findByThriftId(fieldId);
-
 
98532
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
98533
        return fields;
-
 
98534
      }
-
 
98535
 
-
 
98536
      /**
-
 
98537
       * Find the _Fields constant that matches name, or null if its not found.
-
 
98538
       */
-
 
98539
      public static _Fields findByName(String name) {
-
 
98540
        return byName.get(name);
-
 
98541
      }
-
 
98542
 
-
 
98543
      private final short _thriftId;
-
 
98544
      private final String _fieldName;
-
 
98545
 
-
 
98546
      _Fields(short thriftId, String fieldName) {
-
 
98547
        _thriftId = thriftId;
-
 
98548
        _fieldName = fieldName;
-
 
98549
      }
-
 
98550
 
-
 
98551
      public short getThriftFieldId() {
-
 
98552
        return _thriftId;
-
 
98553
      }
-
 
98554
 
-
 
98555
      public String getFieldName() {
-
 
98556
        return _fieldName;
-
 
98557
      }
-
 
98558
    }
-
 
98559
 
-
 
98560
    // isset id assignments
-
 
98561
    private static final int __STOREID_ISSET_ID = 0;
-
 
98562
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
98563
 
-
 
98564
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
98565
    static {
-
 
98566
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
98567
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
98568
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
98569
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
98570
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReceivedAtStoreOrders_args.class, metaDataMap);
-
 
98571
    }
-
 
98572
 
-
 
98573
    public getReceivedAtStoreOrders_args() {
-
 
98574
    }
-
 
98575
 
-
 
98576
    public getReceivedAtStoreOrders_args(
-
 
98577
      long storeId)
-
 
98578
    {
-
 
98579
      this();
-
 
98580
      this.storeId = storeId;
-
 
98581
      setStoreIdIsSet(true);
-
 
98582
    }
-
 
98583
 
-
 
98584
    /**
-
 
98585
     * Performs a deep copy on <i>other</i>.
-
 
98586
     */
-
 
98587
    public getReceivedAtStoreOrders_args(getReceivedAtStoreOrders_args other) {
-
 
98588
      __isset_bit_vector.clear();
-
 
98589
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
98590
      this.storeId = other.storeId;
-
 
98591
    }
-
 
98592
 
-
 
98593
    public getReceivedAtStoreOrders_args deepCopy() {
-
 
98594
      return new getReceivedAtStoreOrders_args(this);
-
 
98595
    }
-
 
98596
 
-
 
98597
    @Override
-
 
98598
    public void clear() {
-
 
98599
      setStoreIdIsSet(false);
-
 
98600
      this.storeId = 0;
-
 
98601
    }
-
 
98602
 
-
 
98603
    public long getStoreId() {
-
 
98604
      return this.storeId;
-
 
98605
    }
-
 
98606
 
-
 
98607
    public void setStoreId(long storeId) {
-
 
98608
      this.storeId = storeId;
-
 
98609
      setStoreIdIsSet(true);
-
 
98610
    }
-
 
98611
 
-
 
98612
    public void unsetStoreId() {
-
 
98613
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
-
 
98614
    }
-
 
98615
 
-
 
98616
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
-
 
98617
    public boolean isSetStoreId() {
-
 
98618
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
-
 
98619
    }
-
 
98620
 
-
 
98621
    public void setStoreIdIsSet(boolean value) {
-
 
98622
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
-
 
98623
    }
-
 
98624
 
-
 
98625
    public void setFieldValue(_Fields field, Object value) {
-
 
98626
      switch (field) {
-
 
98627
      case STORE_ID:
-
 
98628
        if (value == null) {
-
 
98629
          unsetStoreId();
-
 
98630
        } else {
-
 
98631
          setStoreId((Long)value);
-
 
98632
        }
-
 
98633
        break;
-
 
98634
 
-
 
98635
      }
-
 
98636
    }
-
 
98637
 
-
 
98638
    public Object getFieldValue(_Fields field) {
-
 
98639
      switch (field) {
-
 
98640
      case STORE_ID:
-
 
98641
        return Long.valueOf(getStoreId());
-
 
98642
 
-
 
98643
      }
-
 
98644
      throw new IllegalStateException();
-
 
98645
    }
-
 
98646
 
-
 
98647
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
98648
    public boolean isSet(_Fields field) {
-
 
98649
      if (field == null) {
-
 
98650
        throw new IllegalArgumentException();
-
 
98651
      }
-
 
98652
 
-
 
98653
      switch (field) {
-
 
98654
      case STORE_ID:
-
 
98655
        return isSetStoreId();
-
 
98656
      }
-
 
98657
      throw new IllegalStateException();
-
 
98658
    }
-
 
98659
 
-
 
98660
    @Override
-
 
98661
    public boolean equals(Object that) {
-
 
98662
      if (that == null)
-
 
98663
        return false;
-
 
98664
      if (that instanceof getReceivedAtStoreOrders_args)
-
 
98665
        return this.equals((getReceivedAtStoreOrders_args)that);
-
 
98666
      return false;
-
 
98667
    }
-
 
98668
 
-
 
98669
    public boolean equals(getReceivedAtStoreOrders_args that) {
-
 
98670
      if (that == null)
-
 
98671
        return false;
-
 
98672
 
-
 
98673
      boolean this_present_storeId = true;
-
 
98674
      boolean that_present_storeId = true;
-
 
98675
      if (this_present_storeId || that_present_storeId) {
-
 
98676
        if (!(this_present_storeId && that_present_storeId))
-
 
98677
          return false;
-
 
98678
        if (this.storeId != that.storeId)
-
 
98679
          return false;
-
 
98680
      }
-
 
98681
 
-
 
98682
      return true;
-
 
98683
    }
-
 
98684
 
-
 
98685
    @Override
-
 
98686
    public int hashCode() {
-
 
98687
      return 0;
-
 
98688
    }
-
 
98689
 
-
 
98690
    public int compareTo(getReceivedAtStoreOrders_args other) {
-
 
98691
      if (!getClass().equals(other.getClass())) {
-
 
98692
        return getClass().getName().compareTo(other.getClass().getName());
-
 
98693
      }
-
 
98694
 
-
 
98695
      int lastComparison = 0;
-
 
98696
      getReceivedAtStoreOrders_args typedOther = (getReceivedAtStoreOrders_args)other;
-
 
98697
 
-
 
98698
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
-
 
98699
      if (lastComparison != 0) {
-
 
98700
        return lastComparison;
-
 
98701
      }
-
 
98702
      if (isSetStoreId()) {
-
 
98703
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
-
 
98704
        if (lastComparison != 0) {
-
 
98705
          return lastComparison;
-
 
98706
        }
-
 
98707
      }
-
 
98708
      return 0;
-
 
98709
    }
-
 
98710
 
-
 
98711
    public _Fields fieldForId(int fieldId) {
-
 
98712
      return _Fields.findByThriftId(fieldId);
-
 
98713
    }
-
 
98714
 
-
 
98715
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
98716
      org.apache.thrift.protocol.TField field;
-
 
98717
      iprot.readStructBegin();
-
 
98718
      while (true)
-
 
98719
      {
-
 
98720
        field = iprot.readFieldBegin();
-
 
98721
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
98722
          break;
-
 
98723
        }
-
 
98724
        switch (field.id) {
-
 
98725
          case 1: // STORE_ID
-
 
98726
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
98727
              this.storeId = iprot.readI64();
-
 
98728
              setStoreIdIsSet(true);
-
 
98729
            } else { 
-
 
98730
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
98731
            }
-
 
98732
            break;
-
 
98733
          default:
-
 
98734
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
98735
        }
-
 
98736
        iprot.readFieldEnd();
-
 
98737
      }
-
 
98738
      iprot.readStructEnd();
-
 
98739
      validate();
-
 
98740
    }
-
 
98741
 
-
 
98742
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
98743
      validate();
-
 
98744
 
-
 
98745
      oprot.writeStructBegin(STRUCT_DESC);
-
 
98746
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
-
 
98747
      oprot.writeI64(this.storeId);
-
 
98748
      oprot.writeFieldEnd();
-
 
98749
      oprot.writeFieldStop();
-
 
98750
      oprot.writeStructEnd();
-
 
98751
    }
-
 
98752
 
-
 
98753
    @Override
-
 
98754
    public String toString() {
-
 
98755
      StringBuilder sb = new StringBuilder("getReceivedAtStoreOrders_args(");
-
 
98756
      boolean first = true;
-
 
98757
 
-
 
98758
      sb.append("storeId:");
-
 
98759
      sb.append(this.storeId);
-
 
98760
      first = false;
-
 
98761
      sb.append(")");
-
 
98762
      return sb.toString();
-
 
98763
    }
-
 
98764
 
-
 
98765
    public void validate() throws org.apache.thrift.TException {
-
 
98766
      // check for required fields
-
 
98767
    }
-
 
98768
 
-
 
98769
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
98770
      try {
-
 
98771
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
98772
      } catch (org.apache.thrift.TException te) {
-
 
98773
        throw new java.io.IOException(te);
-
 
98774
      }
-
 
98775
    }
-
 
98776
 
-
 
98777
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
98778
      try {
-
 
98779
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
98780
        __isset_bit_vector = new BitSet(1);
-
 
98781
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
98782
      } catch (org.apache.thrift.TException te) {
-
 
98783
        throw new java.io.IOException(te);
-
 
98784
      }
-
 
98785
    }
-
 
98786
 
-
 
98787
  }
-
 
98788
 
-
 
98789
  public static class getReceivedAtStoreOrders_result implements org.apache.thrift.TBase<getReceivedAtStoreOrders_result, getReceivedAtStoreOrders_result._Fields>, java.io.Serializable, Cloneable   {
-
 
98790
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReceivedAtStoreOrders_result");
-
 
98791
 
-
 
98792
    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);
-
 
98793
 
-
 
98794
    private List<Order> success; // required
-
 
98795
 
-
 
98796
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
98797
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
98798
      SUCCESS((short)0, "success");
-
 
98799
 
-
 
98800
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
98801
 
-
 
98802
      static {
-
 
98803
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
98804
          byName.put(field.getFieldName(), field);
-
 
98805
        }
-
 
98806
      }
-
 
98807
 
-
 
98808
      /**
-
 
98809
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
98810
       */
-
 
98811
      public static _Fields findByThriftId(int fieldId) {
-
 
98812
        switch(fieldId) {
-
 
98813
          case 0: // SUCCESS
-
 
98814
            return SUCCESS;
-
 
98815
          default:
-
 
98816
            return null;
-
 
98817
        }
-
 
98818
      }
-
 
98819
 
-
 
98820
      /**
-
 
98821
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
98822
       * if it is not found.
-
 
98823
       */
-
 
98824
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
98825
        _Fields fields = findByThriftId(fieldId);
-
 
98826
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
98827
        return fields;
-
 
98828
      }
-
 
98829
 
-
 
98830
      /**
-
 
98831
       * Find the _Fields constant that matches name, or null if its not found.
-
 
98832
       */
-
 
98833
      public static _Fields findByName(String name) {
-
 
98834
        return byName.get(name);
-
 
98835
      }
-
 
98836
 
-
 
98837
      private final short _thriftId;
-
 
98838
      private final String _fieldName;
-
 
98839
 
-
 
98840
      _Fields(short thriftId, String fieldName) {
-
 
98841
        _thriftId = thriftId;
-
 
98842
        _fieldName = fieldName;
-
 
98843
      }
-
 
98844
 
-
 
98845
      public short getThriftFieldId() {
-
 
98846
        return _thriftId;
-
 
98847
      }
-
 
98848
 
-
 
98849
      public String getFieldName() {
-
 
98850
        return _fieldName;
-
 
98851
      }
-
 
98852
    }
-
 
98853
 
-
 
98854
    // isset id assignments
-
 
98855
 
-
 
98856
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
98857
    static {
-
 
98858
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
98859
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
98860
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
98861
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
-
 
98862
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
98863
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReceivedAtStoreOrders_result.class, metaDataMap);
-
 
98864
    }
-
 
98865
 
-
 
98866
    public getReceivedAtStoreOrders_result() {
-
 
98867
    }
-
 
98868
 
-
 
98869
    public getReceivedAtStoreOrders_result(
-
 
98870
      List<Order> success)
-
 
98871
    {
-
 
98872
      this();
-
 
98873
      this.success = success;
-
 
98874
    }
-
 
98875
 
-
 
98876
    /**
-
 
98877
     * Performs a deep copy on <i>other</i>.
-
 
98878
     */
-
 
98879
    public getReceivedAtStoreOrders_result(getReceivedAtStoreOrders_result other) {
-
 
98880
      if (other.isSetSuccess()) {
-
 
98881
        List<Order> __this__success = new ArrayList<Order>();
-
 
98882
        for (Order other_element : other.success) {
-
 
98883
          __this__success.add(new Order(other_element));
-
 
98884
        }
-
 
98885
        this.success = __this__success;
-
 
98886
      }
-
 
98887
    }
-
 
98888
 
-
 
98889
    public getReceivedAtStoreOrders_result deepCopy() {
-
 
98890
      return new getReceivedAtStoreOrders_result(this);
-
 
98891
    }
-
 
98892
 
-
 
98893
    @Override
-
 
98894
    public void clear() {
-
 
98895
      this.success = null;
-
 
98896
    }
-
 
98897
 
-
 
98898
    public int getSuccessSize() {
-
 
98899
      return (this.success == null) ? 0 : this.success.size();
-
 
98900
    }
-
 
98901
 
-
 
98902
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
98903
      return (this.success == null) ? null : this.success.iterator();
-
 
98904
    }
-
 
98905
 
-
 
98906
    public void addToSuccess(Order elem) {
-
 
98907
      if (this.success == null) {
-
 
98908
        this.success = new ArrayList<Order>();
-
 
98909
      }
-
 
98910
      this.success.add(elem);
-
 
98911
    }
-
 
98912
 
-
 
98913
    public List<Order> getSuccess() {
-
 
98914
      return this.success;
-
 
98915
    }
-
 
98916
 
-
 
98917
    public void setSuccess(List<Order> success) {
-
 
98918
      this.success = success;
-
 
98919
    }
-
 
98920
 
-
 
98921
    public void unsetSuccess() {
-
 
98922
      this.success = null;
-
 
98923
    }
-
 
98924
 
-
 
98925
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
98926
    public boolean isSetSuccess() {
-
 
98927
      return this.success != null;
-
 
98928
    }
-
 
98929
 
-
 
98930
    public void setSuccessIsSet(boolean value) {
-
 
98931
      if (!value) {
-
 
98932
        this.success = null;
-
 
98933
      }
-
 
98934
    }
-
 
98935
 
-
 
98936
    public void setFieldValue(_Fields field, Object value) {
-
 
98937
      switch (field) {
-
 
98938
      case SUCCESS:
-
 
98939
        if (value == null) {
-
 
98940
          unsetSuccess();
-
 
98941
        } else {
-
 
98942
          setSuccess((List<Order>)value);
-
 
98943
        }
-
 
98944
        break;
-
 
98945
 
-
 
98946
      }
-
 
98947
    }
-
 
98948
 
-
 
98949
    public Object getFieldValue(_Fields field) {
-
 
98950
      switch (field) {
-
 
98951
      case SUCCESS:
-
 
98952
        return getSuccess();
-
 
98953
 
-
 
98954
      }
-
 
98955
      throw new IllegalStateException();
-
 
98956
    }
-
 
98957
 
-
 
98958
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
98959
    public boolean isSet(_Fields field) {
-
 
98960
      if (field == null) {
-
 
98961
        throw new IllegalArgumentException();
-
 
98962
      }
-
 
98963
 
-
 
98964
      switch (field) {
-
 
98965
      case SUCCESS:
-
 
98966
        return isSetSuccess();
-
 
98967
      }
-
 
98968
      throw new IllegalStateException();
-
 
98969
    }
-
 
98970
 
-
 
98971
    @Override
-
 
98972
    public boolean equals(Object that) {
-
 
98973
      if (that == null)
-
 
98974
        return false;
-
 
98975
      if (that instanceof getReceivedAtStoreOrders_result)
-
 
98976
        return this.equals((getReceivedAtStoreOrders_result)that);
-
 
98977
      return false;
-
 
98978
    }
-
 
98979
 
-
 
98980
    public boolean equals(getReceivedAtStoreOrders_result that) {
-
 
98981
      if (that == null)
-
 
98982
        return false;
-
 
98983
 
-
 
98984
      boolean this_present_success = true && this.isSetSuccess();
-
 
98985
      boolean that_present_success = true && that.isSetSuccess();
-
 
98986
      if (this_present_success || that_present_success) {
-
 
98987
        if (!(this_present_success && that_present_success))
-
 
98988
          return false;
-
 
98989
        if (!this.success.equals(that.success))
-
 
98990
          return false;
-
 
98991
      }
-
 
98992
 
-
 
98993
      return true;
-
 
98994
    }
-
 
98995
 
-
 
98996
    @Override
-
 
98997
    public int hashCode() {
-
 
98998
      return 0;
-
 
98999
    }
-
 
99000
 
-
 
99001
    public int compareTo(getReceivedAtStoreOrders_result other) {
-
 
99002
      if (!getClass().equals(other.getClass())) {
-
 
99003
        return getClass().getName().compareTo(other.getClass().getName());
-
 
99004
      }
-
 
99005
 
-
 
99006
      int lastComparison = 0;
-
 
99007
      getReceivedAtStoreOrders_result typedOther = (getReceivedAtStoreOrders_result)other;
-
 
99008
 
-
 
99009
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
99010
      if (lastComparison != 0) {
-
 
99011
        return lastComparison;
-
 
99012
      }
-
 
99013
      if (isSetSuccess()) {
-
 
99014
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
99015
        if (lastComparison != 0) {
-
 
99016
          return lastComparison;
-
 
99017
        }
-
 
99018
      }
-
 
99019
      return 0;
-
 
99020
    }
-
 
99021
 
-
 
99022
    public _Fields fieldForId(int fieldId) {
-
 
99023
      return _Fields.findByThriftId(fieldId);
-
 
99024
    }
-
 
99025
 
-
 
99026
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
99027
      org.apache.thrift.protocol.TField field;
-
 
99028
      iprot.readStructBegin();
-
 
99029
      while (true)
-
 
99030
      {
-
 
99031
        field = iprot.readFieldBegin();
-
 
99032
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
99033
          break;
-
 
99034
        }
-
 
99035
        switch (field.id) {
-
 
99036
          case 0: // SUCCESS
-
 
99037
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
99038
              {
-
 
99039
                org.apache.thrift.protocol.TList _list328 = iprot.readListBegin();
-
 
99040
                this.success = new ArrayList<Order>(_list328.size);
-
 
99041
                for (int _i329 = 0; _i329 < _list328.size; ++_i329)
-
 
99042
                {
-
 
99043
                  Order _elem330; // required
-
 
99044
                  _elem330 = new Order();
-
 
99045
                  _elem330.read(iprot);
-
 
99046
                  this.success.add(_elem330);
-
 
99047
                }
-
 
99048
                iprot.readListEnd();
-
 
99049
              }
-
 
99050
            } else { 
-
 
99051
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
99052
            }
-
 
99053
            break;
-
 
99054
          default:
-
 
99055
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
99056
        }
-
 
99057
        iprot.readFieldEnd();
-
 
99058
      }
-
 
99059
      iprot.readStructEnd();
-
 
99060
      validate();
-
 
99061
    }
-
 
99062
 
-
 
99063
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
99064
      oprot.writeStructBegin(STRUCT_DESC);
-
 
99065
 
-
 
99066
      if (this.isSetSuccess()) {
-
 
99067
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
99068
        {
-
 
99069
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
99070
          for (Order _iter331 : this.success)
-
 
99071
          {
-
 
99072
            _iter331.write(oprot);
-
 
99073
          }
-
 
99074
          oprot.writeListEnd();
-
 
99075
        }
-
 
99076
        oprot.writeFieldEnd();
-
 
99077
      }
-
 
99078
      oprot.writeFieldStop();
-
 
99079
      oprot.writeStructEnd();
-
 
99080
    }
-
 
99081
 
-
 
99082
    @Override
-
 
99083
    public String toString() {
-
 
99084
      StringBuilder sb = new StringBuilder("getReceivedAtStoreOrders_result(");
-
 
99085
      boolean first = true;
-
 
99086
 
-
 
99087
      sb.append("success:");
-
 
99088
      if (this.success == null) {
-
 
99089
        sb.append("null");
-
 
99090
      } else {
-
 
99091
        sb.append(this.success);
-
 
99092
      }
-
 
99093
      first = false;
-
 
99094
      sb.append(")");
-
 
99095
      return sb.toString();
-
 
99096
    }
-
 
99097
 
-
 
99098
    public void validate() throws org.apache.thrift.TException {
96942
      // check for required fields
99099
      // check for required fields
96943
    }
99100
    }
96944
 
99101
 
96945
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
99102
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
96946
      try {
99103
      try {