Subversion Repositories SmartDukaan

Rev

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

Rev 13941 Rev 17470
Line 1117... Line 1117...
1117
 
1117
 
1118
    public List<HsOrder> getHomeShopOrder(long orderId, String hsOrderNo, String hsSubOrderNo) throws org.apache.thrift.TException;
1118
    public List<HsOrder> getHomeShopOrder(long orderId, String hsOrderNo, String hsSubOrderNo) throws org.apache.thrift.TException;
1119
 
1119
 
1120
    public boolean homeShopOrderExists(String hsOrderNo, String hsSubOrderNo) throws org.apache.thrift.TException;
1120
    public boolean homeShopOrderExists(String hsOrderNo, String hsSubOrderNo) throws org.apache.thrift.TException;
1121
 
1121
 
-
 
1122
    public Order splitBulkOrder(long orderId, long splitOrderQty) throws org.apache.thrift.TException;
-
 
1123
 
1122
  }
1124
  }
1123
 
1125
 
1124
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1126
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1125
 
1127
 
1126
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1128
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1619... Line 1621...
1619
 
1621
 
1620
    public void getHomeShopOrder(long orderId, String hsOrderNo, String hsSubOrderNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHomeShopOrder_call> resultHandler) throws org.apache.thrift.TException;
1622
    public void getHomeShopOrder(long orderId, String hsOrderNo, String hsSubOrderNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHomeShopOrder_call> resultHandler) throws org.apache.thrift.TException;
1621
 
1623
 
1622
    public void homeShopOrderExists(String hsOrderNo, String hsSubOrderNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.homeShopOrderExists_call> resultHandler) throws org.apache.thrift.TException;
1624
    public void homeShopOrderExists(String hsOrderNo, String hsSubOrderNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.homeShopOrderExists_call> resultHandler) throws org.apache.thrift.TException;
1623
 
1625
 
-
 
1626
    public void splitBulkOrder(long orderId, long splitOrderQty, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.splitBulkOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
1627
 
1624
  }
1628
  }
1625
 
1629
 
1626
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1630
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1627
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1631
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1628
      public Factory() {}
1632
      public Factory() {}
Line 7783... Line 7787...
7783
        return result.success;
7787
        return result.success;
7784
      }
7788
      }
7785
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "homeShopOrderExists failed: unknown result");
7789
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "homeShopOrderExists failed: unknown result");
7786
    }
7790
    }
7787
 
7791
 
-
 
7792
    public Order splitBulkOrder(long orderId, long splitOrderQty) throws org.apache.thrift.TException
-
 
7793
    {
-
 
7794
      send_splitBulkOrder(orderId, splitOrderQty);
-
 
7795
      return recv_splitBulkOrder();
-
 
7796
    }
-
 
7797
 
-
 
7798
    public void send_splitBulkOrder(long orderId, long splitOrderQty) throws org.apache.thrift.TException
-
 
7799
    {
-
 
7800
      splitBulkOrder_args args = new splitBulkOrder_args();
-
 
7801
      args.setOrderId(orderId);
-
 
7802
      args.setSplitOrderQty(splitOrderQty);
-
 
7803
      sendBase("splitBulkOrder", args);
-
 
7804
    }
-
 
7805
 
-
 
7806
    public Order recv_splitBulkOrder() throws org.apache.thrift.TException
-
 
7807
    {
-
 
7808
      splitBulkOrder_result result = new splitBulkOrder_result();
-
 
7809
      receiveBase(result, "splitBulkOrder");
-
 
7810
      if (result.isSetSuccess()) {
-
 
7811
        return result.success;
-
 
7812
      }
-
 
7813
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "splitBulkOrder failed: unknown result");
-
 
7814
    }
-
 
7815
 
7788
  }
7816
  }
7789
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
7817
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
7790
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
7818
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
7791
      private org.apache.thrift.async.TAsyncClientManager clientManager;
7819
      private org.apache.thrift.async.TAsyncClientManager clientManager;
7792
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
7820
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 16465... Line 16493...
16465
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
16493
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
16466
        return (new Client(prot)).recv_homeShopOrderExists();
16494
        return (new Client(prot)).recv_homeShopOrderExists();
16467
      }
16495
      }
16468
    }
16496
    }
16469
 
16497
 
-
 
