Subversion Repositories SmartDukaan

Rev

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

Rev 4495 Rev 4496
Line 627... Line 627...
627
     * 
627
     * 
628
     * @param awb
628
     * @param awb
629
     */
629
     */
630
    public Order getOrderForAwb(String awb) throws TransactionServiceException, org.apache.thrift.TException;
630
    public Order getOrderForAwb(String awb) throws TransactionServiceException, org.apache.thrift.TException;
631
 
631
 
-
 
632
    /**
-
 
633
     * Line items missing transfer price are return here. This data is derived out of already booked orders
-
 
634
     */
-
 
635
    public List<LineItem> getMissingTransferPriceLineitems() throws org.apache.thrift.TException;
-
 
636
 
-
 
637
    /**
-
 
638
     * Updates transfer prices of the lineitems wherever missing. Throws exception in case it is
-
 
639
     * unable to do so
-
 
640
     */
-
 
641
    public void updateTransferPrices() throws TransactionServiceException, org.apache.thrift.TException;
-
 
642
 
632
  }
643
  }
633
 
644
 
634
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
645
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
635
 
646
 
636
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
647
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 787... Line 798...
787
 
798
 
788
    public void markOrdersAsTimeout(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsTimeout_call> resultHandler) throws org.apache.thrift.TException;
799
    public void markOrdersAsTimeout(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsTimeout_call> resultHandler) throws org.apache.thrift.TException;
789
 
800
 
790
    public void getOrderForAwb(String awb, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForAwb_call> resultHandler) throws org.apache.thrift.TException;
801
    public void getOrderForAwb(String awb, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForAwb_call> resultHandler) throws org.apache.thrift.TException;
791
 
802
 
-
 
803
    public void getMissingTransferPriceLineitems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMissingTransferPriceLineitems_call> resultHandler) throws org.apache.thrift.TException;
-
 
804
 
-
 
805
    public void updateTransferPrices(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTransferPrices_call> resultHandler) throws org.apache.thrift.TException;
-
 
806
 
792
  }
807
  }
793
 
808
 
794
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
809
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
795
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
810
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
796
      public Factory() {}
811
      public Factory() {}
Line 2828... Line 2843...
2828
        throw result.ex;
2843
        throw result.ex;
2829
      }
2844
      }
2830
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForAwb failed: unknown result");
2845
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForAwb failed: unknown result");
2831
    }
2846
    }
2832
 
2847
 
-
 
2848
    public List<LineItem> getMissingTransferPriceLineitems() throws org.apache.thrift.TException
-
 
2849
    {
-
 
2850
      send_getMissingTransferPriceLineitems();
-
 
2851
      return recv_getMissingTransferPriceLineitems();
-
 
2852
    }
-
 
2853
 
-
 
2854
    public void send_getMissingTransferPriceLineitems() throws org.apache.thrift.TException
-
 
2855
    {
-
 
2856
      getMissingTransferPriceLineitems_args args = new getMissingTransferPriceLineitems_args();
-
 
2857
      sendBase("getMissingTransferPriceLineitems", args);
-
 
2858
    }
-
 
2859
 
-
 
2860
    public List<LineItem> recv_getMissingTransferPriceLineitems() throws org.apache.thrift.TException
-
 
2861
    {
-
 
2862
      getMissingTransferPriceLineitems_result result = new getMissingTransferPriceLineitems_result();
-
 
2863
      receiveBase(result, "getMissingTransferPriceLineitems");
-
 
2864
      if (result.isSetSuccess()) {
-
 
2865
        return result.success;
-
 
2866
      }
-
 
2867
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMissingTransferPriceLineitems failed: unknown result");
-
 
2868
    }
-
 
2869
 
-
 
2870
    public void updateTransferPrices() throws TransactionServiceException, org.apache.thrift.TException
-
 
2871
    {
-
 
2872
      send_updateTransferPrices();
-
 
2873
      recv_updateTransferPrices();
-
 
2874
    }
-
 
2875
 
-
 
2876
    public void send_updateTransferPrices() throws org.apache.thrift.TException
-
 
2877
    {
-
 
2878
      updateTransferPrices_args args = new updateTransferPrices_args();
-
 
2879
      sendBase("updateTransferPrices", args);
-
 
2880
    }
-
 
2881
 
-
 
2882
    public void recv_updateTransferPrices() throws TransactionServiceException, org.apache.thrift.TException
-
 
2883
    {
-
 
2884
      updateTransferPrices_result result = new updateTransferPrices_result();
-
 
2885
      receiveBase(result, "updateTransferPrices");
-
 
2886
      if (result.ex != null) {
-
 
2887
        throw result.ex;
-
 
2888
      }
-
 
2889
      return;
-
 
2890
    }
-
 
2891
 
2833
  }
2892
  }
2834
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2893
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2835
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2894
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2836
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2895
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2837
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2896
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5585... Line 5644...
5585
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5644
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5586
        return (new Client(prot)).recv_getOrderForAwb();
5645
        return (new Client(prot)).recv_getOrderForAwb();
5587
      }
5646
      }
5588
    }
5647
    }
5589
 
5648
 
-
 
5649
    public void getMissingTransferPriceLineitems(org.apache.thrift.async.AsyncMethodCallback<getMissingTransferPriceLineitems_call> resultHandler) throws org.apache.thrift.TException {
-
 
5650
      checkReady();
-
 
5651
      getMissingTransferPriceLineitems_call method_call = new getMissingTransferPriceLineitems_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
5652
      this.___currentMethod = method_call;
-
 
5653
      ___manager.call(method_call);
-
 
5654
    }
-
 
5655
 
-
 
5656
    public static class getMissingTransferPriceLineitems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5657
      public getMissingTransferPriceLineitems_call(org.apache.thrift.async.AsyncMethodCallback<getMissingTransferPriceLineitems_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 {
-
 
5658
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5659
      }
-
 
5660
 
-
 
5661
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5662
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMissingTransferPriceLineitems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5663
        getMissingTransferPriceLineitems_args args = new getMissingTransferPriceLineitems_args();
-
 
5664
        args.write(prot);
-
 
5665
        prot.writeMessageEnd();
-
 
5666
      }
-
 
5667
 
-
 
5668
      public List<LineItem> getResult() throws org.apache.thrift.TException {
-
 
5669
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5670
          throw new IllegalStateException("Method call not finished!");
-
 
5671
        }
-
 
5672
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5673
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5674
        return (new Client(prot)).recv_getMissingTransferPriceLineitems();
-
 
5675
      }
-
 
5676
    }
-
 
5677
 
-
 
5678
    public void updateTransferPrices(org.apache.thrift.async.AsyncMethodCallback<updateTransferPrices_call> resultHandler) throws org.apache.thrift.TException {
-
 
5679
      checkReady();
-
 
5680
      updateTransferPrices_call method_call = new updateTransferPrices_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
5681
      this.___currentMethod = method_call;
-
 
5682
      ___manager.call(method_call);
-
 
5683
    }
-
 
5684
 
-
 
5685
    public static class updateTransferPrices_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5686
      public updateTransferPrices_call(org.apache.thrift.async.AsyncMethodCallback<updateTransferPrices_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 {
-
 
5687
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5688
      }
-
 
5689
 
-
 
5690
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5691
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateTransferPrices", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5692
        updateTransferPrices_args args = new updateTransferPrices_args();
-
 
5693
        args.write(prot);
-
 
5694
        prot.writeMessageEnd();
-
 
5695
      }
-
 
5696
 
-
 
5697
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
5698
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5699
          throw new IllegalStateException("Method call not finished!");
-
 
5700
        }
-
 
5701
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5702
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5703
        (new Client(prot)).recv_updateTransferPrices();
-
 
5704
      }
-
 
5705
    }
-
 
5706
 
5590
  }
5707
  }
5591
 
5708
 
5592
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5709
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5593
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5710
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5594
    public Processor(I iface) {
5711
    public Processor(I iface) {
Line 5676... Line 5793...
5676
      processMap.put("markOrdersAsPORaised", new markOrdersAsPORaised());
5793
      processMap.put("markOrdersAsPORaised", new markOrdersAsPORaised());
5677
      processMap.put("markOrdersAsReversalInitiated", new markOrdersAsReversalInitiated());
5794
      processMap.put("markOrdersAsReversalInitiated", new markOrdersAsReversalInitiated());
5678
      processMap.put("markOrdersAsNotAvailabke", new markOrdersAsNotAvailabke());
5795
      processMap.put("markOrdersAsNotAvailabke", new markOrdersAsNotAvailabke());
5679
      processMap.put("markOrdersAsTimeout", new markOrdersAsTimeout());
5796
      processMap.put("markOrdersAsTimeout", new markOrdersAsTimeout());
5680
      processMap.put("getOrderForAwb", new getOrderForAwb());
5797
      processMap.put("getOrderForAwb", new getOrderForAwb());
-
 
5798
      processMap.put("getMissingTransferPriceLineitems", new getMissingTransferPriceLineitems());
-
 
5799
      processMap.put("updateTransferPrices", new updateTransferPrices());
5681
      return processMap;
5800
      return processMap;
5682
    }
5801
    }
5683
 
5802
 
5684
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
5803
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
5685
      public createTransaction() {
5804
      public createTransaction() {
Line 7212... Line 7331...
7212
        }
7331
        }
7213
        return result;
7332
        return result;
7214
      }
7333
      }
7215
    }
7334
    }
7216
 
7335
 
-
 
7336
    private static class getMissingTransferPriceLineitems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMissingTransferPriceLineitems_args> {
-
 
7337
      public getMissingTransferPriceLineitems() {
-
 
7338
        super("getMissingTransferPriceLineitems");
-
 
7339
      }
-
 
7340
 
-
 
7341
      protected getMissingTransferPriceLineitems_args getEmptyArgsInstance() {
-
 
7342
        return new getMissingTransferPriceLineitems_args();
-
 
7343
      }
-
 
7344
 
-
 
7345
      protected getMissingTransferPriceLineitems_result getResult(I iface, getMissingTransferPriceLineitems_args args) throws org.apache.thrift.TException {
-
 
7346
        getMissingTransferPriceLineitems_result result = new getMissingTransferPriceLineitems_result();
-
 
7347
        result.success = iface.getMissingTransferPriceLineitems();
-
 
7348
        return result;
-
 
7349
      }
-
 
7350
    }
-
 
7351
 
-
 
7352
    private static class updateTransferPrices<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateTransferPrices_args> {
-
 
7353
      public updateTransferPrices() {
-
 
7354
        super("updateTransferPrices");
-
 
7355
      }
-
 
7356
 
-
 
7357
      protected updateTransferPrices_args getEmptyArgsInstance() {
-
 
7358
        return new updateTransferPrices_args();
-
 
7359
      }
-
 
7360
 
-
 
7361
      protected updateTransferPrices_result getResult(I iface, updateTransferPrices_args args) throws org.apache.thrift.TException {
-
 
7362
        updateTransferPrices_result result = new updateTransferPrices_result();
-
 
7363
        try {
-
 
7364
          iface.updateTransferPrices();
-
 
7365
        } catch (TransactionServiceException ex) {
-
 
7366
          result.ex = ex;
-
 
7367
        }
-
 
7368
        return result;
-
 
7369
      }
-
 
7370
    }
-
 
7371
 
7217
  }
7372
  }
7218
 
7373
 
7219
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
7374
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
7220
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
7375
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
7221
 
7376
 
Line 65391... Line 65546...
65391
      sb.append("ex:");
65546
      sb.append("ex:");
65392
      if (this.ex == null) {
65547
      if (this.ex == null) {
65393
        sb.append("null");
65548
        sb.append("null");
65394
      } else {
65549
      } else {
65395
        sb.append(this.ex);
65550
        sb.append(this.ex);
-
 
65551
      }
-
 
65552
      first = false;
-
 
65553
      sb.append(")");
-
 
65554
      return sb.toString();
-
 
65555
    }
-
 
65556
 
-
 
65557
    public void validate() throws org.apache.thrift.TException {
-
 
65558
      // check for required fields
-
 
65559
    }
-
 
65560
 
-
 
65561
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
65562
      try {
-
 
65563
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
65564
      } catch (org.apache.thrift.TException te) {
-
 
65565
        throw new java.io.IOException(te);
-
 
65566
      }
-
 
65567
    }
-
 
65568
 
-
 
65569
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
65570
      try {
-
 
65571
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
65572
      } catch (org.apache.thrift.TException te) {
-
 
65573
        throw new java.io.IOException(te);
-
 
65574
      }
-
 
65575
    }
-
 
65576
 
-
 
65577
  }
-
 
65578
 
-
 
65579
  public static class getMissingTransferPriceLineitems_args implements org.apache.thrift.TBase<getMissingTransferPriceLineitems_args, getMissingTransferPriceLineitems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
65580
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMissingTransferPriceLineitems_args");
-
 
65581
 
-
 
65582
 
-
 
65583
 
-
 
65584
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
65585
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
65586
;
-
 
65587
 
-
 
65588
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
65589
 
-
 
65590
      static {
-
 
65591
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
65592
          byName.put(field.getFieldName(), field);
-
 
65593
        }
-
 
65594
      }
-
 
65595
 
-
 
65596
      /**
-
 
65597
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
65598
       */
-
 
65599
      public static _Fields findByThriftId(int fieldId) {
-
 
65600
        switch(fieldId) {
-
 
65601
          default:
-
 
65602
            return null;
-
 
65603
        }
-
 
65604
      }
-
 
65605
 
-
 
65606
      /**
-
 
65607
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
65608
       * if it is not found.
-
 
65609
       */
-
 
65610
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
65611
        _Fields fields = findByThriftId(fieldId);
-
 
65612
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
65613
        return fields;
-
 
65614
      }
-
 
65615
 
-
 
65616
      /**
-
 
65617
       * Find the _Fields constant that matches name, or null if its not found.
-
 
65618
       */
-
 
65619
      public static _Fields findByName(String name) {
-
 
65620
        return byName.get(name);
-
 
65621
      }
-
 
65622
 
-
 
65623
      private final short _thriftId;
-
 
65624
      private final String _fieldName;
-
 
65625
 
-
 
65626
      _Fields(short thriftId, String fieldName) {
-
 
65627
        _thriftId = thriftId;
-
 
65628
        _fieldName = fieldName;
-
 
65629
      }
-
 
65630
 
-
 
65631
      public short getThriftFieldId() {
-
 
65632
        return _thriftId;
-
 
65633
      }
-
 
65634
 
-
 
65635
      public String getFieldName() {
-
 
65636
        return _fieldName;
-
 
65637
      }
-
 
65638
    }
-
 
65639
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
65640
    static {
-
 
65641
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
65642
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
65643
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMissingTransferPriceLineitems_args.class, metaDataMap);
-
 
65644
    }
-
 
65645
 
-
 
65646
    public getMissingTransferPriceLineitems_args() {
-
 
65647
    }
-
 
65648
 
-
 
65649
    /**
-
 
65650
     * Performs a deep copy on <i>other</i>.
-
 
65651
     */
-
 
65652
    public getMissingTransferPriceLineitems_args(getMissingTransferPriceLineitems_args other) {
-
 
65653
    }
-
 
65654
 
-
 
65655
    public getMissingTransferPriceLineitems_args deepCopy() {
-
 
65656
      return new getMissingTransferPriceLineitems_args(this);
-
 
65657
    }
-
 
65658
 
-
 
65659
    @Override
-
 
65660
    public void clear() {
-
 
65661
    }
-
 
65662
 
-
 
65663
    public void setFieldValue(_Fields field, Object value) {
-
 
65664
      switch (field) {
-
 
65665
      }
-
 
65666
    }
-
 
65667
 
-
 
65668
    public Object getFieldValue(_Fields field) {
-
 
65669
      switch (field) {
-
 
65670
      }
-
 
65671
      throw new IllegalStateException();
-
 
65672
    }
-
 
65673
 
-
 
65674
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
65675
    public boolean isSet(_Fields field) {
-
 
65676
      if (field == null) {
-
 
65677
        throw new IllegalArgumentException();
-
 
65678
      }
-
 
65679
 
-
 
65680
      switch (field) {
-
 
65681
      }
-
 
65682
      throw new IllegalStateException();
-
 
65683
    }
-
 
65684
 
-
 
65685
    @Override
-
 
65686
    public boolean equals(Object that) {
-
 
65687
      if (that == null)
-
 
65688
        return false;
-
 
65689
      if (that instanceof getMissingTransferPriceLineitems_args)
-
 
65690
        return this.equals((getMissingTransferPriceLineitems_args)that);
-
 
65691
      return false;
-
 
65692
    }
-
 
65693
 
-
 
65694
    public boolean equals(getMissingTransferPriceLineitems_args that) {
-
 
65695
      if (that == null)
-
 
65696
        return false;
-
 
65697
 
-
 
65698
      return true;
-
 
65699
    }
-
 
65700
 
-
 
65701
    @Override
-
 
65702
    public int hashCode() {
-
 
65703
      return 0;
-
 
65704
    }
-
 
65705
 
-
 
65706
    public int compareTo(getMissingTransferPriceLineitems_args other) {
-
 
65707
      if (!getClass().equals(other.getClass())) {
-
 
65708
        return getClass().getName().compareTo(other.getClass().getName());
-
 
65709
      }
-
 
65710
 
-
 
65711
      int lastComparison = 0;
-
 
65712
      getMissingTransferPriceLineitems_args typedOther = (getMissingTransferPriceLineitems_args)other;
-
 
65713
 
-
 
65714
      return 0;
-
 
65715
    }
-
 
65716
 
-
 
65717
    public _Fields fieldForId(int fieldId) {
-
 
65718
      return _Fields.findByThriftId(fieldId);
-
 
65719
    }
-
 
65720
 
-
 
65721
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
65722
      org.apache.thrift.protocol.TField field;
-
 
65723
      iprot.readStructBegin();
-
 
65724
      while (true)
-
 
65725
      {
-
 
65726
        field = iprot.readFieldBegin();
-
 
65727
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
65728
          break;
-
 
65729
        }
-
 
65730
        switch (field.id) {
-
 
65731
          default:
-
 
65732
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
65733
        }
-
 
65734
        iprot.readFieldEnd();
-
 
65735
      }
-
 
65736
      iprot.readStructEnd();
-
 
65737
      validate();
-
 
65738
    }
-
 
65739
 
-
 
65740
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
65741
      validate();
-
 
65742
 
-
 
65743
      oprot.writeStructBegin(STRUCT_DESC);
-
 
65744
      oprot.writeFieldStop();
-
 
65745
      oprot.writeStructEnd();
-
 
65746
    }
-
 
65747
 
-
 
65748
    @Override
-
 
65749
    public String toString() {
-
 
65750
      StringBuilder sb = new StringBuilder("getMissingTransferPriceLineitems_args(");
-
 
65751
      boolean first = true;
-
 
65752
 
-
 
65753
      sb.append(")");
-
 
65754
      return sb.toString();
-
 
65755
    }
-
 
65756
 
-
 
65757
    public void validate() throws org.apache.thrift.TException {
-
 
65758
      // check for required fields
-
 
65759
    }
-
 
65760
 
-
 
65761
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
65762
      try {
-
 
65763
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
65764
      } catch (org.apache.thrift.TException te) {
-
 
65765
        throw new java.io.IOException(te);
-
 
65766
      }
-
 
65767
    }
-
 
65768
 
-
 
65769
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
65770
      try {
-
 
65771
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
65772
      } catch (org.apache.thrift.TException te) {
-
 
65773
        throw new java.io.IOException(te);
-
 
65774
      }
-
 
65775
    }
-
 
65776
 
-
 
65777
  }
-
 
65778
 
-
 
65779
  public static class getMissingTransferPriceLineitems_result implements org.apache.thrift.TBase<getMissingTransferPriceLineitems_result, getMissingTransferPriceLineitems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
65780
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMissingTransferPriceLineitems_result");
-
 
65781
 
-
 
65782
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
65783
 
-
 
65784
    private List<LineItem> success; // required
-
 
65785
 
-
 
65786
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
65787
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
65788
      SUCCESS((short)0, "success");
-
 
65789
 
-
 
65790
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
65791
 
-
 
65792
      static {
-
 
65793
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
65794
          byName.put(field.getFieldName(), field);
-
 
65795
        }
-
 
65796
      }
-
 
65797
 
-
 
65798
      /**
-
 
65799
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
65800
       */
-
 
65801
      public static _Fields findByThriftId(int fieldId) {
-
 
65802
        switch(fieldId) {
-
 
65803
          case 0: // SUCCESS
-
 
65804
            return SUCCESS;
-
 
65805
          default:
-
 
65806
            return null;
-
 
65807
        }
-
 
65808
      }
-
 
65809
 
-
 
65810
      /**
-
 
65811
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
65812
       * if it is not found.
-
 
65813
       */
-
 
65814
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
65815
        _Fields fields = findByThriftId(fieldId);
-
 
65816
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
65817
        return fields;
-
 
65818
      }
-
 
65819
 
-
 
65820
      /**
-
 
65821
       * Find the _Fields constant that matches name, or null if its not found.
-
 
65822
       */
-
 
65823
      public static _Fields findByName(String name) {
-
 
65824
        return byName.get(name);
-
 
65825
      }
-
 
65826
 
-
 
65827
      private final short _thriftId;
-
 
65828
      private final String _fieldName;
-
 
65829
 
-
 
65830
      _Fields(short thriftId, String fieldName) {
-
 
65831
        _thriftId = thriftId;
-
 
65832
        _fieldName = fieldName;
-
 
65833
      }
-
 
65834
 
-
 
65835
      public short getThriftFieldId() {
-
 
65836
        return _thriftId;
-
 
65837
      }
-
 
65838
 
-
 
65839
      public String getFieldName() {
-
 
65840
        return _fieldName;
-
 
65841
      }
-
 
65842
    }
-
 
65843
 
-
 
65844
    // isset id assignments
-
 
65845
 
-
 
65846
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
65847
    static {
-
 
65848
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
65849
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
65850
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
65851
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LineItem.class))));
-
 
65852
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
65853
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMissingTransferPriceLineitems_result.class, metaDataMap);
-
 
65854
    }
-
 
65855
 
-
 
65856
    public getMissingTransferPriceLineitems_result() {
-
 
65857
    }
-
 
65858
 
-
 
65859
    public getMissingTransferPriceLineitems_result(
-
 
65860
      List<LineItem> success)
-
 
65861
    {
-
 
65862
      this();
-
 
65863
      this.success = success;
-
 
65864
    }
-
 
65865
 
-
 
65866
    /**
-
 
65867
     * Performs a deep copy on <i>other</i>.
-
 
65868
     */
-
 
65869
    public getMissingTransferPriceLineitems_result(getMissingTransferPriceLineitems_result other) {
-
 
65870
      if (other.isSetSuccess()) {
-
 
65871
        List<LineItem> __this__success = new ArrayList<LineItem>();
-
 
65872
        for (LineItem other_element : other.success) {
-
 
65873
          __this__success.add(new LineItem(other_element));
-
 
65874
        }
-
 
65875
        this.success = __this__success;
-
 
65876
      }
-
 
65877
    }
-
 
65878
 
-
 
65879
    public getMissingTransferPriceLineitems_result deepCopy() {
-
 
65880
      return new getMissingTransferPriceLineitems_result(this);
-
 
65881
    }
-
 
65882
 
-
 
65883
    @Override
-
 
65884
    public void clear() {
-
 
65885
      this.success = null;
-
 
65886
    }
-
 
65887
 
-
 
65888
    public int getSuccessSize() {
-
 
65889
      return (this.success == null) ? 0 : this.success.size();
-
 
65890
    }
-
 
65891
 
-
 
65892
    public java.util.Iterator<LineItem> getSuccessIterator() {
-
 
65893
      return (this.success == null) ? null : this.success.iterator();
-
 
65894
    }
-
 
65895
 
-
 
65896
    public void addToSuccess(LineItem elem) {
-
 
65897
      if (this.success == null) {
-
 
65898
        this.success = new ArrayList<LineItem>();
-
 
65899
      }
-
 
65900
      this.success.add(elem);
-
 
65901
    }
-
 
65902
 
-
 
65903
    public List<LineItem> getSuccess() {
-
 
65904
      return this.success;
-
 
65905
    }
-
 
65906
 
-
 
65907
    public void setSuccess(List<LineItem> success) {
-
 
65908
      this.success = success;
-
 
65909
    }
-
 
65910
 
-
 
65911
    public void unsetSuccess() {
-
 
65912
      this.success = null;
-
 
65913
    }
-
 
65914
 
-
 
65915
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
65916
    public boolean isSetSuccess() {
-
 
65917
      return this.success != null;
-
 
65918
    }
-
 
65919
 
-
 
65920
    public void setSuccessIsSet(boolean value) {
-
 
65921
      if (!value) {
-
 
65922
        this.success = null;
-
 
65923
      }
-
 
65924
    }
-
 
65925
 
-
 
65926
    public void setFieldValue(_Fields field, Object value) {
-
 
65927
      switch (field) {
-
 
65928
      case SUCCESS:
-
 
65929
        if (value == null) {
-
 
65930
          unsetSuccess();
-
 
65931
        } else {
-
 
65932
          setSuccess((List<LineItem>)value);
-
 
65933
        }
-
 
65934
        break;
-
 
65935
 
-
 
65936
      }
-
 
65937
    }
-
 
65938
 
-
 
65939
    public Object getFieldValue(_Fields field) {
-
 
65940
      switch (field) {
-
 
65941
      case SUCCESS:
-
 
65942
        return getSuccess();
-
 
65943
 
-
 
65944
      }
-
 
65945
      throw new IllegalStateException();
-
 
65946
    }
-
 
65947
 
-
 
65948
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
65949
    public boolean isSet(_Fields field) {
-
 
65950
      if (field == null) {
-
 
65951
        throw new IllegalArgumentException();
-
 
65952
      }
-
 
65953
 
-
 
65954
      switch (field) {
-
 
65955
      case SUCCESS:
-
 
65956
        return isSetSuccess();
-
 
65957
      }
-
 
65958
      throw new IllegalStateException();
-
 
65959
    }
-
 
65960
 
-
 
65961
    @Override
-
 
65962
    public boolean equals(Object that) {
-
 
65963
      if (that == null)
-
 
65964
        return false;
-
 
65965
      if (that instanceof getMissingTransferPriceLineitems_result)
-
 
65966
        return this.equals((getMissingTransferPriceLineitems_result)that);
-
 
65967
      return false;
-
 
65968
    }
-
 
65969
 
-
 
65970
    public boolean equals(getMissingTransferPriceLineitems_result that) {
-
 
65971
      if (that == null)
-
 
65972
        return false;
-
 
65973
 
-
 
65974
      boolean this_present_success = true && this.isSetSuccess();
-
 
65975
      boolean that_present_success = true && that.isSetSuccess();
-
 
65976
      if (this_present_success || that_present_success) {
-
 
65977
        if (!(this_present_success && that_present_success))
-
 
65978
          return false;
-
 
65979
        if (!this.success.equals(that.success))
-
 
65980
          return false;
-
 
65981
      }
-
 
65982
 
-
 
65983
      return true;
-
 
65984
    }
-
 
65985
 
-
 
65986
    @Override
-
 
65987
    public int hashCode() {
-
 
65988
      return 0;
-
 
65989
    }
-
 
65990
 
-
 
65991
    public int compareTo(getMissingTransferPriceLineitems_result other) {
-
 
65992
      if (!getClass().equals(other.getClass())) {
-
 
65993
        return getClass().getName().compareTo(other.getClass().getName());
-
 
65994
      }
-
 
65995
 
-
 
65996
      int lastComparison = 0;
-
 
65997
      getMissingTransferPriceLineitems_result typedOther = (getMissingTransferPriceLineitems_result)other;
-
 
65998
 
-
 
65999
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
66000
      if (lastComparison != 0) {
-
 
66001
        return lastComparison;
-
 
66002
      }
-
 
66003
      if (isSetSuccess()) {
-
 
66004
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
66005
        if (lastComparison != 0) {
-
 
66006
          return lastComparison;
-
 
66007
        }
-
 
66008
      }
-
 
66009
      return 0;
-
 
66010
    }
-
 
66011
 
-
 
66012
    public _Fields fieldForId(int fieldId) {
-
 
66013
      return _Fields.findByThriftId(fieldId);
-
 
66014
    }
-
 
66015
 
-
 
66016
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
66017
      org.apache.thrift.protocol.TField field;
-
 
66018
      iprot.readStructBegin();
-
 
66019
      while (true)
-
 
66020
      {
-
 
66021
        field = iprot.readFieldBegin();
-
 
66022
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
66023
          break;
-
 
66024
        }
-
 
66025
        switch (field.id) {
-
 
66026
          case 0: // SUCCESS
-
 
66027
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
66028
              {
-
 
66029
                org.apache.thrift.protocol.TList _list153 = iprot.readListBegin();
-
 
66030
                this.success = new ArrayList<LineItem>(_list153.size);
-
 
66031
                for (int _i154 = 0; _i154 < _list153.size; ++_i154)
-
 
66032
                {
-
 
66033
                  LineItem _elem155; // required
-
 
66034
                  _elem155 = new LineItem();
-
 
66035
                  _elem155.read(iprot);
-
 
66036
                  this.success.add(_elem155);
-
 
66037
                }
-
 
66038
                iprot.readListEnd();
-
 
66039
              }
-
 
66040
            } else { 
-
 
66041
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
66042
            }
-
 
66043
            break;
-
 
66044
          default:
-
 
66045
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
66046
        }
-
 
66047
        iprot.readFieldEnd();
-
 
66048
      }
-
 
66049
      iprot.readStructEnd();
-
 
66050
      validate();
-
 
66051
    }
-
 
66052
 
-
 
66053
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
66054
      oprot.writeStructBegin(STRUCT_DESC);
-
 
66055
 
-
 
66056
      if (this.isSetSuccess()) {
-
 
66057
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
66058
        {
-
 
66059
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
66060
          for (LineItem _iter156 : this.success)
-
 
66061
          {
-
 
66062
            _iter156.write(oprot);
-
 
66063
          }
-
 
66064
          oprot.writeListEnd();
-
 
66065
        }
-
 
66066
        oprot.writeFieldEnd();
-
 
66067
      }
-
 
66068
      oprot.writeFieldStop();
-
 
66069
      oprot.writeStructEnd();
-
 
66070
    }
-
 
66071
 
-
 
66072
    @Override
-
 
66073
    public String toString() {
-
 
66074
      StringBuilder sb = new StringBuilder("getMissingTransferPriceLineitems_result(");
-
 
66075
      boolean first = true;
-
 
66076
 
-
 
66077
      sb.append("success:");
-
 
66078
      if (this.success == null) {
-
 
66079
        sb.append("null");
-
 
66080
      } else {
-
 
66081
        sb.append(this.success);
-
 
66082
      }
-
 
66083
      first = false;
-
 
66084
      sb.append(")");
-
 
66085
      return sb.toString();
-
 
66086
    }
-
 
66087
 
-
 
66088
    public void validate() throws org.apache.thrift.TException {
-
 
66089
      // check for required fields
-
 
66090
    }
-
 
66091
 
-
 
66092
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
66093
      try {
-
 
66094
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
66095
      } catch (org.apache.thrift.TException te) {
-
 
66096
        throw new java.io.IOException(te);
-
 
66097
      }
-
 
66098
    }
-
 
66099
 
-
 
66100
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
66101
      try {
-
 
66102
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
66103
      } catch (org.apache.thrift.TException te) {
-
 
66104
        throw new java.io.IOException(te);
-
 
66105
      }
-
 
66106
    }
-
 
66107
 
-
 
66108
  }
-
 
66109
 
-
 
66110
  public static class updateTransferPrices_args implements org.apache.thrift.TBase<updateTransferPrices_args, updateTransferPrices_args._Fields>, java.io.Serializable, Cloneable   {
-
 
66111
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTransferPrices_args");
-
 
66112
 
-
 
66113
 
-
 
66114
 
-
 
66115
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
66116
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
66117
;
-
 
66118
 
-
 
66119
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
66120
 
-
 
66121
      static {
-
 
66122
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
66123
          byName.put(field.getFieldName(), field);
-
 
66124
        }
-
 
66125
      }
-
 
66126
 
-
 
66127
      /**
-
 
66128
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
66129
       */
-
 
66130
      public static _Fields findByThriftId(int fieldId) {
-
 
66131
        switch(fieldId) {
-
 
66132
          default:
-
 
66133
            return null;
-
 
66134
        }
-
 
66135
      }
-
 
66136
 
-
 
66137
      /**
-
 
66138
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
66139
       * if it is not found.
-
 
66140
       */
-
 
66141
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
66142
        _Fields fields = findByThriftId(fieldId);
-
 
66143
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
66144
        return fields;
-
 
66145
      }
-
 
66146
 
-
 
66147
      /**
-
 
66148
       * Find the _Fields constant that matches name, or null if its not found.
-
 
66149
       */
-
 
66150
      public static _Fields findByName(String name) {
-
 
66151
        return byName.get(name);
-
 
66152
      }
-
 
66153
 
-
 
66154
      private final short _thriftId;
-
 
66155
      private final String _fieldName;
-
 
66156
 
-
 
66157
      _Fields(short thriftId, String fieldName) {
-
 
66158
        _thriftId = thriftId;
-
 
66159
        _fieldName = fieldName;
-
 
66160
      }
-
 
66161
 
-
 
66162
      public short getThriftFieldId() {
-
 
66163
        return _thriftId;
-
 
66164
      }
-
 
66165
 
-
 
66166
      public String getFieldName() {
-
 
66167
        return _fieldName;
-
 
66168
      }
-
 
66169
    }
-
 
66170
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
66171
    static {
-
 
66172
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
66173
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
66174
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTransferPrices_args.class, metaDataMap);
-
 
66175
    }
-
 
66176
 
-
 
66177
    public updateTransferPrices_args() {
-
 
66178
    }
-
 
66179
 
-
 
66180
    /**
-
 
66181
     * Performs a deep copy on <i>other</i>.
-
 
66182
     */
-
 
66183
    public updateTransferPrices_args(updateTransferPrices_args other) {
-
 
66184
    }
-
 
66185
 
-
 
66186
    public updateTransferPrices_args deepCopy() {
-
 
66187
      return new updateTransferPrices_args(this);
-
 
66188
    }
-
 
66189
 
-
 
66190
    @Override
-
 
66191
    public void clear() {
-
 
66192
    }
-
 
66193
 
-
 
66194
    public void setFieldValue(_Fields field, Object value) {
-
 
66195
      switch (field) {
-
 
66196
      }
-
 
66197
    }
-
 
66198
 
-
 
66199
    public Object getFieldValue(_Fields field) {
-
 
66200
      switch (field) {
-
 
66201
      }
-
 
66202
      throw new IllegalStateException();
-
 
66203
    }
-
 
66204
 
-
 
66205
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
66206
    public boolean isSet(_Fields field) {
-
 
66207
      if (field == null) {
-
 
66208
        throw new IllegalArgumentException();
-
 
66209
      }
-
 
66210
 
-
 
66211
      switch (field) {
-
 
66212
      }
-
 
66213
      throw new IllegalStateException();
-
 
66214
    }
-
 
66215
 
-
 
66216
    @Override
-
 
66217
    public boolean equals(Object that) {
-
 
66218
      if (that == null)
-
 
66219
        return false;
-
 
66220
      if (that instanceof updateTransferPrices_args)
-
 
66221
        return this.equals((updateTransferPrices_args)that);
-
 
66222
      return false;
-
 
66223
    }
-
 
66224
 
-
 
66225
    public boolean equals(updateTransferPrices_args that) {
-
 
66226
      if (that == null)
-
 
66227
        return false;
-
 
66228
 
-
 
66229
      return true;
-
 
66230
    }
-
 
66231
 
-
 
66232
    @Override
-
 
66233
    public int hashCode() {
-
 
66234
      return 0;
-
 
66235
    }
-
 
66236
 
-
 
66237
    public int compareTo(updateTransferPrices_args other) {
-
 
66238
      if (!getClass().equals(other.getClass())) {
-
 
66239
        return getClass().getName().compareTo(other.getClass().getName());
-
 
66240
      }
-
 
66241
 
-
 
66242
      int lastComparison = 0;
-
 
66243
      updateTransferPrices_args typedOther = (updateTransferPrices_args)other;
-
 
66244
 
-
 
66245
      return 0;
-
 
66246
    }
-
 
66247
 
-
 
66248
    public _Fields fieldForId(int fieldId) {
-
 
66249
      return _Fields.findByThriftId(fieldId);
-
 
66250
    }
-
 
66251
 
-
 
66252
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
66253
      org.apache.thrift.protocol.TField field;
-
 
66254
      iprot.readStructBegin();
-
 
66255
      while (true)
-
 
66256
      {
-
 
66257
        field = iprot.readFieldBegin();
-
 
66258
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
66259
          break;
-
 
66260
        }
-
 
66261
        switch (field.id) {
-
 
66262
          default:
-
 
66263
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
66264
        }
-
 
66265
        iprot.readFieldEnd();
-
 
66266
      }
-
 
66267
      iprot.readStructEnd();
-
 
66268
      validate();
-
 
66269
    }
-
 
66270
 
-
 
66271
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
66272
      validate();
-
 
66273
 
-
 
66274
      oprot.writeStructBegin(STRUCT_DESC);
-
 
66275
      oprot.writeFieldStop();
-
 
66276
      oprot.writeStructEnd();
-
 
66277
    }
-
 
66278
 
-
 
66279
    @Override
-
 
66280
    public String toString() {
-
 
66281
      StringBuilder sb = new StringBuilder("updateTransferPrices_args(");
-
 
66282
      boolean first = true;
-
 
66283
 
-
 
66284
      sb.append(")");
-
 
66285
      return sb.toString();
-
 
66286
    }
-
 
66287
 
-
 
66288
    public void validate() throws org.apache.thrift.TException {
-
 
66289
      // check for required fields
-
 
66290
    }
-
 
66291
 
-
 
66292
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
66293
      try {
-
 
66294
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
66295
      } catch (org.apache.thrift.TException te) {
-
 
66296
        throw new java.io.IOException(te);
-
 
66297
      }
-
 
66298
    }
-
 
66299
 
-
 
66300
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
66301
      try {
-
 
66302
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
66303
      } catch (org.apache.thrift.TException te) {
-
 
66304
        throw new java.io.IOException(te);
-
 
66305
      }
-
 
66306
    }
-
 
66307
 
-
 
66308
  }
-
 
66309
 
-
 
66310
  public static class updateTransferPrices_result implements org.apache.thrift.TBase<updateTransferPrices_result, updateTransferPrices_result._Fields>, java.io.Serializable, Cloneable   {
-
 
66311
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTransferPrices_result");
-
 
66312
 
-
 
66313
    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);
-
 
66314
 
-
 
66315
    private TransactionServiceException ex; // required
-
 
66316
 
-
 
66317
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
66318
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
66319
      EX((short)1, "ex");
-
 
66320
 
-
 
66321
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
66322
 
-
 
66323
      static {
-
 
66324
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
66325
          byName.put(field.getFieldName(), field);
-
 
66326
        }
-
 
66327
      }
-
 
66328
 
-
 
66329
      /**
-
 
66330
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
66331
       */
-
 
66332
      public static _Fields findByThriftId(int fieldId) {
-
 
66333
        switch(fieldId) {
-
 
66334
          case 1: // EX
-
 
66335
            return EX;
-
 
66336
          default:
-
 
66337
            return null;
-
 
66338
        }
-
 
66339
      }
-
 
66340
 
-
 
66341
      /**
-
 
66342
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
66343
       * if it is not found.
-
 
66344
       */
-
 
66345
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
66346
        _Fields fields = findByThriftId(fieldId);
-
 
66347
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
66348
        return fields;
-
 
66349
      }
-
 
66350
 
-
 
66351
      /**
-
 
66352
       * Find the _Fields constant that matches name, or null if its not found.
-
 
66353
       */
-
 
66354
      public static _Fields findByName(String name) {
-
 
66355
        return byName.get(name);
-
 
66356
      }
-
 
66357
 
-
 
66358
      private final short _thriftId;
-
 
66359
      private final String _fieldName;
-
 
66360
 
-
 
66361
      _Fields(short thriftId, String fieldName) {
-
 
66362
        _thriftId = thriftId;
-
 
66363
        _fieldName = fieldName;
-
 
66364
      }
-
 
66365
 
-
 
66366
      public short getThriftFieldId() {
-
 
66367
        return _thriftId;
-
 
66368
      }
-
 
66369
 
-
 
66370
      public String getFieldName() {
-
 
66371
        return _fieldName;
-
 
66372
      }
-
 
66373
    }
-
 
66374
 
-
 
66375
    // isset id assignments
-
 
66376
 
-
 
66377
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
66378
    static {
-
 
66379
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
66380
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
66381
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
66382
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
66383
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTransferPrices_result.class, metaDataMap);
-
 
66384
    }
-
 
66385
 
-
 
66386
    public updateTransferPrices_result() {
-
 
66387
    }
-
 
66388
 
-
 
66389
    public updateTransferPrices_result(
-
 
66390
      TransactionServiceException ex)
-
 
66391
    {
-
 
66392
      this();
-
 
66393
      this.ex = ex;
-
 
66394
    }
-
 
66395
 
-
 
66396
    /**
-
 
66397
     * Performs a deep copy on <i>other</i>.
-
 
66398
     */
-
 
66399
    public updateTransferPrices_result(updateTransferPrices_result other) {
-
 
66400
      if (other.isSetEx()) {
-
 
66401
        this.ex = new TransactionServiceException(other.ex);
-
 
66402
      }
-
 
66403
    }
-
 
66404
 
-
 
66405
    public updateTransferPrices_result deepCopy() {
-
 
66406
      return new updateTransferPrices_result(this);
-
 
66407
    }
-
 
66408
 
-
 
66409
    @Override
-
 
66410
    public void clear() {
-
 
66411
      this.ex = null;
-
 
66412
    }
-
 
66413
 
-
 
66414
    public TransactionServiceException getEx() {
-
 
66415
      return this.ex;
-
 
66416
    }
-
 
66417
 
-
 
66418
    public void setEx(TransactionServiceException ex) {
-
 
66419
      this.ex = ex;
-
 
66420
    }
-
 
66421
 
-
 
66422
    public void unsetEx() {
-
 
66423
      this.ex = null;
-
 
66424
    }
-
 
66425
 
-
 
66426
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
66427
    public boolean isSetEx() {
-
 
66428
      return this.ex != null;
-
 
66429
    }
-
 
66430
 
-
 
66431
    public void setExIsSet(boolean value) {
-
 
66432
      if (!value) {
-
 
66433
        this.ex = null;
-
 
66434
      }
-
 
66435
    }
-
 
66436
 
-
 
66437
    public void setFieldValue(_Fields field, Object value) {
-
 
66438
      switch (field) {
-
 
66439
      case EX:
-
 
66440
        if (value == null) {
-
 
66441
          unsetEx();
-
 
66442
        } else {
-
 
66443
          setEx((TransactionServiceException)value);
-
 
66444
        }
-
 
66445
        break;
-
 
66446
 
-
 
66447
      }
-
 
66448
    }
-
 
66449
 
-
 
66450
    public Object getFieldValue(_Fields field) {
-
 
66451
      switch (field) {
-
 
66452
      case EX:
-
 
66453
        return getEx();
-
 
66454
 
-
 
66455
      }
-
 
66456
      throw new IllegalStateException();
-
 
66457
    }
-
 
66458
 
-
 
66459
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
66460
    public boolean isSet(_Fields field) {
-
 
66461
      if (field == null) {
-
 
66462
        throw new IllegalArgumentException();
-
 
66463
      }
-
 
66464
 
-
 
66465
      switch (field) {
-
 
66466
      case EX:
-
 
66467
        return isSetEx();
-
 
66468
      }
-
 
66469
      throw new IllegalStateException();
-
 
66470
    }
-
 
66471
 
-
 
66472
    @Override
-
 
66473
    public boolean equals(Object that) {
-
 
66474
      if (that == null)
-
 
66475
        return false;
-
 
66476
      if (that instanceof updateTransferPrices_result)
-
 
66477
        return this.equals((updateTransferPrices_result)that);
-
 
66478
      return false;
-
 
66479
    }
-
 
66480
 
-
 
66481
    public boolean equals(updateTransferPrices_result that) {
-
 
66482
      if (that == null)
-
 
66483
        return false;
-
 
66484
 
-
 
66485
      boolean this_present_ex = true && this.isSetEx();
-
 
66486
      boolean that_present_ex = true && that.isSetEx();
-
 
66487
      if (this_present_ex || that_present_ex) {
-
 
66488
        if (!(this_present_ex && that_present_ex))
-
 
66489
          return false;
-
 
66490
        if (!this.ex.equals(that.ex))
-
 
66491
          return false;
-
 
66492
      }
-
 
66493
 
-
 
66494
      return true;
-
 
66495
    }
-
 
66496
 
-
 
66497
    @Override
-
 
66498
    public int hashCode() {
-
 
66499
      return 0;
-
 
66500
    }
-
 
66501
 
-
 
66502
    public int compareTo(updateTransferPrices_result other) {
-
 
66503
      if (!getClass().equals(other.getClass())) {
-
 
66504
        return getClass().getName().compareTo(other.getClass().getName());
-
 
66505
      }
-
 
66506
 
-
 
66507
      int lastComparison = 0;
-
 
66508
      updateTransferPrices_result typedOther = (updateTransferPrices_result)other;
-
 
66509
 
-
 
66510
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
66511
      if (lastComparison != 0) {
-
 
66512
        return lastComparison;
-
 
66513
      }
-
 
66514
      if (isSetEx()) {
-
 
66515
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
66516
        if (lastComparison != 0) {
-
 
66517
          return lastComparison;
-
 
66518
        }
-
 
66519
      }
-
 
66520
      return 0;
-
 
66521
    }
-
 
66522
 
-
 
66523
    public _Fields fieldForId(int fieldId) {
-
 
66524
      return _Fields.findByThriftId(fieldId);
-
 
66525
    }
-
 
66526
 
-
 
66527
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
66528
      org.apache.thrift.protocol.TField field;
-
 
66529
      iprot.readStructBegin();
-
 
66530
      while (true)
-
 
66531
      {
-
 
66532
        field = iprot.readFieldBegin();
-
 
66533
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
66534
          break;
-
 
66535
        }
-
 
66536
        switch (field.id) {
-
 
66537
          case 1: // EX
-
 
66538
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
66539
              this.ex = new TransactionServiceException();
-
 
66540
              this.ex.read(iprot);
-
 
66541
            } else { 
-
 
66542
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
66543
            }
-
 
66544
            break;
-
 
66545
          default:
-
 
66546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
66547
        }
-
 
66548
        iprot.readFieldEnd();
-
 
66549
      }
-
 
66550
      iprot.readStructEnd();
-
 
66551
      validate();
-
 
66552
    }
-
 
66553
 
-
 
66554
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
66555
      oprot.writeStructBegin(STRUCT_DESC);
-
 
66556
 
-
 
66557
      if (this.isSetEx()) {
-
 
66558
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
66559
        this.ex.write(oprot);
-
 
66560
        oprot.writeFieldEnd();
-
 
66561
      }
-
 
66562
      oprot.writeFieldStop();
-
 
66563
      oprot.writeStructEnd();
-
 
66564
    }
-
 
66565
 
-
 
66566
    @Override
-
 
66567
    public String toString() {
-
 
66568
      StringBuilder sb = new StringBuilder("updateTransferPrices_result(");
-
 
66569
      boolean first = true;
-
 
66570
 
-
 
66571
      sb.append("ex:");
-
 
66572
      if (this.ex == null) {
-
 
66573
        sb.append("null");
-
 
66574
      } else {
-
 
66575
        sb.append(this.ex);
65396
      }
66576
      }
65397
      first = false;
66577
      first = false;
65398
      sb.append(")");
66578
      sb.append(")");
65399
      return sb.toString();
66579
      return sb.toString();
65400
    }
66580
    }