Subversion Repositories SmartDukaan

Rev

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

Rev 4285 Rev 4295
Line 494... Line 494...
494
     * is defined as one whose shipping date is about to expire.
494
     * is defined as one whose shipping date is about to expire.
495
     */
495
     */
496
    public Map<Long,Long> getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException;
496
    public Map<Long,Long> getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException;
497
 
497
 
498
    /**
498
    /**
-
 
499
     * Returns a list of all orders which have items with given id
-
 
500
     * 
-
 
501
     * @param itemIds
-
 
502
     */
-
 
503
    public List<Order> getOrdersForItemIds(List<Long> itemIds) throws org.apache.thrift.TException;
-
 
504
 
-
 
505
    /**
499
     * Mark order as cancellation request received. If customer sends request of cancellation of
506
     * Mark order as cancellation request received. If customer sends request of cancellation of
500
     * a particular order, this method will be called. It will just change status of the order
507
     * a particular order, this method will be called. It will just change status of the order
501
     * depending on its current status. It also records the previous status, so that we can move
508
     * depending on its current status. It also records the previous status, so that we can move
502
     * back to that status if cancellation request is denied.
509
     * back to that status if cancellation request is denied.
503
     * 
510
     * 
Line 665... Line 672...
665
 
672
 
666
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransactionAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
673
    public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransactionAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
667
 
674
 
668
    public void getItemWiseRiskyOrdersCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemWiseRiskyOrdersCount_call> resultHandler) throws org.apache.thrift.TException;
675
    public void getItemWiseRiskyOrdersCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemWiseRiskyOrdersCount_call> resultHandler) throws org.apache.thrift.TException;
669
 
676
 
-
 
677
    public void getOrdersForItemIds(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersForItemIds_call> resultHandler) throws org.apache.thrift.TException;
-
 
678
 
670
    public void markOrderCancellationRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
679
    public void markOrderCancellationRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
671
 
680
 
672
    public void markOrderCancellationRequestConfirmed(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestConfirmed_call> resultHandler) throws org.apache.thrift.TException;
681
    public void markOrderCancellationRequestConfirmed(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestConfirmed_call> resultHandler) throws org.apache.thrift.TException;
673
 
682
 
674
    public void markOrderCancellationRequestDenied(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestDenied_call> resultHandler) throws org.apache.thrift.TException;
683
    public void markOrderCancellationRequestDenied(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestDenied_call> resultHandler) throws org.apache.thrift.TException;
Line 2211... Line 2220...
2211
        return result.success;
2220
        return result.success;
2212
      }
2221
      }
2213
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemWiseRiskyOrdersCount failed: unknown result");
2222
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemWiseRiskyOrdersCount failed: unknown result");
2214
    }
2223
    }
2215
 
2224
 
-
 
2225
    public List<Order> getOrdersForItemIds(List<Long> itemIds) throws org.apache.thrift.TException
-
 
2226
    {
-
 
2227
      send_getOrdersForItemIds(itemIds);
-
 
2228
      return recv_getOrdersForItemIds();
-
 
2229
    }
-
 
2230
 
-
 
2231
    public void send_getOrdersForItemIds(List<Long> itemIds) throws org.apache.thrift.TException
-
 
2232
    {
-
 
2233
      getOrdersForItemIds_args args = new getOrdersForItemIds_args();
-
 
2234
      args.setItemIds(itemIds);
-
 
2235
      sendBase("getOrdersForItemIds", args);
-
 
2236
    }
-
 
2237
 
-
 
2238
    public List<Order> recv_getOrdersForItemIds() throws org.apache.thrift.TException
-
 
2239
    {
-
 
2240
      getOrdersForItemIds_result result = new getOrdersForItemIds_result();
-
 
2241
      receiveBase(result, "getOrdersForItemIds");
-
 
2242
      if (result.isSetSuccess()) {
-
 
2243
        return result.success;
-
 
2244
      }
-
 
2245
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersForItemIds failed: unknown result");
-
 
2246
    }
-
 
2247
 
2216
    public void markOrderCancellationRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2248
    public void markOrderCancellationRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2217
    {
2249
    {
2218
      send_markOrderCancellationRequestReceived(orderId);
2250
      send_markOrderCancellationRequestReceived(orderId);
2219
      recv_markOrderCancellationRequestReceived();
2251
      recv_markOrderCancellationRequestReceived();
2220
    }
2252
    }
Line 4403... Line 4435...
4403
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4435
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4404
        return (new Client(prot)).recv_getItemWiseRiskyOrdersCount();
4436
        return (new Client(prot)).recv_getItemWiseRiskyOrdersCount();
4405
      }
4437
      }
4406
    }
4438
    }
4407
 
4439
 
-
 
4440
    public void getOrdersForItemIds(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getOrdersForItemIds_call> resultHandler) throws org.apache.thrift.TException {
-
 
4441
      checkReady();
-
 
4442
      getOrdersForItemIds_call method_call = new getOrdersForItemIds_call(itemIds, resultHandler, this, ___protocolFactory, ___transport);
-
 
4443
      this.___currentMethod = method_call;
-
 
4444
      ___manager.call(method_call);
-
 
4445
    }
-
 
4446
 
-
 
4447
    public static class getOrdersForItemIds_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4448
      private List<Long> itemIds;
-
 
4449
      public getOrdersForItemIds_call(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getOrdersForItemIds_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 {
-
 
4450
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4451
        this.itemIds = itemIds;
-
 
4452
      }
-
 
4453
 
-
 
4454
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4455
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersForItemIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4456
        getOrdersForItemIds_args args = new getOrdersForItemIds_args();
-
 
4457
        args.setItemIds(itemIds);
-
 
4458
        args.write(prot);
-
 
4459
        prot.writeMessageEnd();
-
 
4460
      }
-
 
4461
 
-
 
4462
      public List<Order> getResult() throws org.apache.thrift.TException {
-
 
4463
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4464
          throw new IllegalStateException("Method call not finished!");
-
 
4465
        }
-
 
4466
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4467
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4468
        return (new Client(prot)).recv_getOrdersForItemIds();
-
 
4469
      }
-
 
4470
    }
-
 
4471
 
4408
    public void markOrderCancellationRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestReceived_call> resultHandler) throws org.apache.thrift.TException {
4472
    public void markOrderCancellationRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestReceived_call> resultHandler) throws org.apache.thrift.TException {
4409
      checkReady();
4473
      checkReady();
4410
      markOrderCancellationRequestReceived_call method_call = new markOrderCancellationRequestReceived_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
4474
      markOrderCancellationRequestReceived_call method_call = new markOrderCancellationRequestReceived_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
4411
      this.___currentMethod = method_call;
4475
      this.___currentMethod = method_call;
4412
      ___manager.call(method_call);
4476
      ___manager.call(method_call);
Line 4675... Line 4739...
4675
      processMap.put("addDelayReason", new addDelayReason());
4739
      processMap.put("addDelayReason", new addDelayReason());
4676
      processMap.put("reconcileCodCollection", new reconcileCodCollection());
4740
      processMap.put("reconcileCodCollection", new reconcileCodCollection());
4677
      processMap.put("getTransactionsRequiringExtraProcessing", new getTransactionsRequiringExtraProcessing());
4741
      processMap.put("getTransactionsRequiringExtraProcessing", new getTransactionsRequiringExtraProcessing());
4678
      processMap.put("markTransactionAsProcessed", new markTransactionAsProcessed());
4742
      processMap.put("markTransactionAsProcessed", new markTransactionAsProcessed());
4679
      processMap.put("getItemWiseRiskyOrdersCount", new getItemWiseRiskyOrdersCount());
4743
      processMap.put("getItemWiseRiskyOrdersCount", new getItemWiseRiskyOrdersCount());
-
 
4744
      processMap.put("getOrdersForItemIds", new getOrdersForItemIds());
4680
      processMap.put("markOrderCancellationRequestReceived", new markOrderCancellationRequestReceived());
4745
      processMap.put("markOrderCancellationRequestReceived", new markOrderCancellationRequestReceived());
4681
      processMap.put("markOrderCancellationRequestConfirmed", new markOrderCancellationRequestConfirmed());
4746
      processMap.put("markOrderCancellationRequestConfirmed", new markOrderCancellationRequestConfirmed());
4682
      processMap.put("markOrderCancellationRequestDenied", new markOrderCancellationRequestDenied());
4747
      processMap.put("markOrderCancellationRequestDenied", new markOrderCancellationRequestDenied());
4683
      processMap.put("markTransactionAsPaymentFlagRemoved", new markTransactionAsPaymentFlagRemoved());
4748
      processMap.put("markTransactionAsPaymentFlagRemoved", new markTransactionAsPaymentFlagRemoved());
4684
      processMap.put("refundTransaction", new refundTransaction());
4749
      processMap.put("refundTransaction", new refundTransaction());
Line 5818... Line 5883...
5818
        result.success = iface.getItemWiseRiskyOrdersCount();
5883
        result.success = iface.getItemWiseRiskyOrdersCount();
5819
        return result;
5884
        return result;
5820
      }
5885
      }
5821
    }
5886
    }
5822
 
5887
 
-
 
5888
    private static class getOrdersForItemIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersForItemIds_args> {
-
 
5889
      public getOrdersForItemIds() {
-
 
5890
        super("getOrdersForItemIds");
-
 
5891
      }
-
 
5892
 
-
 
5893
      protected getOrdersForItemIds_args getEmptyArgsInstance() {
-
 
5894
        return new getOrdersForItemIds_args();
-
 
5895
      }
-
 
5896
 
-
 
5897
      protected getOrdersForItemIds_result getResult(I iface, getOrdersForItemIds_args args) throws org.apache.thrift.TException {
-
 
5898
        getOrdersForItemIds_result result = new getOrdersForItemIds_result();
-
 
5899
        result.success = iface.getOrdersForItemIds(args.itemIds);
-
 
5900
        return result;
-
 
5901
      }
-
 
5902
    }
-
 
5903
 
5823
    private static class markOrderCancellationRequestReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderCancellationRequestReceived_args> {
5904
    private static class markOrderCancellationRequestReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderCancellationRequestReceived_args> {
5824
      public markOrderCancellationRequestReceived() {
5905
      public markOrderCancellationRequestReceived() {
5825
        super("markOrderCancellationRequestReceived");
5906
        super("markOrderCancellationRequestReceived");
5826
      }
5907
      }
5827
 
5908
 
Line 49648... Line 49729...
49648
      boolean first = true;
49729
      boolean first = true;
49649
 
49730
 
49650
      sb.append("success:");
49731
      sb.append("success:");
49651
      if (this.success == null) {
49732
      if (this.success == null) {
49652
        sb.append("null");
49733
        sb.append("null");
-
 
49734
      } else {
-
 
49735
        sb.append(this.success);
-
 
49736
      }
-
 
49737
      first = false;
-
 
49738
      sb.append(")");
-
 
49739
      return sb.toString();
-
 
49740
    }
-
 
49741
 
-
 
49742
    public void validate() throws org.apache.thrift.TException {
-
 
49743
      // check for required fields
-
 
49744
    }
-
 
49745
 
-
 
49746
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
49747
      try {
-
 
49748
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
49749
      } catch (org.apache.thrift.TException te) {
-
 
49750
        throw new java.io.IOException(te);
-
 
49751
      }
-
 
49752
    }
-
 
49753
 
-
 
49754
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
49755
      try {
-
 
49756
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
49757
      } catch (org.apache.thrift.TException te) {
-
 
49758
        throw new java.io.IOException(te);
-
 
49759
      }
-
 
49760
    }
-
 
49761
 
-
 
49762
  }
-
 
49763
 
-
 
49764
  public static class getOrdersForItemIds_args implements org.apache.thrift.TBase<getOrdersForItemIds_args, getOrdersForItemIds_args._Fields>, java.io.Serializable, Cloneable   {
-
 
49765
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForItemIds_args");
-
 
49766
 
-
 
49767
    private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
49768
 
-
 
49769
    private List<Long> itemIds; // required
-
 
49770
 
-
 
49771
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
49772
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
49773
      ITEM_IDS((short)1, "itemIds");
-
 
49774
 
-
 
49775
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
49776
 
-
 
49777
      static {
-
 
49778
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
49779
          byName.put(field.getFieldName(), field);
-
 
49780
        }
-
 
49781
      }
-
 
49782
 
-
 
49783
      /**
-
 
49784
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
49785
       */
