Subversion Repositories SmartDukaan

Rev

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

Rev 9159 Rev 9339
Line 1051... Line 1051...
1051
 
1051
 
1052
    public FlipkartOrder getFlipkartOrderByOrderItemId(String flipkartOrderItemId) throws org.apache.thrift.TException;
1052
    public FlipkartOrder getFlipkartOrderByOrderItemId(String flipkartOrderItemId) throws org.apache.thrift.TException;
1053
 
1053
 
1054
    public void updateFlipkartOrderDatesAndAWB(String flipkartOrderId, String flipkartSubOrderId, long date, String awb) throws org.apache.thrift.TException;
1054
    public void updateFlipkartOrderDatesAndAWB(String flipkartOrderId, String flipkartSubOrderId, long date, String awb) throws org.apache.thrift.TException;
1055
 
1055
 
-
 
1056
    public Order getOrderForAirwayBillNo(String airwaybillNo) throws TransactionServiceException, org.apache.thrift.TException;
-
 
1057
 
1056
  }
1058
  }
1057
 
1059
 
1058
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1060
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1059
 
1061
 
1060
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1062
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1489... Line 1491...
1489
 
1491
 
1490
    public void getFlipkartOrderByOrderItemId(String flipkartOrderItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartOrderByOrderItemId_call> resultHandler) throws org.apache.thrift.TException;
1492
    public void getFlipkartOrderByOrderItemId(String flipkartOrderItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartOrderByOrderItemId_call> resultHandler) throws org.apache.thrift.TException;
1491
 
1493
 
1492
    public void updateFlipkartOrderDatesAndAWB(String flipkartOrderId, String flipkartSubOrderId, long date, String awb, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateFlipkartOrderDatesAndAWB_call> resultHandler) throws org.apache.thrift.TException;
1494
    public void updateFlipkartOrderDatesAndAWB(String flipkartOrderId, String flipkartSubOrderId, long date, String awb, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateFlipkartOrderDatesAndAWB_call> resultHandler) throws org.apache.thrift.TException;
1493
 
1495
 
-
 
1496
    public void getOrderForAirwayBillNo(String airwaybillNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForAirwayBillNo_call> resultHandler) throws org.apache.thrift.TException;
-
 
1497
 
1494
  }
1498
  }
1495
 
1499
 
1496
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1500
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1497
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1501
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1498
      public Factory() {}
1502
      public Factory() {}
Line 6862... Line 6866...
6862
      updateFlipkartOrderDatesAndAWB_result result = new updateFlipkartOrderDatesAndAWB_result();
6866
      updateFlipkartOrderDatesAndAWB_result result = new updateFlipkartOrderDatesAndAWB_result();
6863
      receiveBase(result, "updateFlipkartOrderDatesAndAWB");
6867
      receiveBase(result, "updateFlipkartOrderDatesAndAWB");
6864
      return;
6868
      return;
6865
    }
6869
    }
6866
 
6870
 
-
 
6871
    public Order getOrderForAirwayBillNo(String airwaybillNo) throws TransactionServiceException, org.apache.thrift.TException
-
 
6872
    {
-
 
6873
      send_getOrderForAirwayBillNo(airwaybillNo);
-
 
6874
      return recv_getOrderForAirwayBillNo();
-
 
6875
    }
-
 
6876
 
-
 
6877
    public void send_getOrderForAirwayBillNo(String airwaybillNo) throws org.apache.thrift.TException
-
 
6878
    {
-
 
6879
      getOrderForAirwayBillNo_args args = new getOrderForAirwayBillNo_args();
-
 
6880
      args.setAirwaybillNo(airwaybillNo);
-
 
6881
      sendBase("getOrderForAirwayBillNo", args);
-
 
6882
    }
-
 
6883
 
-
 
6884
    public Order recv_getOrderForAirwayBillNo() throws TransactionServiceException, org.apache.thrift.TException
-
 
6885
    {
-
 
6886
      getOrderForAirwayBillNo_result result = new getOrderForAirwayBillNo_result();
-
 
6887
      receiveBase(result, "getOrderForAirwayBillNo");
-
 
6888
      if (result.isSetSuccess()) {
-
 
6889
        return result.success;
-
 
6890
      }
-
 
6891
      if (result.ex != null) {
-
 
6892
        throw result.ex;
-
 
6893
      }
-
 
6894
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForAirwayBillNo failed: unknown result");
-
 
6895
    }
-
 
6896
 
6867
  }
6897
  }
6868
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6898
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6869
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6899
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6870
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6900
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6871
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
6901
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 14427... Line 14457...
14427
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
14457
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
14428
        (new Client(prot)).recv_updateFlipkartOrderDatesAndAWB();
14458
        (new Client(prot)).recv_updateFlipkartOrderDatesAndAWB();
14429
      }
14459
      }
14430
    }
14460
    }
14431
 
14461
 
-
 
14462
    public void getOrderForAirwayBillNo(String airwaybillNo, org.apache.thrift.async.AsyncMethodCallback<getOrderForAirwayBillNo_call> resultHandler) throws org.apache.thrift.TException {
-
 
14463
      checkReady();
-
 
14464
      getOrderForAirwayBillNo_call method_call = new getOrderForAirwayBillNo_call(airwaybillNo, resultHandler, this, ___protocolFactory, ___transport);
-
 
14465
      this.___currentMethod = method_call;
-
 
14466
      ___manager.call(method_call);
-
 
14467
    }
-
 
14468
 
-
 
14469
    public static class getOrderForAirwayBillNo_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
14470
      private String airwaybillNo;
-
 
14471
      public getOrderForAirwayBillNo_call(String airwaybillNo, org.apache.thrift.async.AsyncMethodCallback<getOrderForAirwayBillNo_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 {
-
 
14472
        super(client, protocolFactory, transport, resultHandler, false);
-
 
14473
        this.airwaybillNo = airwaybillNo;
-
 
14474
      }
-
 
14475
 
-
 
14476
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
14477
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderForAirwayBillNo", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
14478
        getOrderForAirwayBillNo_args args = new getOrderForAirwayBillNo_args();
-
 
14479
        args.setAirwaybillNo(airwaybillNo);
-
 
14480
        args.write(prot);
-
 
14481
        prot.writeMessageEnd();
-
 
14482
      }
-
 
14483
 
-
 
14484
      public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
14485
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
14486
          throw new IllegalStateException("Method call not finished!");
-
 
14487
        }
-
 
14488
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
14489
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
14490
        return (new Client(prot)).recv_getOrderForAirwayBillNo();
-
 
14491
      }
-
 
14492
    }
-
 
14493
 
14432
  }
14494
  }
14433
 
14495
 
14434
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
14496
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
14435
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
14497
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
14436
    public Processor(I iface) {
14498
    public Processor(I iface) {
Line 14657... Line 14719...
14657
      processMap.put("flipkartOrderExists", new flipkartOrderExists());
14719
      processMap.put("flipkartOrderExists", new flipkartOrderExists());
14658
      processMap.put("createFlipkartOrder", new createFlipkartOrder());
14720
      processMap.put("createFlipkartOrder", new createFlipkartOrder());
14659
      processMap.put("getFlipkartOrder", new getFlipkartOrder());
14721
      processMap.put("getFlipkartOrder", new getFlipkartOrder());
14660
      processMap.put("getFlipkartOrderByOrderItemId", new getFlipkartOrderByOrderItemId());
14722
      processMap.put("getFlipkartOrderByOrderItemId", new getFlipkartOrderByOrderItemId());
14661
      processMap.put("updateFlipkartOrderDatesAndAWB", new updateFlipkartOrderDatesAndAWB());
14723
      processMap.put("updateFlipkartOrderDatesAndAWB", new updateFlipkartOrderDatesAndAWB());
-
 
14724
      processMap.put("getOrderForAirwayBillNo", new getOrderForAirwayBillNo());
14662
      return processMap;
14725
      return processMap;
14663
    }
14726
    }
14664
 
14727
 
14665
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
14728
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
14666
      public createTransaction() {
14729
      public createTransaction() {
Line 18583... Line 18646...
18583
        iface.updateFlipkartOrderDatesAndAWB(args.flipkartOrderId, args.flipkartSubOrderId, args.date, args.awb);
18646
        iface.updateFlipkartOrderDatesAndAWB(args.flipkartOrderId, args.flipkartSubOrderId, args.date, args.awb);
18584
        return result;
18647
        return result;
18585
      }
18648
      }
18586
    }
18649
    }
18587
 
18650
 
-
 
18651
    private static class getOrderForAirwayBillNo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderForAirwayBillNo_args> {
-
 
18652
      public getOrderForAirwayBillNo() {
-
 
18653
        super("getOrderForAirwayBillNo");
-
 
18654
      }
-
 
18655
 
-
 
18656
      protected getOrderForAirwayBillNo_args getEmptyArgsInstance() {
-
 
18657
        return new getOrderForAirwayBillNo_args();
-
 
18658
      }
-
 
18659
 
-
 
18660
      protected getOrderForAirwayBillNo_result getResult(I iface, getOrderForAirwayBillNo_args args) throws org.apache.thrift.TException {
-
 
18661
        getOrderForAirwayBillNo_result result = new getOrderForAirwayBillNo_result();
-
 
18662
        try {
-
 
18663
          result.success = iface.getOrderForAirwayBillNo(args.airwaybillNo);
-
 
18664
        } catch (TransactionServiceException ex) {
-
 
18665
          result.ex = ex;
-
 
18666
        }
-
 
18667
        return result;
-
 
18668
      }
-
 
18669
    }
-
 
18670
 
18588
  }
18671
  }
18589
 
18672
 
18590
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
18673
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
18591
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
18674
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
18592
 
18675
 
Line 171858... Line 171941...
171858
      sb.append(")");
171941
      sb.append(")");
171859
      return sb.toString();
171942
      return sb.toString();
171860
    }
171943
    }
171861
 
171944
 
171862
    public void validate() throws org.apache.thrift.TException {
171945
    public void validate() throws org.apache.thrift.TException {
-
 
171946
      // check for required fields
-
 
171947
    }
-
 
171948
 
-
 
171949
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
171950
      try {
-
 
171951
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
171952
      } catch (org.apache.thrift.TException te) {
-
 
171953
        throw new java.io.IOException(te);
-
 
171954
      }
-
 
171955
    }
-
 
171956
 
-
 
171957
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
171958
      try {
-
 
171959
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
171960
      } catch (org.apache.thrift.TException te) {
-
 
171961
        throw new java.io.IOException(te);
-
 
171962
      }
-
 
171963
    }
-
 
171964
 
-
 
171965
  }
-
 
171966
 
-
 
171967
  public static class getOrderForAirwayBillNo_args implements org.apache.thrift.TBase<getOrderForAirwayBillNo_args, getOrderForAirwayBillNo_args._Fields>, java.io.Serializable, Cloneable   {
-
 
171968
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForAirwayBillNo_args");
-
 
171969
 
-
 
171970
    private static final org.apache.thrift.protocol.TField AIRWAYBILL_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("airwaybillNo", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
171971
 
-
 
171972
    private String airwaybillNo; // required
-
 
171973
 
-
 
171974
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
171975
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
171976
      AIRWAYBILL_NO((short)1, "airwaybillNo");
-
 
171977
 
-
 
171978
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
171979
 
-
 
171980
      static {
-
 
171981
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
171982
          byName.put(field.getFieldName(), field);
-
 
171983
        }
-
 
171984
      }
-
 
171985
 
-
 
171986
      /**
-
 
171987
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
171988
       */
-
 
171989
      public static _Fields findByThriftId(int fieldId) {
-
 
171990
        switch(fieldId) {
-
 
171991
          case 1: // AIRWAYBILL_NO
-
 
171992
            return AIRWAYBILL_NO;
-
 
171993
          default:
-
 
171994
            return null;
-
 
171995
        }
-
 
171996
      }
-
 
171997
 
-
 
171998
      /**
-
 
171999
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
172000
       * if it is not found.
-
 
172001
       */
-
 
172002
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
172003
        _Fields fields = findByThriftId(fieldId);
-
 
172004
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
172005
        return fields;
-
 
172006
      }
-
 
172007
 
-
 
172008
      /**
-
 
172009
       * Find the _Fields constant that matches name, or null if its not found.
-
 
172010
       */
-
 
172011
      public static _Fields findByName(String name) {
-
 
172012
        return byName.get(name);
-
 
172013
      }
-
 
172014
 
-
 
172015
      private final short _thriftId;
-
 
172016
      private final String _fieldName;
-
 
172017
 
-
 
172018
      _Fields(short thriftId, String fieldName) {
-
 
172019
        _thriftId = thriftId;
-
 
172020
        _fieldName = fieldName;
-
 
172021
      }
-
 
172022
 
-
 
172023
      public short getThriftFieldId() {
-
 
172024
        return _thriftId;
-
 
172025
      }
-
 
172026
 
-
 
172027
      public String getFieldName() {
-
 
172028
        return _fieldName;
-
 
172029
      }
-
 
172030
    }
-
 
172031
 
-
 
172032
    // isset id assignments
-
 
172033
 
-
 
172034
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
172035
    static {
-
 
172036
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
172037
      tmpMap.put(_Fields.AIRWAYBILL_NO, new org.apache.thrift.meta_data.FieldMetaData("airwaybillNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
172038
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
172039
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
172040
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForAirwayBillNo_args.class, metaDataMap);
-
 
172041
    }
-
 
172042
 
-
 
172043
    public getOrderForAirwayBillNo_args() {
-
 
172044
    }
-
 
172045
 
-
 
172046
    public getOrderForAirwayBillNo_args(
-
 
172047
      String airwaybillNo)
-
 
172048
    {
-
 
172049
      this();
-
 
172050
      this.airwaybillNo = airwaybillNo;
-
 
172051
    }
-
 
172052
 
-
 
172053
    /**
-
 
172054
     * Performs a deep copy on <i>other</i>.
-
 
172055
     */
-
 
172056
    public getOrderForAirwayBillNo_args(getOrderForAirwayBillNo_args other) {
-
 
172057
      if (other.isSetAirwaybillNo()) {
-
 
172058
        this.airwaybillNo = other.airwaybillNo;
-
 
172059
      }
-
 
172060
    }
-
 
172061
 
-
 
172062
    public getOrderForAirwayBillNo_args deepCopy() {
-
 
172063
      return new getOrderForAirwayBillNo_args(this);
-
 
172064
    }
-
 
172065
 
-
 
172066
    @Override
-
 
172067
    public void clear() {
-
 
172068
      this.airwaybillNo = null;
-
 
172069
    }
-
 
172070
 
-
 
172071
    public String getAirwaybillNo() {
-
 
172072
      return this.airwaybillNo;
-
 
172073
    }
-
 
172074
 
-
 
172075
    public void setAirwaybillNo(String airwaybillNo) {
-
 
172076
      this.airwaybillNo = airwaybillNo;
-
 
172077
    }
-
 
172078
 
-
 
172079
    public void unsetAirwaybillNo() {
-
 
172080
      this.airwaybillNo = null;
-
 
172081
    }
-
 
172082
 
-
 
172083
    /** Returns true if field airwaybillNo is set (has been assigned a value) and false otherwise */
-
 
172084
    public boolean isSetAirwaybillNo() {
-
 
172085
      return this.airwaybillNo != null;
-
 
172086
    }
-
 
172087
 
-
 
172088
    public void setAirwaybillNoIsSet(boolean value) {
-
 
172089
      if (!value) {
-
 
172090
        this.airwaybillNo = null;
-
 
172091
      }
-
 
172092
    }
-
 
172093
 
-
 
172094
    public void setFieldValue(_Fields field, Object value) {
-
 
172095
      switch (field) {
-
 
172096
      case AIRWAYBILL_NO:
-
 
172097
        if (value == null) {
-
 
172098
          unsetAirwaybillNo();
-
 
172099
        } else {
-
 
172100
          setAirwaybillNo((String)value);
-
 
172101
        }
-
 
172102
        break;
-
 
172103
 
-
 
172104
      }
-
 
172105
    }
-
 
172106
 
-
 
172107
    public Object getFieldValue(_Fields field) {
-
 
172108
      switch (field) {
-
 
172109
      case AIRWAYBILL_NO:
-
 
172110
        return getAirwaybillNo();
-
 
172111
 
-
 
172112
      }
-
 
172113
      throw new IllegalStateException();
-
 
172114
    }
-
 
172115
 
-
 
172116
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
172117
    public boolean isSet(_Fields field) {
-
 
172118
      if (field == null) {
-
 
172119
        throw new IllegalArgumentException();
-
 
172120
      }
-
 
172121
 
-
 
172122
      switch (field) {
-
 
172123
      case AIRWAYBILL_NO:
-
 
172124
        return isSetAirwaybillNo();
-
 
172125
      }
-
 
172126
      throw new IllegalStateException();
-
 
172127
    }
-
 
172128
 
-
 
172129
    @Override
-
 
172130
    public boolean equals(Object that) {
-
 
172131
      if (that == null)
-
 
172132
        return false;
-
 
172133
      if (that instanceof getOrderForAirwayBillNo_args)
-
 
172134
        return this.equals((getOrderForAirwayBillNo_args)that);
-
 
172135
      return false;
-
 
172136
    }
-
 
172137
 
-
 
172138
    public boolean equals(getOrderForAirwayBillNo_args that) {
-
 
172139
      if (that == null)
-
 
172140
        return false;
-
 
172141
 
-
 
172142
      boolean this_present_airwaybillNo = true && this.isSetAirwaybillNo();
-
 
172143
      boolean that_present_airwaybillNo = true && that.isSetAirwaybillNo();
-
 
172144
      if (this_present_airwaybillNo || that_present_airwaybillNo) {
-
 
172145
        if (!(this_present_airwaybillNo && that_present_airwaybillNo))
-
 
172146
          return false;
-
 
172147
        if (!this.airwaybillNo.equals(that.airwaybillNo))
-
 
172148
          return false;
-
 
172149
      }
-
 
172150
 
-
 
172151
      return true;
-
 
172152
    }
-
 
172153
 
-
 
172154
    @Override
-
 
172155
    public int hashCode() {
-
 
172156
      return 0;
-
 
172157
    }
-
 
172158
 
-
 
172159
    public int compareTo(getOrderForAirwayBillNo_args other) {
-
 
172160
      if (!getClass().equals(other.getClass())) {
-
 
172161
        return getClass().getName().compareTo(other.getClass().getName());
-
 
172162
      }
-
 
172163
 
-
 
172164
      int lastComparison = 0;
-
 
172165
      getOrderForAirwayBillNo_args typedOther = (getOrderForAirwayBillNo_args)other;
-
 
172166
 
-
 
172167
      lastComparison = Boolean.valueOf(isSetAirwaybillNo()).compareTo(typedOther.isSetAirwaybillNo());
-
 
172168
      if (lastComparison != 0) {
-
 
172169
        return lastComparison;
-
 
172170
      }
-
 
172171
      if (isSetAirwaybillNo()) {
-
 
172172
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.airwaybillNo, typedOther.airwaybillNo);
-
 
172173
        if (lastComparison != 0) {
-
 
172174
          return lastComparison;
-
 
172175
        }
-
 
172176
      }
-
 
172177
      return 0;
-
 
172178
    }
-
 
172179
 
-
 
172180
    public _Fields fieldForId(int fieldId) {
-
 
172181
      return _Fields.findByThriftId(fieldId);
-
 
172182
    }
-
 
172183
 
-
 
172184
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
172185
      org.apache.thrift.protocol.TField field;
-
 
172186
      iprot.readStructBegin();
-
 
172187
      while (true)
-
 
172188
      {
-
 
172189
        field = iprot.readFieldBegin();
-
 
172190
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
172191
          break;
-
 
172192
        }
-
 
172193
        switch (field.id) {
-
 
172194
          case 1: // AIRWAYBILL_NO
-
 
172195
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
172196
              this.airwaybillNo = iprot.readString();
-
 
172197
            } else { 
-
 
172198
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
172199
            }
-
 
172200
            break;
-
 
172201
          default:
-
 
172202
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
172203
        }
-
 
172204
        iprot.readFieldEnd();
-
 
172205
      }
-
 
172206
      iprot.readStructEnd();
-
 
172207
      validate();
-
 
172208
    }
-
 
172209
 
-
 
172210
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
172211
      validate();
-
 
172212
 
-
 
172213
      oprot.writeStructBegin(STRUCT_DESC);
-
 
172214
      if (this.airwaybillNo != null) {
-
 
172215
        oprot.writeFieldBegin(AIRWAYBILL_NO_FIELD_DESC);
-
 
172216
        oprot.writeString(this.airwaybillNo);
-
 
172217
        oprot.writeFieldEnd();
-
 
172218
      }
-
 
172219
      oprot.writeFieldStop();
-
 
172220
      oprot.writeStructEnd();
-
 
172221
    }
-
 
172222
 
-
 
172223
    @Override
-
 
172224
    public String toString() {
-
 
172225
      StringBuilder sb = new StringBuilder("getOrderForAirwayBillNo_args(");
-
 
172226
      boolean first = true;
-
 
172227
 
-
 
172228
      sb.append("airwaybillNo:");
-
 
172229
      if (this.airwaybillNo == null) {
-
 
172230
        sb.append("null");
-
 
172231
      } else {
-
 
172232
        sb.append(this.airwaybillNo);
-
 
172233
      }
-
 
172234
      first = false;
-
 
172235
      sb.append(")");
-
 
172236
      return sb.toString();
-
 
172237
    }
-
 
172238
 
-
 
172239
    public void validate() throws org.apache.thrift.TException {
-
 
172240
      // check for required fields
-
 
172241
    }
-
 
172242
 
-
 
172243
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
172244
      try {
-
 
172245
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
172246
      } catch (org.apache.thrift.TException te) {
-
 
172247
        throw new java.io.IOException(te);
-
 
172248
      }
-
 
172249
    }
-
 
172250
 
-
 
172251
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
172252
      try {
-
 
172253
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
172254
      } catch (org.apache.thrift.TException te) {
-
 
172255
        throw new java.io.IOException(te);
-
 
172256
      }
-
 
172257
    }
-
 
172258
 
-
 
172259
  }
-
 
172260
 
-
 
172261
  public static class getOrderForAirwayBillNo_result implements org.apache.thrift.TBase<getOrderForAirwayBillNo_result, getOrderForAirwayBillNo_result._Fields>, java.io.Serializable, Cloneable   {
-
 
172262
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForAirwayBillNo_result");
-
 
172263
 
-
 
172264
    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);
-
 
172265
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
172266
 
-
 
172267
    private Order success; // required
-
 
172268
    private TransactionServiceException ex; // required
-
 
172269
 
-
 
172270
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
172271
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
172272
      SUCCESS((short)0, "success"),
-
 
172273
      EX((short)1, "ex");
-
 
172274
 
-
 
172275
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
172276
 
-
 
172277
      static {
-
 
172278
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
172279
          byName.put(field.getFieldName(), field);
-
 
172280
        }
-
 
172281
      }
-
 
172282
 
-
 
172283
      /**
-
 
172284
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
172285
       */
-
 
172286
      public static _Fields findByThriftId(int fieldId) {
-
 
172287
        switch(fieldId) {
-
 
172288
          case 0: // SUCCESS
-
 
172289
            return SUCCESS;
-
 
172290
          case 1: // EX
-
 
172291
            return EX;
-
 
172292
          default:
-
 
172293
            return null;
-
 
172294
        }
-
 
172295
      }
-
 
172296
 
-
 
172297
      /**
-
 
172298
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
172299
       * if it is not found.
-
 
172300
       */
-
 
172301
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
172302
        _Fields fields = findByThriftId(fieldId);
-
 
172303
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
172304
        return fields;
-
 
172305
      }
-
 
172306
 
-
 
172307
      /**
-
 
172308
       * Find the _Fields constant that matches name, or null if its not found.
-
 
172309
       */
-
 
172310
      public static _Fields findByName(String name) {
-
 
172311
        return byName.get(name);
-
 
172312
      }
-
 
172313
 
-
 
172314
      private final short _thriftId;
-
 
172315
      private final String _fieldName;
-
 
172316
 
-
 
172317
      _Fields(short thriftId, String fieldName) {
-
 
172318
        _thriftId = thriftId;
-
 
172319
        _fieldName = fieldName;
-
 
172320
      }
-
 
172321
 
-
 
172322
      public short getThriftFieldId() {
-
 
172323
        return _thriftId;
-
 
172324
      }
-
 
172325
 
-
 
172326
      public String getFieldName() {
-
 
172327
        return _fieldName;
-
 
172328
      }
-
 
172329
    }
-
 
172330
 
-
 
172331
    // isset id assignments
-
 
172332
 
-
 
172333
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
172334
    static {
-
 
172335
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
172336
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
172337
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
-
 
172338
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
172339
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
172340
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
172341
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForAirwayBillNo_result.class, metaDataMap);
-
 
172342
    }
-
 
172343
 
-
 
172344
    public getOrderForAirwayBillNo_result() {
-
 
172345
    }
-
 
172346
 
-
 
172347
    public getOrderForAirwayBillNo_result(
-
 
172348
      Order success,
-
 
172349
      TransactionServiceException ex)
-
 
172350
    {
-
 
172351
      this();
-
 
172352
      this.success = success;
-
 
172353
      this.ex = ex;
-
 
172354
    }
-
 
172355
 
-
 
172356
    /**
-
 
172357
     * Performs a deep copy on <i>other</i>.
-
 
172358
     */
-
 
172359
    public getOrderForAirwayBillNo_result(getOrderForAirwayBillNo_result other) {
-
 
172360
      if (other.isSetSuccess()) {
-
 
172361
        this.success = new Order(other.success);
-
 
172362
      }
-
 
172363
      if (other.isSetEx()) {
-
 
172364
        this.ex = new TransactionServiceException(other.ex);
-
 
172365
      }
-
 
172366
    }
-
 
172367
 
-
 
172368
    public getOrderForAirwayBillNo_result deepCopy() {
-
 
172369
      return new getOrderForAirwayBillNo_result(this);
-
 
172370
    }
-
 
172371
 
-
 
172372
    @Override
-
 
172373
    public void clear() {
-
 
172374
      this.success = null;
-
 
172375
      this.ex = null;
-
 
172376
    }
-
 
172377
 
-
 
172378
    public Order getSuccess() {
-
 
172379
      return this.success;
-
 
172380
    }
-
 
172381
 
-
 
172382
    public void setSuccess(Order success) {
-
 
172383
      this.success = success;
-
 
172384
    }
-
 
172385
 
-
 
172386
    public void unsetSuccess() {
-
 
172387
      this.success = null;
-
 
172388
    }
-
 
172389
 
-
 
172390
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
172391
    public boolean isSetSuccess() {
-
 
172392
      return this.success != null;
-
 
172393
    }
-
 
172394
 
-
 
172395
    public void setSuccessIsSet(boolean value) {
-
 
172396
      if (!value) {
-
 
172397
        this.success = null;
-
 
172398
      }
-
 
172399
    }
-
 
172400
 
-
 
172401
    public TransactionServiceException getEx() {
-
 
172402
      return this.ex;
-
 
172403
    }
-
 
172404
 
-
 
172405
    public void setEx(TransactionServiceException ex) {
-
 
172406
      this.ex = ex;
-
 
172407
    }
-
 
172408
 
-
 
172409
    public void unsetEx() {
-
 
172410
      this.ex = null;
-
 
172411
    }
-
 
172412
 
-
 
172413
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
172414
    public boolean isSetEx() {
-
 
172415
      return this.ex != null;
-
 
172416
    }
-
 
172417
 
-
 
172418
    public void setExIsSet(boolean value) {
-
 
172419
      if (!value) {
-
 
172420
        this.ex = null;
-
 
172421
      }
-
 
172422
    }
-
 
172423
 
-
 
172424
    public void setFieldValue(_Fields field, Object value) {
-
 
172425
      switch (field) {
-
 
172426
      case SUCCESS:
-
 
172427
        if (value == null) {
-
 
172428
          unsetSuccess();
-
 
172429
        } else {
-
 
172430
          setSuccess((Order)value);
-
 
172431
        }
-
 
172432
        break;
-
 
172433
 
-
 
172434
      case EX:
-
 
172435
        if (value == null) {
-
 
172436
          unsetEx();
-
 
172437
        } else {
-
 
172438
          setEx((TransactionServiceException)value);
-
 
172439
        }
-
 
172440
        break;
-
 
172441
 
-
 
172442
      }
-
 
172443
    }
-
 
172444
 
-
 
172445
    public Object getFieldValue(_Fields field) {
-
 
172446
      switch (field) {
-
 
172447
      case SUCCESS:
-
 
172448
        return getSuccess();
-
 
172449
 
-
 
172450
      case EX:
-
 
172451
        return getEx();
-
 
172452
 
-
 
172453
      }
-
 
172454
      throw new IllegalStateException();
-
 
172455
    }
-
 
172456
 
-
 
172457
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
172458
    public boolean isSet(_Fields field) {
-
 
172459
      if (field == null) {
-
 
172460
        throw new IllegalArgumentException();
-
 
172461
      }
-
 
172462
 
-
 
172463
      switch (field) {
-
 
172464
      case SUCCESS:
-
 
172465
        return isSetSuccess();
-
 
172466
      case EX:
-
 
172467
        return isSetEx();
-
 
172468
      }
-
 
172469
      throw new IllegalStateException();
-
 
172470
    }
-
 
172471
 
-
 
172472
    @Override
-
 
172473
    public boolean equals(Object that) {
-
 
172474
      if (that == null)
-
 
172475
        return false;
-
 
172476
      if (that instanceof getOrderForAirwayBillNo_result)
-
 
172477
        return this.equals((getOrderForAirwayBillNo_result)that);
-
 
172478
      return false;
-
 
172479
    }
-
 
172480
 
-
 
172481
    public boolean equals(getOrderForAirwayBillNo_result that) {
-
 
172482
      if (that == null)
-
 
172483
        return false;
-
 
172484
 
-
 
172485
      boolean this_present_success = true && this.isSetSuccess();
-
 
172486
      boolean that_present_success = true && that.isSetSuccess();
-
 
172487
      if (this_present_success || that_present_success) {
-
 
172488
        if (!(this_present_success && that_present_success))
-
 
172489
          return false;
-
 
172490
        if (!this.success.equals(that.success))
-
 
172491
          return false;
-
 
172492
      }
-
 
172493
 
-
 
172494
      boolean this_present_ex = true && this.isSetEx();
-
 
172495
      boolean that_present_ex = true && that.isSetEx();
-
 
172496
      if (this_present_ex || that_present_ex) {
-
 
172497
        if (!(this_present_ex && that_present_ex))
-
 
172498
          return false;
-
 
172499
        if (!this.ex.equals(that.ex))
-
 
172500
          return false;
-
 
172501
      }
-
 
172502
 
-
 
172503
      return true;
-
 
172504
    }
-
 
172505
 
-
 
172506
    @Override
-
 
172507
    public int hashCode() {
-
 
172508
      return 0;
-
 
172509
    }
-
 
172510
 
-
 
172511
    public int compareTo(getOrderForAirwayBillNo_result other) {
-
 
172512
      if (!getClass().equals(other.getClass())) {
-
 
172513
        return getClass().getName().compareTo(other.getClass().getName());
-
 
172514
      }
-
 
172515
 
-
 
172516
      int lastComparison = 0;
-
 
172517
      getOrderForAirwayBillNo_result typedOther = (getOrderForAirwayBillNo_result)other;
-
 
172518
 
-
 
172519
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
172520
      if (lastComparison != 0) {
-
 
172521
        return lastComparison;
-
 
172522
      }
-
 
172523
      if (isSetSuccess()) {
-
 
172524
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
172525
        if (lastComparison != 0) {
-
 
172526
          return lastComparison;
-
 
172527
        }
-
 
172528
      }
-
 
172529
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
172530
      if (lastComparison != 0) {
-
 
172531
        return lastComparison;
-
 
172532
      }
-
 
172533
      if (isSetEx()) {
-
 
172534
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
172535
        if (lastComparison != 0) {
-
 
172536
          return lastComparison;
-
 
172537
        }
-
 
172538
      }
-
 
172539
      return 0;
-
 
172540
    }
-
 
172541
 
-
 
172542
    public _Fields fieldForId(int fieldId) {
-
 
172543
      return _Fields.findByThriftId(fieldId);
-
 
172544
    }
-
 
172545
 
-
 
172546
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
172547
      org.apache.thrift.protocol.TField field;
-
 
172548
      iprot.readStructBegin();
-
 
172549
      while (true)
-
 
172550
      {
-
 
172551
        field = iprot.readFieldBegin();
-
 
172552
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
172553
          break;
-
 
172554
        }
-
 
172555
        switch (field.id) {
-
 
172556
          case 0: // SUCCESS
-
 
172557
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
172558
              this.success = new Order();
-
 
172559
              this.success.read(iprot);
-
 
172560
            } else { 
-
 
172561
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
172562
            }
-
 
172563
            break;
-
 
172564
          case 1: // EX
-
 
172565
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
172566
              this.ex = new TransactionServiceException();
-
 
172567
              this.ex.read(iprot);
-
 
172568
            } else { 
-
 
172569
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
172570
            }
-
 
172571
            break;
-
 
172572
          default:
-
 
172573
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
172574
        }
-
 
172575
        iprot.readFieldEnd();
-
 
172576
      }
-
 
172577
      iprot.readStructEnd();
-
 
172578
      validate();
-
 
172579
    }
-
 
172580
 
-
 
172581
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
172582
      oprot.writeStructBegin(STRUCT_DESC);
-
 
172583
 
-
 
172584
      if (this.isSetSuccess()) {
-
 
172585
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
172586
        this.success.write(oprot);
-
 
172587
        oprot.writeFieldEnd();
-
 
172588
      } else if (this.isSetEx()) {
-
 
172589
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
172590
        this.ex.write(oprot);
-
 
172591
        oprot.writeFieldEnd();
-
 
172592
      }
-
 
172593
      oprot.writeFieldStop();
-
 
172594
      oprot.writeStructEnd();
-
 
172595
    }
-
 
172596
 
-
 
172597
    @Override
-
 
172598
    public String toString() {
-
 
172599
      StringBuilder sb = new StringBuilder("getOrderForAirwayBillNo_result(");
-
 
172600
      boolean first = true;
-
 
172601
 
-
 
172602
      sb.append("success:");
-
 
172603
      if (this.success == null) {
-
 
172604
        sb.append("null");
-
 
172605
      } else {
-
 
172606
        sb.append(this.success);
-
 
172607
      }
-
 
172608
      first = false;
-
 
172609
      if (!first) sb.append(", ");
-
 
172610
      sb.append("ex:");
-
 
172611
      if (this.ex == null) {
-
 
172612
        sb.append("null");
-
 
172613
      } else {
-
 
172614
        sb.append(this.ex);
-
 
172615
      }
-
 
172616
      first = false;
-
 
172617
      sb.append(")");
-
 
172618
      return sb.toString();
-
 
172619
    }
-
 
172620
 
-
 
172621
    public void validate() throws org.apache.thrift.TException {
171863
      // check for required fields
172622
      // check for required fields
171864
    }
172623
    }
171865
 
172624
 
171866
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
172625
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
171867
      try {
172626
      try {