Subversion Repositories SmartDukaan

Rev

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

Rev 4369 Rev 4386
Line 573... Line 573...
573
 
573
 
574
    public void markOrdersAsNotAvailabke(long vendorId, long itemId, long quantity, long estimate, boolean isReminder) throws TransactionServiceException, org.apache.thrift.TException;
574
    public void markOrdersAsNotAvailabke(long vendorId, long itemId, long quantity, long estimate, boolean isReminder) throws TransactionServiceException, org.apache.thrift.TException;
575
 
575
 
576
    public Map<Integer,TimeoutSummary> markOrdersAsTimeout(long vendorId) throws TransactionServiceException, org.apache.thrift.TException;
576
    public Map<Integer,TimeoutSummary> markOrdersAsTimeout(long vendorId) throws TransactionServiceException, org.apache.thrift.TException;
577
 
577
 
-
 
578
    /**
-
 
579
     * Returns the order corresponding to an AWB number
-
 
580
     * 
-
 
581
     * @param awb
-
 
582
     */
-
 
583
    public Order getOrderForAwb(String awb) throws TransactionServiceException, org.apache.thrift.TException;
-
 
584
 
578
  }
585
  }
579
 
586
 
580
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
587
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
581
 
588
 
582
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
589
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 717... Line 724...
717
 
724
 
718
    public void markOrdersAsNotAvailabke(long vendorId, long itemId, long quantity, long estimate, boolean isReminder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsNotAvailabke_call> resultHandler) throws org.apache.thrift.TException;
725
    public void markOrdersAsNotAvailabke(long vendorId, long itemId, long quantity, long estimate, boolean isReminder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsNotAvailabke_call> resultHandler) throws org.apache.thrift.TException;
719
 
726
 
720
    public void markOrdersAsTimeout(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsTimeout_call> resultHandler) throws org.apache.thrift.TException;
727
    public void markOrdersAsTimeout(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsTimeout_call> resultHandler) throws org.apache.thrift.TException;
721
 
728
 
-
 
729
    public void getOrderForAwb(String awb, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForAwb_call> resultHandler) throws org.apache.thrift.TException;
-
 
730
 
722
  }
731
  }
723
 
732
 
724
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
733
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
725
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
734
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
726
      public Factory() {}
735
      public Factory() {}
Line 2549... Line 2558...
2549
        throw result.ex;
2558
        throw result.ex;
2550
      }
2559
      }
2551
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrdersAsTimeout failed: unknown result");
2560
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrdersAsTimeout failed: unknown result");
2552
    }
2561
    }
2553
 
2562
 
-
 
2563
    public Order getOrderForAwb(String awb) throws TransactionServiceException, org.apache.thrift.TException
-
 
2564
    {
-
 
2565
      send_getOrderForAwb(awb);
-
 
2566
      return recv_getOrderForAwb();
-
 
2567
    }
-
 
2568
 
-
 
2569
    public void send_getOrderForAwb(String awb) throws org.apache.thrift.TException
-
 
2570
    {
-
 
2571
      getOrderForAwb_args args = new getOrderForAwb_args();
-
 
2572
      args.setAwb(awb);
-
 
2573
      sendBase("getOrderForAwb", args);
-
 
2574
    }
-
 
2575
 
-
 
2576
    public Order recv_getOrderForAwb() throws TransactionServiceException, org.apache.thrift.TException
-
 
2577
    {
-
 
2578
      getOrderForAwb_result result = new getOrderForAwb_result();
-
 
2579
      receiveBase(result, "getOrderForAwb");
-
 
2580
      if (result.isSetSuccess()) {
-
 
2581
        return result.success;
-
 
2582
      }
-
 
2583
      if (result.ex != null) {
-
 
2584
        throw result.ex;
-
 
2585
      }
-
 
2586
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForAwb failed: unknown result");
-
 
2587
    }
-
 
2588
 
2554
  }
2589
  }
2555
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2590
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2556
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2591
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2557
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2592
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2558
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2593
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5029... Line 5064...
5029
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5064
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5030
        return (new Client(prot)).recv_markOrdersAsTimeout();
5065
        return (new Client(prot)).recv_markOrdersAsTimeout();
5031
      }
5066
      }
5032
    }
5067
    }
5033
 
5068
 
-
 
5069
    public void getOrderForAwb(String awb, org.apache.thrift.async.AsyncMethodCallback<getOrderForAwb_call> resultHandler) throws org.apache.thrift.TException {
-
 
5070
      checkReady();
-
 
5071
      getOrderForAwb_call method_call = new getOrderForAwb_call(awb, resultHandler, this, ___protocolFactory, ___transport);
-
 
5072
      this.___currentMethod = method_call;
-
 
5073
      ___manager.call(method_call);
-
 
5074
    }
-
 
5075
 
-
 
5076
    public static class getOrderForAwb_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5077
      private String awb;
-
 
5078
      public getOrderForAwb_call(String awb, org.apache.thrift.async.AsyncMethodCallback<getOrderForAwb_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 {
-
 
5079
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5080
        this.awb = awb;
-
 
5081
      }
-
 
5082
 
-
 
5083
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5084
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderForAwb", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5085
        getOrderForAwb_args args = new getOrderForAwb_args();
-
 
5086
        args.setAwb(awb);
-
 
5087
        args.write(prot);
-
 
5088
        prot.writeMessageEnd();
-
 
5089
      }
-
 
5090
 
-
 
5091
      public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
5092
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5093
          throw new IllegalStateException("Method call not finished!");
-
 
5094
        }
-
 
5095
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5096
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5097
        return (new Client(prot)).recv_getOrderForAwb();
-
 
5098
      }
-
 
5099
    }
-
 
5100
 
5034
  }
5101
  }
5035
 
5102
 
5036
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5103
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5037
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5104
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5038
    public Processor(I iface) {
5105
    public Processor(I iface) {
Line 5112... Line 5179...
5112
      processMap.put("acceptOrdersForItemId", new acceptOrdersForItemId());
5179
      processMap.put("acceptOrdersForItemId", new acceptOrdersForItemId());
5113
      processMap.put("markOrdersAsPORaised", new markOrdersAsPORaised());
5180
      processMap.put("markOrdersAsPORaised", new markOrdersAsPORaised());
5114
      processMap.put("markOrdersAsReversalInitiated", new markOrdersAsReversalInitiated());
5181
      processMap.put("markOrdersAsReversalInitiated", new markOrdersAsReversalInitiated());
5115
      processMap.put("markOrdersAsNotAvailabke", new markOrdersAsNotAvailabke());
5182
      processMap.put("markOrdersAsNotAvailabke", new markOrdersAsNotAvailabke());
5116
      processMap.put("markOrdersAsTimeout", new markOrdersAsTimeout());
5183
      processMap.put("markOrdersAsTimeout", new markOrdersAsTimeout());
-
 
5184
      processMap.put("getOrderForAwb", new getOrderForAwb());
5117
      return processMap;
5185
      return processMap;
5118
    }
5186
    }
5119
 
5187
 
5120
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
5188
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
5121
      public createTransaction() {
5189
      public createTransaction() {
Line 6486... Line 6554...
6486
        }
6554
        }
6487
        return result;
6555
        return result;
6488
      }
6556
      }
6489
    }
6557
    }
6490
 
6558
 
-
 
6559
    private static class getOrderForAwb<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderForAwb_args> {
-
 
6560
      public getOrderForAwb() {
-
 
6561
        super("getOrderForAwb");
-
 
6562
      }
-
 
6563
 
-
 
6564
      protected getOrderForAwb_args getEmptyArgsInstance() {
-
 
6565
        return new getOrderForAwb_args();
-
 
6566
      }
-
 
6567
 
-
 
6568
      protected getOrderForAwb_result getResult(I iface, getOrderForAwb_args args) throws org.apache.thrift.TException {
-
 
6569
        getOrderForAwb_result result = new getOrderForAwb_result();
-
 
6570
        try {
-
 
6571
          result.success = iface.getOrderForAwb(args.awb);
-
 
6572
        } catch (TransactionServiceException ex) {
-
 
6573
          result.ex = ex;
-
 
6574
        }
-
 
6575
        return result;
-
 
6576
      }
-
 
6577
    }
-
 
6578
 
6491
  }
6579
  }
6492
 
6580
 
6493
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
6581
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
6494
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
6582
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
6495
 
6583
 
Line 27507... Line 27595...
27507
      }
27595
      }
27508
    }
27596
    }
27509
 
27597
 
27510
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27598
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27511
      try {
27599
      try {
-
 
27600
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
27601
        __isset_bit_vector = new BitSet(1);
27512
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27602
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27513
      } catch (org.apache.thrift.TException te) {
27603
      } catch (org.apache.thrift.TException te) {
27514
        throw new java.io.IOException(te);
27604
        throw new java.io.IOException(te);
27515
      }
27605
      }
27516
    }
27606
    }
Line 30833... Line 30923...
30833
      }
30923
      }
30834
    }
30924
    }
30835
 
30925
 
30836
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30926
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30837
      try {
30927
      try {
30838
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
30839
        __isset_bit_vector = new BitSet(1);
-
 
30840
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30928
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30841
      } catch (org.apache.thrift.TException te) {
30929
      } catch (org.apache.thrift.TException te) {
30842
        throw new java.io.IOException(te);
30930
        throw new java.io.IOException(te);
30843
      }
30931
      }
30844
    }
30932
    }
Line 58861... Line 58949...
58861
      boolean first = true;
58949
      boolean first = true;
58862
 
58950
 
58863
      sb.append("success:");
58951
      sb.append("success:");
58864
      if (this.success == null) {
58952
      if (this.success == null) {
58865
        sb.append("null");
58953
        sb.append("null");
-
 
58954
      } else {
-
 
58955
        sb.append(this.success);
-
 
58956
      }
-
 
58957
      first = false;
-
 
58958
      if (!first) sb.append(", ");
-
 
58959
      sb.append("ex:");
-
 
58960
      if (this.ex == null) {
-
 
58961
        sb.append("null");
-
 
58962
      } else {
-
 
58963
        sb.append(this.ex);
-
 
58964
      }
-
 
58965
      first = false;
-
 
58966
      sb.append(")");
-
 
58967
      return sb.toString();
-
 
58968
    }
-
 
58969
 
-
 
58970
    public void validate() throws org.apache.thrift.TException {
-
 
58971
      // check for required fields
-
 
58972
    }
-
 
58973
 
-
 
58974
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
58975
      try {
-
 
58976
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
58977
      } catch (org.apache.thrift.TException te) {
-
 
58978
        throw new java.io.IOException(te);
-
 
58979
      }
-
 
58980
    }
-
 
58981
 
-
 
58982
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
58983
      try {
-
 
58984
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
58985
      } catch (org.apache.thrift.TException te) {
-
 
58986
        throw new java.io.IOException(te);
-
 
58987
      }
-
 
58988
    }
-
 
58989
 
-
 
58990
  }
-
 
58991
 
-
 
58992
  public static class getOrderForAwb_args implements org.apache.thrift.TBase<getOrderForAwb_args, getOrderForAwb_args._Fields>, java.io.Serializable, Cloneable   {
-
 
58993
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForAwb_args");
-
 
58994
 
-
 
58995
    private static final org.apache.thrift.protocol.TField AWB_FIELD_DESC = new org.apache.thrift.protocol.TField("awb", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
58996
 
-
 
58997
    private String awb; // required
-
 
58998
 
-
 
58999
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
59000
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
59001
      AWB((short)1, "awb");
-
 
59002
 
-
 
59003
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
59004
 
-
 
59005
      static {
-
 
59006
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
59007
          byName.put(field.getFieldName(), field);
-
 
59008
        }
-
 
59009
      }
-
 
59010
 
-
 
59011
      /**
-
 
59012
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
59013
       */
-
 
59014
      public static _Fields findByThriftId(int fieldId) {
-
 
59015
        switch(fieldId) {
-
 
59016
          case 1: // AWB
-
 
59017
            return AWB;
-
 
59018
          default:
-
 
59019
            return null;
-
 
59020
        }
-
 
59021
      }
-
 
59022
 
-
 
59023
      /**
-
 
59024
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
59025
       * if it is not found.
-
 
59026
       */
-
 
59027
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
59028
        _Fields fields = findByThriftId(fieldId);
-
 
59029
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
59030
        return fields;
-
 
59031
      }
-
 
59032
 
-
 
59033
      /**
-
 
59034
       * Find the _Fields constant that matches name, or null if its not found.
-
 
59035
       */
-
 
59036
      public static _Fields findByName(String name) {
-
 
59037
        return byName.get(name);
-
 
59038
      }
-
 
59039
 
-
 
59040
      private final short _thriftId;
-
 
59041
      private final String _fieldName;
-
 
59042
 
-
 
59043
      _Fields(short thriftId, String fieldName) {
-
 
59044
        _thriftId = thriftId;
-
 
59045
        _fieldName = fieldName;
-
 
59046
      }
-
 
59047
 
-
 
59048
      public short getThriftFieldId() {
-
 
59049
        return _thriftId;
-
 
59050
      }
-
 
59051
 
-
 
59052
      public String getFieldName() {
-
 
59053
        return _fieldName;
-
 
59054
      }
-
 
59055
    }
-
 
59056
 
-
 
59057
    // isset id assignments
-
 
59058
 
-
 
59059
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
59060
    static {
-
 
59061
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
59062
      tmpMap.put(_Fields.AWB, new org.apache.thrift.meta_data.FieldMetaData("awb", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
59063
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
59064
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
59065
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForAwb_args.class, metaDataMap);
-
 
59066
    }
-
 
59067
 
-
 
59068
    public getOrderForAwb_args() {
-
 
59069
    }
-
 
59070
 
-
 
59071
    public getOrderForAwb_args(
-
 
59072
      String awb)
-
 
59073
    {
-
 
59074
      this();
-
 
59075
      this.awb = awb;
-
 
59076
    }
-
 
59077
 
-
 
59078
    /**
-
 
59079
     * Performs a deep copy on <i>other</i>.
-
 
59080
     */
-
 
59081
    public getOrderForAwb_args(getOrderForAwb_args other) {
-
 
59082
      if (other.isSetAwb()) {
-
 
59083
        this.awb = other.awb;
-
 
59084
      }
-
 
59085
    }
-
 
59086
 
-
 
59087
    public getOrderForAwb_args deepCopy() {
-
 
59088
      return new getOrderForAwb_args(this);
-
 
59089
    }
-
 
59090
 
-
 
59091
    @Override
-
 
59092
    public void clear() {
-
 
59093
      this.awb = null;
-
 
59094
    }
-
 
59095
 
-
 
59096
    public String getAwb() {
-
 
59097
      return this.awb;
-
 
59098
    }
-
 
59099
 
-
 
59100
    public void setAwb(String awb) {
-
 
59101
      this.awb = awb;
-
 
59102
    }
-
 
59103
 
-
 
59104
    public void unsetAwb() {
-
 
59105
      this.awb = null;
-
 
59106
    }
-
 
59107
 
-
 
59108
    /** Returns true if field awb is set (has been assigned a value) and false otherwise */
-
 
59109
    public boolean isSetAwb() {
-
 
59110
      return this.awb != null;
-
 
59111
    }
-
 
59112
 
-
 
59113
    public void setAwbIsSet(boolean value) {
-
 
59114
      if (!value) {
-
 
59115
        this.awb = null;
-
 
59116
      }
-
 
59117
    }
-
 
59118
 
-
 
59119
    public void setFieldValue(_Fields field, Object value) {
-
 
59120
      switch (field) {
-
 
59121
      case AWB:
-
 
59122
        if (value == null) {
-
 
59123
          unsetAwb();
-
 
59124
        } else {
-
 
59125
          setAwb((String)value);
-
 
59126
        }
-
 
59127
        break;
-
 
59128
 
-
 
59129
      }
-
 
59130
    }
-
 
59131
 
-
 
59132
    public Object getFieldValue(_Fields field) {
-
 
59133
      switch (field) {
-
 
59134
      case AWB:
-
 
59135
        return getAwb();
-
 
59136
 
-
 
59137
      }
-
 
59138
      throw new IllegalStateException();
-
 
59139
    }
-
 
59140
 
-
 
59141
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
59142
    public boolean isSet(_Fields field) {
-
 
59143
      if (field == null) {
-
 
59144
        throw new IllegalArgumentException();
-
 
59145
      }
-
 
59146
 
-
 
59147
      switch (field) {
-
 
59148
      case AWB:
-
 
59149
        return isSetAwb();
-
 
59150
      }
-
 
59151
      throw new IllegalStateException();
-
 
59152
    }
-
 
59153
 
-
 
59154
    @Override
-
 
59155
    public boolean equals(Object that) {
-
 
59156
      if (that == null)
-
 
59157
        return false;
-
 
59158
      if (that instanceof getOrderForAwb_args)
-
 
59159
        return this.equals((getOrderForAwb_args)that);
-
 
59160
      return false;
-
 
59161
    }
-
 
59162
 
-
 
59163
    public boolean equals(getOrderForAwb_args that) {
-
 
59164
      if (that == null)
-
 
59165
        return false;
-
 
59166
 
-
 
59167
      boolean this_present_awb = true && this.isSetAwb();
-
 
59168
      boolean that_present_awb = true && that.isSetAwb();
-
 
59169
      if (this_present_awb || that_present_awb) {
-
 
59170
        if (!(this_present_awb && that_present_awb))
-
 
59171
          return false;
-
 
59172
        if (!this.awb.equals(that.awb))
-
 
59173
          return false;
-
 
59174
      }
-
 
59175
 
-
 
59176
      return true;
-
 
59177
    }
-
 
59178
 
-
 
59179
    @Override
-
 
59180
    public int hashCode() {
-
 
59181
      return 0;
-
 
59182
    }
-
 
59183
 
-
 
59184
    public int compareTo(getOrderForAwb_args other) {
-
 
59185
      if (!getClass().equals(other.getClass())) {
-
 
59186
        return getClass().getName().compareTo(other.getClass().getName());
-
 
59187
      }
-
 
59188
 
-
 
59189
      int lastComparison = 0;
-
 
59190
      getOrderForAwb_args typedOther = (getOrderForAwb_args)other;
-
 
59191
 
-
 
59192
      lastComparison = Boolean.valueOf(isSetAwb()).compareTo(typedOther.isSetAwb());
-
 
59193
      if (lastComparison != 0) {
-
 
59194
        return lastComparison;
-
 
59195
      }
-
 
59196
      if (isSetAwb()) {
-
 
59197
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awb, typedOther.awb);
-
 
59198
        if (lastComparison != 0) {
-
 
59199
          return lastComparison;
-
 
59200
        }
-
 
59201
      }
-
 
59202
      return 0;
-
 
59203
    }
-
 
59204
 
-
 
59205
    public _Fields fieldForId(int fieldId) {
-
 
59206
      return _Fields.findByThriftId(fieldId);
-
 
59207
    }
-
 
59208
 
-
 
59209
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
59210
      org.apache.thrift.protocol.TField field;
-
 
59211
      iprot.readStructBegin();
-
 
59212
      while (true)
-
 
59213
      {
-
 
59214
        field = iprot.readFieldBegin();
-
 
59215
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
59216
          break;
-
 
59217
        }
-
 
59218
        switch (field.id) {
-
 
59219
          case 1: // AWB
-
 
59220
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
59221
              this.awb = iprot.readString();
-
 
59222
            } else { 
-
 
59223
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59224
            }
-
 
59225
            break;
-
 
59226
          default:
-
 
59227
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59228
        }
-
 
59229
        iprot.readFieldEnd();
-
 
59230
      }
-
 
59231
      iprot.readStructEnd();
-
 
59232
      validate();
-
 
59233
    }
-
 
59234
 
-
 
59235
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
59236
      validate();
-
 
59237
 
-
 
59238
      oprot.writeStructBegin(STRUCT_DESC);
-
 
59239
      if (this.awb != null) {
-
 
59240
        oprot.writeFieldBegin(AWB_FIELD_DESC);
-
 
59241
        oprot.writeString(this.awb);
-
 
59242
        oprot.writeFieldEnd();
-
 
59243
      }
-
 
59244
      oprot.writeFieldStop();
-
 
59245
      oprot.writeStructEnd();
-
 
59246
    }
-
 
59247
 
-
 
59248
    @Override
-
 
59249
    public String toString() {
-
 
59250
      StringBuilder sb = new StringBuilder("getOrderForAwb_args(");
-
 
59251
      boolean first = true;
-
 
59252
 
-
 
59253
      sb.append("awb:");
-
 
59254
      if (this.awb == null) {
-
 
59255
        sb.append("null");
-
 
59256
      } else {
-
 
59257
        sb.append(this.awb);
-
 
59258
      }
-
 
59259
      first = false;
-
 
59260
      sb.append(")");
-
 
59261
      return sb.toString();
-
 
59262
    }
-
 
59263
 
-
 
59264
    public void validate() throws org.apache.thrift.TException {
-
 
59265
      // check for required fields
-
 
59266
    }
-
 
59267
 
-
 
59268
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
59269
      try {
-
 
59270
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
59271
      } catch (org.apache.thrift.TException te) {
-
 
59272
        throw new java.io.IOException(te);
-
 
59273
      }
-
 
59274
    }
-
 
59275
 
-
 
59276
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
59277
      try {
-
 
59278
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
59279
      } catch (org.apache.thrift.TException te) {
-
 
59280
        throw new java.io.IOException(te);
-
 
59281
      }
-
 
59282
    }
-
 
59283
 
-
 
59284
  }
-
 
59285
 
-
 
59286
  public static class getOrderForAwb_result implements org.apache.thrift.TBase<getOrderForAwb_result, getOrderForAwb_result._Fields>, java.io.Serializable, Cloneable   {
-
 
59287
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForAwb_result");
-
 
59288
 
-
 
59289
    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);
-
 
59290
    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);
-
 
59291
 
-
 
59292
    private Order success; // required
-
 
59293
    private TransactionServiceException ex; // required
-
 
59294
 
-
 
59295
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
59296
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
59297
      SUCCESS((short)0, "success"),
-
 
59298
      EX((short)1, "ex");
-
 
59299
 
-
 
59300
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
59301
 
-
 
59302
      static {
-
 
59303
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
59304
          byName.put(field.getFieldName(), field);
-
 
59305
        }
-
 
59306
      }
-
 
59307
 
-
 
59308
      /**
-
 
59309
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
59310
       */
-
 
59311
      public static _Fields findByThriftId(int fieldId) {
-
 
59312
        switch(fieldId) {
-
 
59313
          case 0: // SUCCESS
-
 
59314
            return SUCCESS;
-
 
59315
          case 1: // EX
-
 
59316
            return EX;
-
 
59317
          default:
-
 
59318
            return null;
-
 
59319
        }
-
 
59320
      }
-
 
59321
 
-
 
59322
      /**
-
 
59323
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
59324
       * if it is not found.
-
 
59325
       */
-
 
59326
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
59327
        _Fields fields = findByThriftId(fieldId);
-
 
59328
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
59329
        return fields;
-
 
59330
      }
-
 
59331
 
-
 
59332
      /**
-
 
59333
       * Find the _Fields constant that matches name, or null if its not found.
-
 
59334
       */
-
 
59335
      public static _Fields findByName(String name) {
-
 
59336
        return byName.get(name);
-
 
59337
      }
-
 
59338
 
-
 
59339
      private final short _thriftId;
-
 
59340
      private final String _fieldName;
-
 
59341
 
-
 
59342
      _Fields(short thriftId, String fieldName) {
-
 
59343
        _thriftId = thriftId;
-
 
59344
        _fieldName = fieldName;
-
 
59345
      }
-
 
59346
 
-
 
59347
      public short getThriftFieldId() {
-
 
59348
        return _thriftId;
-
 
59349
      }
-
 
59350
 
-
 
59351
      public String getFieldName() {
-
 
59352
        return _fieldName;
-
 
59353
      }
-
 
59354
    }
-
 
59355
 
-
 
59356
    // isset id assignments
-
 
59357
 
-
 
59358
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
59359
    static {
-
 
59360
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
59361
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
59362
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
-
 
59363
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
59364
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
59365
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
59366
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForAwb_result.class, metaDataMap);
-
 
59367
    }
-
 
59368
 
-
 
59369
    public getOrderForAwb_result() {
-
 
59370
    }
-
 
59371
 
-
 
59372
    public getOrderForAwb_result(
-
 
59373
      Order success,
-
 
59374
      TransactionServiceException ex)
-
 
59375
    {
-
 
59376
      this();
-
 
59377
      this.success = success;
-
 
59378
      this.ex = ex;
-
 
59379
    }
-
 
59380
 
-
 
59381
    /**
-
 
59382
     * Performs a deep copy on <i>other</i>.
-
 
59383
     */
-
 
59384
    public getOrderForAwb_result(getOrderForAwb_result other) {
-
 
59385
      if (other.isSetSuccess()) {
-
 
59386
        this.success = new Order(other.success);
-
 
59387
      }
-
 
59388
      if (other.isSetEx()) {
-
 
59389
        this.ex = new TransactionServiceException(other.ex);
-
 
59390
      }
-
 
59391
    }
-
 
59392
 
-
 
59393
    public getOrderForAwb_result deepCopy() {
-
 
59394
      return new getOrderForAwb_result(this);
-
 
59395
    }
-
 
59396
 
-
 
59397
    @Override
-
 
59398
    public void clear() {
-
 
59399
      this.success = null;
-
 
59400
      this.ex = null;
-
 
59401
    }
-
 
59402
 
-
 
59403
    public Order getSuccess() {
-
 
59404
      return this.success;
-
 
59405
    }
-
 
59406
 
-
 
59407
    public void setSuccess(Order success) {
-
 
59408
      this.success = success;
-
 
59409
    }
-
 
59410
 
-
 
59411
    public void unsetSuccess() {
-
 
59412
      this.success = null;
-
 
59413
    }
-
 
59414
 
-
 
59415
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
59416
    public boolean isSetSuccess() {
-
 
59417
      return this.success != null;
-
 
59418
    }
-
 
59419
 
-
 
59420
    public void setSuccessIsSet(boolean value) {
-
 
59421
      if (!value) {
-
 
59422
        this.success = null;
-
 
59423
      }
-
 
59424
    }
-
 
59425
 
-
 
59426
    public TransactionServiceException getEx() {
-
 
59427
      return this.ex;
-
 
59428
    }
-
 
59429
 
-
 
59430
    public void setEx(TransactionServiceException ex) {
-
 
59431
      this.ex = ex;
-
 
59432
    }
-
 
59433
 
-
 
59434
    public void unsetEx() {
-
 
59435
      this.ex = null;
-
 
59436
    }
-
 
59437
 
-
 
59438
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
59439
    public boolean isSetEx() {
-
 
59440
      return this.ex != null;
-
 
59441
    }
-
 
59442
 
-
 
59443
    public void setExIsSet(boolean value) {
-
 
59444
      if (!value) {
-
 
59445
        this.ex = null;
-
 
59446
      }
-
 
59447
    }
-
 
59448
 
-
 
59449
    public void setFieldValue(_Fields field, Object value) {
-
 
59450
      switch (field) {
-
 
59451
      case SUCCESS:
-
 
59452
        if (value == null) {
-
 
59453
          unsetSuccess();
-
 
59454
        } else {
-
 
59455
          setSuccess((Order)value);
-
 
59456
        }
-
 
59457
        break;
-
 
59458
 
-
 
59459
      case EX:
-
 
59460
        if (value == null) {
-
 
59461
          unsetEx();
-
 
59462
        } else {
-
 
59463
          setEx((TransactionServiceException)value);
-
 
59464
        }
-
 
59465
        break;
-
 
59466
 
-
 
59467
      }
-
 
59468
    }
-
 
59469
 
-
 
59470
    public Object getFieldValue(_Fields field) {
-
 
59471
      switch (field) {
-
 
59472
      case SUCCESS:
-
 
59473
        return getSuccess();
-
 
59474
 
-
 
59475
      case EX:
-
 
59476
        return getEx();
-
 
59477
 
-
 
59478
      }
-
 
59479
      throw new IllegalStateException();
-
 
59480
    }
-
 
59481
 
-
 
59482
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
59483
    public boolean isSet(_Fields field) {
-
 
59484
      if (field == null) {
-
 
59485
        throw new IllegalArgumentException();
-
 
59486
      }
-
 
59487
 
-
 
59488
      switch (field) {
-
 
59489
      case SUCCESS:
-
 
59490
        return isSetSuccess();
-
 
59491
      case EX:
-
 
59492
        return isSetEx();
-
 
59493
      }
-
 
59494
      throw new IllegalStateException();
-
 
59495
    }
-
 
59496
 
-
 
59497
    @Override
-
 
59498
    public boolean equals(Object that) {
-
 
59499
      if (that == null)
-
 
59500
        return false;
-
 
59501
      if (that instanceof getOrderForAwb_result)
-
 
59502
        return this.equals((getOrderForAwb_result)that);
-
 
59503
      return false;
-
 
59504
    }
-
 
59505
 
-
 
59506
    public boolean equals(getOrderForAwb_result that) {
-
 
59507
      if (that == null)
-
 
59508
        return false;
-
 
59509
 
-
 
59510
      boolean this_present_success = true && this.isSetSuccess();
-
 
59511
      boolean that_present_success = true && that.isSetSuccess();
-
 
59512
      if (this_present_success || that_present_success) {
-
 
59513
        if (!(this_present_success && that_present_success))
-
 
59514
          return false;
-
 
59515
        if (!this.success.equals(that.success))
-
 
59516
          return false;
-
 
59517
      }
-
 
59518
 
-
 
59519
      boolean this_present_ex = true && this.isSetEx();
-
 
59520
      boolean that_present_ex = true && that.isSetEx();
-
 
59521
      if (this_present_ex || that_present_ex) {
-
 
59522
        if (!(this_present_ex && that_present_ex))
-
 
59523
          return false;
-
 
59524
        if (!this.ex.equals(that.ex))
-
 
59525
          return false;
-
 
59526
      }
-
 
59527
 
-
 
59528
      return true;
-
 
59529
    }
-
 
59530
 
-
 
59531
    @Override
-
 
59532
    public int hashCode() {
-
 
59533
      return 0;
-
 
59534
    }
-
 
59535
 
-
 
59536
    public int compareTo(getOrderForAwb_result other) {
-
 
59537
      if (!getClass().equals(other.getClass())) {
-
 
59538
        return getClass().getName().compareTo(other.getClass().getName());
-
 
59539
      }
-
 
59540
 
-
 
59541
      int lastComparison = 0;
-
 
59542
      getOrderForAwb_result typedOther = (getOrderForAwb_result)other;
-
 
59543
 
-
 
59544
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
59545
      if (lastComparison != 0) {
-
 
59546
        return lastComparison;
-
 
59547
      }
-
 
59548
      if (isSetSuccess()) {
-
 
59549
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
59550
        if (lastComparison != 0) {
-
 
59551
          return lastComparison;
-
 
59552
        }
-
 
59553
      }
-
 
59554
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
59555
      if (lastComparison != 0) {
-
 
59556
        return lastComparison;
-
 
59557
      }
-
 
59558
      if (isSetEx()) {
-
 
59559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
59560
        if (lastComparison != 0) {
-
 
59561
          return lastComparison;
-
 
59562
        }
-
 
59563
      }
-
 
59564
      return 0;
-
 
59565
    }
-
 
59566
 
-
 
59567
    public _Fields fieldForId(int fieldId) {
-
 
59568
      return _Fields.findByThriftId(fieldId);
-
 
59569
    }
-
 
59570
 
-
 
59571
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
59572
      org.apache.thrift.protocol.TField field;
-
 
59573
      iprot.readStructBegin();
-
 
59574
      while (true)
-
 
59575
      {
-
 
59576
        field = iprot.readFieldBegin();
-
 
59577
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
59578
          break;
-
 
59579
        }
-
 
59580
        switch (field.id) {
-
 
59581
          case 0: // SUCCESS
-
 
59582
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
59583
              this.success = new Order();
-
 
59584
              this.success.read(iprot);
-
 
59585
            } else { 
-
 
59586
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59587
            }
-
 
59588
            break;
-
 
59589
          case 1: // EX
-
 
59590
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
59591
              this.ex = new TransactionServiceException();
-
 
59592
              this.ex.read(iprot);
-
 
59593
            } else { 
-
 
59594
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59595
            }
-
 
59596
            break;
-
 
59597
          default:
-
 
59598
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59599
        }
-
 
59600
        iprot.readFieldEnd();
-
 
59601
      }
-
 
59602
      iprot.readStructEnd();
-
 
59603
      validate();
-
 
59604
    }
-
 
59605
 
-
 
59606
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
59607
      oprot.writeStructBegin(STRUCT_DESC);
-
 
59608
 
-
 
59609
      if (this.isSetSuccess()) {
-
 
59610
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
59611
        this.success.write(oprot);
-
 
59612
        oprot.writeFieldEnd();
-
 
59613
      } else if (this.isSetEx()) {
-
 
59614
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
59615
        this.ex.write(oprot);
-
 
59616
        oprot.writeFieldEnd();
-
 
59617
      }
-
 
59618
      oprot.writeFieldStop();
-
 
59619
      oprot.writeStructEnd();
-
 
59620
    }
-
 
59621
 
-
 
59622
    @Override
-
 
59623
    public String toString() {
-
 
59624
      StringBuilder sb = new StringBuilder("getOrderForAwb_result(");
-
 
59625
      boolean first = true;
-
 
59626
 
-
 
59627
      sb.append("success:");
-
 
59628
      if (this.success == null) {
-
 
59629
        sb.append("null");
58866
      } else {
59630
      } else {
58867
        sb.append(this.success);
59631
        sb.append(this.success);
58868
      }
59632
      }
58869
      first = false;
59633
      first = false;
58870
      if (!first) sb.append(", ");
59634
      if (!first) sb.append(", ");