-
 
49786
      public static _Fields findByThriftId(int fieldId) {
-
 
49787
        switch(fieldId) {
-
 
49788
          case 1: // ITEM_IDS
-
 
49789
            return ITEM_IDS;
-
 
49790
          default:
-
 
49791
            return null;
-
 
49792
        }
-
 
49793
      }
-
 
49794
 
-
 
49795
      /**
-
 
49796
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
49797
       * if it is not found.
-
 
49798
       */
-
 
49799
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
49800
        _Fields fields = findByThriftId(fieldId);
-
 
49801
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
49802
        return fields;
-
 
49803
      }
-
 
49804
 
-
 
49805
      /**
-
 
49806
       * Find the _Fields constant that matches name, or null if its not found.
-
 
49807
       */
-
 
49808
      public static _Fields findByName(String name) {
-
 
49809
        return byName.get(name);
-
 
49810
      }
-
 
49811
 
-
 
49812
      private final short _thriftId;
-
 
49813
      private final String _fieldName;
-
 
49814
 
-
 
49815
      _Fields(short thriftId, String fieldName) {
-
 
49816
        _thriftId = thriftId;
-
 
49817
        _fieldName = fieldName;
-
 
49818
      }
-
 
49819
 
-
 
49820
      public short getThriftFieldId() {
-
 
49821
        return _thriftId;
-
 
49822
      }
-
 
49823
 
-
 
49824
      public String getFieldName() {
-
 
49825
        return _fieldName;
-
 
49826
      }
-
 
49827
    }
-
 
49828
 
-
 
49829
    // isset id assignments
-
 
49830
 
-
 
49831
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
49832
    static {
-
 
49833
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
49834
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
49835
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
49836
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
49837
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
49838
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForItemIds_args.class, metaDataMap);
-
 
49839
    }
-
 
49840
 
-
 
49841
    public getOrdersForItemIds_args() {
-
 
49842
    }
-
 
49843
 
-
 
49844
    public getOrdersForItemIds_args(
-
 
49845
      List<Long> itemIds)
-
 
49846
    {
-
 
49847
      this();
-
 
49848
      this.itemIds = itemIds;
-
 
49849
    }
-
 
49850
 
-
 
49851
    /**
-
 
49852
     * Performs a deep copy on <i>other</i>.
-
 
49853
     */
-
 
49854
    public getOrdersForItemIds_args(getOrdersForItemIds_args other) {
-
 
49855
      if (other.isSetItemIds()) {
-
 
49856
        List<Long> __this__itemIds = new ArrayList<Long>();
-
 
49857
        for (Long other_element : other.itemIds) {
-
 
49858
          __this__itemIds.add(other_element);
-
 
49859
        }
-
 
49860
        this.itemIds = __this__itemIds;
-
 
49861
      }
-
 
49862
    }
-
 
49863
 
-
 
49864
    public getOrdersForItemIds_args deepCopy() {
-
 
49865
      return new getOrdersForItemIds_args(this);
-
 
49866
    }
-
 
49867
 
-
 
49868
    @Override
-
 
49869
    public void clear() {
-
 
49870
      this.itemIds = null;
-
 
49871
    }
-
 
49872
 
-
 
49873
    public int getItemIdsSize() {
-
 
49874
      return (this.itemIds == null) ? 0 : this.itemIds.size();
-
 
49875
    }
-
 
49876
 
-
 
49877
    public java.util.Iterator<Long> getItemIdsIterator() {
-
 
49878
      return (this.itemIds == null) ? null : this.itemIds.iterator();
-
 
49879
    }
-
 
49880
 
-
 
49881
    public void addToItemIds(long elem) {
-
 
49882
      if (this.itemIds == null) {
-
 
49883
        this.itemIds = new ArrayList<Long>();
-
 
49884
      }
-
 
49885
      this.itemIds.add(elem);
-
 
49886
    }
-
 
49887
 
-
 
49888
    public List<Long> getItemIds() {
-
 
49889
      return this.itemIds;
-
 
49890
    }
-
 
49891
 
-
 
49892
    public void setItemIds(List<Long> itemIds) {
-
 
49893
      this.itemIds = itemIds;
-
 
49894
    }
-
 
49895
 
-
 
49896
    public void unsetItemIds() {
-
 
49897
      this.itemIds = null;
-
 
49898
    }
-
 
49899
 
-
 
49900
    /** Returns true if field itemIds is set (has been assigned a value) and false otherwise */
-
 
49901
    public boolean isSetItemIds() {
-
 
49902
      return this.itemIds != null;
-
 
49903
    }
-
 
49904
 
-
 
49905
    public void setItemIdsIsSet(boolean value) {
-
 
49906
      if (!value) {
-
 
49907
        this.itemIds = null;
-
 
49908
      }
-
 
49909
    }
-
 
49910
 
-
 
49911
    public void setFieldValue(_Fields field, Object value) {
-
 
49912
      switch (field) {
-
 
49913
      case ITEM_IDS:
-
 
49914
        if (value == null) {
-
 
49915
          unsetItemIds();
-
 
49916
        } else {
-
 
49917
          setItemIds((List<Long>)value);
-
 
49918
        }
-
 
49919
        break;
-
 
49920
 
-
 
49921
      }
-
 
49922
    }
-
 
49923
 
-
 
49924
    public Object getFieldValue(_Fields field) {
-
 
49925
      switch (field) {
-
 
49926
      case ITEM_IDS:
-
 
49927
        return getItemIds();
-
 
49928
 
-
 
49929
      }
-
 
49930
      throw new IllegalStateException();
-
 
49931
    }
-
 
49932
 
-
 
49933
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
49934
    public boolean isSet(_Fields field) {
-
 
49935
      if (field == null) {
-
 
49936
        throw new IllegalArgumentException();
-
 
49937
      }
-
 
49938
 
-
 
49939
      switch (field) {
-
 
49940
      case ITEM_IDS:
-
 
49941
        return isSetItemIds();
-
 
49942
      }
-
 
49943
      throw new IllegalStateException();
-
 
49944
    }
-
 
49945
 
-
 
49946
    @Override
-
 
49947
    public boolean equals(Object that) {
-
 
49948
      if (that == null)
-
 
49949
        return false;
-
 
49950
      if (that instanceof getOrdersForItemIds_args)
-
 
49951
        return this.equals((getOrdersForItemIds_args)that);
-
 
49952
      return false;
-
 
49953
    }
-
 
49954
 
-
 
49955
    public boolean equals(getOrdersForItemIds_args that) {
-
 
49956
      if (that == null)
-
 
49957
        return false;
-
 
49958
 
-
 
49959
      boolean this_present_itemIds = true && this.isSetItemIds();
-
 
49960
      boolean that_present_itemIds = true && that.isSetItemIds();
-
 
49961
      if (this_present_itemIds || that_present_itemIds) {
-
 
49962
        if (!(this_present_itemIds && that_present_itemIds))
-
 
49963
          return false;
-
 
49964
        if (!this.itemIds.equals(that.itemIds))
-
 
49965
          return false;
-
 
49966
      }
-
 
49967
 
-
 
49968
      return true;
-
 
49969
    }
-
 
49970
 
-
 
49971
    @Override
-
 
49972
    public int hashCode() {
-
 
49973
      return 0;
-
 
49974
    }
-
 
49975
 
-
 
49976
    public int compareTo(getOrdersForItemIds_args other) {
-
 
49977
      if (!getClass().equals(other.getClass())) {
-
 
49978
        return getClass().getName().compareTo(other.getClass().getName());
-
 
49979
      }
-
 
49980
 
-
 
49981
      int lastComparison = 0;
-
 
49982
      getOrdersForItemIds_args typedOther = (getOrdersForItemIds_args)other;
-
 
49983
 
-
 
49984
      lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());
-
 
49985
      if (lastComparison != 0) {
-
 
49986
        return lastComparison;
-
 
49987
      }
-
 
49988
      if (isSetItemIds()) {
-
 
49989
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);
-
 
49990
        if (lastComparison != 0) {
-
 
49991
          return lastComparison;
-
 
49992
        }
-
 
49993
      }
-
 
49994
      return 0;
-
 
49995
    }
-
 
49996
 
-
 
49997
    public _Fields fieldForId(int fieldId) {
-
 
49998
      return _Fields.findByThriftId(fieldId);
-
 
49999
    }
-
 
50000
 
-
 
50001
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
50002
      org.apache.thrift.protocol.TField field;
-
 
50003
      iprot.readStructBegin();
-
 
50004
      while (true)
-
 
50005
      {
-
 
50006
        field = iprot.readFieldBegin();
-
 
50007
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
50008
          break;
-
 
50009
        }
-
 
50010
        switch (field.id) {
-
 
50011
          case 1: // ITEM_IDS
-
 
50012
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
50013
              {
-
 
50014
                org.apache.thrift.protocol.TList _list140 = iprot.readListBegin();
-
 
50015
                this.itemIds = new ArrayList<Long>(_list140.size);
-
 
50016
                for (int _i141 = 0; _i141 < _list140.size; ++_i141)
-
 
50017
                {
-
 
50018
                  long _elem142; // required
-
 
50019
                  _elem142 = iprot.readI64();
-
 
50020
                  this.itemIds.add(_elem142);
-
 
50021
                }
-
 
50022
                iprot.readListEnd();
-
 
50023
              }
-
 
50024
            } else { 
-
 
50025
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
50026
            }
-
 
50027
            break;
-
 
50028
          default:
-
 
50029
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
50030
        }
-
 
50031
        iprot.readFieldEnd();
-
 
50032
      }
-
 
50033
      iprot.readStructEnd();
-
 
50034
      validate();
-
 
50035
    }
-
 
50036
 
-
 
50037
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
50038
      validate();
-
 
50039
 
-
 
50040
      oprot.writeStructBegin(STRUCT_DESC);
-
 
50041
      if (this.itemIds != null) {
-
 
50042
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
-
 
50043
        {
-
 
50044
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
-
 
50045
          for (long _iter143 : this.itemIds)
-
 
50046
          {
-
 
50047
            oprot.writeI64(_iter143);
-
 
50048
          }
-
 
50049
          oprot.writeListEnd();
-
 
50050
        }
-
 
50051
        oprot.writeFieldEnd();
-
 
50052
      }
-
 
50053
      oprot.writeFieldStop();
-
 
50054
      oprot.writeStructEnd();
-
 
50055
    }
-
 
50056
 
-
 
50057
    @Override
-
 
50058
    public String toString() {
-
 
50059
      StringBuilder sb = new StringBuilder("getOrdersForItemIds_args(");
-
 
50060
      boolean first = true;
-
 
50061
 
-
 
50062
      sb.append("itemIds:");
-
 
50063
      if (this.itemIds == null) {
-
 
50064
        sb.append("null");
-
 
50065
      } else {
-
 
50066
        sb.append(this.itemIds);
-
 
50067
      }
-
 
50068
      first = false;
-
 
50069
      sb.append(")");
-
 
50070
      return sb.toString();
-
 
50071
    }
-
 
50072
 
-
 
50073
    public void validate() throws org.apache.thrift.TException {
-
 
50074
      // check for required fields
-
 
50075
    }
-
 
50076
 
-
 
50077
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
50078
      try {
-
 
50079
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
50080
      } catch (org.apache.thrift.TException te) {
-
 
50081
        throw new java.io.IOException(te);
-
 
50082
      }
-
 
50083
    }
-
 
50084
 
-
 
50085
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
50086
      try {
-
 
50087
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
50088
      } catch (org.apache.thrift.TException te) {
-
 
50089
        throw new java.io.IOException(te);
-
 
50090
      }
-
 
50091
    }
-
 
50092
 
-
 
50093
  }
-
 
50094
 
-
 
50095
  public static class getOrdersForItemIds_result implements org.apache.thrift.TBase<getOrdersForItemIds_result, getOrdersForItemIds_result._Fields>, java.io.Serializable, Cloneable   {
-
 
50096
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForItemIds_result");
-
 
50097
 
-
 
50098
    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);
-
 
50099
 
-
 
50100
    private List<Order> success; // required
-
 
50101
 
-
 
50102
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
50103
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
50104
      SUCCESS((short)0, "success");
-
 
50105
 
-
 
50106
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
50107
 
-
 
50108
      static {
-
 
50109
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
50110
          byName.put(field.getFieldName(), field);
-
 
50111
        }
-
 
50112
      }
-
 
50113
 
-
 
50114
      /**
-
 
50115
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
50116
       */
-
 
50117
      public static _Fields findByThriftId(int fieldId) {
-
 
50118
        switch(fieldId) {
-
 
50119
          case 0: // SUCCESS
-
 
50120
            return SUCCESS;
-
 
50121
          default:
-
 
50122
            return null;
-
 
50123
        }
-
 
50124
      }
-
 
50125
 
-
 
50126
      /**
-
 
50127
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
50128
       * if it is not found.
-
 
50129
       */
-
 
50130
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
50131
        _Fields fields = findByThriftId(fieldId);
-
 
50132
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
50133
        return fields;
-
 
50134
      }
-
 
50135
 
-
 
50136
      /**
-
 
50137
       * Find the _Fields constant that matches name, or null if its not found.
-
 
50138
       */
-
 
50139
      public static _Fields findByName(String name) {
-
 
50140
        return byName.get(name);
-
 
50141
      }
-
 
50142
 
-
 
50143
      private final short _thriftId;
-
 
50144
      private final String _fieldName;
-
 
50145
 
-
 
50146
      _Fields(short thriftId, String fieldName) {
-
 
50147
        _thriftId = thriftId;
-
 
50148
        _fieldName = fieldName;
-
 
50149
      }
-
 
50150
 
-
 
50151
      public short getThriftFieldId() {
-
 
50152
        return _thriftId;
-
 
50153
      }
-
 
50154
 
-
 
50155
      public String getFieldName() {
-
 
50156
        return _fieldName;
-
 
50157
      }
-
 
50158
    }
-
 
50159
 
-
 
50160
    // isset id assignments
-
 
50161
 
-
 
50162
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
50163
    static {
-
 
50164
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
50165
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
50166
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
50167
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
-
 
50168
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
50169
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForItemIds_result.class, metaDataMap);
-
 
50170
    }
-
 
50171
 
-
 
50172
    public getOrdersForItemIds_result() {
-
 
50173
    }
-
 
50174
 
-
 
50175
    public getOrdersForItemIds_result(
-
 
50176
      List<Order> success)
-
 
50177
    {
-
 
50178
      this();
-
 
50179
      this.success = success;
-
 
50180
    }
-
 
50181
 
-
 
50182
    /**
-
 
50183
     * Performs a deep copy on <i>other</i>.
-
 
50184
     */
-
 
50185
    public getOrdersForItemIds_result(getOrdersForItemIds_result other) {
-
 
50186
      if (other.isSetSuccess()) {
-
 
50187
        List<Order> __this__success = new ArrayList<Order>();
-
 
50188
        for (Order other_element : other.success) {
-
 
50189
          __this__success.add(new Order(other_element));
-
 
50190
        }
-
 
50191
        this.success = __this__success;
-
 
50192
      }
-
 
50193
    }
-
 
50194
 
-
 
50195
    public getOrdersForItemIds_result deepCopy() {
-
 
50196
      return new getOrdersForItemIds_result(this);
-
 
50197
    }
-
 
50198
 
-
 
50199
    @Override
-
 
50200
    public void clear() {
-
 
50201
      this.success = null;
-
 
50202
    }
-
 
50203
 
-
 
50204
    public int getSuccessSize() {
-
 
50205
      return (this.success == null) ? 0 : this.success.size();
-
 
50206
    }
-
 
50207
 
-
 
50208
    public java.util.Iterator<Order> getSuccessIterator() {
-
 
50209
      return (this.success == null) ? null : this.success.iterator();
-
 
50210
    }
-
 
50211
 
-
 
50212
    public void addToSuccess(Order elem) {
-
 
50213
      if (this.success == null) {
-
 
50214
        this.success = new ArrayList<Order>();
-
 
50215
      }
-
 
50216
      this.success.add(elem);
-
 
50217
    }
-
 
50218
 
-
 
50219
    public List<Order> getSuccess() {
-
 
50220
      return this.success;
-
 
50221
    }
-
 
50222
 
-
 
50223
    public void setSuccess(List<Order> success) {
-
 
50224
      this.success = success;
-
 
50225
    }
-
 
50226
 
-
 
50227
    public void unsetSuccess() {
-
 
50228
      this.success = null;
-
 
50229
    }
-
 
50230
 
-
 
50231
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
50232
    public boolean isSetSuccess() {
-
 
50233
      return this.success != null;
-
 
50234
    }
-
 
50235
 
-
 
50236
    public void setSuccessIsSet(boolean value) {
-
 
50237
      if (!value) {
-
 
50238
        this.success = null;
-
 
50239
      }
-
 
50240
    }
-
 
50241
 
-
 
50242
    public void setFieldValue(_Fields field, Object value) {
-
 
50243
      switch (field) {
-
 
50244
      case SUCCESS:
-
 
50245
        if (value == null) {
-
 
50246
          unsetSuccess();
-
 
50247
        } else {
-
 
50248
          setSuccess((List<Order>)value);
-
 
50249
        }
-
 
50250
        break;
-
 
50251
 
-
 
50252
      }
-
 
50253
    }
-
 
50254
 
-
 
50255
    public Object getFieldValue(_Fields field) {
-
 
50256
      switch (field) {
-
 
50257
      case SUCCESS:
-
 
50258
        return getSuccess();
-
 
50259
 
-
 
50260
      }
-
 
50261
      throw new IllegalStateException();
-
 
50262
    }
-
 
50263
 
-
 
50264
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
50265
    public boolean isSet(_Fields field) {
-
 
50266
      if (field == null) {
-
 
50267
        throw new IllegalArgumentException();
-
 
50268
      }
-
 
50269
 
-
 
50270
      switch (field) {
-
 
50271
      case SUCCESS:
-
 
50272
        return isSetSuccess();
-
 
50273
      }
-
 
50274
      throw new IllegalStateException();
-
 
50275
    }
-
 
50276
 
-
 
50277
    @Override
-
 
50278
    public boolean equals(Object that) {
-
 
50279
      if (that == null)
-
 
50280
        return false;
-
 
50281
      if (that instanceof getOrdersForItemIds_result)
-
 
50282
        return this.equals((getOrdersForItemIds_result)that);
-
 
50283
      return false;
-
 
50284
    }
-
 
50285
 
-
 
50286
    public boolean equals(getOrdersForItemIds_result that) {
-
 
50287
      if (that == null)
-
 
50288
        return false;
-
 
50289
 
-
 
50290
      boolean this_present_success = true && this.isSetSuccess();
-
 
50291
      boolean that_present_success = true && that.isSetSuccess();
-
 
50292
      if (this_present_success || that_present_success) {
-
 
50293
        if (!(this_present_success && that_present_success))
-
 
50294
          return false;
-
 
50295
        if (!this.success.equals(that.success))
-
 
50296
          return false;
-
 
50297
      }
-
 
50298
 
-
 
50299
      return true;
-
 
50300
    }
-
 
50301
 
-
 
50302
    @Override
-
 
50303
    public int hashCode() {
-
 
50304
      return 0;
-
 
50305
    }
-
 
50306
 
-
 
50307
    public int compareTo(getOrdersForItemIds_result other) {
-
 
50308
      if (!getClass().equals(other.getClass())) {
-
 
50309
        return getClass().getName().compareTo(other.getClass().getName());
-
 
50310
      }
-
 
50311
 
-
 
50312
      int lastComparison = 0;
-
 
50313
      getOrdersForItemIds_result typedOther = (getOrdersForItemIds_result)other;
-
 
50314
 
-
 
50315
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
50316
      if (lastComparison != 0) {
-
 
50317
        return lastComparison;
-
 
50318
      }
-
 
50319
      if (isSetSuccess()) {
-
 
50320
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
50321
        if (lastComparison != 0) {
-
 
50322
          return lastComparison;
-
 
50323
        }
-
 
50324
      }
-
 
50325
      return 0;
-
 
50326
    }
-
 
50327
 
-
 
50328
    public _Fields fieldForId(int fieldId) {
-
 
50329
      return _Fields.findByThriftId(fieldId);
-
 
50330
    }
-
 
50331
 
-
 
50332
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
50333
      org.apache.thrift.protocol.TField field;
-
 
50334
      iprot.readStructBegin();
-
 
50335
      while (true)
-
 
50336
      {
-
 
50337
        field = iprot.readFieldBegin();
-
 
50338
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
50339
          break;
-
 
50340
        }
-
 
50341
        switch (field.id) {
-
 
50342
          case 0: // SUCCESS
-
 
50343
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
50344
              {
-
 
50345
                org.apache.thrift.protocol.TList _list144 = iprot.readListBegin();
-
 
50346
                this.success = new ArrayList<Order>(_list144.size);
-
 
50347
                for (int _i145 = 0; _i145 < _list144.size; ++_i145)
-
 
50348
                {
-
 
50349
                  Order _elem146; // required
-
 
50350
                  _elem146 = new Order();
-
 
50351
                  _elem146.read(iprot);
-
 
50352
                  this.success.add(_elem146);
-
 
50353
                }
-
 
50354
                iprot.readListEnd();
-
 
50355
              }
-
 
50356
            } else { 
-
 
50357
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
50358
            }
-
 
50359
            break;
-
 
50360
          default:
-
 
50361
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
50362
        }
-
 
50363
        iprot.readFieldEnd();
-
 
50364
      }
-
 
50365
      iprot.readStructEnd();
-
 
50366
      validate();
-
 
50367
    }
-
 
50368
 
-
 
50369
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
50370
      oprot.writeStructBegin(STRUCT_DESC);
-
 
50371
 
-
 
50372
      if (this.isSetSuccess()) {
-
 
50373
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
50374
        {
-
 
50375
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
50376
          for (Order _iter147 : this.success)
-
 
50377
          {
-
 
50378
            _iter147.write(oprot);
-
 
50379
          }
-
 
50380
          oprot.writeListEnd();
-
 
50381
        }
-
 
50382
        oprot.writeFieldEnd();
-
 
50383
      }
-
 
50384
      oprot.writeFieldStop();
-
 
50385
      oprot.writeStructEnd();
-
 
50386
    }
-
 
50387
 
-
 
50388
    @Override
-
 
50389
    public String toString() {
-
 
50390
      StringBuilder sb = new StringBuilder("getOrdersForItemIds_result(");
-
 
50391
      boolean first = true;
-
 
50392
 
-
 
50393
      sb.append("success:");
-
 
50394
      if (this.success == null) {
-
 
50395
        sb.append("null");
49653
      } else {
50396
      } else {
49654
        sb.append(this.success);
50397
        sb.append(this.success);
49655
      }
50398
      }
49656
      first = false;
50399
      first = false;
49657
      sb.append(")");
50400
      sb.append(")");