Subversion Repositories SmartDukaan

Rev

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

Rev 7530 Rev 7542
Line 961... Line 961...
961
 
961
 
962
    public List<Order> getAmazonOrdersCancelled(long interval) throws org.apache.thrift.TException;
962
    public List<Order> getAmazonOrdersCancelled(long interval) throws org.apache.thrift.TException;
963
 
963
 
964
    public AmazonOrder getAmazonOrder(long orderId) throws org.apache.thrift.TException;
964
    public AmazonOrder getAmazonOrder(long orderId) throws org.apache.thrift.TException;
965
 
965
 
-
 
966
    public List<AmazonOrder> getAmazonOrderByAmazonOrderId(String amazonOrderId) throws org.apache.thrift.TException;
-
 
967
 
966
    public List<Order> getOrdersForStore(long id, long storeId, long startDate, long endDate, List<OrderStatus> statuses) throws org.apache.thrift.TException;
968
    public List<Order> getOrdersForStore(long id, long storeId, long startDate, long endDate, List<OrderStatus> statuses) throws org.apache.thrift.TException;
967
 
969
 
968
    public ByteBuffer getStoreOrderAdvanceInvoice(long orderId, long storeId) throws org.apache.thrift.TException;
970
    public ByteBuffer getStoreOrderAdvanceInvoice(long orderId, long storeId) throws org.apache.thrift.TException;
969
 
971
 
970
    public boolean addFrc(long circleId, long operatorId, long denomination, long maxDiscount) throws org.apache.thrift.TException;
972
    public boolean addFrc(long circleId, long operatorId, long denomination, long maxDiscount) throws org.apache.thrift.TException;
Line 1341... Line 1343...
1341
 
1343
 
1342
    public void getAmazonOrdersCancelled(long interval, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOrdersCancelled_call> resultHandler) throws org.apache.thrift.TException;
1344
    public void getAmazonOrdersCancelled(long interval, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOrdersCancelled_call> resultHandler) throws org.apache.thrift.TException;
1343
 
1345
 
1344
    public void getAmazonOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOrder_call> resultHandler) throws org.apache.thrift.TException;
1346
    public void getAmazonOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOrder_call> resultHandler) throws org.apache.thrift.TException;
1345
 
1347
 
-
 
1348
    public void getAmazonOrderByAmazonOrderId(String amazonOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOrderByAmazonOrderId_call> resultHandler) throws org.apache.thrift.TException;
-
 
1349
 
1346
    public void getOrdersForStore(long id, long storeId, long startDate, long endDate, List<OrderStatus> statuses, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersForStore_call> resultHandler) throws org.apache.thrift.TException;
1350
    public void getOrdersForStore(long id, long storeId, long startDate, long endDate, List<OrderStatus> statuses, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersForStore_call> resultHandler) throws org.apache.thrift.TException;
1347
 
1351
 
1348
    public void getStoreOrderAdvanceInvoice(long orderId, long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStoreOrderAdvanceInvoice_call> resultHandler) throws org.apache.thrift.TException;
1352
    public void getStoreOrderAdvanceInvoice(long orderId, long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStoreOrderAdvanceInvoice_call> resultHandler) throws org.apache.thrift.TException;
1349
 
1353
 
1350
    public void addFrc(long circleId, long operatorId, long denomination, long maxDiscount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addFrc_call> resultHandler) throws org.apache.thrift.TException;
1354
    public void addFrc(long circleId, long operatorId, long denomination, long maxDiscount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addFrc_call> resultHandler) throws org.apache.thrift.TException;
Line 5758... Line 5762...
5758
        return result.success;
5762
        return result.success;
5759
      }
5763
      }
5760
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonOrder failed: unknown result");
5764
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonOrder failed: unknown result");
5761
    }
5765
    }
5762
 
5766
 
-
 
5767
    public List<AmazonOrder> getAmazonOrderByAmazonOrderId(String amazonOrderId) throws org.apache.thrift.TException
-
 
5768
    {
-
 
5769
      send_getAmazonOrderByAmazonOrderId(amazonOrderId);
-
 
5770
      return recv_getAmazonOrderByAmazonOrderId();
-
 
5771
    }
-
 
5772
 
-
 
5773
    public void send_getAmazonOrderByAmazonOrderId(String amazonOrderId) throws org.apache.thrift.TException
-
 
5774
    {
-
 
5775
      getAmazonOrderByAmazonOrderId_args args = new getAmazonOrderByAmazonOrderId_args();
-
 
5776
      args.setAmazonOrderId(amazonOrderId);
-
 
5777
      sendBase("getAmazonOrderByAmazonOrderId", args);
-
 
5778
    }
-
 
5779
 
-
 
5780
    public List<AmazonOrder> recv_getAmazonOrderByAmazonOrderId() throws org.apache.thrift.TException
-
 
5781
    {
-
 
5782
      getAmazonOrderByAmazonOrderId_result result = new getAmazonOrderByAmazonOrderId_result();
-
 
5783
      receiveBase(result, "getAmazonOrderByAmazonOrderId");
-
 
5784
      if (result.isSetSuccess()) {
-
 
5785
        return result.success;
-
 
5786
      }
-
 
5787
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonOrderByAmazonOrderId failed: unknown result");
-
 
5788
    }
-
 
5789
 
5763
    public List<Order> getOrdersForStore(long id, long storeId, long startDate, long endDate, List<OrderStatus> statuses) throws org.apache.thrift.TException
5790
    public List<Order> getOrdersForStore(long id, long storeId, long startDate, long endDate, List<OrderStatus> statuses) throws org.apache.thrift.TException
5764
    {
5791
    {
5765
      send_getOrdersForStore(id, storeId, startDate, endDate, statuses);
5792
      send_getOrdersForStore(id, storeId, startDate, endDate, statuses);
5766
      return recv_getOrdersForStore();
5793
      return recv_getOrdersForStore();
5767
    }
5794
    }
Line 12184... Line 12211...
12184
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12211
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12185
        return (new Client(prot)).recv_getAmazonOrder();
12212
        return (new Client(prot)).recv_getAmazonOrder();
12186
      }
12213
      }
12187
    }
12214
    }
12188
 
12215
 
-
 
12216
    public void getAmazonOrderByAmazonOrderId(String amazonOrderId, org.apache.thrift.async.AsyncMethodCallback<getAmazonOrderByAmazonOrderId_call> resultHandler) throws org.apache.thrift.TException {
-
 
12217
      checkReady();
-
 
12218
      getAmazonOrderByAmazonOrderId_call method_call = new getAmazonOrderByAmazonOrderId_call(amazonOrderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
12219
      this.___currentMethod = method_call;
-
 
12220
      ___manager.call(method_call);
-
 
12221
    }
-
 
12222
 
-
 
12223
    public static class getAmazonOrderByAmazonOrderId_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
12224
      private String amazonOrderId;
-
 
12225
      public getAmazonOrderByAmazonOrderId_call(String amazonOrderId, org.apache.thrift.async.AsyncMethodCallback<getAmazonOrderByAmazonOrderId_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 {
-
 
12226
        super(client, protocolFactory, transport, resultHandler, false);
-
 
12227
        this.amazonOrderId = amazonOrderId;
-
 
12228
      }
-
 
12229
 
-
 
12230
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
12231
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonOrderByAmazonOrderId", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
12232
        getAmazonOrderByAmazonOrderId_args args = new getAmazonOrderByAmazonOrderId_args();
-
 
12233
        args.setAmazonOrderId(amazonOrderId);
-
 
12234
        args.write(prot);
-
 
12235
        prot.writeMessageEnd();
-
 
12236
      }
-
 
12237
 
-
 
12238
      public List<AmazonOrder> getResult() throws org.apache.thrift.TException {
-
 
12239
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12240
          throw new IllegalStateException("Method call not finished!");
-
 
12241
        }
-
 
12242
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12243
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12244
        return (new Client(prot)).recv_getAmazonOrderByAmazonOrderId();
-
 
12245
      }
-
 
12246
    }
-
 
12247
 
12189
    public void getOrdersForStore(long id, long storeId, long startDate, long endDate, List<OrderStatus> statuses, org.apache.thrift.async.AsyncMethodCallback<getOrdersForStore_call> resultHandler) throws org.apache.thrift.TException {
12248
    public void getOrdersForStore(long id, long storeId, long startDate, long endDate, List<OrderStatus> statuses, org.apache.thrift.async.AsyncMethodCallback<getOrdersForStore_call> resultHandler) throws org.apache.thrift.TException {
12190
      checkReady();
12249
      checkReady();
12191
      getOrdersForStore_call method_call = new getOrdersForStore_call(id, storeId, startDate, endDate, statuses, resultHandler, this, ___protocolFactory, ___transport);
12250
      getOrdersForStore_call method_call = new getOrdersForStore_call(id, storeId, startDate, endDate, statuses, resultHandler, this, ___protocolFactory, ___transport);
12192
      this.___currentMethod = method_call;
12251
      this.___currentMethod = method_call;
12193
      ___manager.call(method_call);
12252
      ___manager.call(method_call);
Line 12848... Line 12907...
12848
      processMap.put("addAmazonOrder", new addAmazonOrder());
12907
      processMap.put("addAmazonOrder", new addAmazonOrder());
12849
      processMap.put("updateAmazonOrderStatus", new updateAmazonOrderStatus());
12908
      processMap.put("updateAmazonOrderStatus", new updateAmazonOrderStatus());
12850
      processMap.put("getAmazonOrdersShipped", new getAmazonOrdersShipped());
12909
      processMap.put("getAmazonOrdersShipped", new getAmazonOrdersShipped());
12851
      processMap.put("getAmazonOrdersCancelled", new getAmazonOrdersCancelled());
12910
      processMap.put("getAmazonOrdersCancelled", new getAmazonOrdersCancelled());
12852
      processMap.put("getAmazonOrder", new getAmazonOrder());
12911
      processMap.put("getAmazonOrder", new getAmazonOrder());
-
 
12912
      processMap.put("getAmazonOrderByAmazonOrderId", new getAmazonOrderByAmazonOrderId());
12853
      processMap.put("getOrdersForStore", new getOrdersForStore());
12913
      processMap.put("getOrdersForStore", new getOrdersForStore());
12854
      processMap.put("getStoreOrderAdvanceInvoice", new getStoreOrderAdvanceInvoice());
12914
      processMap.put("getStoreOrderAdvanceInvoice", new getStoreOrderAdvanceInvoice());
12855
      processMap.put("addFrc", new addFrc());
12915
      processMap.put("addFrc", new addFrc());
12856
      processMap.put("addSeries", new addSeries());
12916
      processMap.put("addSeries", new addSeries());
12857
      processMap.put("saveStoreOrderDetail", new saveStoreOrderDetail());
12917
      processMap.put("saveStoreOrderDetail", new saveStoreOrderDetail());
Line 16098... Line 16158...
16098
        result.success = iface.getAmazonOrder(args.orderId);
16158
        result.success = iface.getAmazonOrder(args.orderId);
16099
        return result;
16159
        return result;
16100
      }
16160
      }
16101
    }
16161
    }
16102
 
16162
 
-
 
16163
    private static class getAmazonOrderByAmazonOrderId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonOrderByAmazonOrderId_args> {
-
 
16164
      public getAmazonOrderByAmazonOrderId() {
-
 
16165
        super("getAmazonOrderByAmazonOrderId");
-
 
16166
      }
-
 
16167
 
-
 
16168
      protected getAmazonOrderByAmazonOrderId_args getEmptyArgsInstance() {
-
 
16169
        return new getAmazonOrderByAmazonOrderId_args();
-
 
16170
      }
-
 
16171
 
-
 
16172
      protected getAmazonOrderByAmazonOrderId_result getResult(I iface, getAmazonOrderByAmazonOrderId_args args) throws org.apache.thrift.TException {
-
 
16173
        getAmazonOrderByAmazonOrderId_result result = new getAmazonOrderByAmazonOrderId_result();
-
 
16174
        result.success = iface.getAmazonOrderByAmazonOrderId(args.amazonOrderId);
-
 
16175
        return result;
-
 
16176
      }
-
 
16177
    }
-
 
16178
 
16103
    private static class getOrdersForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersForStore_args> {
16179
    private static class getOrdersForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersForStore_args> {
16104
      public getOrdersForStore() {
16180
      public getOrdersForStore() {
16105
        super("getOrdersForStore");
16181
        super("getOrdersForStore");
16106
      }
16182
      }
16107
 
16183
 
Line 65452... Line 65528...
65452
      }
65528
      }
65453
    }
65529
    }
65454
 
65530
 
65455
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
65531
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
65456
      try {
65532
      try {
-
 
65533
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
65534
        __isset_bit_vector = new BitSet(1);
65457
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
65535
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
65458
      } catch (org.apache.thrift.TException te) {
65536
      } catch (org.apache.thrift.TException te) {
65459
        throw new java.io.IOException(te);
65537
        throw new java.io.IOException(te);
65460
      }
65538
      }
65461
    }
65539
    }
Line 66208... Line 66286...
66208
      }
66286
      }
66209
    }
66287
    }
66210
 
66288
 
66211
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
66289
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
66212
      try {
66290
      try {
-
 
66291
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
66292
        __isset_bit_vector = new BitSet(1);
66213
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
66293
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
66214
      } catch (org.apache.thrift.TException te) {
66294
      } catch (org.apache.thrift.TException te) {
66215
        throw new java.io.IOException(te);
66295
        throw new java.io.IOException(te);
66216
      }
66296
      }
66217
    }
66297
    }
Line 66881... Line 66961...
66881
      }
66961
      }
66882
    }
66962
    }
66883
 
66963
 
66884
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
66964
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
66885
      try {
66965
      try {
-
 
66966
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
66967
        __isset_bit_vector = new BitSet(1);
66886
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
66968
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
66887
      } catch (org.apache.thrift.TException te) {
66969
      } catch (org.apache.thrift.TException te) {
66888
        throw new java.io.IOException(te);
66970
        throw new java.io.IOException(te);
66889
      }
66971
      }
66890
    }
66972
    }
Line 76221... Line 76303...
76221
      }
76303
      }
76222
    }
76304
    }
76223
 
76305
 
76224
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
76306
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
76225
      try {
76307
      try {
76226
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
76227
        __isset_bit_vector = new BitSet(1);
-
 
76228
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
76308
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
76229
      } catch (org.apache.thrift.TException te) {
76309
      } catch (org.apache.thrift.TException te) {
76230
        throw new java.io.IOException(te);
76310
        throw new java.io.IOException(te);
76231
      }
76311
      }
76232
    }
76312
    }
Line 105155... Line 105235...
105155
      }
105235
      }
105156
    }
105236
    }
105157
 
105237
 
105158
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
105238
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
105159
      try {
105239
      try {
-
 
105240
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
105241
        __isset_bit_vector = new BitSet(1);
105160
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
105242
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
105161
      } catch (org.apache.thrift.TException te) {
105243
      } catch (org.apache.thrift.TException te) {
105162
        throw new java.io.IOException(te);
105244
        throw new java.io.IOException(te);
105163
      }
105245
      }
105164
    }
105246
    }
Line 141898... Line 141980...
141898
      }
141980
      }
141899
    }
141981
    }
141900
 
141982
 
141901
  }
141983
  }
141902
 
141984
 
-
 
141985
  public static class getAmazonOrderByAmazonOrderId_args implements org.apache.thrift.TBase<getAmazonOrderByAmazonOrderId_args, getAmazonOrderByAmazonOrderId_args._Fields>, java.io.Serializable, Cloneable   {
-
 
141986
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonOrderByAmazonOrderId_args");
-
 
141987
 
-
 
141988
    private static final org.apache.thrift.protocol.TField AMAZON_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonOrderId", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
141989
 
-
 
141990
    private String amazonOrderId; // required
-
 
141991
 
-
 
141992
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
141993
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
141994
      AMAZON_ORDER_ID((short)1, "amazonOrderId");
-
 
141995
 
-
 
141996
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
141997
 
-
 
141998
      static {
-
 
141999
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
142000
          byName.put(field.getFieldName(), field);
-
 
142001
        }
-
 
142002
      }
-
 
142003
 
-
 
142004
      /**
-
 
142005
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
142006
       */
-
 
142007
      public static _Fields findByThriftId(int fieldId) {
-
 
142008
        switch(fieldId) {
-
 
142009
          case 1: // AMAZON_ORDER_ID
-
 
142010
            return AMAZON_ORDER_ID;
-
 
142011
          default:
-
 
142012
            return null;
-
 
142013
        }
-
 
142014
      }
-
 
142015
 
-
 
142016
      /**
-
 
142017
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
142018
       * if it is not found.
-
 
142019
       */
-
 
142020
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
142021
        _Fields fields = findByThriftId(fieldId);
-
 
142022
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
142023
        return fields;
-
 
142024
      }
-
 
142025
 
-
 
142026
      /**
-
 
142027
       * Find the _Fields constant that matches name, or null if its not found.
-
 
142028
       */
-
 
142029
      public static _Fields findByName(String name) {
-
 
142030
        return byName.get(name);
-
 
142031
      }
-
 
142032
 
-
 
142033
      private final short _thriftId;
-
 
142034
      private final String _fieldName;
-
 
142035
 
-
 
142036
      _Fields(short thriftId, String fieldName) {
-
 
142037
        _thriftId = thriftId;
-
 
142038
        _fieldName = fieldName;
-
 
142039
      }
-
 
142040
 
-
 
142041
      public short getThriftFieldId() {
-
 
142042
        return _thriftId;
-
 
142043
      }
-
 
142044
 
-
 
142045
      public String getFieldName() {
-
 
142046
        return _fieldName;
-
 
142047
      }
-
 
142048
    }
-
 
142049
 
-
 
142050
    // isset id assignments
-
 
142051
 
-
 
142052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
142053
    static {
-
 
142054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
142055
      tmpMap.put(_Fields.AMAZON_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("amazonOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
142056
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
142057
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
142058
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonOrderByAmazonOrderId_args.class, metaDataMap);
-
 
142059
    }
-
 
142060
 
-
 
142061
    public getAmazonOrderByAmazonOrderId_args() {
-
 
142062
    }
-
 
142063
 
-
 
142064
    public getAmazonOrderByAmazonOrderId_args(
-
 
142065
      String amazonOrderId)
-
 
142066
    {
-
 
142067
      this();
-
 
142068
      this.amazonOrderId = amazonOrderId;
-
 
142069
    }
-
 
142070
 
-
 
142071
    /**
-
 
142072
     * Performs a deep copy on <i>other</i>.
-
 
142073
     */
-
 
142074
    public getAmazonOrderByAmazonOrderId_args(getAmazonOrderByAmazonOrderId_args other) {
-
 
142075
      if (other.isSetAmazonOrderId()) {
-
 
142076
        this.amazonOrderId = other.amazonOrderId;
-
 
142077
      }
-
 
142078
    }
-
 
142079
 
-
 
142080
    public getAmazonOrderByAmazonOrderId_args deepCopy() {
-
 
142081
      return new getAmazonOrderByAmazonOrderId_args(this);
-
 
142082
    }
-
 
142083
 
-
 
142084
    @Override
-
 
142085
    public void clear() {
-
 
142086
      this.amazonOrderId = null;
-
 
142087
    }
-
 
142088
 
-
 
142089
    public String getAmazonOrderId() {
-
 
142090
      return this.amazonOrderId;
-
 
142091
    }
-
 
142092
 
-
 
142093
    public void setAmazonOrderId(String amazonOrderId) {
-
 
142094
      this.amazonOrderId = amazonOrderId;
-
 
142095
    }
-
 
142096
 
-
 
142097
    public void unsetAmazonOrderId() {
-
 
142098
      this.amazonOrderId = null;
-
 
142099
    }
-
 
142100
 
-
 
142101
    /** Returns true if field amazonOrderId is set (has been assigned a value) and false otherwise */
-
 
142102
    public boolean isSetAmazonOrderId() {
-
 
142103
      return this.amazonOrderId != null;
-
 
142104
    }
-
 
142105
 
-
 
142106
    public void setAmazonOrderIdIsSet(boolean value) {
-
 
142107
      if (!value) {
-
 
142108
        this.amazonOrderId = null;
-
 
142109
      }
-
 
142110
    }
-
 
142111
 
-
 
142112
    public void setFieldValue(_Fields field, Object value) {
-
 
142113
      switch (field) {
-
 
142114
      case AMAZON_ORDER_ID:
-
 
142115
        if (value == null) {
-
 
142116
          unsetAmazonOrderId();
-
 
142117
        } else {
-
 
142118
          setAmazonOrderId((String)value);
-
 
142119
        }
-
 
142120
        break;
-
 
142121
 
-
 
142122
      }
-
 
142123
    }
-
 
142124
 
-
 
142125
    public Object getFieldValue(_Fields field) {
-
 
142126
      switch (field) {
-
 
142127
      case AMAZON_ORDER_ID:
-
 
142128
        return getAmazonOrderId();
-
 
142129
 
-
 
142130
      }
-
 
142131
      throw new IllegalStateException();
-
 
142132
    }
-
 
142133
 
-
 
142134
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
142135
    public boolean isSet(_Fields field) {
-
 
142136
      if (field == null) {
-
 
142137
        throw new IllegalArgumentException();
-
 
142138
      }
-
 
142139
 
-
 
142140
      switch (field) {
-
 
142141
      case AMAZON_ORDER_ID:
-
 
142142
        return isSetAmazonOrderId();
-
 
142143
      }
-
 
142144
      throw new IllegalStateException();
-
 
142145
    }
-
 
142146
 
-
 
142147
    @Override
-
 
142148
    public boolean equals(Object that) {
-
 
142149
      if (that == null)
-
 
142150
        return false;
-
 
142151
      if (that instanceof getAmazonOrderByAmazonOrderId_args)
-
 
142152
        return this.equals((getAmazonOrderByAmazonOrderId_args)that);
-
 
142153
      return false;
-
 
142154
    }
-
 
142155
 
-
 
142156
    public boolean equals(getAmazonOrderByAmazonOrderId_args that) {
-
 
142157
      if (that == null)
-
 
142158
        return false;
-
 
142159
 
-
 
142160
      boolean this_present_amazonOrderId = true && this.isSetAmazonOrderId();
-
 
142161
      boolean that_present_amazonOrderId = true && that.isSetAmazonOrderId();
-
 
142162
      if (this_present_amazonOrderId || that_present_amazonOrderId) {
-
 
142163
        if (!(this_present_amazonOrderId && that_present_amazonOrderId))
-
 
142164
          return false;
-
 
142165
        if (!this.amazonOrderId.equals(that.amazonOrderId))
-
 
142166
          return false;
-
 
142167
      }
-
 
142168
 
-
 
142169
      return true;
-
 
142170
    }
-
 
142171
 
-
 
142172
    @Override
-
 
142173
    public int hashCode() {
-
 
142174
      return 0;
-
 
142175
    }
-
 
142176
 
-
 
142177
    public int compareTo(getAmazonOrderByAmazonOrderId_args other) {
-
 
142178
      if (!getClass().equals(other.getClass())) {
-
 
142179
        return getClass().getName().compareTo(other.getClass().getName());
-
 
142180
      }
-
 
142181
 
-
 
142182
      int lastComparison = 0;
-
 
142183
      getAmazonOrderByAmazonOrderId_args typedOther = (getAmazonOrderByAmazonOrderId_args)other;
-
 
142184
 
-
 
142185
      lastComparison = Boolean.valueOf(isSetAmazonOrderId()).compareTo(typedOther.isSetAmazonOrderId());
-
 
142186
      if (lastComparison != 0) {
-
 
142187
        return lastComparison;
-
 
142188
      }
-
 
142189
      if (isSetAmazonOrderId()) {
-
 
142190
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonOrderId, typedOther.amazonOrderId);
-
 
142191
        if (lastComparison != 0) {
-
 
142192
          return lastComparison;
-
 
142193
        }
-
 
142194
      }
-
 
142195
      return 0;
-
 
142196
    }
-
 
142197
 
-
 
142198
    public _Fields fieldForId(int fieldId) {
-
 
142199
      return _Fields.findByThriftId(fieldId);
-
 
142200
    }
-
 
142201
 
-
 
142202
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
142203
      org.apache.thrift.protocol.TField field;
-
 
142204
      iprot.readStructBegin();
-
 
142205
      while (true)
-
 
142206
      {
-
 
142207
        field = iprot.readFieldBegin();
-
 
142208
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
142209
          break;
-
 
142210
        }
-
 
142211
        switch (field.id) {
-
 
142212
          case 1: // AMAZON_ORDER_ID
-
 
142213
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
142214
              this.amazonOrderId = iprot.readString();
-
 
142215
            } else { 
-
 
142216
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
142217
            }
-
 
142218
            break;
-
 
142219
          default:
-
 
142220
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
142221
        }
-
 
142222
        iprot.readFieldEnd();
-
 
142223
      }
-
 
142224
      iprot.readStructEnd();
-
 
142225
      validate();
-
 
142226
    }
-
 
142227
 
-
 
142228
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
142229
      validate();
-
 
142230
 
-
 
142231
      oprot.writeStructBegin(STRUCT_DESC);
-
 
142232
      if (this.amazonOrderId != null) {
-
 
142233
        oprot.writeFieldBegin(AMAZON_ORDER_ID_FIELD_DESC);
-
 
142234
        oprot.writeString(this.amazonOrderId);
-
 
142235
        oprot.writeFieldEnd();
-
 
142236
      }
-
 
142237
      oprot.writeFieldStop();
-
 
142238
      oprot.writeStructEnd();
-
 
142239
    }
-
 
142240
 
-
 
142241
    @Override
-
 
142242
    public String toString() {
-
 
142243
      StringBuilder sb = new StringBuilder("getAmazonOrderByAmazonOrderId_args(");
-
 
142244
      boolean first = true;
-
 
142245
 
-
 
142246
      sb.append("amazonOrderId:");
-
 
142247
      if (this.amazonOrderId == null) {
-
 
142248
        sb.append("null");
-
 
142249
      } else {
-
 
142250
        sb.append(this.amazonOrderId);
-
 
142251
      }
-
 
142252
      first = false;
-
 
142253
      sb.append(")");
-
 
142254
      return sb.toString();
-
 
142255
    }
-
 
142256
 
-
 
142257
    public void validate() throws org.apache.thrift.TException {
-
 
142258
      // check for required fields
-
 
142259
    }
-
 
142260
 
-
 
142261
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
142262
      try {
-
 
142263
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
142264
      } catch (org.apache.thrift.TException te) {
-
 
142265
        throw new java.io.IOException(te);
-
 
142266
      }
-
 
142267
    }
-
 
142268
 
-
 
142269
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
142270
      try {
-
 
142271
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
142272
      } catch (org.apache.thrift.TException te) {
-
 
142273
        throw new java.io.IOException(te);
-
 
142274
      }
-
 
142275
    }
-
 
142276
 
-
 
142277
  }
-
 
142278
 
-
 
142279
  public static class getAmazonOrderByAmazonOrderId_result implements org.apache.thrift.TBase<getAmazonOrderByAmazonOrderId_result, getAmazonOrderByAmazonOrderId_result._Fields>, java.io.Serializable, Cloneable   {
-
 
142280
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonOrderByAmazonOrderId_result");
-
 
142281
 
-
 
142282
    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);
-
 
142283
 
-
 
142284
    private List<AmazonOrder> success; // required
-
 
142285
 
-
 
142286
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
142287
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
142288
      SUCCESS((short)0, "success");
-
 
142289
 
-
 
142290
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
142291
 
-
 
142292
      static {
-
 
142293
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
142294
          byName.put(field.getFieldName(), field);
-
 
142295
        }
-
 
142296
      }
-
 
142297
 
-
 
142298
      /**
-
 
142299
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
142300
       */
-
 
142301
      public static _Fields findByThriftId(int fieldId) {
-
 
142302
        switch(fieldId) {
-
 
142303
          case 0: // SUCCESS
-
 
142304
            return SUCCESS;
-
 
142305
          default:
-
 
142306
            return null;
-
 
142307
        }
-
 
142308
      }
-
 
142309
 
-
 
142310
      /**
-
 
142311
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
142312
       * if it is not found.
-
 
142313
       */
-
 
142314
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
142315
        _Fields fields = findByThriftId(fieldId);
-
 
142316
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
142317
        return fields;
-
 
142318
      }
-
 
142319
 
-
 
142320
      /**
-
 
142321
       * Find the _Fields constant that matches name, or null if its not found.
-
 
142322
       */
-
 
142323
      public static _Fields findByName(String name) {
-
 
142324
        return byName.get(name);
-
 
142325
      }
-
 
142326
 
-
 
142327
      private final short _thriftId;
-
 
142328
      private final String _fieldName;
-
 
142329
 
-
 
142330
      _Fields(short thriftId, String fieldName) {
-
 
142331
        _thriftId = thriftId;
-
 
142332
        _fieldName = fieldName;
-
 
142333
      }
-
 
142334
 
-
 
142335
      public short getThriftFieldId() {
-
 
142336
        return _thriftId;
-
 
142337
      }
-
 
142338
 
-
 
142339
      public String getFieldName() {
-
 
142340
        return _fieldName;
-
 
142341
      }
-
 
142342
    }
-
 
142343
 
-
 
142344
    // isset id assignments
-
 
142345
 
-
 
142346
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
142347
    static {
-
 
142348
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
142349
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
142350
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
142351
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonOrder.class))));
-
 
142352
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
142353
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonOrderByAmazonOrderId_result.class, metaDataMap);
-
 
142354
    }
-
 
142355
 
-
 
142356
    public getAmazonOrderByAmazonOrderId_result() {
-
 
142357
    }
-
 
142358
 
-
 
142359
    public getAmazonOrderByAmazonOrderId_result(
-
 
142360
      List<AmazonOrder> success)
-
 
142361
    {
-
 
142362
      this();
-
 
142363
      this.success = success;
-
 
142364
    }
-
 
142365
 
-
 
142366
    /**
-
 
142367
     * Performs a deep copy on <i>other</i>.
-
 
142368
     */
-
 
142369
    public getAmazonOrderByAmazonOrderId_result(getAmazonOrderByAmazonOrderId_result other) {
-
 
142370
      if (other.isSetSuccess()) {
-
 
142371
        List<AmazonOrder> __this__success = new ArrayList<AmazonOrder>();
-
 
142372
        for (AmazonOrder other_element : other.success) {
-
 
142373
          __this__success.add(new AmazonOrder(other_element));
-
 
142374
        }
-
 
142375
        this.success = __this__success;
-
 
142376
      }
-
 
142377
    }
-
 
142378
 
-
 
142379
    public getAmazonOrderByAmazonOrderId_result deepCopy() {
-
 
142380
      return new getAmazonOrderByAmazonOrderId_result(this);
-
 
142381
    }
-
 
142382
 
-
 
142383
    @Override
-
 
142384
    public void clear() {
-
 
142385
      this.success = null;
-
 
142386
    }
-
 
142387
 
-
 
142388
    public int getSuccessSize() {
-
 
142389
      return (this.success == null) ? 0 : this.success.size();
-
 
142390
    }
-
 
142391
 
-
 
142392
    public java.util.Iterator<AmazonOrder> getSuccessIterator() {
-
 
142393
      return (this.success == null) ? null : this.success.iterator();
-
 
142394
    }
-
 
142395
 
-
 
142396
    public void addToSuccess(AmazonOrder elem) {
-
 
142397
      if (this.success == null) {
-
 
142398
        this.success = new ArrayList<AmazonOrder>();
-
 
142399
      }
-
 
142400
      this.success.add(elem);
-
 
142401
    }
-
 
142402
 
-
 
142403
    public List<AmazonOrder> getSuccess() {
-
 
142404
      return this.success;
-
 
142405
    }
-
 
142406
 
-
 
142407
    public void setSuccess(List<AmazonOrder> success) {
-
 
142408
      this.success = success;
-
 
142409
    }
-
 
142410
 
-
 
142411
    public void unsetSuccess() {
-
 
142412
      this.success = null;
-
 
142413
    }
-
 
142414
 
-
 
142415
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
142416
    public boolean isSetSuccess() {
-
 
142417
      return this.success != null;
-
 
142418
    }
-
 
142419
 
-
 
142420
    public void setSuccessIsSet(boolean value) {
-
 
142421
      if (!value) {
-
 
142422
        this.success = null;
-
 
142423
      }
-
 
142424
    }
-
 
142425
 
-
 
142426
    public void setFieldValue(_Fields field, Object value) {
-
 
142427
      switch (field) {
-
 
142428
      case SUCCESS:
-
 
142429
        if (value == null) {
-
 
142430
          unsetSuccess();
-
 
142431
        } else {
-
 
142432
          setSuccess((List<AmazonOrder>)value);
-
 
142433
        }
-
 
142434
        break;
-
 
142435
 
-
 
142436
      }
-
 
142437
    }
-
 
142438
 
-
 
142439
    public Object getFieldValue(_Fields field) {
-
 
142440
      switch (field) {
-
 
142441
      case SUCCESS:
-
 
142442
        return getSuccess();
-
 
142443
 
-
 
142444
      }
-
 
142445
      throw new IllegalStateException();
-
 
142446
    }
-
 
142447
 
-
 
142448
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
142449
    public boolean isSet(_Fields field) {
-
 
142450
      if (field == null) {
-
 
142451
        throw new IllegalArgumentException();
-
 
142452
      }
-
 
142453
 
-
 
142454
      switch (field) {
-
 
142455
      case SUCCESS:
-
 
142456
        return isSetSuccess();
-
 
142457
      }
-
 
142458
      throw new IllegalStateException();
-
 
142459
    }
-
 
142460
 
-
 
142461
    @Override
-
 
142462
    public boolean equals(Object that) {
-
 
142463
      if (that == null)
-
 
142464
        return false;
-
 
142465
      if (that instanceof getAmazonOrderByAmazonOrderId_result)
-
 
142466
        return this.equals((getAmazonOrderByAmazonOrderId_result)that);
-
 
142467
      return false;
-
 
142468
    }
-
 
142469
 
-
 
142470
    public boolean equals(getAmazonOrderByAmazonOrderId_result that) {
-
 
142471
      if (that == null)
-
 
142472
        return false;
-
 
142473
 
-
 
142474
      boolean this_present_success = true && this.isSetSuccess();
-
 
142475
      boolean that_present_success = true && that.isSetSuccess();
-
 
142476
      if (this_present_success || that_present_success) {
-
 
142477
        if (!(this_present_success && that_present_success))
-
 
142478
          return false;
-
 
142479
        if (!this.success.equals(that.success))
-
 
142480
          return false;
-
 
142481
      }
-
 
142482
 
-
 
142483
      return true;
-
 
142484
    }
-
 
142485
 
-
 
142486
    @Override
-
 
142487
    public int hashCode() {
-
 
142488
      return 0;
-
 
142489
    }
-
 
142490
 
-
 
142491
    public int compareTo(getAmazonOrderByAmazonOrderId_result other) {
-
 
142492
      if (!getClass().equals(other.getClass())) {
-
 
142493
        return getClass().getName().compareTo(other.getClass().getName());
-
 
142494
      }
-
 
142495
 
-
 
142496
      int lastComparison = 0;
-
 
142497
      getAmazonOrderByAmazonOrderId_result typedOther = (getAmazonOrderByAmazonOrderId_result)other;
-
 
142498
 
-
 
142499
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
142500
      if (lastComparison != 0) {
-
 
142501
        return lastComparison;
-
 
142502
      }
-
 
142503
      if (isSetSuccess()) {
-
 
142504
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
142505
        if (lastComparison != 0) {
-
 
142506
          return lastComparison;
-
 
142507
        }
-
 
142508
      }
-
 
142509
      return 0;
-
 
142510
    }
-
 
142511
 
-
 
142512
    public _Fields fieldForId(int fieldId) {
-
 
142513
      return _Fields.findByThriftId(fieldId);
-
 
142514
    }
-
 
142515
 
-
 
142516
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
142517
      org.apache.thrift.protocol.TField field;
-
 
142518
      iprot.readStructBegin();
-
 
142519
      while (true)
-
 
142520
      {
-
 
142521
        field = iprot.readFieldBegin();
-
 
142522
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
142523
          break;
-
 
142524
        }
-
 
142525
        switch (field.id) {
-
 
142526
          case 0: // SUCCESS
-
 
142527
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
142528
              {
-
 
142529
                org.apache.thrift.protocol.TList _list450 = iprot.readListBegin();
-
 
142530
                this.success = new ArrayList<AmazonOrder>(_list450.size);
-
 
142531
                for (int _i451 = 0; _i451 < _list450.size; ++_i451)
-
 
142532
                {
-
 
142533
                  AmazonOrder _elem452; // required
-
 
142534
                  _elem452 = new AmazonOrder();
-
 
142535
                  _elem452.read(iprot);
-
 
142536
                  this.success.add(_elem452);
-
 
142537
                }
-
 
142538
                iprot.readListEnd();
-
 
142539
              }
-
 
142540
            } else { 
-
 
142541
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
142542
            }
-
 
142543
            break;
-
 
142544
          default:
-
 
142545
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
142546
        }
-
 
142547
        iprot.readFieldEnd();
-
 
142548
      }
-
 
142549
      iprot.readStructEnd();
-
 
142550
      validate();
-
 
142551
    }
-
 
142552
 
-
 
142553
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
142554
      oprot.writeStructBegin(STRUCT_DESC);
-
 
142555
 
-
 
142556
      if (this.isSetSuccess()) {
-
 
142557
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
142558
        {
-
 
142559
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
142560
          for (AmazonOrder _iter453 : this.success)
-
 
142561
          {
-
 
142562
            _iter453.write(oprot);
-
 
142563
          }
-
 
142564
          oprot.writeListEnd();
-
 
142565
        }
-
 
142566
        oprot.writeFieldEnd();
-
 
142567
      }
-
 
142568
      oprot.writeFieldStop();
-
 
142569
      oprot.writeStructEnd();
-
 
142570
    }
-
 
142571
 
-
 
142572
    @Override
-
 
142573
    public String toString() {
-
 
142574
      StringBuilder sb = new StringBuilder("getAmazonOrderByAmazonOrderId_result(");
-
 
142575
      boolean first = true;
-
 
142576
 
-
 
142577
      sb.append("success:");
-
 
142578
      if (this.success == null) {
-
 
142579
        sb.append("null");
-
 
142580
      } else {
-
 
142581
        sb.append(this.success);
-
 
142582
      }
-
 
142583
      first = false;
-
 
142584
      sb.append(")");
-
 
142585
      return sb.toString();
-
 
142586
    }
-
 
142587
 
-
 
142588
    public void validate() throws org.apache.thrift.TException {
-
 
142589
      // check for required fields
-
 
142590
    }
-
 
142591
 
-
 
142592
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
142593
      try {
-
 
142594
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
142595
      } catch (org.apache.thrift.TException te) {
-
 
142596
        throw new java.io.IOException(te);
-
 
142597
      }
-
 
142598
    }
-
 
142599
 
-
 
142600
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
142601
      try {
-
 
142602
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
142603
      } catch (org.apache.thrift.TException te) {
-
 
142604
        throw new java.io.IOException(te);
-
 
142605
      }
-
 
142606
    }
-
 
142607
 
-
 
142608
  }
-
 
142609
 
141903
  public static class getOrdersForStore_args implements org.apache.thrift.TBase<getOrdersForStore_args, getOrdersForStore_args._Fields>, java.io.Serializable, Cloneable   {
142610
  public static class getOrdersForStore_args implements org.apache.thrift.TBase<getOrdersForStore_args, getOrdersForStore_args._Fields>, java.io.Serializable, Cloneable   {
141904
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForStore_args");
142611
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForStore_args");
141905
 
142612
 
141906
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
142613
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
141907
    private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)2);
142614
    private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)2);
Line 142455... Line 143162...
142455
            }
143162
            }
142456
            break;
143163
            break;
142457
          case 5: // STATUSES
143164
          case 5: // STATUSES
142458
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
143165
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
142459
              {
143166
              {
142460
                org.apache.thrift.protocol.TList _list450 = iprot.readListBegin();
143167
                org.apache.thrift.protocol.TList _list454 = iprot.readListBegin();
142461
                this.statuses = new ArrayList<OrderStatus>(_list450.size);
143168
                this.statuses = new ArrayList<OrderStatus>(_list454.size);
142462
                for (int _i451 = 0; _i451 < _list450.size; ++_i451)
143169
                for (int _i455 = 0; _i455 < _list454.size; ++_i455)
142463
                {
143170
                {
142464
                  OrderStatus _elem452; // required
143171
                  OrderStatus _elem456; // required
142465
                  _elem452 = OrderStatus.findByValue(iprot.readI32());
143172
                  _elem456 = OrderStatus.findByValue(iprot.readI32());
142466
                  this.statuses.add(_elem452);
143173
                  this.statuses.add(_elem456);
142467
                }
143174
                }
142468
                iprot.readListEnd();
143175
                iprot.readListEnd();
142469
              }
143176
              }
142470
            } else { 
143177
            } else { 
142471
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
143178
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 142498... Line 143205...
142498
      oprot.writeFieldEnd();
143205
      oprot.writeFieldEnd();
142499
      if (this.statuses != null) {
143206
      if (this.statuses != null) {
142500
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
143207
        oprot.writeFieldBegin(STATUSES_FIELD_DESC);
142501
        {
143208
        {
142502
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));
143209
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));
142503
          for (OrderStatus _iter453 : this.statuses)
143210
          for (OrderStatus _iter457 : this.statuses)
142504
          {
143211
          {
142505
            oprot.writeI32(_iter453.getValue());
143212
            oprot.writeI32(_iter457.getValue());
142506
          }
143213
          }
142507
          oprot.writeListEnd();
143214
          oprot.writeListEnd();
142508
        }
143215
        }
142509
        oprot.writeFieldEnd();
143216
        oprot.writeFieldEnd();
142510
      }
143217
      }
Line 142816... Line 143523...
142816
        }
143523
        }
142817
        switch (field.id) {
143524
        switch (field.id) {
142818
          case 0: // SUCCESS
143525
          case 0: // SUCCESS
142819
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
143526
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
142820
              {
143527
              {
142821
                org.apache.thrift.protocol.TList _list454 = iprot.readListBegin();
143528
                org.apache.thrift.protocol.TList _list458 = iprot.readListBegin();
142822
                this.success = new ArrayList<Order>(_list454.size);
143529
                this.success = new ArrayList<Order>(_list458.size);
142823
                for (int _i455 = 0; _i455 < _list454.size; ++_i455)
143530
                for (int _i459 = 0; _i459 < _list458.size; ++_i459)
142824
                {
143531
                {
142825
                  Order _elem456; // required
143532
                  Order _elem460; // required
142826
                  _elem456 = new Order();
143533
                  _elem460 = new Order();
142827
                  _elem456.read(iprot);
143534
                  _elem460.read(iprot);
142828
                  this.success.add(_elem456);
143535
                  this.success.add(_elem460);
142829
                }
143536
                }
142830
                iprot.readListEnd();
143537
                iprot.readListEnd();
142831
              }
143538
              }
142832
            } else { 
143539
            } else { 
142833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
143540
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 142847... Line 143554...
142847
 
143554
 
142848
      if (this.isSetSuccess()) {
143555
      if (this.isSetSuccess()) {
142849
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
143556
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
142850
        {
143557
        {
142851
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
143558
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
142852
          for (Order _iter457 : this.success)
143559
          for (Order _iter461 : this.success)
142853
          {
143560
          {
142854
            _iter457.write(oprot);
143561
            _iter461.write(oprot);
142855
          }
143562
          }
142856
          oprot.writeListEnd();
143563
          oprot.writeListEnd();
142857
        }
143564
        }
142858
        oprot.writeFieldEnd();
143565
        oprot.writeFieldEnd();
142859
      }
143566
      }
Line 146875... Line 147582...
146875
        }
147582
        }
146876
        switch (field.id) {
147583
        switch (field.id) {
146877
          case 0: // SUCCESS
147584
          case 0: // SUCCESS
146878
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
147585
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
146879
              {
147586
              {
146880
                org.apache.thrift.protocol.TList _list458 = iprot.readListBegin();
147587
                org.apache.thrift.protocol.TList _list462 = iprot.readListBegin();
146881
                this.success = new ArrayList<String>(_list458.size);
147588
                this.success = new ArrayList<String>(_list462.size);
146882
                for (int _i459 = 0; _i459 < _list458.size; ++_i459)
147589
                for (int _i463 = 0; _i463 < _list462.size; ++_i463)
146883
                {
147590
                {
146884
                  String _elem460; // required
147591
                  String _elem464; // required
146885
                  _elem460 = iprot.readString();
147592
                  _elem464 = iprot.readString();
146886
                  this.success.add(_elem460);
147593
                  this.success.add(_elem464);
146887
                }
147594
                }
146888
                iprot.readListEnd();
147595
                iprot.readListEnd();
146889
              }
147596
              }
146890
            } else { 
147597
            } else { 
146891
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
147598
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 146905... Line 147612...
146905
 
147612
 
146906
      if (this.isSetSuccess()) {
147613
      if (this.isSetSuccess()) {
146907
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
147614
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
146908
        {
147615
        {
146909
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
147616
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
146910
          for (String _iter461 : this.success)
147617
          for (String _iter465 : this.success)
146911
          {
147618
          {
146912
            oprot.writeString(_iter461);
147619
            oprot.writeString(_iter465);
146913
          }
147620
          }
146914
          oprot.writeListEnd();
147621
          oprot.writeListEnd();
146915
        }
147622
        }
146916
        oprot.writeFieldEnd();
147623
        oprot.writeFieldEnd();
146917
      }
147624
      }
Line 148501... Line 149208...
148501
        }
149208
        }
148502
        switch (field.id) {
149209
        switch (field.id) {
148503
          case 0: // SUCCESS
149210
          case 0: // SUCCESS
148504
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
149211
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
148505
              {
149212
              {
148506
                org.apache.thrift.protocol.TList _list462 = iprot.readListBegin();
149213
                org.apache.thrift.protocol.TList _list466 = iprot.readListBegin();
148507
                this.success = new ArrayList<StoreOrderCollection>(_list462.size);
149214
                this.success = new ArrayList<StoreOrderCollection>(_list466.size);
148508
                for (int _i463 = 0; _i463 < _list462.size; ++_i463)
149215
                for (int _i467 = 0; _i467 < _list466.size; ++_i467)
148509
                {
149216
                {
148510
                  StoreOrderCollection _elem464; // required
149217
                  StoreOrderCollection _elem468; // required
148511
                  _elem464 = new StoreOrderCollection();
149218
                  _elem468 = new StoreOrderCollection();
148512
                  _elem464.read(iprot);
149219
                  _elem468.read(iprot);
148513
                  this.success.add(_elem464);
149220
                  this.success.add(_elem468);
148514
                }
149221
                }
148515
                iprot.readListEnd();
149222
                iprot.readListEnd();
148516
              }
149223
              }
148517
            } else { 
149224
            } else { 
148518
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
149225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 148532... Line 149239...
148532
 
149239
 
148533
      if (this.isSetSuccess()) {
149240
      if (this.isSetSuccess()) {
148534
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
149241
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
148535
        {
149242
        {
148536
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
149243
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
148537
          for (StoreOrderCollection _iter465 : this.success)
149244
          for (StoreOrderCollection _iter469 : this.success)
148538
          {
149245
          {
148539
            _iter465.write(oprot);
149246
            _iter469.write(oprot);
148540
          }
149247
          }
148541
          oprot.writeListEnd();
149248
          oprot.writeListEnd();
148542
        }
149249
        }
148543
        oprot.writeFieldEnd();
149250
        oprot.writeFieldEnd();
148544
      }
149251
      }
Line 149032... Line 149739...
149032
        }
149739
        }
149033
        switch (field.id) {
149740
        switch (field.id) {
149034
          case 0: // SUCCESS
149741
          case 0: // SUCCESS
149035
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
149742
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
149036
              {
149743
              {
149037
                org.apache.thrift.protocol.TList _list466 = iprot.readListBegin();
149744
                org.apache.thrift.protocol.TList _list470 = iprot.readListBegin();
149038
                this.success = new ArrayList<AmazonOrdersToAcknowledge>(_list466.size);
149745
                this.success = new ArrayList<AmazonOrdersToAcknowledge>(_list470.size);
149039
                for (int _i467 = 0; _i467 < _list466.size; ++_i467)
149746
                for (int _i471 = 0; _i471 < _list470.size; ++_i471)
149040
                {
149747
                {
149041
                  AmazonOrdersToAcknowledge _elem468; // required
149748
                  AmazonOrdersToAcknowledge _elem472; // required
149042
                  _elem468 = new AmazonOrdersToAcknowledge();
149749
                  _elem472 = new AmazonOrdersToAcknowledge();
149043
                  _elem468.read(iprot);
149750
                  _elem472.read(iprot);
149044
                  this.success.add(_elem468);
149751
                  this.success.add(_elem472);
149045
                }
149752
                }
149046
                iprot.readListEnd();
149753
                iprot.readListEnd();
149047
              }
149754
              }
149048
            } else { 
149755
            } else { 
149049
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
149756
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 149063... Line 149770...
149063
 
149770
 
149064
      if (this.isSetSuccess()) {
149771
      if (this.isSetSuccess()) {
149065
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
149772
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
149066
        {
149773
        {
149067
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
149774
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
149068
          for (AmazonOrdersToAcknowledge _iter469 : this.success)
149775
          for (AmazonOrdersToAcknowledge _iter473 : this.success)
149069
          {
149776
          {
149070
            _iter469.write(oprot);
149777
            _iter473.write(oprot);
149071
          }
149778
          }
149072
          oprot.writeListEnd();
149779
          oprot.writeListEnd();
149073
        }
149780
        }
149074
        oprot.writeFieldEnd();
149781
        oprot.writeFieldEnd();
149075
      }
149782
      }