Subversion Repositories SmartDukaan

Rev

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

Rev 7685 Rev 7730
Line 999... Line 999...
999
 
999
 
1000
    public List<Order> getOrdersByMobileNumber(String mobileNumber) throws org.apache.thrift.TException;
1000
    public List<Order> getOrdersByMobileNumber(String mobileNumber) throws org.apache.thrift.TException;
1001
 
1001
 
1002
    public List<Order> getOrdersByAmazonOrderCode(String amazonId) throws org.apache.thrift.TException;
1002
    public List<Order> getOrdersByAmazonOrderCode(String amazonId) throws org.apache.thrift.TException;
1003
 
1003
 
-
 
1004
    public boolean convertStoreToNormal(long orderId) throws org.apache.thrift.TException;
-
 
1005
 
1004
  }
1006
  }
1005
 
1007
 
1006
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1008
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1007
 
1009
 
1008
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1010
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1387... Line 1389...
1387
 
1389
 
1388
    public void getOrdersByMobileNumber(String mobileNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByMobileNumber_call> resultHandler) throws org.apache.thrift.TException;
1390
    public void getOrdersByMobileNumber(String mobileNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByMobileNumber_call> resultHandler) throws org.apache.thrift.TException;
1389
 
1391
 
1390
    public void getOrdersByAmazonOrderCode(String amazonId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByAmazonOrderCode_call> resultHandler) throws org.apache.thrift.TException;
1392
    public void getOrdersByAmazonOrderCode(String amazonId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByAmazonOrderCode_call> resultHandler) throws org.apache.thrift.TException;
1391
 
1393
 
-
 
1394
    public void convertStoreToNormal(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.convertStoreToNormal_call> resultHandler) throws org.apache.thrift.TException;
-
 
1395
 
1392
  }
1396
  }
1393
 
1397
 
1394
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1398
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1395
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1399
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1396
      public Factory() {}
1400
      public Factory() {}
Line 6193... Line 6197...
6193
        return result.success;
6197
        return result.success;
6194
      }
6198
      }
6195
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersByAmazonOrderCode failed: unknown result");
6199
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersByAmazonOrderCode failed: unknown result");
6196
    }
6200
    }
6197
 
6201
 
-
 
6202
    public boolean convertStoreToNormal(long orderId) throws org.apache.thrift.TException
-
 
6203
    {
-
 
6204
      send_convertStoreToNormal(orderId);
-
 
6205
      return recv_convertStoreToNormal();
-
 
6206
    }
-
 
6207
 
-
 
6208
    public void send_convertStoreToNormal(long orderId) throws org.apache.thrift.TException
-
 
6209
    {
-
 
6210
      convertStoreToNormal_args args = new convertStoreToNormal_args();
-
 
6211
      args.setOrderId(orderId);
-
 
6212
      sendBase("convertStoreToNormal", args);
-
 
6213
    }
-
 
6214
 
-
 
6215
    public boolean recv_convertStoreToNormal() throws org.apache.thrift.TException
-
 
6216
    {
-
 
6217
      convertStoreToNormal_result result = new convertStoreToNormal_result();
-
 
6218
      receiveBase(result, "convertStoreToNormal");
-
 
6219
      if (result.isSetSuccess()) {
-
 
6220
        return result.success;
-
 
6221
      }
-
 
6222
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "convertStoreToNormal failed: unknown result");
-
 
6223
    }
-
 
6224
 
6198
  }
6225
  }
6199
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6226
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6200
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6227
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6201
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6228
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6202
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
6229
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 12919... Line 12946...
12919
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12946
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12920
        return (new Client(prot)).recv_getOrdersByAmazonOrderCode();
12947
        return (new Client(prot)).recv_getOrdersByAmazonOrderCode();
12921
      }
12948
      }
12922
    }
12949
    }
12923
 
12950
 
-
 
12951
    public void convertStoreToNormal(long orderId, org.apache.thrift.async.AsyncMethodCallback<convertStoreToNormal_call> resultHandler) throws org.apache.thrift.TException {
-
 
12952
      checkReady();
-
 
12953
      convertStoreToNormal_call method_call = new convertStoreToNormal_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
12954
      this.___currentMethod = method_call;
-
 
12955
      ___manager.call(method_call);
-
 
12956
    }
-
 
12957
 
-
 
12958
    public static class convertStoreToNormal_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
12959
      private long orderId;
-
 
12960
      public convertStoreToNormal_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<convertStoreToNormal_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 {
-
 
12961
        super(client, protocolFactory, transport, resultHandler, false);
-
 
12962
        this.orderId = orderId;
-
 
12963
      }
-
 
12964
 
-
 
12965
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
12966
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("convertStoreToNormal", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
12967
        convertStoreToNormal_args args = new convertStoreToNormal_args();
-
 
12968
        args.setOrderId(orderId);
-
 
12969
        args.write(prot);
-
 
12970
        prot.writeMessageEnd();
-
 
12971
      }
-
 
12972
 
-
 
12973
      public boolean getResult() throws org.apache.thrift.TException {
-
 
12974
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12975
          throw new IllegalStateException("Method call not finished!");
-
 
12976
        }
-
 
12977
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12978
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12979
        return (new Client(prot)).recv_convertStoreToNormal();
-
 
12980
      }
-
 
12981
    }
-
 
12982
 
12924
  }
12983
  }
12925
 
12984
 
12926
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12985
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12927
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12986
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12928
    public Processor(I iface) {
12987
    public Processor(I iface) {
Line 13124... Line 13183...
13124
      processMap.put("changeAmazonOrderStatus", new changeAmazonOrderStatus());
13183
      processMap.put("changeAmazonOrderStatus", new changeAmazonOrderStatus());
13125
      processMap.put("updateTimestampForAmazonOrder", new updateTimestampForAmazonOrder());
13184
      processMap.put("updateTimestampForAmazonOrder", new updateTimestampForAmazonOrder());
13126
      processMap.put("updateSourceDetailTimestamp", new updateSourceDetailTimestamp());
13185
      processMap.put("updateSourceDetailTimestamp", new updateSourceDetailTimestamp());
13127
      processMap.put("getOrdersByMobileNumber", new getOrdersByMobileNumber());
13186
      processMap.put("getOrdersByMobileNumber", new getOrdersByMobileNumber());
13128
      processMap.put("getOrdersByAmazonOrderCode", new getOrdersByAmazonOrderCode());
13187
      processMap.put("getOrdersByAmazonOrderCode", new getOrdersByAmazonOrderCode());
-
 
13188
      processMap.put("convertStoreToNormal", new convertStoreToNormal());
13129
      return processMap;
13189
      return processMap;
13130
    }
13190
    }
13131
 
13191
 
13132
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
13192
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
13133
      public createTransaction() {
13193
      public createTransaction() {
Line 16642... Line 16702...
16642
        result.success = iface.getOrdersByAmazonOrderCode(args.amazonId);
16702
        result.success = iface.getOrdersByAmazonOrderCode(args.amazonId);
16643
        return result;
16703
        return result;
16644
      }
16704
      }
16645
    }
16705
    }
16646
 
16706
 
-
 
16707
    private static class convertStoreToNormal<I extends Iface> extends org.apache.thrift.ProcessFunction<I, convertStoreToNormal_args> {
-
 
16708
      public convertStoreToNormal() {
-
 
16709
        super("convertStoreToNormal");
-
 
16710
      }
-
 
16711
 
-
 
16712
      protected convertStoreToNormal_args getEmptyArgsInstance() {
-
 
16713
        return new convertStoreToNormal_args();
-
 
16714
      }
-
 
16715
 
-
 
16716
      protected convertStoreToNormal_result getResult(I iface, convertStoreToNormal_args args) throws org.apache.thrift.TException {
-
 
16717
        convertStoreToNormal_result result = new convertStoreToNormal_result();
-
 
16718
        result.success = iface.convertStoreToNormal(args.orderId);
-
 
16719
        result.setSuccessIsSet(true);
-
 
16720
        return result;
-
 
16721
      }
-
 
16722
    }
-
 
16723
 
16647
  }
16724
  }
16648
 
16725
 
16649
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
16726
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
16650
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
16727
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
16651
 
16728
 
Line 154470... Line 154547...
154470
      first = false;
154547
      first = false;
154471
      sb.append(")");
154548
      sb.append(")");
154472
      return sb.toString();
154549
      return sb.toString();
154473
    }
154550
    }
154474
 
154551
 
-
 
154552
    public void validate() throws org.apache.thrift.TException {
-
 
154553
      // check for required fields
-
 
154554
    }
-
 
154555
 
-
 
154556
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
154557
      try {
-
 
154558
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
154559
      } catch (org.apache.thrift.TException te) {
-
 
154560
        throw new java.io.IOException(te);
-
 
154561
      }
-
 
154562
    }
-
 
154563
 
-
 
154564
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
154565
      try {
-
 
154566
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
154567
      } catch (org.apache.thrift.TException te) {
-
 
154568
        throw new java.io.IOException(te);
-
 
154569
      }
-
 
154570
    }
-
 
154571
 
-
 
154572
  }
-
 
154573
 
-
 
154574
  public static class convertStoreToNormal_args implements org.apache.thrift.TBase<convertStoreToNormal_args, convertStoreToNormal_args._Fields>, java.io.Serializable, Cloneable   {
-
 
154575
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("convertStoreToNormal_args");
-
 
154576
 
-
 
154577
    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);
-
 
154578
 
-
 
154579
    private long orderId; // required
-
 
154580
 
-
 
154581
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
154582
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
154583
      ORDER_ID((short)1, "orderId");
-
 
154584
 
-
 
154585
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
154586
 
-
 
154587
      static {
-
 
154588
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
154589
          byName.put(field.getFieldName(), field);
-
 
154590
        }
-
 
154591
      }
-
 
154592
 
-
 
154593
      /**
-
 
154594
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
154595
       */
-
 
154596
      public static _Fields findByThriftId(int fieldId) {
-
 
154597
        switch(fieldId) {
-
 
154598
          case 1: // ORDER_ID
-
 
154599
            return ORDER_ID;
-
 
154600
          default:
-
 
154601
            return null;
-
 
154602
        }
-
 
154603
      }
-
 
154604
 
-
 
154605
      /**
-
 
154606
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
154607
       * if it is not found.
-
 
154608
       */
-
 
154609
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
154610
        _Fields fields = findByThriftId(fieldId);
-
 
154611
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
154612
        return fields;
-
 
154613
      }
-
 
154614
 
-
 
154615
      /**
-
 
154616
       * Find the _Fields constant that matches name, or null if its not found.
-
 
154617
       */
-
 
154618
      public static _Fields findByName(String name) {
-
 
154619
        return byName.get(name);
-
 
154620
      }
-
 
154621
 
-
 
154622
      private final short _thriftId;
-
 
154623
      private final String _fieldName;
-
 
154624
 
-
 
154625
      _Fields(short thriftId, String fieldName) {
-
 
154626
        _thriftId = thriftId;
-
 
154627
        _fieldName = fieldName;
-
 
154628
      }
-
 
154629
 
-
 
154630
      public short getThriftFieldId() {
-
 
154631
        return _thriftId;
-
 
154632
      }
-
 
154633
 
-
 
154634
      public String getFieldName() {
-
 
154635
        return _fieldName;
-
 
154636
      }
-
 
154637
    }
-
 
154638
 
-
 
154639
    // isset id assignments
-
 
154640
    private static final int __ORDERID_ISSET_ID = 0;
-
 
154641
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
154642
 
-
 
154643
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
154644
    static {
-
 
154645
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
154646
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
154647
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
154648
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
154649
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(convertStoreToNormal_args.class, metaDataMap);
-
 
154650
    }
-
 
154651
 
-
 
154652
    public convertStoreToNormal_args() {
-
 
154653
    }
-
 
154654
 
-
 
154655
    public convertStoreToNormal_args(
-
 
154656
      long orderId)
-
 
154657
    {
-
 
154658
      this();
-
 
154659
      this.orderId = orderId;
-
 
154660
      setOrderIdIsSet(true);
-
 
154661
    }
-
 
154662
 
-
 
154663
    /**
-
 
154664
     * Performs a deep copy on <i>other</i>.
-
 
154665
     */
-
 
154666
    public convertStoreToNormal_args(convertStoreToNormal_args other) {
-
 
154667
      __isset_bit_vector.clear();
-
 
154668
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
154669
      this.orderId = other.orderId;
-
 
154670
    }
-
 
154671
 
-
 
154672
    public convertStoreToNormal_args deepCopy() {
-
 
154673
      return new convertStoreToNormal_args(this);
-
 
154674
    }
-
 
154675
 
-
 
154676
    @Override
-
 
154677
    public void clear() {
-
 
154678
      setOrderIdIsSet(false);
-
 
154679
      this.orderId = 0;
-
 
154680
    }
-
 
154681
 
-
 
154682
    public long getOrderId() {
-
 
154683
      return this.orderId;
-
 
154684
    }
-
 
154685
 
-
 
154686
    public void setOrderId(long orderId) {
-
 
154687
      this.orderId = orderId;
-
 
154688
      setOrderIdIsSet(true);
-
 
154689
    }
-
 
154690
 
-
 
154691
    public void unsetOrderId() {
-
 
154692
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
154693
    }
-
 
154694
 
-
 
154695
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
154696
    public boolean isSetOrderId() {
-
 
154697
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
154698
    }
-
 
154699
 
-
 
154700
    public void setOrderIdIsSet(boolean value) {
-
 
154701
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
154702
    }
-
 
154703
 
-
 
154704
    public void setFieldValue(_Fields field, Object value) {
-
 
154705
      switch (field) {
-
 
154706
      case ORDER_ID:
-
 
154707
        if (value == null) {
-
 
154708
          unsetOrderId();
-
 
154709
        } else {
-
 
154710
          setOrderId((Long)value);
-
 
154711
        }
-
 
154712
        break;
-
 
154713
 
-
 
154714
      }
-
 
154715
    }
-
 
154716
 
-
 
154717
    public Object getFieldValue(_Fields field) {
-
 
154718
      switch (field) {
-
 
154719
      case ORDER_ID:
-
 
154720
        return Long.valueOf(getOrderId());
-
 
154721
 
-
 
154722
      }
-
 
154723
      throw new IllegalStateException();
-
 
154724
    }
-
 
154725
 
-
 
154726
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
154727
    public boolean isSet(_Fields field) {
-
 
154728
      if (field == null) {
-
 
154729
        throw new IllegalArgumentException();
-
 
154730
      }
-
 
154731
 
-
 
154732
      switch (field) {
-
 
154733
      case ORDER_ID:
-
 
154734
        return isSetOrderId();
-
 
154735
      }
-
 
154736
      throw new IllegalStateException();
-
 
154737
    }
-
 
154738
 
-
 
154739
    @Override
-
 
154740
    public boolean equals(Object that) {
-
 
154741
      if (that == null)
-
 
154742
        return false;
-
 
154743
      if (that instanceof convertStoreToNormal_args)
-
 
154744
        return this.equals((convertStoreToNormal_args)that);
-
 
154745
      return false;
-
 
154746
    }
-
 
154747
 
-
 
154748
    public boolean equals(convertStoreToNormal_args that) {
-
 
154749
      if (that == null)
-
 
154750
        return false;
-
 
154751
 
-
 
154752
      boolean this_present_orderId = true;
-
 
154753
      boolean that_present_orderId = true;
-
 
154754
      if (this_present_orderId || that_present_orderId) {
-
 
154755
        if (!(this_present_orderId && that_present_orderId))
-
 
154756
          return false;
-
 
154757
        if (this.orderId != that.orderId)
-
 
154758
          return false;
-
 
154759
      }
-
 
154760
 
-
 
154761
      return true;
-
 
154762
    }
-
 
154763
 
-
 
154764
    @Override
-
 
154765
    public int hashCode() {
-
 
154766
      return 0;
-
 
154767
    }
-
 
154768
 
-
 
154769
    public int compareTo(convertStoreToNormal_args other) {
-
 
154770
      if (!getClass().equals(other.getClass())) {
-
 
154771
        return getClass().getName().compareTo(other.getClass().getName());
-
 
154772
      }
-
 
154773
 
-
 
154774
      int lastComparison = 0;
-
 
154775
      convertStoreToNormal_args typedOther = (convertStoreToNormal_args)other;
-
 
154776
 
-
 
154777
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
154778
      if (lastComparison != 0) {
-
 
154779
        return lastComparison;
-
 
154780
      }
-
 
154781
      if (isSetOrderId()) {
-
 
154782
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
154783
        if (lastComparison != 0) {
-
 
154784
          return lastComparison;
-
 
154785
        }
-
 
154786
      }
-
 
154787
      return 0;
-
 
154788
    }
-
 
154789
 
-
 
154790
    public _Fields fieldForId(int fieldId) {
-
 
154791
      return _Fields.findByThriftId(fieldId);
-
 
154792
    }
-
 
154793
 
-
 
154794
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
154795
      org.apache.thrift.protocol.TField field;
-
 
154796
      iprot.readStructBegin();
-
 
154797
      while (true)
-
 
154798
      {
-
 
154799
        field = iprot.readFieldBegin();
-
 
154800
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
154801
          break;
-
 
154802
        }
-
 
154803
        switch (field.id) {
-
 
154804
          case 1: // ORDER_ID
-
 
154805
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
154806
              this.orderId = iprot.readI64();
-
 
154807
              setOrderIdIsSet(true);
-
 
154808
            } else { 
-
 
154809
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
154810
            }
-
 
154811
            break;
-
 
154812
          default:
-
 
154813
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
154814
        }
-
 
154815
        iprot.readFieldEnd();
-
 
154816
      }
-
 
154817
      iprot.readStructEnd();
-
 
154818
      validate();
-
 
154819
    }
-
 
154820
 
-
 
154821
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
154822
      validate();
-
 
154823
 
-
 
154824
      oprot.writeStructBegin(STRUCT_DESC);
-
 
154825
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
154826
      oprot.writeI64(this.orderId);
-
 
154827
      oprot.writeFieldEnd();
-
 
154828
      oprot.writeFieldStop();
-
 
154829
      oprot.writeStructEnd();
-
 
154830
    }
-
 
154831
 
-
 
154832
    @Override
-
 
154833
    public String toString() {
-
 
154834
      StringBuilder sb = new StringBuilder("convertStoreToNormal_args(");
-
 
154835
      boolean first = true;
-
 
154836
 
-
 
154837
      sb.append("orderId:");
-
 
154838
      sb.append(this.orderId);
-
 
154839
      first = false;
-
 
154840
      sb.append(")");
-
 
154841
      return sb.toString();
-
 
154842
    }
-
 
154843
 
-
 
154844
    public void validate() throws org.apache.thrift.TException {
-
 
154845
      // check for required fields
-
 
154846
    }
-
 
154847
 
-
 
154848
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
154849
      try {
-
 
154850
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
154851
      } catch (org.apache.thrift.TException te) {
-
 
154852
        throw new java.io.IOException(te);
-
 
154853
      }
-
 
154854
    }
-
 
154855
 
-
 
154856
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
154857
      try {
-
 
154858
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
154859
        __isset_bit_vector = new BitSet(1);
-
 
154860
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
154861
      } catch (org.apache.thrift.TException te) {
-
 
154862
        throw new java.io.IOException(te);
-
 
154863
      }
-
 
154864
    }
-
 
154865
 
-
 
154866
  }
-
 
154867
 
-
 
154868
  public static class convertStoreToNormal_result implements org.apache.thrift.TBase<convertStoreToNormal_result, convertStoreToNormal_result._Fields>, java.io.Serializable, Cloneable   {
-
 
154869
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("convertStoreToNormal_result");
-
 
154870
 
-
 
154871
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
154872
 
-
 
154873
    private boolean success; // required
-
 
154874
 
-
 
154875
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
154876
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
154877
      SUCCESS((short)0, "success");
-
 
154878
 
-
 
154879
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
154880
 
-
 
154881
      static {
-
 
154882
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
154883
          byName.put(field.getFieldName(), field);
-
 
154884
        }
-
 
154885
      }
-
 
154886
 
-
 
154887
      /**
-
 
154888
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
154889
       */
-
 
154890
      public static _Fields findByThriftId(int fieldId) {
-
 
154891
        switch(fieldId) {
-
 
154892
          case 0: // SUCCESS
-
 
154893
            return SUCCESS;
-
 
154894
          default:
-
 
154895
            return null;
-
 
154896
        }
-
 
154897
      }
-
 
154898
 
-
 
154899
      /**
-
 
154900
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
154901
       * if it is not found.
-
 
154902
       */
-
 
154903
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
154904
        _Fields fields = findByThriftId(fieldId);
-
 
154905
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
154906
        return fields;
-
 
154907
      }
-
 
154908
 
-
 
154909
      /**
-
 
154910
       * Find the _Fields constant that matches name, or null if its not found.
-
 
154911
       */
-
 
154912
      public static _Fields findByName(String name) {
-
 
154913
        return byName.get(name);
-
 
154914
      }
-
 
154915
 
-
 
154916
      private final short _thriftId;
-
 
154917
      private final String _fieldName;
-
 
154918
 
-
 
154919
      _Fields(short thriftId, String fieldName) {
-
 
154920
        _thriftId = thriftId;
-
 
154921
        _fieldName = fieldName;
-
 
154922
      }
-
 
154923
 
-
 
154924
      public short getThriftFieldId() {
-
 
154925
        return _thriftId;
-
 
154926
      }
-
 
154927
 
-
 
154928
      public String getFieldName() {
-
 
154929
        return _fieldName;
-
 
154930
      }
-
 
154931
    }
-
 
154932
 
-
 
154933
    // isset id assignments
-
 
154934
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
154935
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
154936
 
-
 
154937
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
154938
    static {
-
 
154939
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
154940
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
154941
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
154942
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
154943
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(convertStoreToNormal_result.class, metaDataMap);
-
 
154944
    }
-
 
154945
 
-
 
154946
    public convertStoreToNormal_result() {
-
 
154947
    }
-
 
154948
 
-
 
154949
    public convertStoreToNormal_result(
-
 
154950
      boolean success)
-
 
154951
    {
-
 
154952
      this();
-
 
154953
      this.success = success;
-
 
154954
      setSuccessIsSet(true);
-
 
154955
    }
-
 
154956
 
-
 
154957
    /**
-
 
154958
     * Performs a deep copy on <i>other</i>.
-
 
154959
     */
-
 
154960
    public convertStoreToNormal_result(convertStoreToNormal_result other) {
-
 
154961
      __isset_bit_vector.clear();
-
 
154962
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
154963
      this.success = other.success;
-
 
154964
    }
-
 
154965
 
-
 
154966
    public convertStoreToNormal_result deepCopy() {
-
 
154967
      return new convertStoreToNormal_result(this);
-
 
154968
    }
-
 
154969
 
-
 
154970
    @Override
-
 
154971
    public void clear() {
-
 
154972
      setSuccessIsSet(false);
-
 
154973
      this.success = false;
-
 
154974
    }
-
 
154975
 
-
 
154976
    public boolean isSuccess() {
-
 
154977
      return this.success;
-
 
154978
    }
-
 
154979
 
-
 
154980
    public void setSuccess(boolean success) {
-
 
154981
      this.success = success;
-
 
154982
      setSuccessIsSet(true);
-
 
154983
    }
-
 
154984
 
-
 
154985
    public void unsetSuccess() {
-
 
154986
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
154987
    }
-
 
154988
 
-
 
154989
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
154990
    public boolean isSetSuccess() {
-
 
154991
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
154992
    }
-
 
154993
 
-
 
154994
    public void setSuccessIsSet(boolean value) {
-
 
154995
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
154996
    }
-
 
154997
 
-
 
154998
    public void setFieldValue(_Fields field, Object value) {
-
 
154999
      switch (field) {
-
 
155000
      case SUCCESS:
-
 
155001
        if (value == null) {
-
 
155002
          unsetSuccess();
-
 
155003
        } else {
-
 
155004
          setSuccess((Boolean)value);
-
 
155005
        }
-
 
155006
        break;
-
 
155007
 
-
 
155008
      }
-
 
155009
    }
-
 
155010
 
-
 
155011
    public Object getFieldValue(_Fields field) {
-
 
155012
      switch (field) {
-
 
155013
      case SUCCESS:
-
 
155014
        return Boolean.valueOf(isSuccess());
-
 
155015
 
-
 
155016
      }
-
 
155017
      throw new IllegalStateException();
-
 
155018
    }
-
 
155019
 
-
 
155020
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
155021
    public boolean isSet(_Fields field) {
-
 
155022
      if (field == null) {
-
 
155023
        throw new IllegalArgumentException();
-
 
155024
      }
-
 
155025
 
-
 
155026
      switch (field) {
-
 
155027
      case SUCCESS:
-
 
155028
        return isSetSuccess();
-
 
155029
      }
-
 
155030
      throw new IllegalStateException();
-
 
155031
    }
-
 
155032
 
-
 
155033
    @Override
-
 
155034
    public boolean equals(Object that) {
-
 
155035
      if (that == null)
-
 
155036
        return false;
-
 
155037
      if (that instanceof convertStoreToNormal_result)
-
 
155038
        return this.equals((convertStoreToNormal_result)that);
-
 
155039
      return false;
-
 
155040
    }
-
 
155041
 
-
 
155042
    public boolean equals(convertStoreToNormal_result that) {
-
 
155043
      if (that == null)
-
 
155044
        return false;
-
 
155045
 
-
 
155046
      boolean this_present_success = true;
-
 
155047
      boolean that_present_success = true;
-
 
155048
      if (this_present_success || that_present_success) {
-
 
155049
        if (!(this_present_success && that_present_success))
-
 
155050
          return false;
-
 
155051
        if (this.success != that.success)
-
 
155052
          return false;
-
 
155053
      }
-
 
155054
 
-
 
155055
      return true;
-
 
155056
    }
-
 
155057
 
-
 
155058
    @Override
-
 
155059
    public int hashCode() {
-
 
155060
      return 0;
-
 
155061
    }
-
 
155062
 
-
 
155063
    public int compareTo(convertStoreToNormal_result other) {
-
 
155064
      if (!getClass().equals(other.getClass())) {
-
 
155065
        return getClass().getName().compareTo(other.getClass().getName());
-
 
155066
      }
-
 
155067
 
-
 
155068
      int lastComparison = 0;
-
 
155069
      convertStoreToNormal_result typedOther = (convertStoreToNormal_result)other;
-
 
155070
 
-
 
155071
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
155072
      if (lastComparison != 0) {
-
 
155073
        return lastComparison;
-
 
155074
      }
-
 
155075
      if (isSetSuccess()) {
-
 
155076
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
155077
        if (lastComparison != 0) {
-
 
155078
          return lastComparison;
-
 
155079
        }
-
 
155080
      }
-
 
155081
      return 0;
-
 
155082
    }
-
 
155083
 
-
 
155084
    public _Fields fieldForId(int fieldId) {
-
 
155085
      return _Fields.findByThriftId(fieldId);
-
 
155086
    }
-
 
155087
 
-
 
155088
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
155089
      org.apache.thrift.protocol.TField field;
-
 
155090
      iprot.readStructBegin();
-
 
155091
      while (true)
-
 
155092
      {
-
 
155093
        field = iprot.readFieldBegin();
-
 
155094
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
155095
          break;
-
 
155096
        }
-
 
155097
        switch (field.id) {
-
 
155098
          case 0: // SUCCESS
-
 
155099
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
155100
              this.success = iprot.readBool();
-
 
155101
              setSuccessIsSet(true);
-
 
155102
            } else { 
-
 
155103
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
155104
            }
-
 
155105
            break;
-
 
155106
          default:
-
 
155107
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
155108
        }
-
 
155109
        iprot.readFieldEnd();
-
 
155110
      }
-
 
155111
      iprot.readStructEnd();
-
 
155112
      validate();
-
 
155113
    }
-
 
155114
 
-
 
155115
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
155116
      oprot.writeStructBegin(STRUCT_DESC);
-
 
155117
 
-
 
155118
      if (this.isSetSuccess()) {
-
 
155119
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
155120
        oprot.writeBool(this.success);
-
 
155121
        oprot.writeFieldEnd();
-
 
155122
      }
-
 
155123
      oprot.writeFieldStop();
-
 
155124
      oprot.writeStructEnd();
-
 
155125
    }
-
 
155126
 
-
 
155127
    @Override
-
 
155128
    public String toString() {
-
 
155129
      StringBuilder sb = new StringBuilder("convertStoreToNormal_result(");
-
 
155130
      boolean first = true;
-
 
155131
 
-
 
155132
      sb.append("success:");
-
 
155133
      sb.append(this.success);
-
 
155134
      first = false;
-
 
155135
      sb.append(")");
-
 
155136
      return sb.toString();
-
 
155137
    }
-
 
155138
 
154475
    public void validate() throws org.apache.thrift.TException {
155139
    public void validate() throws org.apache.thrift.TException {
154476
      // check for required fields
155140
      // check for required fields
154477
    }
155141
    }
154478
 
155142
 
154479
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
155143
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {