Subversion Repositories SmartDukaan

Rev

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

Rev 7822 Rev 7936
Line 1003... Line 1003...
1003
 
1003
 
1004
    public boolean convertStoreToNormal(long orderId) throws org.apache.thrift.TException;
1004
    public boolean convertStoreToNormal(long orderId) throws org.apache.thrift.TException;
1005
 
1005
 
1006
    public Order updateFreebieItem(long orderId, long newFreebieItemId) throws org.apache.thrift.TException;
1006
    public Order updateFreebieItem(long orderId, long newFreebieItemId) throws org.apache.thrift.TException;
1007
 
1007
 
-
 
1008
    public Order updateOrderAWB(long orderId, String airwayBillNo) throws org.apache.thrift.TException;
-
 
1009
 
1008
  }
1010
  }
1009
 
1011
 
1010
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1012
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1011
 
1013
 
1012
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1014
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1395... Line 1397...
1395
 
1397
 
1396
    public void convertStoreToNormal(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.convertStoreToNormal_call> resultHandler) throws org.apache.thrift.TException;
1398
    public void convertStoreToNormal(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.convertStoreToNormal_call> resultHandler) throws org.apache.thrift.TException;
1397
 
1399
 
1398
    public void updateFreebieItem(long orderId, long newFreebieItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateFreebieItem_call> resultHandler) throws org.apache.thrift.TException;
1400
    public void updateFreebieItem(long orderId, long newFreebieItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateFreebieItem_call> resultHandler) throws org.apache.thrift.TException;
1399
 
1401
 
-
 
1402
    public void updateOrderAWB(long orderId, String airwayBillNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateOrderAWB_call> resultHandler) throws org.apache.thrift.TException;
-
 
1403
 
1400
  }
1404
  }
1401
 
1405
 
1402
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1406
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1403
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1407
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1404
      public Factory() {}
1408
      public Factory() {}
Line 6244... Line 6248...
6244
        return result.success;
6248
        return result.success;
6245
      }
6249
      }
6246
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateFreebieItem failed: unknown result");
6250
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateFreebieItem failed: unknown result");
6247
    }
6251
    }
6248
 
6252
 
-
 
6253
    public Order updateOrderAWB(long orderId, String airwayBillNo) throws org.apache.thrift.TException
-
 
6254
    {
-
 
6255
      send_updateOrderAWB(orderId, airwayBillNo);
-
 
6256
      return recv_updateOrderAWB();
-
 
6257
    }
-
 
6258
 
-
 
6259
    public void send_updateOrderAWB(long orderId, String airwayBillNo) throws org.apache.thrift.TException
-
 
6260
    {
-
 
6261
      updateOrderAWB_args args = new updateOrderAWB_args();
-
 
6262
      args.setOrderId(orderId);
-
 
6263
      args.setAirwayBillNo(airwayBillNo);
-
 
6264
      sendBase("updateOrderAWB", args);
-
 
6265
    }
-
 
6266
 
-
 
6267
    public Order recv_updateOrderAWB() throws org.apache.thrift.TException
-
 
6268
    {
-
 
6269
      updateOrderAWB_result result = new updateOrderAWB_result();
-
 
6270
      receiveBase(result, "updateOrderAWB");
-
 
6271
      if (result.isSetSuccess()) {
-
 
6272
        return result.success;
-
 
6273
      }
-
 
6274
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateOrderAWB failed: unknown result");
-
 
6275
    }
-
 
6276
 
6249
  }
6277
  }
6250
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6278
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6251
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6279
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6252
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6280
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6253
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
6281
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 13025... Line 13053...
13025
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
13053
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
13026
        return (new Client(prot)).recv_updateFreebieItem();
13054
        return (new Client(prot)).recv_updateFreebieItem();
13027
      }
13055
      }
13028
    }
13056
    }
13029
 
13057
 
-
 
13058
    public void updateOrderAWB(long orderId, String airwayBillNo, org.apache.thrift.async.AsyncMethodCallback<updateOrderAWB_call> resultHandler) throws org.apache.thrift.TException {
-
 
13059
      checkReady();
-
 
13060
      updateOrderAWB_call method_call = new updateOrderAWB_call(orderId, airwayBillNo, resultHandler, this, ___protocolFactory, ___transport);
-
 
13061
      this.___currentMethod = method_call;
-
 
13062
      ___manager.call(method_call);
-
 
13063
    }
-
 
13064
 
-
 
13065
    public static class updateOrderAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
13066
      private long orderId;
-
 
13067
      private String airwayBillNo;
-
 
13068
      public updateOrderAWB_call(long orderId, String airwayBillNo, org.apache.thrift.async.AsyncMethodCallback<updateOrderAWB_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 {
-
 
13069
        super(client, protocolFactory, transport, resultHandler, false);
-
 
13070
        this.orderId = orderId;
-
 
13071
        this.airwayBillNo = airwayBillNo;
-
 
13072
      }
-
 
13073
 
-
 
13074
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
13075
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateOrderAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
13076
        updateOrderAWB_args args = new updateOrderAWB_args();
-
 
13077
        args.setOrderId(orderId);
-
 
13078
        args.setAirwayBillNo(airwayBillNo);
-
 
13079
        args.write(prot);
-
 
13080
        prot.writeMessageEnd();
-
 
13081
      }
-
 
13082
 
-
 
13083
      public Order getResult() throws org.apache.thrift.TException {
-
 
13084
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
13085
          throw new IllegalStateException("Method call not finished!");
-
 
13086
        }
-
 
13087
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
13088
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
13089
        return (new Client(prot)).recv_updateOrderAWB();
-
 
13090
      }
-
 
13091
    }
-
 
13092
 
13030
  }
13093
  }
13031
 
13094
 
13032
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
13095
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
13033
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
13096
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
13034
    public Processor(I iface) {
13097
    public Processor(I iface) {
Line 13232... Line 13295...
13232
      processMap.put("updateSourceDetailTimestamp", new updateSourceDetailTimestamp());
13295
      processMap.put("updateSourceDetailTimestamp", new updateSourceDetailTimestamp());
13233
      processMap.put("getOrdersByMobileNumber", new getOrdersByMobileNumber());
13296
      processMap.put("getOrdersByMobileNumber", new getOrdersByMobileNumber());
13234
      processMap.put("getOrdersByAmazonOrderCode", new getOrdersByAmazonOrderCode());
13297
      processMap.put("getOrdersByAmazonOrderCode", new getOrdersByAmazonOrderCode());
13235
      processMap.put("convertStoreToNormal", new convertStoreToNormal());
13298
      processMap.put("convertStoreToNormal", new convertStoreToNormal());
13236
      processMap.put("updateFreebieItem", new updateFreebieItem());
13299
      processMap.put("updateFreebieItem", new updateFreebieItem());
-
 
13300
      processMap.put("updateOrderAWB", new updateOrderAWB());
13237
      return processMap;
13301
      return processMap;
13238
    }
13302
    }
13239
 
13303
 
13240
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
13304
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
13241
      public createTransaction() {
13305
      public createTransaction() {
Line 16783... Line 16847...
16783
        result.success = iface.updateFreebieItem(args.orderId, args.newFreebieItemId);
16847
        result.success = iface.updateFreebieItem(args.orderId, args.newFreebieItemId);
16784
        return result;
16848
        return result;
16785
      }
16849
      }
16786
    }
16850
    }
16787
 
16851
 
-
 
16852
    private static class updateOrderAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateOrderAWB_args> {
-
 
16853
      public updateOrderAWB() {
-
 
16854
        super("updateOrderAWB");
-
 
16855
      }
-
 
16856
 
-
 
16857
      protected updateOrderAWB_args getEmptyArgsInstance() {
-
 
16858
        return new updateOrderAWB_args();
-
 
16859
      }
-
 
16860
 
-
 
16861
      protected updateOrderAWB_result getResult(I iface, updateOrderAWB_args args) throws org.apache.thrift.TException {
-
 
16862
        updateOrderAWB_result result = new updateOrderAWB_result();
-
 
16863
        result.success = iface.updateOrderAWB(args.orderId, args.airwayBillNo);
-
 
16864
        return result;
-
 
16865
      }
-
 
16866
    }
-
 
16867
 
16788
  }
16868
  }
16789
 
16869
 
16790
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
16870
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
16791
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
16871
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
16792
 
16872
 
Line 155601... Line 155681...
155601
      boolean first = true;
155681
      boolean first = true;
155602
 
155682
 
155603
      sb.append("success:");
155683
      sb.append("success:");
155604
      if (this.success == null) {
155684
      if (this.success == null) {
155605
        sb.append("null");
155685
        sb.append("null");
-
 
155686
      } else {
-
 
155687
        sb.append(this.success);
-
 
155688
      }
-
 
155689
      first = false;
-
 
155690
      sb.append(")");
-
 
155691
      return sb.toString();
-
 
155692
    }
-
 
155693
 
-
 
155694
    public void validate() throws org.apache.thrift.TException {
-
 
155695
      // check for required fields
-
 
155696
    }
-
 
155697
 
-
 
155698
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
155699
      try {
-
 
155700
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
155701
      } catch (org.apache.thrift.TException te) {
-
 
155702
        throw new java.io.IOException(te);
-
 
155703
      }
-
 
155704
    }
-
 
155705
 
-
 
155706
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
155707
      try {
-
 
155708
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
155709
      } catch (org.apache.thrift.TException te) {
-
 
155710
        throw new java.io.IOException(te);
-
 
155711
      }
-
 
155712
    }
-
 
155713
 
-
 
155714
  }
-
 
155715
 
-
 
155716
  public static class updateOrderAWB_args implements org.apache.thrift.TBase<updateOrderAWB_args, updateOrderAWB_args._Fields>, java.io.Serializable, Cloneable   {
-
 
155717
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrderAWB_args");
-
 
155718
 
-
 
155719
    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);
-
 
155720
    private static final org.apache.thrift.protocol.TField AIRWAY_BILL_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("airwayBillNo", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
155721
 
-
 
155722
    private long orderId; // required
-
 
155723
    private String airwayBillNo; // required
-
 
155724
 
-
 
155725
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
155726
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
155727
      ORDER_ID((short)1, "orderId"),
-
 
155728
      AIRWAY_BILL_NO((short)2, "airwayBillNo");
-
 
155729
 
-
 
155730
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
155731
 
-
 
155732
      static {
-
 
155733
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
155734
          byName.put(field.getFieldName(), field);
-
 
155735
        }
-
 
155736
      }
-
 
155737
 
-
 
155738
      /**
-
 
155739
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
155740
       */
-
 
155741
      public static _Fields findByThriftId(int fieldId) {
-
 
155742
        switch(fieldId) {
-
 
155743
          case 1: // ORDER_ID
-
 
155744
            return ORDER_ID;
-
 
155745
          case 2: // AIRWAY_BILL_NO
-
 
155746
            return AIRWAY_BILL_NO;
-
 
155747
          default:
-
 
155748
            return null;
-
 
155749
        }
-
 
155750
      }
-
 
155751
 
-
 
155752
      /**
-
 
155753
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
155754
       * if it is not found.
-
 
155755
       */
-
 
155756
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
155757
        _Fields fields = findByThriftId(fieldId);
-
 
155758
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
155759
        return fields;
-
 
155760
      }
-
 
155761
 
-
 
155762
      /**
-
 
155763
       * Find the _Fields constant that matches name, or null if its not found.
-
 
155764
       */
-
 
155765
      public static _Fields findByName(String name) {
-
 
155766
        return byName.get(name);
-
 
155767
      }
-
 
155768
 
-
 
155769
      private final short _thriftId;
-
 
155770
      private final String _fieldName;
-
 
155771
 
-
 
155772
      _Fields(short thriftId, String fieldName) {
-
 
155773
        _thriftId = thriftId;
-
 
155774
        _fieldName = fieldName;
-
 
155775
      }
-
 
155776
 
-
 
155777
      public short getThriftFieldId() {
-
 
155778
        return _thriftId;
-
 
155779
      }
-
 
155780
 
-
 
155781
      public String getFieldName() {
-
 
155782
        return _fieldName;
-
 
155783
      }
-
 
155784
    }
-
 
155785
 
-
 
155786
    // isset id assignments
-
 
155787
    private static final int __ORDERID_ISSET_ID = 0;
-
 
155788
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
155789
 
-
 
155790
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
155791
    static {
-
 
155792
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
155793
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
155794
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
155795
      tmpMap.put(_Fields.AIRWAY_BILL_NO, new org.apache.thrift.meta_data.FieldMetaData("airwayBillNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
155796
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
155797
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
155798
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrderAWB_args.class, metaDataMap);
-
 
155799
    }
-
 
155800
 
-
 
155801
    public updateOrderAWB_args() {
-
 
155802
    }
-
 
155803
 
-
 
155804
    public updateOrderAWB_args(
-
 
155805
      long orderId,
-
 
155806
      String airwayBillNo)
-
 
155807
    {
-
 
155808
      this();
-
 
155809
      this.orderId = orderId;
-
 
155810
      setOrderIdIsSet(true);
-
 
155811
      this.airwayBillNo = airwayBillNo;
-
 
155812
    }
-
 
155813
 
-
 
155814
    /**
-
 
155815
     * Performs a deep copy on <i>other</i>.
-
 
155816
     */
-
 
155817
    public updateOrderAWB_args(updateOrderAWB_args other) {
-
 
155818
      __isset_bit_vector.clear();
-
 
155819
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
155820
      this.orderId = other.orderId;
-
 
155821
      if (other.isSetAirwayBillNo()) {
-
 
155822
        this.airwayBillNo = other.airwayBillNo;
-
 
155823
      }
-
 
155824
    }
-
 
155825
 
-
 
155826
    public updateOrderAWB_args deepCopy() {
-
 
155827
      return new updateOrderAWB_args(this);
-
 
155828
    }
-
 
155829
 
-
 
155830
    @Override
-
 
155831
    public void clear() {
-
 
155832
      setOrderIdIsSet(false);
-
 
155833
      this.orderId = 0;
-
 
155834
      this.airwayBillNo = null;
-
 
155835
    }
-
 
155836
 
-
 
155837
    public long getOrderId() {
-
 
155838
      return this.orderId;
-
 
155839
    }
-
 
155840
 
-
 
155841
    public void setOrderId(long orderId) {
-
 
155842
      this.orderId = orderId;
-
 
155843
      setOrderIdIsSet(true);
-
 
155844
    }
-
 
155845
 
-
 
155846
    public void unsetOrderId() {
-
 
155847
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
155848
    }
-
 
155849
 
-
 
155850
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
155851
    public boolean isSetOrderId() {
-
 
155852
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
155853
    }
-
 
155854
 
-
 
155855
    public void setOrderIdIsSet(boolean value) {
-
 
155856
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
155857
    }
-
 
155858
 
-
 
155859
    public String getAirwayBillNo() {
-
 
155860
      return this.airwayBillNo;
-
 
155861
    }
-
 
155862
 
-
 
155863
    public void setAirwayBillNo(String airwayBillNo) {
-
 
155864
      this.airwayBillNo = airwayBillNo;
-
 
155865
    }
-
 
155866
 
-
 
155867
    public void unsetAirwayBillNo() {
-
 
155868
      this.airwayBillNo = null;
-
 
155869
    }
-
 
155870
 
-
 
155871
    /** Returns true if field airwayBillNo is set (has been assigned a value) and false otherwise */
-
 
155872
    public boolean isSetAirwayBillNo() {
-
 
155873
      return this.airwayBillNo != null;
-
 
155874
    }
-
 
155875
 
-
 
155876
    public void setAirwayBillNoIsSet(boolean value) {
-
 
155877
      if (!value) {
-
 
155878
        this.airwayBillNo = null;
-
 
155879
      }
-
 
155880
    }
-
 
155881
 
-
 
155882
    public void setFieldValue(_Fields field, Object value) {
-
 
155883
      switch (field) {
-
 
155884
      case ORDER_ID:
-
 
155885
        if (value == null) {
-
 
155886
          unsetOrderId();
-
 
155887
        } else {
-
 
155888
          setOrderId((Long)value);
-
 
155889
        }
-
 
155890
        break;
-
 
155891
 
-
 
155892
      case AIRWAY_BILL_NO:
-
 
155893
        if (value == null) {
-
 
155894
          unsetAirwayBillNo();
-
 
155895
        } else {
-
 
155896
          setAirwayBillNo((String)value);
-
 
155897
        }
-
 
155898
        break;
-
 
155899
 
-
 
155900
      }
-
 
155901
    }
-
 
155902
 
-
 
155903
    public Object getFieldValue(_Fields field) {
-
 
155904
      switch (field) {
-
 
155905
      case ORDER_ID:
-
 
155906
        return Long.valueOf(getOrderId());
-
 
155907
 
-
 
155908
      case AIRWAY_BILL_NO:
-
 
155909
        return getAirwayBillNo();
-
 
155910
 
-
 
155911
      }
-
 
155912
      throw new IllegalStateException();
-
 
155913
    }
-
 
155914
 
-
 
155915
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
155916
    public boolean isSet(_Fields field) {
-
 
155917
      if (field == null) {
-
 
155918
        throw new IllegalArgumentException();
-
 
155919
      }
-
 
155920
 
-
 
155921
      switch (field) {
-
 
155922
      case ORDER_ID:
-
 
155923
        return isSetOrderId();
-
 
155924
      case AIRWAY_BILL_NO:
-
 
155925
        return isSetAirwayBillNo();
-
 
155926
      }
-
 
155927
      throw new IllegalStateException();
-
 
155928
    }
-
 
155929
 
-
 
155930
    @Override
-
 
155931
    public boolean equals(Object that) {
-
 
155932
      if (that == null)
-
 
155933
        return false;
-
 
155934
      if (that instanceof updateOrderAWB_args)
-
 
155935
        return this.equals((updateOrderAWB_args)that);
-
 
155936
      return false;
-
 
155937
    }
-
 
155938
 
-
 
155939
    public boolean equals(updateOrderAWB_args that) {
-
 
155940
      if (that == null)
-
 
155941
        return false;
-
 
155942
 
-
 
155943
      boolean this_present_orderId = true;
-
 
155944
      boolean that_present_orderId = true;
-
 
155945
      if (this_present_orderId || that_present_orderId) {
-
 
155946
        if (!(this_present_orderId && that_present_orderId))
-
 
155947
          return false;
-
 
155948
        if (this.orderId != that.orderId)
-
 
155949
          return false;
-
 
155950
      }
-
 
155951
 
-
 
155952
      boolean this_present_airwayBillNo = true && this.isSetAirwayBillNo();
-
 
155953
      boolean that_present_airwayBillNo = true && that.isSetAirwayBillNo();
-
 
155954
      if (this_present_airwayBillNo || that_present_airwayBillNo) {
-
 
155955
        if (!(this_present_airwayBillNo && that_present_airwayBillNo))
-
 
155956
          return false;
-
 
155957
        if (!this.airwayBillNo.equals(that.airwayBillNo))
-
 
155958
          return false;
-
 
155959
      }
-
 
155960
 
-
 
155961
      return true;
-
 
155962
    }
-
 
155963
 
-
 
155964
    @Override
-
 
155965
    public int hashCode() {
-
 
155966
      return 0;
-
 
155967
    }
-
 
155968
 
-
 
155969
    public int compareTo(updateOrderAWB_args other) {
-
 
155970
      if (!getClass().equals(other.getClass())) {
-
 
155971
        return getClass().getName().compareTo(other.getClass().getName());
-
 
155972
      }
-
 
155973
 
-
 
155974
      int lastComparison = 0;
-
 
155975
      updateOrderAWB_args typedOther = (updateOrderAWB_args)other;
-
 
155976
 
-
 
155977
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
155978
      if (lastComparison != 0) {
-
 
155979
        return lastComparison;
-
 
155980
      }
-
 
155981
      if (isSetOrderId()) {
-
 
155982
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
155983
        if (lastComparison != 0) {
-
 
155984
          return lastComparison;
-
 
155985
        }
-
 
155986
      }
-
 
155987
      lastComparison = Boolean.valueOf(isSetAirwayBillNo()).compareTo(typedOther.isSetAirwayBillNo());
-
 
155988
      if (lastComparison != 0) {
-
 
155989
        return lastComparison;
-
 
155990
      }
-
 
155991
      if (isSetAirwayBillNo()) {
-
 
155992
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.airwayBillNo, typedOther.airwayBillNo);
-
 
155993
        if (lastComparison != 0) {
-
 
155994
          return lastComparison;
-
 
155995
        }
-
 
155996
      }
-
 
155997
      return 0;
-
 
155998
    }
-
 
155999
 
-
 
156000
    public _Fields fieldForId(int fieldId) {
-
 
156001
      return _Fields.findByThriftId(fieldId);
-
 
156002
    }
-
 
156003
 
-
 
156004
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
156005
      org.apache.thrift.protocol.TField field;
-
 
156006
      iprot.readStructBegin();
-
 
156007
      while (true)
-
 
156008
      {
-
 
156009
        field = iprot.readFieldBegin();
-
 
156010
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
156011
          break;
-
 
156012
        }
-
 
156013
        switch (field.id) {
-
 
156014
          case 1: // ORDER_ID
-
 
156015
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
156016
              this.orderId = iprot.readI64();
-
 
156017
              setOrderIdIsSet(true);
-
 
156018
            } else { 
-
 
156019
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
156020
            }
-
 
156021
            break;
-
 
156022
          case 2: // AIRWAY_BILL_NO
-
 
156023
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
156024
              this.airwayBillNo = iprot.readString();
-
 
156025
            } else { 
-
 
156026
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
156027
            }
-
 
156028
            break;
-
 
156029
          default:
-
 
156030
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
156031
        }
-
 
156032
        iprot.readFieldEnd();
-
 
156033
      }
-
 
156034
      iprot.readStructEnd();
-
 
156035
      validate();
-
 
156036
    }
-
 
156037
 
-
 
156038
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
156039
      validate();
-
 
156040
 
-
 
156041
      oprot.writeStructBegin(STRUCT_DESC);
-
 
156042
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
156043
      oprot.writeI64(this.orderId);
-
 
156044
      oprot.writeFieldEnd();
-
 
156045
      if (this.airwayBillNo != null) {
-
 
156046
        oprot.writeFieldBegin(AIRWAY_BILL_NO_FIELD_DESC);
-
 
156047
        oprot.writeString(this.airwayBillNo);
-
 
156048
        oprot.writeFieldEnd();
-
 
156049
      }
-
 
156050
      oprot.writeFieldStop();
-
 
156051
      oprot.writeStructEnd();
-
 
156052
    }
-
 
156053
 
-
 
156054
    @Override
-
 
156055
    public String toString() {
-
 
156056
      StringBuilder sb = new StringBuilder("updateOrderAWB_args(");
-
 
156057
      boolean first = true;
-
 
156058
 
-
 
156059
      sb.append("orderId:");
-
 
156060
      sb.append(this.orderId);
-
 
156061
      first = false;
-
 
156062
      if (!first) sb.append(", ");
-
 
156063
      sb.append("airwayBillNo:");
-
 
156064
      if (this.airwayBillNo == null) {
-
 
156065
        sb.append("null");
-
 
156066
      } else {
-
 
156067
        sb.append(this.airwayBillNo);
-
 
156068
      }
-
 
156069
      first = false;
-
 
156070
      sb.append(")");
-
 
156071
      return sb.toString();
-
 
156072
    }
-
 
156073
 
-
 
156074
    public void validate() throws org.apache.thrift.TException {
-
 
156075
      // check for required fields
-
 
156076
    }
-
 
156077
 
-
 
156078
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
156079
      try {
-
 
156080
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
156081
      } catch (org.apache.thrift.TException te) {
-
 
156082
        throw new java.io.IOException(te);
-
 
156083
      }
-
 
156084
    }
-
 
156085
 
-
 
156086
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
156087
      try {
-
 
156088
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
156089
        __isset_bit_vector = new BitSet(1);
-
 
156090
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
156091
      } catch (org.apache.thrift.TException te) {
-
 
156092
        throw new java.io.IOException(te);
-
 
156093
      }
-
 
156094
    }
-
 
156095
 
-
 
156096
  }
-
 
156097
 
-
 
156098
  public static class updateOrderAWB_result implements org.apache.thrift.TBase<updateOrderAWB_result, updateOrderAWB_result._Fields>, java.io.Serializable, Cloneable   {
-
 
156099
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrderAWB_result");
-
 
156100
 
-
 
156101
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
156102
 
-
 
156103
    private Order success; // required
-
 
156104
 
-
 
156105
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
156106
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
156107
      SUCCESS((short)0, "success");
-
 
156108
 
-
 
156109
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
156110
 
-
 
156111
      static {
-
 
156112
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
156113
          byName.put(field.getFieldName(), field);
-
 
156114
        }
-
 
156115
      }
-
 
156116
 
-
 
156117
      /**
-
 
156118
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
156119
       */
-
 
156120
      public static _Fields findByThriftId(int fieldId) {
-
 
156121
        switch(fieldId) {
-
 
156122
          case 0: // SUCCESS
-
 
156123
            return SUCCESS;
-
 
156124
          default:
-
 
156125
            return null;
-
 
156126
        }
-
 
156127
      }
-
 
156128
 
-
 
156129
      /**
-
 
156130
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
156131
       * if it is not found.
-
 
156132
       */
-
 
156133
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
156134
        _Fields fields = findByThriftId(fieldId);
-
 
156135
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
156136
        return fields;
-
 
156137
      }
-
 
156138
 
-
 
156139
      /**
-
 
156140
       * Find the _Fields constant that matches name, or null if its not found.
-
 
156141
       */
-
 
156142
      public static _Fields findByName(String name) {
-
 
156143
        return byName.get(name);
-
 
156144
      }
-
 
156145
 
-
 
156146
      private final short _thriftId;
-
 
156147
      private final String _fieldName;
-
 
156148
 
-
 
156149
      _Fields(short thriftId, String fieldName) {
-
 
156150
        _thriftId = thriftId;
-
 
156151
        _fieldName = fieldName;
-
 
156152
      }
-
 
156153
 
-
 
156154
      public short getThriftFieldId() {
-
 
156155
        return _thriftId;
-
 
156156
      }
-
 
156157
 
-
 
156158
      public String getFieldName() {
-
 
156159
        return _fieldName;
-
 
156160
      }
-
 
156161
    }
-
 
156162
 
-
 
156163
    // isset id assignments
-
 
156164
 
-
 
156165
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
156166
    static {
-
 
156167
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
156168
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
156169
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
-
 
156170
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
156171
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrderAWB_result.class, metaDataMap);
-
 
156172
    }
-
 
156173
 
-
 
156174
    public updateOrderAWB_result() {
-
 
156175
    }
-
 
156176
 
-
 
156177
    public updateOrderAWB_result(
-
 
156178
      Order success)
-
 
156179
    {
-
 
156180
      this();
-
 
156181
      this.success = success;
-
 
156182
    }
-
 
156183
 
-
 
156184
    /**
-
 
156185
     * Performs a deep copy on <i>other</i>.
-
 
156186
     */
-
 
156187
    public updateOrderAWB_result(updateOrderAWB_result other) {
-
 
156188
      if (other.isSetSuccess()) {
-
 
156189
        this.success = new Order(other.success);
-
 
156190
      }
-
 
156191
    }
-
 
156192
 
-
 
156193
    public updateOrderAWB_result deepCopy() {
-
 
156194
      return new updateOrderAWB_result(this);
-
 
156195
    }
-
 
156196
 
-
 
156197
    @Override
-
 
156198
    public void clear() {
-
 
156199
      this.success = null;
-
 
156200
    }
-
 
156201
 
-
 
156202
    public Order getSuccess() {
-
 
156203
      return this.success;
-
 
156204
    }
-
 
156205
 
-
 
156206
    public void setSuccess(Order success) {
-
 
156207
      this.success = success;
-
 
156208
    }
-
 
156209
 
-
 
156210
    public void unsetSuccess() {
-
 
156211
      this.success = null;
-
 
156212
    }
-
 
156213
 
-
 
156214
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
156215
    public boolean isSetSuccess() {
-
 
156216
      return this.success != null;
-
 
156217
    }
-
 
156218
 
-
 
156219
    public void setSuccessIsSet(boolean value) {
-
 
156220
      if (!value) {
-
 
156221
        this.success = null;
-
 
156222
      }
-
 
156223
    }
-
 
156224
 
-
 
156225
    public void setFieldValue(_Fields field, Object value) {
-
 
156226
      switch (field) {
-
 
156227
      case SUCCESS:
-
 
156228
        if (value == null) {
-
 
156229
          unsetSuccess();
-
 
156230
        } else {
-
 
156231
          setSuccess((Order)value);
-
 
156232
        }
-
 
156233
        break;
-
 
156234
 
-
 
156235
      }
-
 
156236
    }
-
 
156237
 
-
 
156238
    public Object getFieldValue(_Fields field) {
-
 
156239
      switch (field) {
-
 
156240
      case SUCCESS:
-
 
156241
        return getSuccess();
-
 
156242
 
-
 
156243
      }
-
 
156244
      throw new IllegalStateException();
-
 
156245
    }
-
 
156246
 
-
 
156247
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
156248
    public boolean isSet(_Fields field) {
-
 
156249
      if (field == null) {
-
 
156250
        throw new IllegalArgumentException();
-
 
156251
      }
-
 
156252
 
-
 
156253
      switch (field) {
-
 
156254
      case SUCCESS:
-
 
156255
        return isSetSuccess();
-
 
156256
      }
-
 
156257
      throw new IllegalStateException();
-
 
156258
    }
-
 
156259
 
-
 
156260
    @Override
-
 
156261
    public boolean equals(Object that) {
-
 
156262
      if (that == null)
-
 
156263
        return false;
-
 
156264
      if (that instanceof updateOrderAWB_result)
-
 
156265
        return this.equals((updateOrderAWB_result)that);
-
 
156266
      return false;
-
 
156267
    }
-
 
156268
 
-
 
156269
    public boolean equals(updateOrderAWB_result that) {
-
 
156270
      if (that == null)
-
 
156271
        return false;
-
 
156272
 
-
 
156273
      boolean this_present_success = true && this.isSetSuccess();
-
 
156274
      boolean that_present_success = true && that.isSetSuccess();
-
 
156275
      if (this_present_success || that_present_success) {
-
 
156276
        if (!(this_present_success && that_present_success))
-
 
156277
          return false;
-
 
156278
        if (!this.success.equals(that.success))
-
 
156279
          return false;
-
 
156280
      }
-
 
156281
 
-
 
156282
      return true;
-
 
156283
    }
-
 
156284
 
-
 
156285
    @Override
-
 
156286
    public int hashCode() {
-
 
156287
      return 0;
-
 
156288
    }
-
 
156289
 
-
 
156290
    public int compareTo(updateOrderAWB_result other) {
-
 
156291
      if (!getClass().equals(other.getClass())) {
-
 
156292
        return getClass().getName().compareTo(other.getClass().getName());
-
 
156293
      }
-
 
156294
 
-
 
156295
      int lastComparison = 0;
-
 
156296
      updateOrderAWB_result typedOther = (updateOrderAWB_result)other;
-
 
156297
 
-
 
156298
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
156299
      if (lastComparison != 0) {
-
 
156300
        return lastComparison;
-
 
156301
      }
-
 
156302
      if (isSetSuccess()) {
-
 
156303
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
156304
        if (lastComparison != 0) {
-
 
156305
          return lastComparison;
-
 
156306
        }
-
 
156307
      }
-
 
156308
      return 0;
-
 
156309
    }
-
 
156310
 
-
 
156311
    public _Fields fieldForId(int fieldId) {
-
 
156312
      return _Fields.findByThriftId(fieldId);
-
 
156313
    }
-
 
156314
 
-
 
156315
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
156316
      org.apache.thrift.protocol.TField field;
-
 
156317
      iprot.readStructBegin();
-
 
156318
      while (true)
-
 
156319
      {
-
 
156320
        field = iprot.readFieldBegin();
-
 
156321
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
156322
          break;
-
 
156323
        }
-
 
156324
        switch (field.id) {
-
 
156325
          case 0: // SUCCESS
-
 
156326
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
156327
              this.success = new Order();
-
 
156328
              this.success.read(iprot);
-
 
156329
            } else { 
-
 
156330
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
156331
            }
-
 
156332
            break;
-
 
156333
          default:
-
 
156334
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
156335
        }
-
 
156336
        iprot.readFieldEnd();
-
 
156337
      }
-
 
156338
      iprot.readStructEnd();
-
 
156339
      validate();
-
 
156340
    }
-
 
156341
 
-
 
156342
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
156343
      oprot.writeStructBegin(STRUCT_DESC);
-
 
156344
 
-
 
156345
      if (this.isSetSuccess()) {
-
 
156346
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
156347
        this.success.write(oprot);
-
 
156348
        oprot.writeFieldEnd();
-
 
156349
      }
-
 
156350
      oprot.writeFieldStop();
-
 
156351
      oprot.writeStructEnd();
-
 
156352
    }
-
 
156353
 
-
 
156354
    @Override
-
 
156355
    public String toString() {
-
 
156356
      StringBuilder sb = new StringBuilder("updateOrderAWB_result(");
-
 
156357
      boolean first = true;
-
 
156358
 
-
 
156359
      sb.append("success:");
-
 
156360
      if (this.success == null) {
-
 
156361
        sb.append("null");
155606
      } else {
156362
      } else {
155607
        sb.append(this.success);
156363
        sb.append(this.success);
155608
      }
156364
      }
155609
      first = false;
156365
      first = false;
155610
      sb.append(")");
156366
      sb.append(")");