16498
    public void splitBulkOrder(long orderId, long splitOrderQty, org.apache.thrift.async.AsyncMethodCallback<splitBulkOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
16499
      checkReady();
-
 
16500
      splitBulkOrder_call method_call = new splitBulkOrder_call(orderId, splitOrderQty, resultHandler, this, ___protocolFactory, ___transport);
-
 
16501
      this.___currentMethod = method_call;
-
 
16502
      ___manager.call(method_call);
-
 
16503
    }
-
 
16504
 
-
 
16505
    public static class splitBulkOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
16506
      private long orderId;
-
 
16507
      private long splitOrderQty;
-
 
16508
      public splitBulkOrder_call(long orderId, long splitOrderQty, org.apache.thrift.async.AsyncMethodCallback<splitBulkOrder_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 {
-
 
16509
        super(client, protocolFactory, transport, resultHandler, false);
-
 
16510
        this.orderId = orderId;
-
 
16511
        this.splitOrderQty = splitOrderQty;
-
 
16512
      }
-
 
16513
 
-
 
16514
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
16515
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("splitBulkOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
16516
        splitBulkOrder_args args = new splitBulkOrder_args();
-
 
16517
        args.setOrderId(orderId);
-
 
16518
        args.setSplitOrderQty(splitOrderQty);
-
 
16519
        args.write(prot);
-
 
16520
        prot.writeMessageEnd();
-
 
16521
      }
-
 
16522
 
-
 
16523
      public Order getResult() throws org.apache.thrift.TException {
-
 
16524
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
16525
          throw new IllegalStateException("Method call not finished!");
-
 
16526
        }
-
 
16527
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
16528
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
16529
        return (new Client(prot)).recv_splitBulkOrder();
-
 
16530
      }
-
 
16531
    }
-
 
16532
 
16470
  }
16533
  }
16471
 
16534
 
16472
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
16535
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
16473
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
16536
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
16474
    public Processor(I iface) {
16537
    public Processor(I iface) {
Line 16727... Line 16790...
16727
      processMap.put("addBillingDetailsForGrouppedOrders", new addBillingDetailsForGrouppedOrders());
16790
      processMap.put("addBillingDetailsForGrouppedOrders", new addBillingDetailsForGrouppedOrders());
16728
      processMap.put("getInvoiceFormatLogisticsTxnId", new getInvoiceFormatLogisticsTxnId());
16791
      processMap.put("getInvoiceFormatLogisticsTxnId", new getInvoiceFormatLogisticsTxnId());
16729
      processMap.put("createHomeShopOrder", new createHomeShopOrder());
16792
      processMap.put("createHomeShopOrder", new createHomeShopOrder());
16730
      processMap.put("getHomeShopOrder", new getHomeShopOrder());
16793
      processMap.put("getHomeShopOrder", new getHomeShopOrder());
16731
      processMap.put("homeShopOrderExists", new homeShopOrderExists());
16794
      processMap.put("homeShopOrderExists", new homeShopOrderExists());
-
 
16795
      processMap.put("splitBulkOrder", new splitBulkOrder());
16732
      return processMap;
16796
      return processMap;
16733
    }
16797
    }
16734
 
16798
 
16735
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
16799
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
16736
      public createTransaction() {
16800
      public createTransaction() {
Line 21240... Line 21304...
21240
        result.setSuccessIsSet(true);
21304
        result.setSuccessIsSet(true);
21241
        return result;
21305
        return result;
21242
      }
21306
      }
21243
    }
21307
    }
21244
 
21308
 
-
 
21309
    private static class splitBulkOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, splitBulkOrder_args> {
-
 
21310
      public splitBulkOrder() {
-
 
21311
        super("splitBulkOrder");
-
 
21312
      }
-
 
21313
 
-
 
21314
      protected splitBulkOrder_args getEmptyArgsInstance() {
-
 
21315
        return new splitBulkOrder_args();
-
 
21316
      }
-
 
21317
 
-
 
21318
      protected splitBulkOrder_result getResult(I iface, splitBulkOrder_args args) throws org.apache.thrift.TException {
-
 
21319
        splitBulkOrder_result result = new splitBulkOrder_result();
-
 
21320
        result.success = iface.splitBulkOrder(args.orderId, args.splitOrderQty);
-
 
21321
        return result;
-
 
21322
      }
-
 
21323
    }
-
 
21324
 
21245
  }
21325
  }
21246
 
21326
 
21247
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
21327
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
21248
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
21328
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
21249
 
21329
 
Line 197823... Line 197903...
197823
      first = false;
197903
      first = false;
197824
      sb.append(")");
197904
      sb.append(")");
197825
      return sb.toString();
197905
      return sb.toString();
197826
    }
197906
    }
197827
 
197907
 
-
 
197908
    public void validate() throws org.apache.thrift.TException {
-
 
197909
      // check for required fields
-
 
197910
    }
-
 
197911
 
-
 
197912
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
197913
      try {
-
 
197914
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
197915
      } catch (org.apache.thrift.TException te) {
-
 
197916
        throw new java.io.IOException(te);
-
 
197917
      }
-
 
197918
    }
-
 
197919
 
-
 
197920
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
197921
      try {
-
 
197922
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
197923
      } catch (org.apache.thrift.TException te) {
-
 
197924
        throw new java.io.IOException(te);
-
 
197925
      }
-
 
197926
    }
-
 
197927
 
-
 
197928
  }
-
 
197929
 
-
 
197930
  public static class splitBulkOrder_args implements org.apache.thrift.TBase<splitBulkOrder_args, splitBulkOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
197931
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("splitBulkOrder_args");
-
 
197932
 
-
 
197933
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
197934
    private static final org.apache.thrift.protocol.TField SPLIT_ORDER_QTY_FIELD_DESC = new org.apache.thrift.protocol.TField("splitOrderQty", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
197935
 
-
 
197936
    private long orderId; // required
-
 
197937
    private long splitOrderQty; // required
-
 
197938
 
-
 
197939
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
197940
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
197941
      ORDER_ID((short)1, "orderId"),
-
 
197942
      SPLIT_ORDER_QTY((short)2, "splitOrderQty");
-
 
197943
 
-
 
197944
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
197945
 
-
 
197946
      static {
-
 
197947
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
197948
          byName.put(field.getFieldName(), field);
-
 
197949
        }
-
 
197950
      }
-
 
197951
 
-
 
197952
      /**
-
 
197953
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
197954
       */
-
 
197955
      public static _Fields findByThriftId(int fieldId) {
-
 
197956
        switch(fieldId) {
-
 
197957
          case 1: // ORDER_ID
-
 
197958
            return ORDER_ID;
-
 
197959
          case 2: // SPLIT_ORDER_QTY
-
 
197960
            return SPLIT_ORDER_QTY;
-
 
197961
          default:
-
 
197962
            return null;
-
 
197963
        }
-
 
197964
      }
-
 
197965
 
-
 
197966
      /**
-
 
197967
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
197968
       * if it is not found.
-
 
197969
       */
-
 
197970
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
197971
        _Fields fields = findByThriftId(fieldId);
-
 
197972
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
197973
        return fields;
-
 
197974
      }
-
 
197975
 
-
 
197976
      /**
-
 
197977
       * Find the _Fields constant that matches name, or null if its not found.
-
 
197978
       */
-
 
197979
      public static _Fields findByName(String name) {
-
 
197980
        return byName.get(name);
-
 
197981
      }
-
 
197982
 
-
 
197983
      private final short _thriftId;
-
 
197984
      private final String _fieldName;
-
 
197985
 
-
 
197986
      _Fields(short thriftId, String fieldName) {
-
 
197987
        _thriftId = thriftId;
-
 
197988
        _fieldName = fieldName;
-
 
197989
      }
-
 
197990
 
-
 
197991
      public short getThriftFieldId() {
-
 
197992
        return _thriftId;
-
 
197993
      }
-
 
197994
 
-
 
197995
      public String getFieldName() {
-
 
197996
        return _fieldName;
-
 
197997
      }
-
 
197998
    }
-
 
197999
 
-
 
198000
    // isset id assignments
-
 
198001
    private static final int __ORDERID_ISSET_ID = 0;
-
 
198002
    private static final int __SPLITORDERQTY_ISSET_ID = 1;
-
 
198003
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
198004
 
-
 
