Subversion Repositories SmartDukaan

Rev

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

Rev 5481 Rev 5527
Line 32... Line 32...
32
 
32
 
33
    public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, org.apache.thrift.TException;
33
    public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, org.apache.thrift.TException;
34
 
34
 
35
    public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
35
    public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
36
 
36
 
37
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description, boolean selfPickup) throws TransactionServiceException, org.apache.thrift.TException;
37
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType) throws TransactionServiceException, org.apache.thrift.TException;
38
 
38
 
39
    public boolean enqueueTransactionInfoEmail(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
39
    public boolean enqueueTransactionInfoEmail(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;
40
 
40
 
41
    public List<Order> getAllOrders(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException;
41
    public List<Order> getAllOrders(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException;
42
 
42
 
Line 799... Line 799...
799
     * @param minOrderId
799
     * @param minOrderId
800
     * @param maxOrderId
800
     * @param maxOrderId
801
     */
801
     */
802
    public List<CODVerificationAgent> getAllVerificationAgents(long minOrderId, long maxOrderId) throws org.apache.thrift.TException;
802
    public List<CODVerificationAgent> getAllVerificationAgents(long minOrderId, long maxOrderId) throws org.apache.thrift.TException;
803
 
803
 
-
 
804
    /**
-
 
805
     * gets all attributes for a given orderId
-
 
806
     * 
-
 
807
     * @param orderId
-
 
808
     */
-
 
809
    public List<Attribute> getAllAttributesForOrderId(long orderId) throws org.apache.thrift.TException;
-
 
810
 
-
 
811
    /**
-
 
812
     * sets attributes for all orders in a transaction
-
 
813
     * 
-
 
814
     * @param transactionId
-
 
815
     * @param attribute
-
 
816
     */
-
 
817
    public void setOrderAttributeForTransaction(long transactionId, Attribute attribute) throws org.apache.thrift.TException;
-
 
818
 
804
  }
819
  }
805
 
820
 
806
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
821
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
807
 
822
 
808
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
823
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 813... Line 828...
813
 
828
 
814
    public void getTransactionsForShoppingCartId(long shoppingCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionsForShoppingCartId_call> resultHandler) throws org.apache.thrift.TException;
829
    public void getTransactionsForShoppingCartId(long shoppingCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionsForShoppingCartId_call> resultHandler) throws org.apache.thrift.TException;
815
 
830
 
816
    public void getTransactionStatus(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;
831
    public void getTransactionStatus(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;
817
 
832
 
818
    public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, boolean selfPickup, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;
833
    public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;
819
 
834
 
820
    public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException;
835
    public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException;
821
 
836
 
822
    public void getAllOrders(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllOrders_call> resultHandler) throws org.apache.thrift.TException;
837
    public void getAllOrders(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllOrders_call> resultHandler) throws org.apache.thrift.TException;
823
 
838
 
Line 1033... Line 1048...
1033
 
1048
 
1034
    public void getRefundedOrdersMarkedPaid(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRefundedOrdersMarkedPaid_call> resultHandler) throws org.apache.thrift.TException;
1049
    public void getRefundedOrdersMarkedPaid(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRefundedOrdersMarkedPaid_call> resultHandler) throws org.apache.thrift.TException;
1035
 
1050
 
1036
    public void getAllVerificationAgents(long minOrderId, long maxOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVerificationAgents_call> resultHandler) throws org.apache.thrift.TException;
1051
    public void getAllVerificationAgents(long minOrderId, long maxOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVerificationAgents_call> resultHandler) throws org.apache.thrift.TException;
1037
 
1052
 
-
 
1053
    public void getAllAttributesForOrderId(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAttributesForOrderId_call> resultHandler) throws org.apache.thrift.TException;
-
 
1054
 
-
 
1055
    public void setOrderAttributeForTransaction(long transactionId, Attribute attribute, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setOrderAttributeForTransaction_call> resultHandler) throws org.apache.thrift.TException;
-
 
1056
 
1038
  }
1057
  }
1039
 
1058
 
1040
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1059
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1041
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1060
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1042
      public Factory() {}
1061
      public Factory() {}
Line 1188... Line 1207...
1188
        throw result.ex;
1207
        throw result.ex;
1189
      }
1208
      }
1190
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
1209
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
1191
    }
1210
    }
1192
 
1211
 
1193
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description, boolean selfPickup) throws TransactionServiceException, org.apache.thrift.TException
1212
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType) throws TransactionServiceException, org.apache.thrift.TException
1194
    {
1213
    {
1195
      send_changeTransactionStatus(transactionId, status, description, selfPickup);
1214
      send_changeTransactionStatus(transactionId, status, description, pickUp, orderType);
1196
      return recv_changeTransactionStatus();
1215
      return recv_changeTransactionStatus();
1197
    }
1216
    }
1198
 
1217
 
1199
    public void send_changeTransactionStatus(long transactionId, TransactionStatus status, String description, boolean selfPickup) throws org.apache.thrift.TException
1218
    public void send_changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType) throws org.apache.thrift.TException
1200
    {
1219
    {
1201
      changeTransactionStatus_args args = new changeTransactionStatus_args();
1220
      changeTransactionStatus_args args = new changeTransactionStatus_args();
1202
      args.setTransactionId(transactionId);
1221
      args.setTransactionId(transactionId);
1203
      args.setStatus(status);
1222
      args.setStatus(status);
1204
      args.setDescription(description);
1223
      args.setDescription(description);
1205
      args.setSelfPickup(selfPickup);
1224
      args.setPickUp(pickUp);
-
 
1225
      args.setOrderType(orderType);
1206
      sendBase("changeTransactionStatus", args);
1226
      sendBase("changeTransactionStatus", args);
1207
    }
1227
    }
1208
 
1228
 
1209
    public boolean recv_changeTransactionStatus() throws TransactionServiceException, org.apache.thrift.TException
1229
    public boolean recv_changeTransactionStatus() throws TransactionServiceException, org.apache.thrift.TException
1210
    {
1230
    {
Line 3991... Line 4011...
3991
        return result.success;
4011
        return result.success;
3992
      }
4012
      }
3993
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVerificationAgents failed: unknown result");
4013
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVerificationAgents failed: unknown result");
3994
    }
4014
    }
3995
 
4015
 
-
 
4016
    public List<Attribute> getAllAttributesForOrderId(long orderId) throws org.apache.thrift.TException
-
 
4017
    {
-
 
4018
      send_getAllAttributesForOrderId(orderId);
-
 
4019
      return recv_getAllAttributesForOrderId();
-
 
4020
    }
-
 
4021
 
-
 
4022
    public void send_getAllAttributesForOrderId(long orderId) throws org.apache.thrift.TException
-
 
4023
    {
-
 
4024
      getAllAttributesForOrderId_args args = new getAllAttributesForOrderId_args();
-
 
4025
      args.setOrderId(orderId);
-
 
4026
      sendBase("getAllAttributesForOrderId", args);
-
 
4027
    }
-
 
4028
 
-
 
4029
    public List<Attribute> recv_getAllAttributesForOrderId() throws org.apache.thrift.TException
-
 
4030
    {
-
 
4031
      getAllAttributesForOrderId_result result = new getAllAttributesForOrderId_result();
-
 
4032
      receiveBase(result, "getAllAttributesForOrderId");
-
 
4033
      if (result.isSetSuccess()) {
-
 
4034
        return result.success;
-
 
4035
      }
-
 
4036
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAttributesForOrderId failed: unknown result");
-
 
4037
    }
-
 
4038
 
-
 
4039
    public void setOrderAttributeForTransaction(long transactionId, Attribute attribute) throws org.apache.thrift.TException
-
 
4040
    {
-
 
4041
      send_setOrderAttributeForTransaction(transactionId, attribute);
-
 
4042
      recv_setOrderAttributeForTransaction();
-
 
4043
    }
-
 
4044
 
-
 
4045
    public void send_setOrderAttributeForTransaction(long transactionId, Attribute attribute) throws org.apache.thrift.TException
-
 
4046
    {
-
 
4047
      setOrderAttributeForTransaction_args args = new setOrderAttributeForTransaction_args();
-
 
4048
      args.setTransactionId(transactionId);
-
 
4049
      args.setAttribute(attribute);
-
 
4050
      sendBase("setOrderAttributeForTransaction", args);
-
 
4051
    }
-
 
4052
 
-
 
4053
    public void recv_setOrderAttributeForTransaction() throws org.apache.thrift.TException
-
 
4054
    {
-
 
4055
      setOrderAttributeForTransaction_result result = new setOrderAttributeForTransaction_result();
-
 
4056
      receiveBase(result, "setOrderAttributeForTransaction");
-
 
4057
      return;
-
 
4058
    }
-
 
4059
 
3996
  }
4060
  }
3997
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4061
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3998
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4062
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3999
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4063
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4000
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4064
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4178... Line 4242...
4178
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4242
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4179
        return (new Client(prot)).recv_getTransactionStatus();
4243
        return (new Client(prot)).recv_getTransactionStatus();
4180
      }
4244
      }
4181
    }
4245
    }
4182
 
4246
 
4183
    public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, boolean selfPickup, org.apache.thrift.async.AsyncMethodCallback<changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException {
4247
    public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType, org.apache.thrift.async.AsyncMethodCallback<changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException {
4184
      checkReady();
4248
      checkReady();
4185
      changeTransactionStatus_call method_call = new changeTransactionStatus_call(transactionId, status, description, selfPickup, resultHandler, this, ___protocolFactory, ___transport);
4249
      changeTransactionStatus_call method_call = new changeTransactionStatus_call(transactionId, status, description, pickUp, orderType, resultHandler, this, ___protocolFactory, ___transport);
4186
      this.___currentMethod = method_call;
4250
      this.___currentMethod = method_call;
4187
      ___manager.call(method_call);
4251
      ___manager.call(method_call);
4188
    }
4252
    }
4189
 
4253
 
4190
    public static class changeTransactionStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
4254
    public static class changeTransactionStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
4191
      private long transactionId;
4255
      private long transactionId;
4192
      private TransactionStatus status;
4256
      private TransactionStatus status;
4193
      private String description;
4257
      private String description;
4194
      private boolean selfPickup;
4258
      private long pickUp;
-
 
4259
      private OrderType orderType;
4195
      public changeTransactionStatus_call(long transactionId, TransactionStatus status, String description, boolean selfPickup, org.apache.thrift.async.AsyncMethodCallback<changeTransactionStatus_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 {
4260
      public changeTransactionStatus_call(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType, org.apache.thrift.async.AsyncMethodCallback<changeTransactionStatus_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 {
4196
        super(client, protocolFactory, transport, resultHandler, false);
4261
        super(client, protocolFactory, transport, resultHandler, false);
4197
        this.transactionId = transactionId;
4262
        this.transactionId = transactionId;
4198
        this.status = status;
4263
        this.status = status;
4199
        this.description = description;
4264
        this.description = description;
4200
        this.selfPickup = selfPickup;
4265
        this.pickUp = pickUp;
-
 
4266
        this.orderType = orderType;
4201
      }
4267
      }
4202
 
4268
 
4203
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4269
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4204
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeTransactionStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
4270
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeTransactionStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
4205
        changeTransactionStatus_args args = new changeTransactionStatus_args();
4271
        changeTransactionStatus_args args = new changeTransactionStatus_args();
4206
        args.setTransactionId(transactionId);
4272
        args.setTransactionId(transactionId);
4207
        args.setStatus(status);
4273
        args.setStatus(status);
4208
        args.setDescription(description);
4274
        args.setDescription(description);
4209
        args.setSelfPickup(selfPickup);
4275
        args.setPickUp(pickUp);
-
 
4276
        args.setOrderType(orderType);
4210
        args.write(prot);
4277
        args.write(prot);
4211
        prot.writeMessageEnd();
4278
        prot.writeMessageEnd();
4212
      }
4279
      }
4213
 
4280
 
4214
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
4281
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
Line 8040... Line 8107...
8040
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8107
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8041
        return (new Client(prot)).recv_getAllVerificationAgents();
8108
        return (new Client(prot)).recv_getAllVerificationAgents();
8042
      }
8109
      }
8043
    }
8110
    }
8044
 
8111
 
-
 
8112
    public void getAllAttributesForOrderId(long orderId, org.apache.thrift.async.AsyncMethodCallback<getAllAttributesForOrderId_call> resultHandler) throws org.apache.thrift.TException {
-
 
8113
      checkReady();
-
 
8114
      getAllAttributesForOrderId_call method_call = new getAllAttributesForOrderId_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
8115
      this.___currentMethod = method_call;
-
 
8116
      ___manager.call(method_call);
-
 
8117
    }
-
 
8118
 
-
 
8119
    public static class getAllAttributesForOrderId_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
8120
      private long orderId;
-
 
8121
      public getAllAttributesForOrderId_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getAllAttributesForOrderId_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 {
-
 
8122
        super(client, protocolFactory, transport, resultHandler, false);
-
 
8123
        this.orderId = orderId;
-
 
8124
      }
-
 
8125
 
-
 
8126
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
8127
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAttributesForOrderId", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
8128
        getAllAttributesForOrderId_args args = new getAllAttributesForOrderId_args();
-
 
8129
        args.setOrderId(orderId);
-
 
8130
        args.write(prot);
-
 
8131
        prot.writeMessageEnd();
-
 
8132
      }
-
 
8133
 
-
 
8134
      public List<Attribute> getResult() throws org.apache.thrift.TException {
-
 
8135
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
8136
          throw new IllegalStateException("Method call not finished!");
-
 
8137
        }
-
 
8138
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
8139
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
8140
        return (new Client(prot)).recv_getAllAttributesForOrderId();
-
 
8141
      }
-
 
8142
    }
-
 
8143
 
-
 
8144
    public void setOrderAttributeForTransaction(long transactionId, Attribute attribute, org.apache.thrift.async.AsyncMethodCallback<setOrderAttributeForTransaction_call> resultHandler) throws org.apache.thrift.TException {
-
 
8145
      checkReady();
-
 
8146
      setOrderAttributeForTransaction_call method_call = new setOrderAttributeForTransaction_call(transactionId, attribute, resultHandler, this, ___protocolFactory, ___transport);
-
 
8147
      this.___currentMethod = method_call;
-
 
8148
      ___manager.call(method_call);
-
 
8149
    }
-
 
8150
 
-
 
8151
    public static class setOrderAttributeForTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
8152
      private long transactionId;
-
 
8153
      private Attribute attribute;
-
 
8154
      public setOrderAttributeForTransaction_call(long transactionId, Attribute attribute, org.apache.thrift.async.AsyncMethodCallback<setOrderAttributeForTransaction_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 {
-
 
8155
        super(client, protocolFactory, transport, resultHandler, false);
-
 
8156
        this.transactionId = transactionId;
-
 
8157
        this.attribute = attribute;
-
 
8158
      }
-
 
8159
 
-
 
8160
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
8161
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setOrderAttributeForTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
8162
        setOrderAttributeForTransaction_args args = new setOrderAttributeForTransaction_args();
-
 
8163
        args.setTransactionId(transactionId);
-
 
8164
        args.setAttribute(attribute);
-
 
8165
        args.write(prot);
-
 
8166
        prot.writeMessageEnd();
-
 
8167
      }
-
 
8168
 
-
 
8169
      public void getResult() throws org.apache.thrift.TException {
-
 
8170
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
8171
          throw new IllegalStateException("Method call not finished!");
-
 
8172
        }
-
 
8173
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
8174
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
8175
        (new Client(prot)).recv_setOrderAttributeForTransaction();
-
 
8176
      }
-
 
8177
    }
-
 
8178
 
8045
  }
8179
  }
8046
 
8180
 
8047
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
8181
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
8048
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
8182
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
8049
    public Processor(I iface) {
8183
    public Processor(I iface) {
Line 8168... Line 8302...
8168
      processMap.put("updateCODAgent", new updateCODAgent());
8302
      processMap.put("updateCODAgent", new updateCODAgent());
8169
      processMap.put("updateOrderAsPaidToVendor", new updateOrderAsPaidToVendor());
8303
      processMap.put("updateOrderAsPaidToVendor", new updateOrderAsPaidToVendor());
8170
      processMap.put("updateOrderOnlyAsPaidToVendor", new updateOrderOnlyAsPaidToVendor());
8304
      processMap.put("updateOrderOnlyAsPaidToVendor", new updateOrderOnlyAsPaidToVendor());
8171
      processMap.put("getRefundedOrdersMarkedPaid", new getRefundedOrdersMarkedPaid());
8305
      processMap.put("getRefundedOrdersMarkedPaid", new getRefundedOrdersMarkedPaid());
8172
      processMap.put("getAllVerificationAgents", new getAllVerificationAgents());
8306
      processMap.put("getAllVerificationAgents", new getAllVerificationAgents());
-
 
8307
      processMap.put("getAllAttributesForOrderId", new getAllAttributesForOrderId());
-
 
8308
      processMap.put("setOrderAttributeForTransaction", new setOrderAttributeForTransaction());
8173
      return processMap;
8309
      return processMap;
8174
    }
8310
    }
8175
 
8311
 
8176
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
8312
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
8177
      public createTransaction() {
8313
      public createTransaction() {
Line 8284... Line 8420...
8284
      }
8420
      }
8285
 
8421
 
8286
      protected changeTransactionStatus_result getResult(I iface, changeTransactionStatus_args args) throws org.apache.thrift.TException {
8422
      protected changeTransactionStatus_result getResult(I iface, changeTransactionStatus_args args) throws org.apache.thrift.TException {
8287
        changeTransactionStatus_result result = new changeTransactionStatus_result();
8423
        changeTransactionStatus_result result = new changeTransactionStatus_result();
8288
        try {
8424
        try {
8289
          result.success = iface.changeTransactionStatus(args.transactionId, args.status, args.description, args.selfPickup);
8425
          result.success = iface.changeTransactionStatus(args.transactionId, args.status, args.description, args.pickUp, args.orderType);
8290
          result.setSuccessIsSet(true);
8426
          result.setSuccessIsSet(true);
8291
        } catch (TransactionServiceException ex) {
8427
        } catch (TransactionServiceException ex) {
8292
          result.ex = ex;
8428
          result.ex = ex;
8293
        }
8429
        }
8294
        return result;
8430
        return result;
Line 10396... Line 10532...
10396
        result.success = iface.getAllVerificationAgents(args.minOrderId, args.maxOrderId);
10532
        result.success = iface.getAllVerificationAgents(args.minOrderId, args.maxOrderId);
10397
        return result;
10533
        return result;
10398
      }
10534
      }
10399
    }
10535
    }
10400
 
10536
 
-
 
10537
    private static class getAllAttributesForOrderId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAttributesForOrderId_args> {
-
 
10538
      public getAllAttributesForOrderId() {
-
 
10539
        super("getAllAttributesForOrderId");
-
 
10540
      }
-
 
10541
 
-
 
10542
      protected getAllAttributesForOrderId_args getEmptyArgsInstance() {
-
 
10543
        return new getAllAttributesForOrderId_args();
-
 
10544
      }
-
 
10545
 
-
 
10546
      protected getAllAttributesForOrderId_result getResult(I iface, getAllAttributesForOrderId_args args) throws org.apache.thrift.TException {
-
 
10547
        getAllAttributesForOrderId_result result = new getAllAttributesForOrderId_result();
-
 
10548
        result.success = iface.getAllAttributesForOrderId(args.orderId);
-
 
10549
        return result;
-
 
10550
      }
-
 
10551
    }
-
 
10552
 
-
 
10553
    private static class setOrderAttributeForTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setOrderAttributeForTransaction_args> {
-
 
10554
      public setOrderAttributeForTransaction() {
-
 
10555
        super("setOrderAttributeForTransaction");
-
 
10556
      }
-
 
10557
 
-
 
10558
      protected setOrderAttributeForTransaction_args getEmptyArgsInstance() {
-
 
10559
        return new setOrderAttributeForTransaction_args();
-
 
10560
      }
-
 
10561
 
-
 
10562
      protected setOrderAttributeForTransaction_result getResult(I iface, setOrderAttributeForTransaction_args args) throws org.apache.thrift.TException {
-
 
10563
        setOrderAttributeForTransaction_result result = new setOrderAttributeForTransaction_result();
-
 
10564
        iface.setOrderAttributeForTransaction(args.transactionId, args.attribute);
-
 
10565
        return result;
-
 
10566
      }
-
 
10567
    }
-
 
10568
 
10401
  }
10569
  }
10402
 
10570
 
10403
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
10571
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
10404
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
10572
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
10405
 
10573
 
Line 14135... Line 14303...
14135
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeTransactionStatus_args");
14303
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeTransactionStatus_args");
14136
 
14304
 
14137
    private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);
14305
    private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);
14138
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)2);
14306
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)2);
14139
    private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)3);
14307
    private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)3);
14140
    private static final org.apache.thrift.protocol.TField SELF_PICKUP_FIELD_DESC = new org.apache.thrift.protocol.TField("selfPickup", org.apache.thrift.protocol.TType.BOOL, (short)4);
14308
    private static final org.apache.thrift.protocol.TField PICK_UP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickUp", org.apache.thrift.protocol.TType.I64, (short)4);
-
 
14309
    private static final org.apache.thrift.protocol.TField ORDER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("orderType", org.apache.thrift.protocol.TType.I32, (short)5);
14141
 
14310
 
14142
    private long transactionId; // required
14311
    private long transactionId; // required
14143
    private TransactionStatus status; // required
14312
    private TransactionStatus status; // required
14144
    private String description; // required
14313
    private String description; // required
14145
    private boolean selfPickup; // required
14314
    private long pickUp; // required
-
 
14315
    private OrderType orderType; // required
14146
 
14316
 
14147
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14317
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14148
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14318
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14149
      TRANSACTION_ID((short)1, "transactionId"),
14319
      TRANSACTION_ID((short)1, "transactionId"),
14150
      /**
14320
      /**
14151
       * 
14321
       * 
14152
       * @see TransactionStatus
14322
       * @see TransactionStatus
14153
       */
14323
       */
14154
      STATUS((short)2, "status"),
14324
      STATUS((short)2, "status"),
14155
      DESCRIPTION((short)3, "description"),
14325
      DESCRIPTION((short)3, "description"),
14156
      SELF_PICKUP((short)4, "selfPickup");
14326
      PICK_UP((short)4, "pickUp"),
-
 
14327
      /**
-
 
14328
       * 
-
 
14329
       * @see OrderType
-
 
14330
       */
-
 
14331
      ORDER_TYPE((short)5, "orderType");
14157
 
14332
 
14158
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14333
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14159
 
14334
 
14160
      static {
14335
      static {
14161
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14336
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 14172... Line 14347...
14172
            return TRANSACTION_ID;
14347
            return TRANSACTION_ID;
14173
          case 2: // STATUS
14348
          case 2: // STATUS
14174
            return STATUS;
14349
            return STATUS;
14175
          case 3: // DESCRIPTION
14350
          case 3: // DESCRIPTION
14176
            return DESCRIPTION;
14351
            return DESCRIPTION;
14177
          case 4: // SELF_PICKUP
14352
          case 4: // PICK_UP
14178
            return SELF_PICKUP;
14353
            return PICK_UP;
-
 
14354
          case 5: // ORDER_TYPE
-
 
14355
            return ORDER_TYPE;
14179
          default:
14356
          default:
14180
            return null;
14357
            return null;
14181
        }
14358
        }
14182
      }
14359
      }
14183
 
14360
 
Line 14215... Line 14392...
14215
      }
14392
      }
14216
    }
14393
    }
14217
 
14394
 
14218
    // isset id assignments
14395
    // isset id assignments
14219
    private static final int __TRANSACTIONID_ISSET_ID = 0;
14396
    private static final int __TRANSACTIONID_ISSET_ID = 0;
14220
    private static final int __SELFPICKUP_ISSET_ID = 1;
14397
    private static final int __PICKUP_ISSET_ID = 1;
14221
    private BitSet __isset_bit_vector = new BitSet(2);
14398
    private BitSet __isset_bit_vector = new BitSet(2);
14222
 
14399
 
14223
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14400
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14224
    static {
14401
    static {
14225
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14402
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
Line 14227... Line 14404...
14227
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14404
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14228
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14405
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14229
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));
14406
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));
14230
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14407
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14231
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14408
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14232
      tmpMap.put(_Fields.SELF_PICKUP, new org.apache.thrift.meta_data.FieldMetaData("selfPickup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14409
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14233
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14410
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
14411
      tmpMap.put(_Fields.ORDER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("orderType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
14412
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderType.class)));
14234
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14413
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14235
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeTransactionStatus_args.class, metaDataMap);
14414
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeTransactionStatus_args.class, metaDataMap);
14236
    }
14415
    }
14237
 
14416
 
14238
    public changeTransactionStatus_args() {
14417
    public changeTransactionStatus_args() {
Line 14240... Line 14419...
14240
 
14419
 
14241
    public changeTransactionStatus_args(
14420
    public changeTransactionStatus_args(
14242
      long transactionId,
14421
      long transactionId,
14243
      TransactionStatus status,
14422
      TransactionStatus status,
14244
      String description,
14423
      String description,
14245
      boolean selfPickup)
14424
      long pickUp,
-
 
14425
      OrderType orderType)
14246
    {
14426
    {
14247
      this();
14427
      this();
14248
      this.transactionId = transactionId;
14428
      this.transactionId = transactionId;
14249
      setTransactionIdIsSet(true);
14429
      setTransactionIdIsSet(true);
14250
      this.status = status;
14430
      this.status = status;
14251
      this.description = description;
14431
      this.description = description;
14252
      this.selfPickup = selfPickup;
14432
      this.pickUp = pickUp;
14253
      setSelfPickupIsSet(true);
14433
      setPickUpIsSet(true);
-
 
14434
      this.orderType = orderType;
14254
    }
14435
    }
14255
 
14436
 
14256
    /**
14437
    /**
14257
     * Performs a deep copy on <i>other</i>.
14438
     * Performs a deep copy on <i>other</i>.
14258
     */
14439
     */
Line 14264... Line 14445...
14264
        this.status = other.status;
14445
        this.status = other.status;
14265
      }
14446
      }
14266
      if (other.isSetDescription()) {
14447
      if (other.isSetDescription()) {
14267
        this.description = other.description;
14448
        this.description = other.description;
14268
      }
14449
      }
14269
      this.selfPickup = other.selfPickup;
14450
      this.pickUp = other.pickUp;
-
 
14451
      if (other.isSetOrderType()) {
-
 
14452
        this.orderType = other.orderType;
-
 
14453
      }
14270
    }
14454
    }
14271
 
14455
 
14272
    public changeTransactionStatus_args deepCopy() {
14456
    public changeTransactionStatus_args deepCopy() {
14273
      return new changeTransactionStatus_args(this);
14457
      return new changeTransactionStatus_args(this);
14274
    }
14458
    }
Line 14277... Line 14461...
14277
    public void clear() {
14461
    public void clear() {
14278
      setTransactionIdIsSet(false);
14462
      setTransactionIdIsSet(false);
14279
      this.transactionId = 0;
14463
      this.transactionId = 0;
14280
      this.status = null;
14464
      this.status = null;
14281
      this.description = null;
14465
      this.description = null;
14282
      setSelfPickupIsSet(false);
14466
      setPickUpIsSet(false);
14283
      this.selfPickup = false;
14467
      this.pickUp = 0;
-
 
14468
      this.orderType = null;
14284
    }
14469
    }
14285
 
14470
 
14286
    public long getTransactionId() {
14471
    public long getTransactionId() {
14287
      return this.transactionId;
14472
      return this.transactionId;
14288
    }
14473
    }
Line 14357... Line 14542...
14357
      if (!value) {
14542
      if (!value) {
14358
        this.description = null;
14543
        this.description = null;
14359
      }
14544
      }
14360
    }
14545
    }
14361
 
14546
 
-
 
14547
    public long getPickUp() {
-
 
14548
      return this.pickUp;
-
 
14549
    }
-
 
14550
 
-
 
14551
    public void setPickUp(long pickUp) {
-
 
14552
      this.pickUp = pickUp;
-
 
14553
      setPickUpIsSet(true);
-
 
14554
    }
-
 
14555
 
-
 
14556
    public void unsetPickUp() {
-
 
14557
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
-
 
14558
    }
-
 
14559
 
-
 
14560
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
14362
    public boolean isSelfPickup() {
14561
    public boolean isSetPickUp() {
-
 
14562
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
-
 
14563
    }
-
 
14564
 
-
 
14565
    public void setPickUpIsSet(boolean value) {
-
 
14566
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
-
 
14567
    }
-
 
14568
 
-
 
14569
    /**
-
 
14570
     * 
-
 
14571
     * @see OrderType
-
 
14572
     */
-
 
14573
    public OrderType getOrderType() {
14363
      return this.selfPickup;
14574
      return this.orderType;
14364
    }
14575
    }
14365
 
14576
 
-
 
14577
    /**
-
 
14578
     * 
-
 
14579
     * @see OrderType
-
 
14580
     */
14366
    public void setSelfPickup(boolean selfPickup) {
14581
    public void setOrderType(OrderType orderType) {
14367
      this.selfPickup = selfPickup;
14582
      this.orderType = orderType;
14368
      setSelfPickupIsSet(true);
-
 
14369
    }
14583
    }
14370
 
14584
 
14371
    public void unsetSelfPickup() {
14585
    public void unsetOrderType() {
14372
      __isset_bit_vector.clear(__SELFPICKUP_ISSET_ID);
14586
      this.orderType = null;
14373
    }
14587
    }
14374
 
14588
 
14375
    /** Returns true if field selfPickup is set (has been assigned a value) and false otherwise */
14589
    /** Returns true if field orderType is set (has been assigned a value) and false otherwise */
14376
    public boolean isSetSelfPickup() {
14590
    public boolean isSetOrderType() {
14377
      return __isset_bit_vector.get(__SELFPICKUP_ISSET_ID);
14591
      return this.orderType != null;
14378
    }
14592
    }
14379
 
14593
 
14380
    public void setSelfPickupIsSet(boolean value) {
14594
    public void setOrderTypeIsSet(boolean value) {
-
 
14595
      if (!value) {
14381
      __isset_bit_vector.set(__SELFPICKUP_ISSET_ID, value);
14596
        this.orderType = null;
-
 
14597
      }
14382
    }
14598
    }
14383
 
14599
 
14384
    public void setFieldValue(_Fields field, Object value) {
14600
    public void setFieldValue(_Fields field, Object value) {
14385
      switch (field) {
14601
      switch (field) {
14386
      case TRANSACTION_ID:
14602
      case TRANSACTION_ID:
Line 14405... Line 14621...
14405
        } else {
14621
        } else {
14406
          setDescription((String)value);
14622
          setDescription((String)value);
14407
        }
14623
        }
14408
        break;
14624
        break;
14409
 
14625
 
14410
      case SELF_PICKUP:
14626
      case PICK_UP:
-
 
14627
        if (value == null) {
-
 
14628
          unsetPickUp();
-
 
14629
        } else {
-
 
14630
          setPickUp((Long)value);
-
 
14631
        }
-
 
14632
        break;
-
 
14633
 
-
 
14634
      case ORDER_TYPE:
14411
        if (value == null) {
14635
        if (value == null) {
14412
          unsetSelfPickup();
14636
          unsetOrderType();
14413
        } else {
14637
        } else {
14414
          setSelfPickup((Boolean)value);
14638
          setOrderType((OrderType)value);
14415
        }
14639
        }
14416
        break;
14640
        break;
14417
 
14641
 
14418
      }
14642
      }
14419
    }
14643
    }
Line 14427... Line 14651...
14427
        return getStatus();
14651
        return getStatus();
14428
 
14652
 
14429
      case DESCRIPTION:
14653
      case DESCRIPTION:
14430
        return getDescription();
14654
        return getDescription();
14431
 
14655
 
14432
      case SELF_PICKUP:
14656
      case PICK_UP:
14433
        return Boolean.valueOf(isSelfPickup());
14657
        return Long.valueOf(getPickUp());
-
 
14658
 
-
 
14659
      case ORDER_TYPE:
-
 
14660
        return getOrderType();
14434
 
14661
 
14435
      }
14662
      }
14436
      throw new IllegalStateException();
14663
      throw new IllegalStateException();
14437
    }
14664
    }
14438
 
14665
 
Line 14447... Line 14674...
14447
        return isSetTransactionId();
14674
        return isSetTransactionId();
14448
      case STATUS:
14675
      case STATUS:
14449
        return isSetStatus();
14676
        return isSetStatus();
14450
      case DESCRIPTION:
14677
      case DESCRIPTION:
14451
        return isSetDescription();
14678
        return isSetDescription();
14452
      case SELF_PICKUP:
14679
      case PICK_UP:
14453
        return isSetSelfPickup();
14680
        return isSetPickUp();
-
 
14681
      case ORDER_TYPE:
-
 
14682
        return isSetOrderType();
14454
      }
14683
      }
14455
      throw new IllegalStateException();
14684
      throw new IllegalStateException();
14456
    }
14685
    }
14457
 
14686
 
14458
    @Override
14687
    @Override
Line 14493... Line 14722...
14493
          return false;
14722
          return false;
14494
        if (!this.description.equals(that.description))
14723
        if (!this.description.equals(that.description))
14495
          return false;
14724
          return false;
14496
      }
14725
      }
14497
 
14726
 
14498
      boolean this_present_selfPickup = true;
14727
      boolean this_present_pickUp = true;
14499
      boolean that_present_selfPickup = true;
14728
      boolean that_present_pickUp = true;
14500
      if (this_present_selfPickup || that_present_selfPickup) {
14729
      if (this_present_pickUp || that_present_pickUp) {
14501
        if (!(this_present_selfPickup && that_present_selfPickup))
14730
        if (!(this_present_pickUp && that_present_pickUp))
-
 
14731
          return false;
-
 
14732
        if (this.pickUp != that.pickUp)
-
 
14733
          return false;
-
 
14734
      }
-
 
14735
 
-
 
14736
      boolean this_present_orderType = true && this.isSetOrderType();
-
 
14737
      boolean that_present_orderType = true && that.isSetOrderType();
-
 
14738
      if (this_present_orderType || that_present_orderType) {
-
 
14739
        if (!(this_present_orderType && that_present_orderType))
14502
          return false;
14740
          return false;
14503
        if (this.selfPickup != that.selfPickup)
14741
        if (!this.orderType.equals(that.orderType))
14504
          return false;
14742
          return false;
14505
      }
14743
      }
14506
 
14744
 
14507
      return true;
14745
      return true;
14508
    }
14746
    }
Line 14548... Line 14786...
14548
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
14786
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
14549
        if (lastComparison != 0) {
14787
        if (lastComparison != 0) {
14550
          return lastComparison;
14788
          return lastComparison;
14551
        }
14789
        }
14552
      }
14790
      }
14553
      lastComparison = Boolean.valueOf(isSetSelfPickup()).compareTo(typedOther.isSetSelfPickup());
14791
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
14554
      if (lastComparison != 0) {
14792
      if (lastComparison != 0) {
14555
        return lastComparison;
14793
        return lastComparison;
14556
      }
14794
      }
14557
      if (isSetSelfPickup()) {
14795
      if (isSetPickUp()) {
14558
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.selfPickup, typedOther.selfPickup);
14796
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
-
 
14797
        if (lastComparison != 0) {
-
 
14798
          return lastComparison;
-
 
14799
        }
-
 
14800
      }
-
 
14801
      lastComparison = Boolean.valueOf(isSetOrderType()).compareTo(typedOther.isSetOrderType());
-
 
14802
      if (lastComparison != 0) {
-
 
14803
        return lastComparison;
-
 
14804
      }
-
 
14805
      if (isSetOrderType()) {
-
 
14806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderType, typedOther.orderType);
14559
        if (lastComparison != 0) {
14807
        if (lastComparison != 0) {
14560
          return lastComparison;
14808
          return lastComparison;
14561
        }
14809
        }
14562
      }
14810
      }
14563
      return 0;
14811
      return 0;
Line 14597... Line 14845...
14597
              this.description = iprot.readString();
14845
              this.description = iprot.readString();
14598
            } else { 
14846
            } else { 
14599
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14847
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14600
            }
14848
            }
14601
            break;
14849
            break;
14602
          case 4: // SELF_PICKUP
14850
          case 4: // PICK_UP
14603
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14851
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14604
              this.selfPickup = iprot.readBool();
14852
              this.pickUp = iprot.readI64();
14605
              setSelfPickupIsSet(true);
14853
              setPickUpIsSet(true);
-
 
14854
            } else { 
-
 
14855
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14856
            }
-
 
14857
            break;
-
 
14858
          case 5: // ORDER_TYPE
-
 
14859
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
14860
              this.orderType = OrderType.findByValue(iprot.readI32());
14606
            } else { 
14861
            } else { 
14607
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14862
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14608
            }
14863
            }
14609
            break;
14864
            break;
14610
          default:
14865
          default:
Line 14631... Line 14886...
14631
      if (this.description != null) {
14886
      if (this.description != null) {
14632
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
14887
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
14633
        oprot.writeString(this.description);
14888
        oprot.writeString(this.description);
14634
        oprot.writeFieldEnd();
14889
        oprot.writeFieldEnd();
14635
      }
14890
      }
14636
      oprot.writeFieldBegin(SELF_PICKUP_FIELD_DESC);
14891
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
14637
      oprot.writeBool(this.selfPickup);
14892
      oprot.writeI64(this.pickUp);
14638
      oprot.writeFieldEnd();
14893
      oprot.writeFieldEnd();
-
 
14894
      if (this.orderType != null) {
-
 
14895
        oprot.writeFieldBegin(ORDER_TYPE_FIELD_DESC);
-
 
14896
        oprot.writeI32(this.orderType.getValue());
-
 
14897
        oprot.writeFieldEnd();
-
 
14898
      }
14639
      oprot.writeFieldStop();
14899
      oprot.writeFieldStop();
14640
      oprot.writeStructEnd();
14900
      oprot.writeStructEnd();
14641
    }
14901
    }
14642
 
14902
 
14643
    @Override
14903
    @Override
Line 14663... Line 14923...
14663
      } else {
14923
      } else {
14664
        sb.append(this.description);
14924
        sb.append(this.description);
14665
      }
14925
      }
14666
      first = false;
14926
      first = false;
14667
      if (!first) sb.append(", ");
14927
      if (!first) sb.append(", ");
14668
      sb.append("selfPickup:");
14928
      sb.append("pickUp:");
14669
      sb.append(this.selfPickup);
14929
      sb.append(this.pickUp);
-
 
14930
      first = false;
-
 
14931
      if (!first) sb.append(", ");
-
 
14932
      sb.append("orderType:");
-
 
14933
      if (this.orderType == null) {
-
 
14934
        sb.append("null");
-
 
14935
      } else {
-
 
14936
        sb.append(this.orderType);
-
 
14937
      }
14670
      first = false;
14938
      first = false;
14671
      sb.append(")");
14939
      sb.append(")");
14672
      return sb.toString();
14940
      return sb.toString();
14673
    }
14941
    }
14674
 
14942
 
Line 95462... Line 95730...
95462
      sb.append(")");
95730
      sb.append(")");
95463
      return sb.toString();
95731
      return sb.toString();
95464
    }
95732
    }
95465
 
95733
 
95466
    public void validate() throws org.apache.thrift.TException {
95734
    public void validate() throws org.apache.thrift.TException {
-
 
95735
      // check for required fields
-
 
95736
    }
-
 
95737
 
-
 
95738
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
95739
      try {
-
 
95740
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
95741
      } catch (org.apache.thrift.TException te) {
-
 
95742
        throw new java.io.IOException(te);
-
 
95743
      }
-
 
95744
    }
-
 
95745
 
-
 
95746
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
95747
      try {
-
 
95748
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
95749
      } catch (org.apache.thrift.TException te) {
-
 
95750
        throw new java.io.IOException(te);
-
 
95751
      }
-
 
95752
    }
-
 
95753
 
-
 
95754
  }
-
 
95755
 
-
 
95756
  public static class getAllAttributesForOrderId_args implements org.apache.thrift.TBase<getAllAttributesForOrderId_args, getAllAttributesForOrderId_args._Fields>, java.io.Serializable, Cloneable   {
-
 
95757
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAttributesForOrderId_args");
-
 
95758
 
-
 
95759
    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);
-
 
95760
 
-
 
95761
    private long orderId; // required
-
 
95762
 
-
 
95763
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
95764
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
95765
      ORDER_ID((short)1, "orderId");
-
 
95766
 
-
 
95767
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
95768
 
-
 
95769
      static {
-
 
95770
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
95771
          byName.put(field.getFieldName(), field);
-
 
95772
        }
-
 
95773
      }
-
 
95774
 
-
 
95775
      /**
-
 
95776
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
95777
       */
-
 
95778
      public static _Fields findByThriftId(int fieldId) {
-
 
95779
        switch(fieldId) {
-
 
95780
          case 1: // ORDER_ID
-
 
95781
            return ORDER_ID;
-
 
95782
          default:
-
 
95783
            return null;
-
 
95784
        }
-
 
95785
      }
-
 
95786
 
-
 
95787
      /**
-
 
95788
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
95789
       * if it is not found.
-
 
95790
       */
-
 
95791
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
95792
        _Fields fields = findByThriftId(fieldId);
-
 
95793
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
95794
        return fields;
-
 
95795
      }
-
 
95796
 
-
 
95797
      /**
-
 
95798
       * Find the _Fields constant that matches name, or null if its not found.
-
 
95799
       */
-
 
95800
      public static _Fields findByName(String name) {
-
 
95801
        return byName.get(name);
-
 
95802
      }
-
 
95803
 
-
 
95804
      private final short _thriftId;
-
 
95805
      private final String _fieldName;
-
 
95806
 
-
 
95807
      _Fields(short thriftId, String fieldName) {
-
 
95808
        _thriftId = thriftId;
-
 
95809
        _fieldName = fieldName;
-
 
95810
      }
-
 
95811
 
-
 
95812
      public short getThriftFieldId() {
-
 
95813
        return _thriftId;
-
 
95814
      }
-
 
95815
 
-
 
95816
      public String getFieldName() {
-
 
95817
        return _fieldName;
-
 
95818
      }
-
 
95819
    }
-
 
95820
 
-
 
95821
    // isset id assignments
-
 
95822
    private static final int __ORDERID_ISSET_ID = 0;
-
 
95823
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
95824
 
-
 
95825
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
95826
    static {
-
 
95827
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
95828
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
95829
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
95830
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
95831
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAttributesForOrderId_args.class, metaDataMap);
-
 
95832
    }
-
 
95833
 
-
 
95834
    public getAllAttributesForOrderId_args() {
-
 
95835
    }
-
 
95836
 
-
 
95837
    public getAllAttributesForOrderId_args(
-
 
95838
      long orderId)
-
 
95839
    {
-
 
95840
      this();
-
 
95841
      this.orderId = orderId;
-
 
95842
      setOrderIdIsSet(true);
-
 
95843
    }
-
 
95844
 
-
 
95845
    /**
-
 
95846
     * Performs a deep copy on <i>other</i>.
-
 
95847
     */
-
 
95848
    public getAllAttributesForOrderId_args(getAllAttributesForOrderId_args other) {
-
 
95849
      __isset_bit_vector.clear();
-
 
95850
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
95851
      this.orderId = other.orderId;
-
 
95852
    }
-
 
95853
 
-
 
95854
    public getAllAttributesForOrderId_args deepCopy() {
-
 
95855
      return new getAllAttributesForOrderId_args(this);
-
 
95856
    }
-
 
95857
 
-
 
95858
    @Override
-
 
95859
    public void clear() {
-
 
95860
      setOrderIdIsSet(false);
-
 
95861
      this.orderId = 0;
-
 
95862
    }
-
 
95863
 
-
 
95864
    public long getOrderId() {
-
 
95865
      return this.orderId;
-
 
95866
    }
-
 
95867
 
-
 
95868
    public void setOrderId(long orderId) {
-
 
95869
      this.orderId = orderId;
-
 
95870
      setOrderIdIsSet(true);
-
 
95871
    }
-
 
95872
 
-
 
95873
    public void unsetOrderId() {
-
 
95874
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
95875
    }
-
 
95876
 
-
 
95877
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
95878
    public boolean isSetOrderId() {
-
 
95879
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
95880
    }
-
 
95881
 
-
 
95882
    public void setOrderIdIsSet(boolean value) {
-
 
95883
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
95884
    }
-
 
95885
 
-
 
95886
    public void setFieldValue(_Fields field, Object value) {
-
 
95887
      switch (field) {
-
 
95888
      case ORDER_ID:
-
 
95889
        if (value == null) {
-
 
95890
          unsetOrderId();
-
 
95891
        } else {
-
 
95892
          setOrderId((Long)value);
-
 
95893
        }
-
 
95894
        break;
-
 
95895
 
-
 
95896
      }
-
 
95897
    }
-
 
95898
 
-
 
95899
    public Object getFieldValue(_Fields field) {
-
 
95900
      switch (field) {
-
 
95901
      case ORDER_ID:
-
 
95902
        return Long.valueOf(getOrderId());
-
 
95903
 
-
 
95904
      }
-
 
95905
      throw new IllegalStateException();
-
 
95906
    }
-
 
95907
 
-
 
95908
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
95909
    public boolean isSet(_Fields field) {
-
 
95910
      if (field == null) {
-
 
95911
        throw new IllegalArgumentException();
-
 
95912
      }
-
 
95913
 
-
 
95914
      switch (field) {
-
 
95915
      case ORDER_ID:
-
 
95916
        return isSetOrderId();
-
 
95917
      }
-
 
95918
      throw new IllegalStateException();
-
 
95919
    }
-
 
95920
 
-
 
95921
    @Override
-
 
95922
    public boolean equals(Object that) {
-
 
95923
      if (that == null)
-
 
95924
        return false;
-
 
95925
      if (that instanceof getAllAttributesForOrderId_args)
-
 
95926
        return this.equals((getAllAttributesForOrderId_args)that);
-
 
95927
      return false;
-
 
95928
    }
-
 
95929
 
-
 
95930
    public boolean equals(getAllAttributesForOrderId_args that) {
-
 
95931
      if (that == null)
-
 
95932
        return false;
-
 
95933
 
-
 
95934
      boolean this_present_orderId = true;
-
 
95935
      boolean that_present_orderId = true;
-
 
95936
      if (this_present_orderId || that_present_orderId) {
-
 
95937
        if (!(this_present_orderId && that_present_orderId))
-
 
95938
          return false;
-
 
95939
        if (this.orderId != that.orderId)
-
 
95940
          return false;
-
 
95941
      }
-
 
95942
 
-
 
95943
      return true;
-
 
95944
    }
-
 
95945
 
-
 
95946
    @Override
-
 
95947
    public int hashCode() {
-
 
95948
      return 0;
-
 
95949
    }
-
 
95950
 
-
 
95951
    public int compareTo(getAllAttributesForOrderId_args other) {
-
 
95952
      if (!getClass().equals(other.getClass())) {
-
 
95953
        return getClass().getName().compareTo(other.getClass().getName());
-
 
95954
      }
-
 
95955
 
-
 
95956
      int lastComparison = 0;
-
 
95957
      getAllAttributesForOrderId_args typedOther = (getAllAttributesForOrderId_args)other;
-
 
95958
 
-
 
95959
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
95960
      if (lastComparison != 0) {
-
 
95961
        return lastComparison;
-
 
95962
      }
-
 
95963
      if (isSetOrderId()) {
-
 
95964
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
95965
        if (lastComparison != 0) {
-
 
95966
          return lastComparison;
-
 
95967
        }
-
 
95968
      }
-
 
95969
      return 0;
-
 
95970
    }
-
 
95971
 
-
 
95972
    public _Fields fieldForId(int fieldId) {
-
 
95973
      return _Fields.findByThriftId(fieldId);
-
 
95974
    }
-
 
95975
 
-
 
95976
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
95977
      org.apache.thrift.protocol.TField field;
-
 
95978
      iprot.readStructBegin();
-
 
95979
      while (true)
-
 
95980
      {
-
 
95981
        field = iprot.readFieldBegin();
-
 
95982
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
95983
          break;
-
 
95984
        }
-
 
95985
        switch (field.id) {
-
 
95986
          case 1: // ORDER_ID
-
 
95987
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
95988
              this.orderId = iprot.readI64();
-
 
95989
              setOrderIdIsSet(true);
-
 
95990
            } else { 
-
 
95991
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
95992
            }
-
 
95993
            break;
-
 
95994
          default:
-
 
95995
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
95996
        }
-
 
95997
        iprot.readFieldEnd();
-
 
95998
      }
-
 
95999
      iprot.readStructEnd();
-
 
96000
      validate();
-
 
96001
    }
-
 
96002
 
-
 
96003
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
96004
      validate();
-
 
96005
 
-
 
96006
      oprot.writeStructBegin(STRUCT_DESC);
-
 
96007
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
96008
      oprot.writeI64(this.orderId);
-
 
96009
      oprot.writeFieldEnd();
-
 
96010
      oprot.writeFieldStop();
-
 
96011
      oprot.writeStructEnd();
-
 
96012
    }
-
 
96013
 
-
 
96014
    @Override
-
 
96015
    public String toString() {
-
 
96016
      StringBuilder sb = new StringBuilder("getAllAttributesForOrderId_args(");
-
 
96017
      boolean first = true;
-
 
96018
 
-
 
96019
      sb.append("orderId:");
-
 
96020
      sb.append(this.orderId);
-
 
96021
      first = false;
-
 
96022
      sb.append(")");
-
 
96023
      return sb.toString();
-
 
96024
    }
-
 
96025
 
-
 
96026
    public void validate() throws org.apache.thrift.TException {
-
 
96027
      // check for required fields
-
 
96028
    }
-
 
96029
 
-
 
96030
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
96031
      try {
-
 
96032
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
96033
      } catch (org.apache.thrift.TException te) {
-
 
96034
        throw new java.io.IOException(te);
-
 
96035
      }
-
 
96036
    }
-
 
96037
 
-
 
96038
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
96039
      try {
-
 
96040
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
96041
        __isset_bit_vector = new BitSet(1);
-
 
96042
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
96043
      } catch (org.apache.thrift.TException te) {
-
 
96044
        throw new java.io.IOException(te);
-
 
96045
      }
-
 
96046
    }
-
 
96047
 
-
 
96048
  }
-
 
96049
 
-
 
96050
  public static class getAllAttributesForOrderId_result implements org.apache.thrift.TBase<getAllAttributesForOrderId_result, getAllAttributesForOrderId_result._Fields>, java.io.Serializable, Cloneable   {
-
 
96051
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAttributesForOrderId_result");
-
 
96052
 
-
 
96053
    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);
-
 
96054
 
-
 
96055
    private List<Attribute> success; // required
-
 
96056
 
-
 
96057
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
96058
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
96059
      SUCCESS((short)0, "success");
-
 
96060
 
-
 
96061
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
96062
 
-
 
96063
      static {
-
 
96064
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
96065
          byName.put(field.getFieldName(), field);
-
 
96066
        }
-
 
96067
      }
-
 
96068
 
-
 
96069
      /**
-
 
96070
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
96071
       */
-
 
96072
      public static _Fields findByThriftId(int fieldId) {
-
 
96073
        switch(fieldId) {
-
 
96074
          case 0: // SUCCESS
-
 
96075
            return SUCCESS;
-
 
96076
          default:
-
 
96077
            return null;
-
 
96078
        }
-
 
96079
      }
-
 
96080
 
-
 
96081
      /**
-
 
96082
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
96083
       * if it is not found.
-
 
96084
       */
-
 
96085
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
96086
        _Fields fields = findByThriftId(fieldId);
-
 
96087
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
96088
        return fields;
-
 
96089
      }
-
 
96090
 
-
 
96091
      /**
-
 
96092
       * Find the _Fields constant that matches name, or null if its not found.
-
 
96093
       */
-
 
96094
      public static _Fields findByName(String name) {
-
 
96095
        return byName.get(name);
-
 
96096
      }
-
 
96097
 
-
 
96098
      private final short _thriftId;
-
 
96099
      private final String _fieldName;
-
 
96100
 
-
 
96101
      _Fields(short thriftId, String fieldName) {
-
 
96102
        _thriftId = thriftId;
-
 
96103
        _fieldName = fieldName;
-
 
96104
      }
-
 
96105
 
-
 
96106
      public short getThriftFieldId() {
-
 
96107
        return _thriftId;
-
 
96108
      }
-
 
96109
 
-
 
96110
      public String getFieldName() {
-
 
96111
        return _fieldName;
-
 
96112
      }
-
 
96113
    }
-
 
96114
 
-
 
96115
    // isset id assignments
-
 
96116
 
-
 
96117
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
96118
    static {
-
 
96119
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
96120
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
96121
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
96122
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
-
 
96123
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
96124
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAttributesForOrderId_result.class, metaDataMap);
-
 
96125
    }
-
 
96126
 
-
 
96127
    public getAllAttributesForOrderId_result() {
-
 
96128
    }
-
 
96129
 
-
 
96130
    public getAllAttributesForOrderId_result(
-
 
96131
      List<Attribute> success)
-
 
96132
    {
-
 
96133
      this();
-
 
96134
      this.success = success;
-
 
96135
    }
-
 
96136
 
-
 
96137
    /**
-
 
96138
     * Performs a deep copy on <i>other</i>.
-
 
96139
     */
-
 
96140
    public getAllAttributesForOrderId_result(getAllAttributesForOrderId_result other) {
-
 
96141
      if (other.isSetSuccess()) {
-
 
96142
        List<Attribute> __this__success = new ArrayList<Attribute>();
-
 
96143
        for (Attribute other_element : other.success) {
-
 
96144
          __this__success.add(new Attribute(other_element));
-
 
96145
        }
-
 
96146
        this.success = __this__success;
-
 
96147
      }
-
 
96148
    }
-
 
96149
 
-
 
96150
    public getAllAttributesForOrderId_result deepCopy() {
-
 
96151
      return new getAllAttributesForOrderId_result(this);
-
 
96152
    }
-
 
96153
 
-
 
96154
    @Override
-
 
96155
    public void clear() {
-
 
96156
      this.success = null;
-
 
96157
    }
-
 
96158
 
-
 
96159
    public int getSuccessSize() {
-
 
96160
      return (this.success == null) ? 0 : this.success.size();
-
 
96161
    }
-
 
96162
 
-
 
96163
    public java.util.Iterator<Attribute> getSuccessIterator() {
-
 
96164
      return (this.success == null) ? null : this.success.iterator();
-
 
96165
    }
-
 
96166
 
-
 
96167
    public void addToSuccess(Attribute elem) {
-
 
96168
      if (this.success == null) {
-
 
96169
        this.success = new ArrayList<Attribute>();
-
 
96170
      }
-
 
96171
      this.success.add(elem);
-
 
96172
    }
-
 
96173
 
-
 
96174
    public List<Attribute> getSuccess() {
-
 
96175
      return this.success;
-
 
96176
    }
-
 
96177
 
-
 
96178
    public void setSuccess(List<Attribute> success) {
-
 
96179
      this.success = success;
-
 
96180
    }
-
 
96181
 
-
 
96182
    public void unsetSuccess() {
-
 
96183
      this.success = null;
-
 
96184
    }
-
 
96185
 
-
 
96186
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
96187
    public boolean isSetSuccess() {
-
 
96188
      return this.success != null;
-
 
96189
    }
-
 
96190
 
-
 
96191
    public void setSuccessIsSet(boolean value) {
-
 
96192
      if (!value) {
-
 
96193
        this.success = null;
-
 
96194
      }
-
 
96195
    }
-
 
96196
 
-
 
96197
    public void setFieldValue(_Fields field, Object value) {
-
 
96198
      switch (field) {
-
 
96199
      case SUCCESS:
-
 
96200
        if (value == null) {
-
 
96201
          unsetSuccess();
-
 
96202
        } else {
-
 
96203
          setSuccess((List<Attribute>)value);
-
 
96204
        }
-
 
96205
        break;
-
 
96206
 
-
 
96207
      }
-
 
96208
    }
-
 
96209
 
-
 
96210
    public Object getFieldValue(_Fields field) {
-
 
96211
      switch (field) {
-
 
96212
      case SUCCESS:
-
 
96213
        return getSuccess();
-
 
96214
 
-
 
96215
      }
-
 
96216
      throw new IllegalStateException();
-
 
96217
    }
-
 
96218
 
-
 
96219
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
96220
    public boolean isSet(_Fields field) {
-
 
96221
      if (field == null) {
-
 
96222
        throw new IllegalArgumentException();
-
 
96223
      }
-
 
96224
 
-
 
96225
      switch (field) {
-
 
96226
      case SUCCESS:
-
 
96227
        return isSetSuccess();
-
 
96228
      }
-
 
96229
      throw new IllegalStateException();
-
 
96230
    }
-
 
96231
 
-
 
96232
    @Override
-
 
96233
    public boolean equals(Object that) {
-
 
96234
      if (that == null)
-
 
96235
        return false;
-
 
96236
      if (that instanceof getAllAttributesForOrderId_result)
-
 
96237
        return this.equals((getAllAttributesForOrderId_result)that);
-
 
96238
      return false;
-
 
96239
    }
-
 
96240
 
-
 
96241
    public boolean equals(getAllAttributesForOrderId_result that) {
-
 
96242
      if (that == null)
-
 
96243
        return false;
-
 
96244
 
-
 
96245
      boolean this_present_success = true && this.isSetSuccess();
-
 
96246
      boolean that_present_success = true && that.isSetSuccess();
-
 
96247
      if (this_present_success || that_present_success) {
-
 
96248
        if (!(this_present_success && that_present_success))
-
 
96249
          return false;
-
 
96250
        if (!this.success.equals(that.success))
-
 
96251
          return false;
-
 
96252
      }
-
 
96253
 
-
 
96254
      return true;
-
 
96255
    }
-
 
96256
 
-
 
96257
    @Override
-
 
96258
    public int hashCode() {
-
 
96259
      return 0;
-
 
96260
    }
-
 
96261
 
-
 
96262
    public int compareTo(getAllAttributesForOrderId_result other) {
-
 
96263
      if (!getClass().equals(other.getClass())) {
-
 
96264
        return getClass().getName().compareTo(other.getClass().getName());
-
 
96265
      }
-
 
96266
 
-
 
96267
      int lastComparison = 0;
-
 
96268
      getAllAttributesForOrderId_result typedOther = (getAllAttributesForOrderId_result)other;
-
 
96269
 
-
 
96270
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
96271
      if (lastComparison != 0) {
-
 
96272
        return lastComparison;
-
 
96273
      }
-
 
96274
      if (isSetSuccess()) {
-
 
96275
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
96276
        if (lastComparison != 0) {
-
 
96277
          return lastComparison;
-
 
96278
        }
-
 
96279
      }
-
 
96280
      return 0;
-
 
96281
    }
-
 
96282
 
-
 
96283
    public _Fields fieldForId(int fieldId) {
-
 
96284
      return _Fields.findByThriftId(fieldId);
-
 
96285
    }
-
 
96286
 
-
 
96287
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
96288
      org.apache.thrift.protocol.TField field;
-
 
96289
      iprot.readStructBegin();
-
 
96290
      while (true)
-
 
96291
      {
-
 
96292
        field = iprot.readFieldBegin();
-
 
96293
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
96294
          break;
-
 
96295
        }
-
 
96296
        switch (field.id) {
-
 
96297
          case 0: // SUCCESS
-
 
96298
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
96299
              {
-
 
96300
                org.apache.thrift.protocol.TList _list316 = iprot.readListBegin();
-
 
96301
                this.success = new ArrayList<Attribute>(_list316.size);
-
 
96302
                for (int _i317 = 0; _i317 < _list316.size; ++_i317)
-
 
96303
                {
-
 
96304
                  Attribute _elem318; // required
-
 
96305
                  _elem318 = new Attribute();
-
 
96306
                  _elem318.read(iprot);
-
 
96307
                  this.success.add(_elem318);
-
 
96308
                }
-
 
96309
                iprot.readListEnd();
-
 
96310
              }
-
 
96311
            } else { 
-
 
96312
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
96313
            }
-
 
96314
            break;
-
 
96315
          default:
-
 
96316
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
96317
        }
-
 
96318
        iprot.readFieldEnd();
-
 
96319
      }
-
 
96320
      iprot.readStructEnd();
-
 
96321
      validate();
-
 
96322
    }
-
 
96323
 
-
 
96324
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
96325
      oprot.writeStructBegin(STRUCT_DESC);
-
 
96326
 
-
 
96327
      if (this.isSetSuccess()) {
-
 
96328
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
96329
        {
-
 
96330
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
96331
          for (Attribute _iter319 : this.success)
-
 
96332
          {
-
 
96333
            _iter319.write(oprot);
-
 
96334
          }
-
 
96335
          oprot.writeListEnd();
-
 
96336
        }
-
 
96337
        oprot.writeFieldEnd();
-
 
96338
      }
-
 
96339
      oprot.writeFieldStop();
-
 
96340
      oprot.writeStructEnd();
-
 
96341
    }
-
 
96342
 
-
 
96343
    @Override
-
 
96344
    public String toString() {
-
 
96345
      StringBuilder sb = new StringBuilder("getAllAttributesForOrderId_result(");
-
 
96346
      boolean first = true;
-
 
96347
 
-
 
96348
      sb.append("success:");
-
 
96349
      if (this.success == null) {
-
 
96350
        sb.append("null");
-
 
96351
      } else {
-
 
96352
        sb.append(this.success);
-
 
96353
      }
-
 
96354
      first = false;
-
 
96355
      sb.append(")");
-
 
96356
      return sb.toString();
-
 
96357
    }
-
 
96358
 
-
 
96359
    public void validate() throws org.apache.thrift.TException {
-
 
96360
      // check for required fields
-
 
96361
    }
-
 
96362
 
-
 
96363
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
96364
      try {
-
 
96365
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
96366
      } catch (org.apache.thrift.TException te) {
-
 
96367
        throw new java.io.IOException(te);
-
 
96368
      }
-
 
96369
    }
-
 
96370
 
-
 
96371
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
96372
      try {
-
 
96373
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
96374
      } catch (org.apache.thrift.TException te) {
-
 
96375
        throw new java.io.IOException(te);
-
 
96376
      }
-
 
96377
    }
-
 
96378
 
-
 
96379
  }
-
 
96380
 
-
 
96381
  public static class setOrderAttributeForTransaction_args implements org.apache.thrift.TBase<setOrderAttributeForTransaction_args, setOrderAttributeForTransaction_args._Fields>, java.io.Serializable, Cloneable   {
-
 
96382
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setOrderAttributeForTransaction_args");
-
 
96383
 
-
 
96384
    private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
96385
    private static final org.apache.thrift.protocol.TField ATTRIBUTE_FIELD_DESC = new org.apache.thrift.protocol.TField("attribute", org.apache.thrift.protocol.TType.STRUCT, (short)-1);
-
 
96386
 
-
 
96387
    private long transactionId; // required
-
 
96388
    private Attribute attribute; // required
-
 
96389
 
-
 
96390
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
96391
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
96392
      TRANSACTION_ID((short)1, "transactionId"),
-
 
96393
      ATTRIBUTE((short)-1, "attribute");
-
 
96394
 
-
 
96395
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
96396
 
-
 
96397
      static {
-
 
96398
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
96399
          byName.put(field.getFieldName(), field);
-
 
96400
        }
-
 
96401
      }
-
 
96402
 
-
 
96403
      /**
-
 
96404
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
96405
       */
-
 
96406
      public static _Fields findByThriftId(int fieldId) {
-
 
96407
        switch(fieldId) {
-
 
96408
          case 1: // TRANSACTION_ID
-
 
96409
            return TRANSACTION_ID;
-
 
96410
          case -1: // ATTRIBUTE
-
 
96411
            return ATTRIBUTE;
-
 
96412
          default:
-
 
96413
            return null;
-
 
96414
        }
-
 
96415
      }
-
 
96416
 
-
 
96417
      /**
-
 
96418
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
96419
       * if it is not found.
-
 
96420
       */
-
 
96421
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
96422
        _Fields fields = findByThriftId(fieldId);
-
 
96423
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
96424
        return fields;
-
 
96425
      }
-
 
96426
 
-
 
96427
      /**
-
 
96428
       * Find the _Fields constant that matches name, or null if its not found.
-
 
96429
       */
-
 
96430
      public static _Fields findByName(String name) {
-
 
96431
        return byName.get(name);
-
 
96432
      }
-
 
96433
 
-
 
96434
      private final short _thriftId;
-
 
96435
      private final String _fieldName;
-
 
96436
 
-
 
96437
      _Fields(short thriftId, String fieldName) {
-
 
96438
        _thriftId = thriftId;
-
 
96439
        _fieldName = fieldName;
-
 
96440
      }
-
 
96441
 
-
 
96442
      public short getThriftFieldId() {
-
 
96443
        return _thriftId;
-
 
96444
      }
-
 
96445
 
-
 
96446
      public String getFieldName() {
-
 
96447
        return _fieldName;
-
 
96448
      }
-
 
96449
    }
-
 
96450
 
-
 
96451
    // isset id assignments
-
 
96452
    private static final int __TRANSACTIONID_ISSET_ID = 0;
-
 
96453
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
96454
 
-
 
96455
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
96456
    static {
-
 
96457
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
96458
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
96459
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
96460
      tmpMap.put(_Fields.ATTRIBUTE, new org.apache.thrift.meta_data.FieldMetaData("attribute", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
96461
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class)));
-
 
96462
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
96463
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setOrderAttributeForTransaction_args.class, metaDataMap);
-
 
96464
    }
-
 
96465
 
-
 
96466
    public setOrderAttributeForTransaction_args() {
-
 
96467
    }
-
 
96468
 
-
 
96469
    public setOrderAttributeForTransaction_args(
-
 
96470
      long transactionId,
-
 
96471
      Attribute attribute)
-
 
96472
    {
-
 
96473
      this();
-
 
96474
      this.transactionId = transactionId;
-
 
96475
      setTransactionIdIsSet(true);
-
 
96476
      this.attribute = attribute;
-
 
96477
    }
-
 
96478
 
-
 
96479
    /**
-
 
96480
     * Performs a deep copy on <i>other</i>.
-
 
96481
     */
-
 
96482
    public setOrderAttributeForTransaction_args(setOrderAttributeForTransaction_args other) {
-
 
96483
      __isset_bit_vector.clear();
-
 
96484
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
96485
      this.transactionId = other.transactionId;
-
 
96486
      if (other.isSetAttribute()) {
-
 
96487
        this.attribute = new Attribute(other.attribute);
-
 
96488
      }
-
 
96489
    }
-
 
96490
 
-
 
96491
    public setOrderAttributeForTransaction_args deepCopy() {
-
 
96492
      return new setOrderAttributeForTransaction_args(this);
-
 
96493
    }
-
 
96494
 
-
 
96495
    @Override
-
 
96496
    public void clear() {
-
 
96497
      setTransactionIdIsSet(false);
-
 
96498
      this.transactionId = 0;
-
 
96499
      this.attribute = null;
-
 
96500
    }
-
 
96501
 
-
 
96502
    public long getTransactionId() {
-
 
96503
      return this.transactionId;
-
 
96504
    }
-
 
96505
 
-
 
96506
    public void setTransactionId(long transactionId) {
-
 
96507
      this.transactionId = transactionId;
-
 
96508
      setTransactionIdIsSet(true);
-
 
96509
    }
-
 
96510
 
-
 
96511
    public void unsetTransactionId() {
-
 
96512
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
-
 
96513
    }
-
 
96514
 
-
 
96515
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
-
 
96516
    public boolean isSetTransactionId() {
-
 
96517
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
-
 
96518
    }
-
 
96519
 
-
 
96520
    public void setTransactionIdIsSet(boolean value) {
-
 
96521
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
-
 
96522
    }
-
 
96523
 
-
 
96524
    public Attribute getAttribute() {
-
 
96525
      return this.attribute;
-
 
96526
    }
-
 
96527
 
-
 
96528
    public void setAttribute(Attribute attribute) {
-
 
96529
      this.attribute = attribute;
-
 
96530
    }
-
 
96531
 
-
 
96532
    public void unsetAttribute() {
-
 
96533
      this.attribute = null;
-
 
96534
    }
-
 
96535
 
-
 
96536
    /** Returns true if field attribute is set (has been assigned a value) and false otherwise */
-
 
96537
    public boolean isSetAttribute() {
-
 
96538
      return this.attribute != null;
-
 
96539
    }
-
 
96540
 
-
 
96541
    public void setAttributeIsSet(boolean value) {
-
 
96542
      if (!value) {
-
 
96543
        this.attribute = null;
-
 
96544
      }
-
 
96545
    }
-
 
96546
 
-
 
96547
    public void setFieldValue(_Fields field, Object value) {
-
 
96548
      switch (field) {
-
 
96549
      case TRANSACTION_ID:
-
 
96550
        if (value == null) {
-
 
96551
          unsetTransactionId();
-
 
96552
        } else {
-
 
96553
          setTransactionId((Long)value);
-
 
96554
        }
-
 
96555
        break;
-
 
96556
 
-
 
96557
      case ATTRIBUTE:
-
 
96558
        if (value == null) {
-
 
96559
          unsetAttribute();
-
 
96560
        } else {
-
 
96561
          setAttribute((Attribute)value);
-
 
96562
        }
-
 
96563
        break;
-
 
96564
 
-
 
96565
      }
-
 
96566
    }
-
 
96567
 
-
 
96568
    public Object getFieldValue(_Fields field) {
-
 
96569
      switch (field) {
-
 
96570
      case TRANSACTION_ID:
-
 
96571
        return Long.valueOf(getTransactionId());
-
 
96572
 
-
 
96573
      case ATTRIBUTE:
-
 
96574
        return getAttribute();
-
 
96575
 
-
 
96576
      }
-
 
96577
      throw new IllegalStateException();
-
 
96578
    }
-
 
96579
 
-
 
96580
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
96581
    public boolean isSet(_Fields field) {
-
 
96582
      if (field == null) {
-
 
96583
        throw new IllegalArgumentException();
-
 
96584
      }
-
 
96585
 
-
 
96586
      switch (field) {
-
 
96587
      case TRANSACTION_ID:
-
 
96588
        return isSetTransactionId();
-
 
96589
      case ATTRIBUTE:
-
 
96590
        return isSetAttribute();
-
 
96591
      }
-
 
96592
      throw new IllegalStateException();
-
 
96593
    }
-
 
96594
 
-
 
96595
    @Override
-
 
96596
    public boolean equals(Object that) {
-
 
96597
      if (that == null)
-
 
96598
        return false;
-
 
96599
      if (that instanceof setOrderAttributeForTransaction_args)
-
 
96600
        return this.equals((setOrderAttributeForTransaction_args)that);
-
 
96601
      return false;
-
 
96602
    }
-
 
96603
 
-
 
96604
    public boolean equals(setOrderAttributeForTransaction_args that) {
-
 
96605
      if (that == null)
-
 
96606
        return false;
-
 
96607
 
-
 
96608
      boolean this_present_transactionId = true;
-
 
96609
      boolean that_present_transactionId = true;
-
 
96610
      if (this_present_transactionId || that_present_transactionId) {
-
 
96611
        if (!(this_present_transactionId && that_present_transactionId))
-
 
96612
          return false;
-
 
96613
        if (this.transactionId != that.transactionId)
-
 
96614
          return false;
-
 
96615
      }
-
 
96616
 
-
 
96617
      boolean this_present_attribute = true && this.isSetAttribute();
-
 
96618
      boolean that_present_attribute = true && that.isSetAttribute();
-
 
96619
      if (this_present_attribute || that_present_attribute) {
-
 
96620
        if (!(this_present_attribute && that_present_attribute))
-
 
96621
          return false;
-
 
96622
        if (!this.attribute.equals(that.attribute))
-
 
96623
          return false;
-
 
96624
      }
-
 
96625
 
-
 
96626
      return true;
-
 
96627
    }
-
 
96628
 
-
 
96629
    @Override
-
 
96630
    public int hashCode() {
-
 
96631
      return 0;
-
 
96632
    }
-
 
96633
 
-
 
96634
    public int compareTo(setOrderAttributeForTransaction_args other) {
-
 
96635
      if (!getClass().equals(other.getClass())) {
-
 
96636
        return getClass().getName().compareTo(other.getClass().getName());
-
 
96637
      }
-
 
96638
 
-
 
96639
      int lastComparison = 0;
-
 
96640
      setOrderAttributeForTransaction_args typedOther = (setOrderAttributeForTransaction_args)other;
-
 
96641
 
-
 
96642
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
-
 
96643
      if (lastComparison != 0) {
-
 
96644
        return lastComparison;
-
 
96645
      }
-
 
96646
      if (isSetTransactionId()) {
-
 
96647
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
-
 
96648
        if (lastComparison != 0) {
-
 
96649
          return lastComparison;
-
 
96650
        }
-
 
96651
      }
-
 
96652
      lastComparison = Boolean.valueOf(isSetAttribute()).compareTo(typedOther.isSetAttribute());
-
 
96653
      if (lastComparison != 0) {
-
 
96654
        return lastComparison;
-
 
96655
      }
-
 
96656
      if (isSetAttribute()) {
-
 
96657
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attribute, typedOther.attribute);
-
 
96658
        if (lastComparison != 0) {
-
 
96659
          return lastComparison;
-
 
96660
        }
-
 
96661
      }
-
 
96662
      return 0;
-
 
96663
    }
-
 
96664
 
-
 
96665
    public _Fields fieldForId(int fieldId) {
-
 
96666
      return _Fields.findByThriftId(fieldId);
-
 
96667
    }
-
 
96668
 
-
 
96669
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
96670
      org.apache.thrift.protocol.TField field;
-
 
96671
      iprot.readStructBegin();
-
 
96672
      while (true)
-
 
96673
      {
-
 
96674
        field = iprot.readFieldBegin();
-
 
96675
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
96676
          break;
-
 
96677
        }
-
 
96678
        switch (field.id) {
-
 
96679
          case 1: // TRANSACTION_ID
-
 
96680
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
96681
              this.transactionId = iprot.readI64();
-
 
96682
              setTransactionIdIsSet(true);
-
 
96683
            } else { 
-
 
96684
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
96685
            }
-
 
96686
            break;
-
 
96687
          case -1: // ATTRIBUTE
-
 
96688
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
96689
              this.attribute = new Attribute();
-
 
96690
              this.attribute.read(iprot);
-
 
96691
            } else { 
-
 
96692
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
96693
            }
-
 
96694
            break;
-
 
96695
          default:
-
 
96696
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
96697
        }
-
 
96698
        iprot.readFieldEnd();
-
 
96699
      }
-
 
96700
      iprot.readStructEnd();
-
 
96701
      validate();
-
 
96702
    }
-
 
96703
 
-
 
96704
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
96705
      validate();
-
 
96706
 
-
 
96707
      oprot.writeStructBegin(STRUCT_DESC);
-
 
96708
      if (this.attribute != null) {
-
 
96709
        oprot.writeFieldBegin(ATTRIBUTE_FIELD_DESC);
-
 
96710
        this.attribute.write(oprot);
-
 
96711
        oprot.writeFieldEnd();
-
 
96712
      }
-
 
96713
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
-
 
96714
      oprot.writeI64(this.transactionId);
-
 
96715
      oprot.writeFieldEnd();
-
 
96716
      oprot.writeFieldStop();
-
 
96717
      oprot.writeStructEnd();
-
 
96718
    }
-
 
96719
 
-
 
96720
    @Override
-
 
96721
    public String toString() {
-
 
96722
      StringBuilder sb = new StringBuilder("setOrderAttributeForTransaction_args(");
-
 
96723
      boolean first = true;
-
 
96724
 
-
 
96725
      sb.append("transactionId:");
-
 
96726
      sb.append(this.transactionId);
-
 
96727
      first = false;
-
 
96728
      if (!first) sb.append(", ");
-
 
96729
      sb.append("attribute:");
-
 
96730
      if (this.attribute == null) {
-
 
96731
        sb.append("null");
-
 
96732
      } else {
-
 
96733
        sb.append(this.attribute);
-
 
96734
      }
-
 
96735
      first = false;
-
 
96736
      sb.append(")");
-
 
96737
      return sb.toString();
-
 
96738
    }
-
 
96739
 
-
 
96740
    public void validate() throws org.apache.thrift.TException {
-
 
96741
      // check for required fields
-
 
96742
    }
-
 
96743
 
-
 
96744
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
96745
      try {
-
 
96746
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
96747
      } catch (org.apache.thrift.TException te) {
-
 
96748
        throw new java.io.IOException(te);
-
 
96749
      }
-
 
96750
    }
-
 
96751
 
-
 
96752
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
96753
      try {
-
 
96754
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
96755
        __isset_bit_vector = new BitSet(1);
-
 
96756
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
96757
      } catch (org.apache.thrift.TException te) {
-
 
96758
        throw new java.io.IOException(te);
-
 
96759
      }
-
 
96760
    }
-
 
96761
 
-
 
96762
  }
-
 
96763
 
-
 
96764
  public static class setOrderAttributeForTransaction_result implements org.apache.thrift.TBase<setOrderAttributeForTransaction_result, setOrderAttributeForTransaction_result._Fields>, java.io.Serializable, Cloneable   {
-
 
96765
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setOrderAttributeForTransaction_result");
-
 
96766
 
-
 
96767
 
-
 
96768
 
-
 
96769
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
96770
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
96771
;
-
 
96772
 
-
 
96773
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
96774
 
-
 
96775
      static {
-
 
96776
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
96777
          byName.put(field.getFieldName(), field);
-
 
96778
        }
-
 
96779
      }
-
 
96780
 
-
 
96781
      /**
-
 
96782
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
96783
       */
-
 
96784
      public static _Fields findByThriftId(int fieldId) {
-
 
96785
        switch(fieldId) {
-
 
96786
          default:
-
 
96787
            return null;
-
 
96788
        }
-
 
96789
      }
-
 
96790
 
-
 
96791
      /**
-
 
96792
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
96793
       * if it is not found.
-
 
96794
       */
-
 
96795
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
96796
        _Fields fields = findByThriftId(fieldId);
-
 
96797
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
96798
        return fields;
-
 
96799
      }
-
 
96800
 
-
 
96801
      /**
-
 
96802
       * Find the _Fields constant that matches name, or null if its not found.
-
 
96803
       */
-
 
96804
      public static _Fields findByName(String name) {
-
 
96805
        return byName.get(name);
-
 
96806
      }
-
 
96807
 
-
 
96808
      private final short _thriftId;
-
 
96809
      private final String _fieldName;
-
 
96810
 
-
 
96811
      _Fields(short thriftId, String fieldName) {
-
 
96812
        _thriftId = thriftId;
-
 
96813
        _fieldName = fieldName;
-
 
96814
      }
-
 
96815
 
-
 
96816
      public short getThriftFieldId() {
-
 
96817
        return _thriftId;
-
 
96818
      }
-
 
96819
 
-
 
96820
      public String getFieldName() {
-
 
96821
        return _fieldName;
-
 
96822
      }
-
 
96823
    }
-
 
96824
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
96825
    static {
-
 
96826
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
96827
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
96828
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setOrderAttributeForTransaction_result.class, metaDataMap);
-
 
96829
    }
-
 
96830
 
-
 
96831
    public setOrderAttributeForTransaction_result() {
-
 
96832
    }
-
 
96833
 
-
 
96834
    /**
-
 
96835
     * Performs a deep copy on <i>other</i>.
-
 
96836
     */
-
 
96837
    public setOrderAttributeForTransaction_result(setOrderAttributeForTransaction_result other) {
-
 
96838
    }
-
 
96839
 
-
 
96840
    public setOrderAttributeForTransaction_result deepCopy() {
-
 
96841
      return new setOrderAttributeForTransaction_result(this);
-
 
96842
    }
-
 
96843
 
-
 
96844
    @Override
-
 
96845
    public void clear() {
-
 
96846
    }
-
 
96847
 
-
 
96848
    public void setFieldValue(_Fields field, Object value) {
-
 
96849
      switch (field) {
-
 
96850
      }
-
 
96851
    }
-
 
96852
 
-
 
96853
    public Object getFieldValue(_Fields field) {
-
 
96854
      switch (field) {
-
 
96855
      }
-
 
96856
      throw new IllegalStateException();
-
 
96857
    }
-
 
96858
 
-
 
96859
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
96860
    public boolean isSet(_Fields field) {
-
 
96861
      if (field == null) {
-
 
96862
        throw new IllegalArgumentException();
-
 
96863
      }
-
 
96864
 
-
 
96865
      switch (field) {
-
 
96866
      }
-
 
96867
      throw new IllegalStateException();
-
 
96868
    }
-
 
96869
 
-
 
96870
    @Override
-
 
96871
    public boolean equals(Object that) {
-
 
96872
      if (that == null)
-
 
96873
        return false;
-
 
96874
      if (that instanceof setOrderAttributeForTransaction_result)
-
 
96875
        return this.equals((setOrderAttributeForTransaction_result)that);
-
 
96876
      return false;
-
 
96877
    }
-
 
96878
 
-
 
96879
    public boolean equals(setOrderAttributeForTransaction_result that) {
-
 
96880
      if (that == null)
-
 
96881
        return false;
-
 
96882
 
-
 
96883
      return true;
-
 
96884
    }
-
 
96885
 
-
 
96886
    @Override
-
 
96887
    public int hashCode() {
-
 
96888
      return 0;
-
 
96889
    }
-
 
96890
 
-
 
96891
    public int compareTo(setOrderAttributeForTransaction_result other) {
-
 
96892
      if (!getClass().equals(other.getClass())) {
-
 
96893
        return getClass().getName().compareTo(other.getClass().getName());
-
 
96894
      }
-
 
96895
 
-
 
96896
      int lastComparison = 0;
-
 
96897
      setOrderAttributeForTransaction_result typedOther = (setOrderAttributeForTransaction_result)other;
-
 
96898
 
-
 
96899
      return 0;
-
 
96900
    }
-
 
96901
 
-
 
96902
    public _Fields fieldForId(int fieldId) {
-
 
96903
      return _Fields.findByThriftId(fieldId);
-
 
96904
    }
-
 
96905
 
-
 
96906
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
96907
      org.apache.thrift.protocol.TField field;
-
 
96908
      iprot.readStructBegin();
-
 
96909
      while (true)
-
 
96910
      {
-
 
96911
        field = iprot.readFieldBegin();
-
 
96912
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
96913
          break;
-
 
96914
        }
-
 
96915
        switch (field.id) {
-
 
96916
          default:
-
 
96917
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
96918
        }
-
 
96919
        iprot.readFieldEnd();
-
 
96920
      }
-
 
96921
      iprot.readStructEnd();
-
 
96922
      validate();
-
 
96923
    }
-
 
96924
 
-
 
96925
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
96926
      oprot.writeStructBegin(STRUCT_DESC);
-
 
96927
 
-
 
96928
      oprot.writeFieldStop();
-
 
96929
      oprot.writeStructEnd();
-
 
96930
    }
-
 
96931
 
-
 
96932
    @Override
-
 
96933
    public String toString() {
-
 
96934
      StringBuilder sb = new StringBuilder("setOrderAttributeForTransaction_result(");
-
 
96935
      boolean first = true;
-
 
96936
 
-
 
96937
      sb.append(")");
-
 
96938
      return sb.toString();
-
 
96939
    }
-
 
96940
 
-
 
96941
    public void validate() throws org.apache.thrift.TException {
95467
      // check for required fields
96942
      // check for required fields
95468
    }
96943
    }
95469
 
96944
 
95470
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
96945
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
95471
      try {
96946
      try {