198005
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
198006
    static {
-
 
198007
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
198008
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
198009
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
198010
      tmpMap.put(_Fields.SPLIT_ORDER_QTY, new org.apache.thrift.meta_data.FieldMetaData("splitOrderQty", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
198011
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
198012
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
198013
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(splitBulkOrder_args.class, metaDataMap);
-
 
198014
    }
-
 
198015
 
-
 
198016
    public splitBulkOrder_args() {
-
 
198017
    }
-
 
198018
 
-
 
198019
    public splitBulkOrder_args(
-
 
198020
      long orderId,
-
 
198021
      long splitOrderQty)
-
 
198022
    {
-
 
198023
      this();
-
 
198024
      this.orderId = orderId;
-
 
198025
      setOrderIdIsSet(true);
-
 
198026
      this.splitOrderQty = splitOrderQty;
-
 
198027
      setSplitOrderQtyIsSet(true);
-
 
198028
    }
-
 
198029
 
-
 
198030
    /**
-
 
198031
     * Performs a deep copy on <i>other</i>.
-
 
198032
     */
-
 
198033
    public splitBulkOrder_args(splitBulkOrder_args other) {
-
 
198034
      __isset_bit_vector.clear();
-
 
198035
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
198036
      this.orderId = other.orderId;
-
 
198037
      this.splitOrderQty = other.splitOrderQty;
-
 
198038
    }
-
 
198039
 
-
 
198040
    public splitBulkOrder_args deepCopy() {
-
 
198041
      return new splitBulkOrder_args(this);
-
 
198042
    }
-
 
198043
 
-
 
198044
    @Override
-
 
198045
    public void clear() {
-
 
198046
      setOrderIdIsSet(false);
-
 
198047
      this.orderId = 0;
-
 
198048
      setSplitOrderQtyIsSet(false);
-
 
198049
      this.splitOrderQty = 0;
-
 
198050
    }
-
 
198051
 
-
 
198052
    public long getOrderId() {
-
 
198053
      return this.orderId;
-
 
198054
    }
-
 
198055
 
-
 
198056
    public void setOrderId(long orderId) {
-
 
198057
      this.orderId = orderId;
-
 
198058
      setOrderIdIsSet(true);
-
 
198059
    }
-
 
198060
 
-
 
198061
    public void unsetOrderId() {
-
 
198062
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
198063
    }
-
 
198064
 
-
 
198065
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
198066
    public boolean isSetOrderId() {
-
 
198067
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
198068
    }
-
 
198069
 
-
 
198070
    public void setOrderIdIsSet(boolean value) {
-
 
198071
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
198072
    }
-
 
198073
 
-
 
198074
    public long getSplitOrderQty() {
-
 
198075
      return this.splitOrderQty;
-
 
198076
    }
-
 
198077
 
-
 
198078
    public void setSplitOrderQty(long splitOrderQty) {
-
 
198079
      this.splitOrderQty = splitOrderQty;
-
 
198080
      setSplitOrderQtyIsSet(true);
-
 
198081
    }
-
 
198082
 
-
 
198083
    public void unsetSplitOrderQty() {
-
 
198084
      __isset_bit_vector.clear(__SPLITORDERQTY_ISSET_ID);
-
 
198085
    }
-
 
198086
 
-
 
198087
    /** Returns true if field splitOrderQty is set (has been assigned a value) and false otherwise */
-
 
198088
    public boolean isSetSplitOrderQty() {
-
 
198089
      return __isset_bit_vector.get(__SPLITORDERQTY_ISSET_ID);
-
 
198090
    }
-
 
198091
 
-
 
198092
    public void setSplitOrderQtyIsSet(boolean value) {
-
 
198093
      __isset_bit_vector.set(__SPLITORDERQTY_ISSET_ID, value);
-
 
198094
    }
-
 
198095
 
-
 
198096
    public void setFieldValue(_Fields field, Object value) {
-
 
198097
      switch (field) {
-
 
198098
      case ORDER_ID:
-
 
198099
        if (value == null) {
-
 
198100
          unsetOrderId();
-
 
198101
        } else {
-
 
198102
          setOrderId((Long)value);
-
 
198103
        }
-
 
198104
        break;
-
 
198105
 
-
 
198106
      case SPLIT_ORDER_QTY:
-
 
198107
        if (value == null) {
-
 
198108
          unsetSplitOrderQty();
-
 
198109
        } else {
-
 
198110
          setSplitOrderQty((Long)value);
-
 
198111
        }
-
 
198112
        break;
-
 
198113
 
-
 
198114
      }
-
 
198115
    }
-
 
198116
 
-
 
198117
    public Object getFieldValue(_Fields field) {
-
 
198118
      switch (field) {
-
 
198119
      case ORDER_ID:
-
 
198120
        return Long.valueOf(getOrderId());
-
 
198121
 
-
 
198122
      case SPLIT_ORDER_QTY:
-
 
198123
        return Long.valueOf(getSplitOrderQty());
-
 
198124
 
-
 
198125
      }
-
 
198126
      throw new IllegalStateException();
-
 
198127
    }
-
 
198128
 
-
 
198129
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
198130
    public boolean isSet(_Fields field) {
-
 
198131
      if (field == null) {
-
 
198132
        throw new IllegalArgumentException();
-
 
198133
      }
-
 
198134
 
-
 
198135
      switch (field) {
-
 
198136
      case ORDER_ID:
-
 
198137
        return isSetOrderId();
-
 
198138
      case SPLIT_ORDER_QTY:
-
 
198139
        return isSetSplitOrderQty();
-
 
198140
      }
-
 
198141
      throw new IllegalStateException();
-
 
198142
    }
-
 
198143
 
-
 
198144
    @Override
-
 
198145
    public boolean equals(Object that) {
-
 
198146
      if (that == null)
-
 
198147
        return false;
-
 
198148
      if (that instanceof splitBulkOrder_args)
-
 
198149
        return this.equals((splitBulkOrder_args)that);
-
 
198150
      return false;
-
 
198151
    }
-
 
198152
 
-
 
198153
    public boolean equals(splitBulkOrder_args that) {
-
 
198154
      if (that == null)
-
 
198155
        return false;
-
 
198156
 
-
 
198157
      boolean this_present_orderId = true;
-
 
198158
      boolean that_present_orderId = true;
-
 
198159
      if (this_present_orderId || that_present_orderId) {
-
 
198160
        if (!(this_present_orderId && that_present_orderId))
-
 
198161
          return false;
-
 
198162
        if (this.orderId != that.orderId)
-
 
198163
          return false;
-
 
198164
      }
-
 
198165
 
-
 
198166
      boolean this_present_splitOrderQty = true;
-
 
198167
      boolean that_present_splitOrderQty = true;
-
 
198168
      if (this_present_splitOrderQty || that_present_splitOrderQty) {
-
 
198169
        if (!(this_present_splitOrderQty && that_present_splitOrderQty))
-
 
198170
          return false;
-
 
198171
        if (this.splitOrderQty != that.splitOrderQty)
-
 
198172
          return false;
-
 
198173
      }
-
 
198174
 
-
 
198175
      return true;
-
 
198176
    }
-
 
198177
 
-
 
198178
    @Override
-
 
198179
    public int hashCode() {
-
 
198180
      return 0;
-
 
198181
    }
-
 
198182
 
-
 
198183
    public int compareTo(splitBulkOrder_args other) {
-
 
198184
      if (!getClass().equals(other.getClass())) {
-
 
198185
        return getClass().getName().compareTo(other.getClass().getName());
-
 
198186
      }
-
 
198187
 
-
 
198188
      int lastComparison = 0;
-
 
198189
      splitBulkOrder_args typedOther = (splitBulkOrder_args)other;
-
 
198190
 
-
 
198191
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
198192
      if (lastComparison != 0) {
-
 
198193
        return lastComparison;
-
 
198194
      }
-
 
198195
      if (isSetOrderId()) {
-
 
198196
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
198197
        if (lastComparison != 0) {
-
 
198198
          return lastComparison;
-
 
198199
        }
-
 
198200
      }
-
 
198201
      lastComparison = Boolean.valueOf(isSetSplitOrderQty()).compareTo(typedOther.isSetSplitOrderQty());
-
 
198202
      if (lastComparison != 0) {
-
 
198203
        return lastComparison;
-
 
198204
      }
-
 
198205
      if (isSetSplitOrderQty()) {
-
 
198206
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.splitOrderQty, typedOther.splitOrderQty);
-
 
198207
        if (lastComparison != 0) {
-
 
198208
          return lastComparison;
-
 
198209
        }
-
 
198210
      }
-
 
198211
      return 0;
-
 
198212
    }
-
 
198213
 
-
 
198214
    public _Fields fieldForId(int fieldId) {
-
 
198215
      return _Fields.findByThriftId(fieldId);
-
 
198216
    }
-
 
198217
 
-
 
198218
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
198219
      org.apache.thrift.protocol.TField field;
-
 
198220
      iprot.readStructBegin();
-
 
198221
      while (true)
-
 
198222
      {
-
 
198223
        field = iprot.readFieldBegin();
-
 
198224
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
198225
          break;
-
 
198226
        }
-
 
198227
        switch (field.id) {
-
 
198228
          case 1: // ORDER_ID
-
 
198229
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
198230
              this.orderId = iprot.readI64();
-
 
198231
              setOrderIdIsSet(true);
-
 
198232
            } else { 
-
 
198233
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
198234
            }
-
 
198235
            break;
-
 
198236
          case 2: // SPLIT_ORDER_QTY
-
 
198237
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
198238
              this.splitOrderQty = iprot.readI64();
-
 
198239
              setSplitOrderQtyIsSet(true);
-
 
198240
            } else { 
-
 
198241
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
198242
            }
-
 
198243
            break;
-
 
198244
          default:
-
 
198245
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
198246
        }
-
 
198247
        iprot.readFieldEnd();
-
 
198248
      }
-
 
198249
      iprot.readStructEnd();
-
 
198250
      validate();
-
 
198251
    }
-
 
198252
 
-
 
198253
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
198254
      validate();
-
 
198255
 
-
 
198256
      oprot.writeStructBegin(STRUCT_DESC);
-
 
198257
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
198258
      oprot.writeI64(this.orderId);
-
 
198259
      oprot.writeFieldEnd();
-
 
198260
      oprot.writeFieldBegin(SPLIT_ORDER_QTY_FIELD_DESC);
-
 
198261
      oprot.writeI64(this.splitOrderQty);
-
 
198262
      oprot.writeFieldEnd();
-
 
198263
      oprot.writeFieldStop();
-
 
198264
      oprot.writeStructEnd();
-
 
198265
    }
-
 
198266
 
-
 
198267
    @Override
-
 
198268
    public String toString() {
-
 
198269
      StringBuilder sb = new StringBuilder("splitBulkOrder_args(");
-
 
198270
      boolean first = true;
-
 
198271
 
-
 
198272
      sb.append("orderId:");
-
 
198273
      sb.append(this.orderId);
-
 
198274
      first = false;
-
 
198275
      if (!first) sb.append(", ");
-
 
198276
      sb.append("splitOrderQty:");
-
 
198277
      sb.append(this.splitOrderQty);
-
 
198278
      first = false;
-
 
198279
      sb.append(")");
-
 
198280
      return sb.toString();
-
 
198281
    }
-
 
198282
 
-
 
198283
    public void validate() throws org.apache.thrift.TException {
-
 
198284
      // check for required fields
-
 
198285
    }
-
 
198286
 
-
 
198287
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
198288
      try {
-
 
198289
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
198290
      } catch (org.apache.thrift.TException te) {
-
 
198291
        throw new java.io.IOException(te);
-
 
198292
      }
-
 
198293
    }
-
 
198294
 
-
 
198295
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
198296
      try {
-
 
198297
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
198298
        __isset_bit_vector = new BitSet(1);
-
 
198299
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
198300
      } catch (org.apache.thrift.TException te) {
-
 
198301
        throw new java.io.IOException(te);
-
 
198302
      }
-
 
198303
    }
-
 
198304
 
-
 
198305
  }
-
 
198306
 
-
 
198307
  public static class splitBulkOrder_result implements org.apache.thrift.TBase<splitBulkOrder_result, splitBulkOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
198308
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("splitBulkOrder_result");
-
 
198309
 
-
 
198310
    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);
-
 
198311
 
-
 
198312
    private Order success; // required
-
 
198313
 
-
 
198314
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
198315
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
198316
      SUCCESS((short)0, "success");
-
 
198317
 
-
 
198318
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
198319
 
-
 
198320
      static {
-
 
198321
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
198322
          byName.put(field.getFieldName(), field);
-
 
198323
        }
-
 
198324
      }
-
 
198325
 
-
 
198326
      /**
-
 
198327
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
198328
       */
-
 
198329
      public static _Fields findByThriftId(int fieldId) {
-
 
198330
        switch(fieldId) {
-
 
198331
          case 0: // SUCCESS
-
 
198332
            return SUCCESS;
-
 
198333
          default:
-
 
198334
            return null;
-
 
198335
        }
-
 
198336
      }
-
 
198337
 
-
 
198338
      /**
-
 
198339
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
198340
       * if it is not found.
-
 
198341
       */
-
 
198342
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
198343
        _Fields fields = findByThriftId(fieldId);
-
 
198344
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
198345
        return fields;
-
 
198346
      }
-
 
198347
 
-
 
198348
      /**
-
 
198349
       * Find the _Fields constant that matches name, or null if its not found.
-
 
198350
       */
-
 
198351
      public static _Fields findByName(String name) {
-
 
198352
        return byName.get(name);
-
 
198353
      }
-
 
198354
 
-
 
198355
      private final short _thriftId;
-
 
198356
      private final String _fieldName;
-
 
198357
 
-
 
198358
      _Fields(short thriftId, String fieldName) {
-
 
198359
        _thriftId = thriftId;
-
 
198360
        _fieldName = fieldName;
-
 
198361
      }
-
 
198362
 
-
 
198363
      public short getThriftFieldId() {
-
 
198364
        return _thriftId;
-
 
198365
      }
-
 
198366
 
-
 
198367
      public String getFieldName() {
-
 
198368
        return _fieldName;
-
 
198369
      }
-
 
198370
    }
-
 
198371
 
-
 
198372
    // isset id assignments
-
 
198373
 
-
 
198374
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
198375
    static {
-
 
198376
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
198377
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
198378
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));
-
 
198379
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
198380
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(splitBulkOrder_result.class, metaDataMap);
-
 
198381
    }
-
 
198382
 
-
 
198383
    public splitBulkOrder_result() {
-
 
198384
    }
-
 
198385
 
-
 
198386
    public splitBulkOrder_result(
-
 
198387
      Order success)
-
 
198388
    {
-
 
198389
      this();
-
 
198390
      this.success = success;
-
 
198391
    }
-
 
198392
 
-
 
198393
    /**
-
 
198394
     * Performs a deep copy on <i>other</i>.
-
 
198395
     */
-
 
198396
    public splitBulkOrder_result(splitBulkOrder_result other) {
-
 
198397
      if (other.isSetSuccess()) {
-
 
198398
        this.success = new Order(other.success);
-
 
198399
      }
-
 
198400
    }
-
 
198401
 
-
 
198402
    public splitBulkOrder_result deepCopy() {
-
 
198403
      return new splitBulkOrder_result(this);
-
 
198404
    }
-
 
198405
 
-
 
198406
    @Override
-
 
198407
    public void clear() {
-
 
198408
      this.success = null;
-
 
198409
    }
-
 
198410
 
-
 
198411
    public Order getSuccess() {
-
 
198412
      return this.success;
-
 
198413
    }
-
 
198414
 
-
 
198415
    public void setSuccess(Order success) {
-
 
198416
      this.success = success;
-
 
198417
    }
-
 
198418
 
-
 
198419
    public void unsetSuccess() {
-
 
198420
      this.success = null;
-
 
198421
    }
-
 
198422
 
-
 
198423
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
198424
    public boolean isSetSuccess() {
-
 
198425
      return this.success != null;
-
 
198426
    }
-
 
198427
 
-
 
198428
    public void setSuccessIsSet(boolean value) {
-
 
198429
      if (!value) {
-
 
198430
        this.success = null;
-
 
198431
      }
-
 
198432
    }
-
 
198433
 
-
 
198434
    public void setFieldValue(_Fields field, Object value) {
-
 
198435
      switch (field) {
-
 
198436
      case SUCCESS:
-
 
198437
        if (value == null) {
-
 
198438
          unsetSuccess();
-
 
198439
        } else {
-
 
198440
          setSuccess((Order)value);
-
 
198441
        }
-
 
198442
        break;
-
 
198443
 
-
 
198444
      }
-
 
198445
    }
-
 
198446
 
-
 
198447
    public Object getFieldValue(_Fields field) {
-
 
198448
      switch (field) {
-
 
198449
      case SUCCESS:
-
 
198450
        return getSuccess();
-
 
198451
 
-
 
198452
      }
-
 
198453
      throw new IllegalStateException();
-
 
198454
    }
-
 
198455
 
-
 
198456
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
198457
    public boolean isSet(_Fields field) {
-
 
198458
      if (field == null) {
-
 
198459
        throw new IllegalArgumentException();
-
 
198460
      }
-
 
198461
 
-
 
198462
      switch (field) {
-
 
198463
      case SUCCESS:
-
 
198464
        return isSetSuccess();
-
 
198465
      }
-
 
198466
      throw new IllegalStateException();
-
 
198467
    }
-
 
198468
 
-
 
198469
    @Override
-
 
198470
    public boolean equals(Object that) {
-
 
198471
      if (that == null)
-
 
198472
        return false;
-
 
198473
      if (that instanceof splitBulkOrder_result)
-
 
198474
        return this.equals((splitBulkOrder_result)that);
-
 
198475
      return false;
-
 
198476
    }
-
 
198477
 
-
 
198478
    public boolean equals(splitBulkOrder_result that) {
-
 
198479
      if (that == null)
-
 
198480
        return false;
-
 
198481
 
-
 
198482
      boolean this_present_success = true && this.isSetSuccess();
-
 
198483
      boolean that_present_success = true && that.isSetSuccess();
-
 
198484
      if (this_present_success || that_present_success) {
-
 
198485
        if (!(this_present_success && that_present_success))
-
 
198486
          return false;
-
 
198487
        if (!this.success.equals(that.success))
-
 
198488
          return false;
-
 
198489
      }
-
 
198490
 
-
 
198491
      return true;
-
 
198492
    }
-
 
198493
 
-
 
198494
    @Override
-
 
198495
    public int hashCode() {
-
 
198496
      return 0;
-
 
198497
    }
-
 
198498
 
-
 
198499
    public int compareTo(splitBulkOrder_result other) {
-
 
198500
      if (!getClass().equals(other.getClass())) {
-
 
198501
        return getClass().getName().compareTo(other.getClass().getName());
-
 
198502
      }
-
 
198503
 
-
 
198504
      int lastComparison = 0;
-
 
198505
      splitBulkOrder_result typedOther = (splitBulkOrder_result)other;
-
 
198506
 
-
 
198507
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
198508
      if (lastComparison != 0) {
-
 
198509
        return lastComparison;
-
 
198510
      }
-
 
198511
      if (isSetSuccess()) {
-
 
198512
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
198513
        if (lastComparison != 0) {
-
 
198514
          return lastComparison;
-
 
198515
        }
-
 
198516
      }
-
 
198517
      return 0;
-
 
198518
    }
-
 
198519
 
-
 
198520
    public _Fields fieldForId(int fieldId) {
-
 
198521
      return _Fields.findByThriftId(fieldId);
-
 
198522
    }
-
 
198523
 
-
 
198524
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
198525
      org.apache.thrift.protocol.TField field;
-
 
198526
      iprot.readStructBegin();
-
 
198527
      while (true)
-
 
198528
      {
-
 
198529
        field = iprot.readFieldBegin();
-
 
198530
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
198531
          break;
-
 
198532
        }
-
 
198533
        switch (field.id) {
-
 
198534
          case 0: // SUCCESS
-
 
198535
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
198536
              this.success = new Order();
-
 
198537
              this.success.read(iprot);
-
 
198538
            } else { 
-
 
198539
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
198540
            }
-
 
198541
            break;
-
 
198542
          default:
-
 
198543
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
198544
        }
-
 
198545
        iprot.readFieldEnd();
-
 
198546
      }
-
 
198547
      iprot.readStructEnd();
-
 
198548
      validate();
-
 
198549
    }
-
 
198550
 
-
 
198551
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
198552
      oprot.writeStructBegin(STRUCT_DESC);
-
 
198553
 
-
 
198554
      if (this.isSetSuccess()) {
-
 
198555
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
198556
        this.success.write(oprot);
-
 
198557
        oprot.writeFieldEnd();
-
 
198558
      }
-
 
198559
      oprot.writeFieldStop();
-
 
198560
      oprot.writeStructEnd();
-
 
198561
    }
-
 
198562
 
-
 
198563
    @Override
-
 
198564
    public String toString() {
-
 
198565
      StringBuilder sb = new StringBuilder("splitBulkOrder_result(");
-
 
198566
      boolean first = true;
-
 
198567
 
-
 
198568
      sb.append("success:");
-
 
198569
      if (this.success == null) {
-
 
198570
        sb.append("null");
-
 
198571
      } else {
-
 
198572
        sb.append(this.success);
-
 
198573
      }
-
 
198574
      first = false;
-
 
198575
      sb.append(")");
-
 
198576
      return sb.toString();
-
 
198577
    }
-
 
198578
 
197828
    public void validate() throws org.apache.thrift.TException {
198579
    public void validate() throws org.apache.thrift.TException {
197829
      // check for required fields
198580
      // check for required fields
197830
    }
198581
    }
197831
 
198582
 
197832
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
198583
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {