Subversion Repositories SmartDukaan

Rev

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

Rev 18719 Rev 18764
Line 610... Line 610...
610
 
610
 
611
    public List<BulkItemPricing> getBulkPricingByItemId(long item_id) throws org.apache.thrift.TException;
611
    public List<BulkItemPricing> getBulkPricingByItemId(long item_id) throws org.apache.thrift.TException;
612
 
612
 
613
    public boolean updateBulkPricesOnProduction(long item_id, List<BulkItemPricing> bulkItemPricingList) throws org.apache.thrift.TException;
613
    public boolean updateBulkPricesOnProduction(long item_id, List<BulkItemPricing> bulkItemPricingList) throws org.apache.thrift.TException;
614
 
614
 
-
 
615
    public List<Long> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException;
-
 
616
 
615
  }
617
  }
616
 
618
 
617
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
619
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
618
 
620
 
619
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
621
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 1004... Line 1006...
1004
 
1006
 
1005
    public void getBulkPricingByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBulkPricingByItemId_call> resultHandler) throws org.apache.thrift.TException;
1007
    public void getBulkPricingByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBulkPricingByItemId_call> resultHandler) throws org.apache.thrift.TException;
1006
 
1008
 
1007
    public void updateBulkPricesOnProduction(long item_id, List<BulkItemPricing> bulkItemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateBulkPricesOnProduction_call> resultHandler) throws org.apache.thrift.TException;
1009
    public void updateBulkPricesOnProduction(long item_id, List<BulkItemPricing> bulkItemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateBulkPricesOnProduction_call> resultHandler) throws org.apache.thrift.TException;
1008
 
1010
 
-
 
1011
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartByValue_call> resultHandler) throws org.apache.thrift.TException;
-
 
1012
 
1009
  }
1013
  }
1010
 
1014
 
1011
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1015
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1012
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1016
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1013
      public Factory() {}
1017
      public Factory() {}
Line 5626... Line 5630...
5626
        return result.success;
5630
        return result.success;
5627
      }
5631
      }
5628
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateBulkPricesOnProduction failed: unknown result");
5632
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateBulkPricesOnProduction failed: unknown result");
5629
    }
5633
    }
5630
 
5634
 
-
 
5635
    public List<Long> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException
-
 
5636
    {
-
 
5637
      send_getCartByValue(cartIds);
-
 
5638
      return recv_getCartByValue();
-
 
5639
    }
-
 
5640
 
-
 
5641
    public void send_getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException
-
 
5642
    {
-
 
5643
      getCartByValue_args args = new getCartByValue_args();
-
 
5644
      args.setCartIds(cartIds);
-
 
5645
      sendBase("getCartByValue", args);
-
 
5646
    }
-
 
5647
 
-
 
5648
    public List<Long> recv_getCartByValue() throws org.apache.thrift.TException
-
 
5649
    {
-
 
5650
      getCartByValue_result result = new getCartByValue_result();
-
 
5651
      receiveBase(result, "getCartByValue");
-
 
5652
      if (result.isSetSuccess()) {
-
 
5653
        return result.success;
-
 
5654
      }
-
 
5655
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartByValue failed: unknown result");
-
 
5656
    }
-
 
5657
 
5631
  }
5658
  }
5632
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5659
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5633
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5660
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5634
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5661
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5635
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5662
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 12031... Line 12058...
12031
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12058
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12032
        return (new Client(prot)).recv_updateBulkPricesOnProduction();
12059
        return (new Client(prot)).recv_updateBulkPricesOnProduction();
12033
      }
12060
      }
12034
    }
12061
    }
12035
 
12062
 
-
 
12063
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<getCartByValue_call> resultHandler) throws org.apache.thrift.TException {
-
 
12064
      checkReady();
-
 
12065
      getCartByValue_call method_call = new getCartByValue_call(cartIds, resultHandler, this, ___protocolFactory, ___transport);
-
 
12066
      this.___currentMethod = method_call;
-
 
12067
      ___manager.call(method_call);
-
 
12068
    }
-
 
12069
 
-
 
12070
    public static class getCartByValue_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
12071
      private List<Long> cartIds;
-
 
12072
      public getCartByValue_call(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<getCartByValue_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 {
-
 
12073
        super(client, protocolFactory, transport, resultHandler, false);
-
 
12074
        this.cartIds = cartIds;
-
 
12075
      }
-
 
12076
 
-
 
12077
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
12078
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartByValue", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
12079
        getCartByValue_args args = new getCartByValue_args();
-
 
12080
        args.setCartIds(cartIds);
-
 
12081
        args.write(prot);
-
 
12082
        prot.writeMessageEnd();
-
 
12083
      }
-
 
12084
 
-
 
12085
      public List<Long> getResult() throws org.apache.thrift.TException {
-
 
12086
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12087
          throw new IllegalStateException("Method call not finished!");
-
 
12088
        }
-
 
12089
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12090
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12091
        return (new Client(prot)).recv_getCartByValue();
-
 
12092
      }
-
 
12093
    }
-
 
12094
 
12036
  }
12095
  }
12037
 
12096
 
12038
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12097
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12039
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12098
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12040
    public Processor(I iface) {
12099
    public Processor(I iface) {
Line 12239... Line 12298...
12239
      processMap.put("addBulkPricingForItem", new addBulkPricingForItem());
12298
      processMap.put("addBulkPricingForItem", new addBulkPricingForItem());
12240
      processMap.put("deleteBulkPricingForItemById", new deleteBulkPricingForItemById());
12299
      processMap.put("deleteBulkPricingForItemById", new deleteBulkPricingForItemById());
12241
      processMap.put("deleteBulkPricingForItem", new deleteBulkPricingForItem());
12300
      processMap.put("deleteBulkPricingForItem", new deleteBulkPricingForItem());
12242
      processMap.put("getBulkPricingByItemId", new getBulkPricingByItemId());
12301
      processMap.put("getBulkPricingByItemId", new getBulkPricingByItemId());
12243
      processMap.put("updateBulkPricesOnProduction", new updateBulkPricesOnProduction());
12302
      processMap.put("updateBulkPricesOnProduction", new updateBulkPricesOnProduction());
-
 
12303
      processMap.put("getCartByValue", new getCartByValue());
12244
      return processMap;
12304
      return processMap;
12245
    }
12305
    }
12246
 
12306
 
12247
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
12307
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
12248
      public addItem() {
12308
      public addItem() {
Line 15612... Line 15672...
15612
        result.setSuccessIsSet(true);
15672
        result.setSuccessIsSet(true);
15613
        return result;
15673
        return result;
15614
      }
15674
      }
15615
    }
15675
    }
15616
 
15676
 
-
 
15677
    private static class getCartByValue<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartByValue_args> {
-
 
15678
      public getCartByValue() {
-
 
15679
        super("getCartByValue");
-
 
15680
      }
-
 
15681
 
-
 
15682
      protected getCartByValue_args getEmptyArgsInstance() {
-
 
15683
        return new getCartByValue_args();
-
 
15684
      }
-
 
15685
 
-
 
15686
      protected getCartByValue_result getResult(I iface, getCartByValue_args args) throws org.apache.thrift.TException {
-
 
15687
        getCartByValue_result result = new getCartByValue_result();
-
 
15688
        result.success = iface.getCartByValue(args.cartIds);
-
 
15689
        return result;
-
 
15690
      }
-
 
15691
    }
-
 
15692
 
15617
  }
15693
  }
15618
 
15694
 
15619
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15695
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15620
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15696
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15621
 
15697
 
Line 140269... Line 140345...
140269
      first = false;
140345
      first = false;
140270
      sb.append(")");
140346
      sb.append(")");
140271
      return sb.toString();
140347
      return sb.toString();
140272
    }
140348
    }
140273
 
140349
 
-
 
140350
    public void validate() throws org.apache.thrift.TException {
-
 
140351
      // check for required fields
-
 
140352
    }
-
 
140353
 
-
 
140354
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
140355
      try {
-
 
140356
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
140357
      } catch (org.apache.thrift.TException te) {
-
 
140358
        throw new java.io.IOException(te);
-
 
140359
      }
-
 
140360
    }
-
 
140361
 
-
 
140362
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
140363
      try {
-
 
140364
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
140365
      } catch (org.apache.thrift.TException te) {
-
 
140366
        throw new java.io.IOException(te);
-
 
140367
      }
-
 
140368
    }
-
 
140369
 
-
 
140370
  }
-
 
140371
 
-
 
140372
  public static class getCartByValue_args implements org.apache.thrift.TBase<getCartByValue_args, getCartByValue_args._Fields>, java.io.Serializable, Cloneable   {
-
 
140373
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartByValue_args");
-
 
140374
 
-
 
140375
    private static final org.apache.thrift.protocol.TField CART_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("cartIds", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
140376
 
-
 
140377
    private List<Long> cartIds; // required
-
 
140378
 
-
 
140379
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
140380
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
140381
      CART_IDS((short)1, "cartIds");
-
 
140382
 
-
 
140383
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
140384
 
-
 
140385
      static {
-
 
140386
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
140387
          byName.put(field.getFieldName(), field);
-
 
140388
        }
-
 
140389
      }
-
 
140390
 
-
 
140391
      /**
-
 
140392
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
140393
       */
-
 
140394
      public static _Fields findByThriftId(int fieldId) {
-
 
140395
        switch(fieldId) {
-
 
140396
          case 1: // CART_IDS
-
 
140397
            return CART_IDS;
-
 
140398
          default:
-
 
140399
            return null;
-
 
140400
        }
-
 
140401
      }
-
 
140402
 
-
 
140403
      /**
-
 
140404
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
140405
       * if it is not found.
-
 
140406
       */
-
 
140407
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
140408
        _Fields fields = findByThriftId(fieldId);
-
 
140409
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
140410
        return fields;
-
 
140411
      }
-
 
140412
 
-
 
140413
      /**
-
 
140414
       * Find the _Fields constant that matches name, or null if its not found.
-
 
140415
       */
-
 
140416
      public static _Fields findByName(String name) {
-
 
140417
        return byName.get(name);
-
 
140418
      }
-
 
140419
 
-
 
140420
      private final short _thriftId;
-
 
140421
      private final String _fieldName;
-
 
140422
 
-
 
140423
      _Fields(short thriftId, String fieldName) {
-
 
140424
        _thriftId = thriftId;
-
 
140425
        _fieldName = fieldName;
-
 
140426
      }
-
 
140427
 
-
 
140428
      public short getThriftFieldId() {
-
 
140429
        return _thriftId;
-
 
140430
      }
-
 
140431
 
-
 
140432
      public String getFieldName() {
-
 
140433
        return _fieldName;
-
 
140434
      }
-
 
140435
    }
-
 
140436
 
-
 
140437
    // isset id assignments
-
 
140438
 
-
 
140439
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
140440
    static {
-
 
140441
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
140442
      tmpMap.put(_Fields.CART_IDS, new org.apache.thrift.meta_data.FieldMetaData("cartIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
140443
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
140444
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
140445
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
140446
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartByValue_args.class, metaDataMap);
-
 
140447
    }
-
 
140448
 
-
 
140449
    public getCartByValue_args() {
-
 
140450
    }
-
 
140451
 
-
 
140452
    public getCartByValue_args(
-
 
140453
      List<Long> cartIds)
-
 
140454
    {
-
 
140455
      this();
-
 
140456
      this.cartIds = cartIds;
-
 
140457
    }
-
 
140458
 
-
 
140459
    /**
-
 
140460
     * Performs a deep copy on <i>other</i>.
-
 
140461
     */
-
 
140462
    public getCartByValue_args(getCartByValue_args other) {
-
 
140463
      if (other.isSetCartIds()) {
-
 
140464
        List<Long> __this__cartIds = new ArrayList<Long>();
-
 
140465
        for (Long other_element : other.cartIds) {
-
 
140466
          __this__cartIds.add(other_element);
-
 
140467
        }
-
 
140468
        this.cartIds = __this__cartIds;
-
 
140469
      }
-
 
140470
    }
-
 
140471
 
-
 
140472
    public getCartByValue_args deepCopy() {
-
 
140473
      return new getCartByValue_args(this);
-
 
140474
    }
-
 
140475
 
-
 
140476
    @Override
-
 
140477
    public void clear() {
-
 
140478
      this.cartIds = null;
-
 
140479
    }
-
 
140480
 
-
 
140481
    public int getCartIdsSize() {
-
 
140482
      return (this.cartIds == null) ? 0 : this.cartIds.size();
-
 
140483
    }
-
 
140484
 
-
 
140485
    public java.util.Iterator<Long> getCartIdsIterator() {
-
 
140486
      return (this.cartIds == null) ? null : this.cartIds.iterator();
-
 
140487
    }
-
 
140488
 
-
 
140489
    public void addToCartIds(long elem) {
-
 
140490
      if (this.cartIds == null) {
-
 
140491
        this.cartIds = new ArrayList<Long>();
-
 
140492
      }
-
 
140493
      this.cartIds.add(elem);
-
 
140494
    }
-
 
140495
 
-
 
140496
    public List<Long> getCartIds() {
-
 
140497
      return this.cartIds;
-
 
140498
    }
-
 
140499
 
-
 
140500
    public void setCartIds(List<Long> cartIds) {
-
 
140501
      this.cartIds = cartIds;
-
 
140502
    }
-
 
140503
 
-
 
140504
    public void unsetCartIds() {
-
 
140505
      this.cartIds = null;
-
 
140506
    }
-
 
140507
 
-
 
140508
    /** Returns true if field cartIds is set (has been assigned a value) and false otherwise */
-
 
140509
    public boolean isSetCartIds() {
-
 
140510
      return this.cartIds != null;
-
 
140511
    }
-
 
140512
 
-
 
140513
    public void setCartIdsIsSet(boolean value) {
-
 
140514
      if (!value) {
-
 
140515
        this.cartIds = null;
-
 
140516
      }
-
 
140517
    }
-
 
140518
 
-
 
140519
    public void setFieldValue(_Fields field, Object value) {
-
 
140520
      switch (field) {
-
 
140521
      case CART_IDS:
-
 
140522
        if (value == null) {
-
 
140523
          unsetCartIds();
-
 
140524
        } else {
-
 
140525
          setCartIds((List<Long>)value);
-
 
140526
        }
-
 
140527
        break;
-
 
140528
 
-
 
140529
      }
-
 
140530
    }
-
 
140531
 
-
 
140532
    public Object getFieldValue(_Fields field) {
-
 
140533
      switch (field) {
-
 
140534
      case CART_IDS:
-
 
140535
        return getCartIds();
-
 
140536
 
-
 
140537
      }
-
 
140538
      throw new IllegalStateException();
-
 
140539
    }
-
 
140540
 
-
 
140541
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
140542
    public boolean isSet(_Fields field) {
-
 
140543
      if (field == null) {
-
 
140544
        throw new IllegalArgumentException();
-
 
140545
      }
-
 
140546
 
-
 
140547
      switch (field) {
-
 
140548
      case CART_IDS:
-
 
140549
        return isSetCartIds();
-
 
140550
      }
-
 
140551
      throw new IllegalStateException();
-
 
140552
    }
-
 
140553
 
-
 
140554
    @Override
-
 
140555
    public boolean equals(Object that) {
-
 
140556
      if (that == null)
-
 
140557
        return false;
-
 
140558
      if (that instanceof getCartByValue_args)
-
 
140559
        return this.equals((getCartByValue_args)that);
-
 
140560
      return false;
-
 
140561
    }
-
 
140562
 
-
 
140563
    public boolean equals(getCartByValue_args that) {
-
 
140564
      if (that == null)
-
 
140565
        return false;
-
 
140566
 
-
 
140567
      boolean this_present_cartIds = true && this.isSetCartIds();
-
 
140568
      boolean that_present_cartIds = true && that.isSetCartIds();
-
 
140569
      if (this_present_cartIds || that_present_cartIds) {
-
 
140570
        if (!(this_present_cartIds && that_present_cartIds))
-
 
140571
          return false;
-
 
140572
        if (!this.cartIds.equals(that.cartIds))
-
 
140573
          return false;
-
 
140574
      }
-
 
140575
 
-
 
140576
      return true;
-
 
140577
    }
-
 
140578
 
-
 
140579
    @Override
-
 
140580
    public int hashCode() {
-
 
140581
      return 0;
-
 
140582
    }
-
 
140583
 
-
 
140584
    public int compareTo(getCartByValue_args other) {
-
 
140585
      if (!getClass().equals(other.getClass())) {
-
 
140586
        return getClass().getName().compareTo(other.getClass().getName());
-
 
140587
      }
-
 
140588
 
-
 
140589
      int lastComparison = 0;
-
 
140590
      getCartByValue_args typedOther = (getCartByValue_args)other;
-
 
140591
 
-
 
140592
      lastComparison = Boolean.valueOf(isSetCartIds()).compareTo(typedOther.isSetCartIds());
-
 
140593
      if (lastComparison != 0) {
-
 
140594
        return lastComparison;
-
 
140595
      }
-
 
140596
      if (isSetCartIds()) {
-
 
140597
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartIds, typedOther.cartIds);
-
 
140598
        if (lastComparison != 0) {
-
 
140599
          return lastComparison;
-
 
140600
        }
-
 
140601
      }
-
 
140602
      return 0;
-
 
140603
    }
-
 
140604
 
-
 
140605
    public _Fields fieldForId(int fieldId) {
-
 
140606
      return _Fields.findByThriftId(fieldId);
-
 
140607
    }
-
 
140608
 
-
 
140609
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
140610
      org.apache.thrift.protocol.TField field;
-
 
140611
      iprot.readStructBegin();
-
 
140612
      while (true)
-
 
140613
      {
-
 
140614
        field = iprot.readFieldBegin();
-
 
140615
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
140616
          break;
-
 
140617
        }
-
 
140618
        switch (field.id) {
-
 
140619
          case 1: // CART_IDS
-
 
140620
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
140621
              {
-
 
140622
                org.apache.thrift.protocol.TList _list518 = iprot.readListBegin();
-
 
140623
                this.cartIds = new ArrayList<Long>(_list518.size);
-
 
140624
                for (int _i519 = 0; _i519 < _list518.size; ++_i519)
-
 
140625
                {
-
 
140626
                  long _elem520; // required
-
 
140627
                  _elem520 = iprot.readI64();
-
 
140628
                  this.cartIds.add(_elem520);
-
 
140629
                }
-
 
140630
                iprot.readListEnd();
-
 
140631
              }
-
 
140632
            } else { 
-
 
140633
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
140634
            }
-
 
140635
            break;
-
 
140636
          default:
-
 
140637
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
140638
        }
-
 
140639
        iprot.readFieldEnd();
-
 
140640
      }
-
 
140641
      iprot.readStructEnd();
-
 
140642
      validate();
-
 
140643
    }
-
 
140644
 
-
 
140645
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
140646
      validate();
-
 
140647
 
-
 
140648
      oprot.writeStructBegin(STRUCT_DESC);
-
 
140649
      if (this.cartIds != null) {
-
 
140650
        oprot.writeFieldBegin(CART_IDS_FIELD_DESC);
-
 
140651
        {
-
 
140652
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.cartIds.size()));
-
 
140653
          for (long _iter521 : this.cartIds)
-
 
140654
          {
-
 
140655
            oprot.writeI64(_iter521);
-
 
140656
          }
-
 
140657
          oprot.writeListEnd();
-
 
140658
        }
-
 
140659
        oprot.writeFieldEnd();
-
 
140660
      }
-
 
140661
      oprot.writeFieldStop();
-
 
140662
      oprot.writeStructEnd();
-
 
140663
    }
-
 
140664
 
-
 
140665
    @Override
-
 
140666
    public String toString() {
-
 
140667
      StringBuilder sb = new StringBuilder("getCartByValue_args(");
-
 
140668
      boolean first = true;
-
 
140669
 
-
 
140670
      sb.append("cartIds:");
-
 
140671
      if (this.cartIds == null) {
-
 
140672
        sb.append("null");
-
 
140673
      } else {
-
 
140674
        sb.append(this.cartIds);
-
 
140675
      }
-
 
140676
      first = false;
-
 
140677
      sb.append(")");
-
 
140678
      return sb.toString();
-
 
140679
    }
-
 
140680
 
-
 
140681
    public void validate() throws org.apache.thrift.TException {
-
 
140682
      // check for required fields
-
 
140683
    }
-
 
140684
 
-
 
140685
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
140686
      try {
-
 
140687
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
140688
      } catch (org.apache.thrift.TException te) {
-
 
140689
        throw new java.io.IOException(te);
-
 
140690
      }
-
 
140691
    }
-
 
140692
 
-
 
140693
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
140694
      try {
-
 
140695
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
140696
      } catch (org.apache.thrift.TException te) {
-
 
140697
        throw new java.io.IOException(te);
-
 
140698
      }
-
 
140699
    }
-
 
140700
 
-
 
140701
  }
-
 
140702
 
-
 
140703
  public static class getCartByValue_result implements org.apache.thrift.TBase<getCartByValue_result, getCartByValue_result._Fields>, java.io.Serializable, Cloneable   {
-
 
140704
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartByValue_result");
-
 
140705
 
-
 
140706
    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);
-
 
140707
 
-
 
140708
    private List<Long> success; // required
-
 
140709
 
-
 
140710
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
140711
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
140712
      SUCCESS((short)0, "success");
-
 
140713
 
-
 
140714
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
140715
 
-
 
140716
      static {
-
 
140717
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
140718
          byName.put(field.getFieldName(), field);
-
 
140719
        }
-
 
140720
      }
-
 
140721
 
-
 
140722
      /**
-
 
140723
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
140724
       */
-
 
140725
      public static _Fields findByThriftId(int fieldId) {
-
 
140726
        switch(fieldId) {
-
 
140727
          case 0: // SUCCESS
-
 
140728
            return SUCCESS;
-
 
140729
          default:
-
 
140730
            return null;
-
 
140731
        }
-
 
140732
      }
-
 
140733
 
-
 
140734
      /**
-
 
140735
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
140736
       * if it is not found.
-
 
140737
       */
-
 
140738
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
140739
        _Fields fields = findByThriftId(fieldId);
-
 
140740
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
140741
        return fields;
-
 
140742
      }
-
 
140743
 
-
 
140744
      /**
-
 
140745
       * Find the _Fields constant that matches name, or null if its not found.
-
 
140746
       */
-
 
140747
      public static _Fields findByName(String name) {
-
 
140748
        return byName.get(name);
-
 
140749
      }
-
 
140750
 
-
 
140751
      private final short _thriftId;
-
 
140752
      private final String _fieldName;
-
 
140753
 
-
 
140754
      _Fields(short thriftId, String fieldName) {
-
 
140755
        _thriftId = thriftId;
-
 
140756
        _fieldName = fieldName;
-
 
140757
      }
-
 
140758
 
-
 
140759
      public short getThriftFieldId() {
-
 
140760
        return _thriftId;
-
 
140761
      }
-
 
140762
 
-
 
140763
      public String getFieldName() {
-
 
140764
        return _fieldName;
-
 
140765
      }
-
 
140766
    }
-
 
140767
 
-
 
140768
    // isset id assignments
-
 
140769
 
-
 
140770
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
140771
    static {
-
 
140772
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
140773
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
140774
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
140775
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
140776
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
140777
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartByValue_result.class, metaDataMap);
-
 
140778
    }
-
 
140779
 
-
 
140780
    public getCartByValue_result() {
-
 
140781
    }
-
 
140782
 
-
 
140783
    public getCartByValue_result(
-
 
140784
      List<Long> success)
-
 
140785
    {
-
 
140786
      this();
-
 
140787
      this.success = success;
-
 
140788
    }
-
 
140789
 
-
 
140790
    /**
-
 
140791
     * Performs a deep copy on <i>other</i>.
-
 
140792
     */
-
 
140793
    public getCartByValue_result(getCartByValue_result other) {
-
 
140794
      if (other.isSetSuccess()) {
-
 
140795
        List<Long> __this__success = new ArrayList<Long>();
-
 
140796
        for (Long other_element : other.success) {
-
 
140797
          __this__success.add(other_element);
-
 
140798
        }
-
 
140799
        this.success = __this__success;
-
 
140800
      }
-
 
140801
    }
-
 
140802
 
-
 
140803
    public getCartByValue_result deepCopy() {
-
 
140804
      return new getCartByValue_result(this);
-
 
140805
    }
-
 
140806
 
-
 
140807
    @Override
-
 
140808
    public void clear() {
-
 
140809
      this.success = null;
-
 
140810
    }
-
 
140811
 
-
 
140812
    public int getSuccessSize() {
-
 
140813
      return (this.success == null) ? 0 : this.success.size();
-
 
140814
    }
-
 
140815
 
-
 
140816
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
140817
      return (this.success == null) ? null : this.success.iterator();
-
 
140818
    }
-
 
140819
 
-
 
140820
    public void addToSuccess(long elem) {
-
 
140821
      if (this.success == null) {
-
 
140822
        this.success = new ArrayList<Long>();
-
 
140823
      }
-
 
140824
      this.success.add(elem);
-
 
140825
    }
-
 
140826
 
-
 
140827
    public List<Long> getSuccess() {
-
 
140828
      return this.success;
-
 
140829
    }
-
 
140830
 
-
 
140831
    public void setSuccess(List<Long> success) {
-
 
140832
      this.success = success;
-
 
140833
    }
-
 
140834
 
-
 
140835
    public void unsetSuccess() {
-
 
140836
      this.success = null;
-
 
140837
    }
-
 
140838
 
-
 
140839
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
140840
    public boolean isSetSuccess() {
-
 
140841
      return this.success != null;
-
 
140842
    }
-
 
140843
 
-
 
140844
    public void setSuccessIsSet(boolean value) {
-
 
140845
      if (!value) {
-
 
140846
        this.success = null;
-
 
140847
      }
-
 
140848
    }
-
 
140849
 
-
 
140850
    public void setFieldValue(_Fields field, Object value) {
-
 
140851
      switch (field) {
-
 
140852
      case SUCCESS:
-
 
140853
        if (value == null) {
-
 
140854
          unsetSuccess();
-
 
140855
        } else {
-
 
140856
          setSuccess((List<Long>)value);
-
 
140857
        }
-
 
140858
        break;
-
 
140859
 
-
 
140860
      }
-
 
140861
    }
-
 
140862
 
-
 
140863
    public Object getFieldValue(_Fields field) {
-
 
140864
      switch (field) {
-
 
140865
      case SUCCESS:
-
 
140866
        return getSuccess();
-
 
140867
 
-
 
140868
      }
-
 
140869
      throw new IllegalStateException();
-
 
140870
    }
-
 
140871
 
-
 
140872
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
140873
    public boolean isSet(_Fields field) {
-
 
140874
      if (field == null) {
-
 
140875
        throw new IllegalArgumentException();
-
 
140876
      }
-
 
140877
 
-
 
140878
      switch (field) {
-
 
140879
      case SUCCESS:
-
 
140880
        return isSetSuccess();
-
 
140881
      }
-
 
140882
      throw new IllegalStateException();
-
 
140883
    }
-
 
140884
 
-
 
140885
    @Override
-
 
140886
    public boolean equals(Object that) {
-
 
140887
      if (that == null)
-
 
140888
        return false;
-
 
140889
      if (that instanceof getCartByValue_result)
-
 
140890
        return this.equals((getCartByValue_result)that);
-
 
140891
      return false;
-
 
140892
    }
-
 
140893
 
-
 
140894
    public boolean equals(getCartByValue_result that) {
-
 
140895
      if (that == null)
-
 
140896
        return false;
-
 
140897
 
-
 
140898
      boolean this_present_success = true && this.isSetSuccess();
-
 
140899
      boolean that_present_success = true && that.isSetSuccess();
-
 
140900
      if (this_present_success || that_present_success) {
-
 
140901
        if (!(this_present_success && that_present_success))
-
 
140902
          return false;
-
 
140903
        if (!this.success.equals(that.success))
-
 
140904
          return false;
-
 
140905
      }
-
 
140906
 
-
 
140907
      return true;
-
 
140908
    }
-
 
140909
 
-
 
140910
    @Override
-
 
140911
    public int hashCode() {
-
 
140912
      return 0;
-
 
140913
    }
-
 
140914
 
-
 
140915
    public int compareTo(getCartByValue_result other) {
-
 
140916
      if (!getClass().equals(other.getClass())) {
-
 
140917
        return getClass().getName().compareTo(other.getClass().getName());
-
 
140918
      }
-
 
140919
 
-
 
140920
      int lastComparison = 0;
-
 
140921
      getCartByValue_result typedOther = (getCartByValue_result)other;
-
 
140922
 
-
 
140923
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
140924
      if (lastComparison != 0) {
-
 
140925
        return lastComparison;
-
 
140926
      }
-
 
140927
      if (isSetSuccess()) {
-
 
140928
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
140929
        if (lastComparison != 0) {
-
 
140930
          return lastComparison;
-
 
140931
        }
-
 
140932
      }
-
 
140933
      return 0;
-
 
140934
    }
-
 
140935
 
-
 
140936
    public _Fields fieldForId(int fieldId) {
-
 
140937
      return _Fields.findByThriftId(fieldId);
-
 
140938
    }
-
 
140939
 
-
 
140940
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
140941
      org.apache.thrift.protocol.TField field;
-
 
140942
      iprot.readStructBegin();
-
 
140943
      while (true)
-
 
140944
      {
-
 
140945
        field = iprot.readFieldBegin();
-
 
140946
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
140947
          break;
-
 
140948
        }
-
 
140949
        switch (field.id) {
-
 
140950
          case 0: // SUCCESS
-
 
140951
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
140952
              {
-
 
140953
                org.apache.thrift.protocol.TList _list522 = iprot.readListBegin();
-
 
140954
                this.success = new ArrayList<Long>(_list522.size);
-
 
140955
                for (int _i523 = 0; _i523 < _list522.size; ++_i523)
-
 
140956
                {
-
 
140957
                  long _elem524; // required
-
 
140958
                  _elem524 = iprot.readI64();
-
 
140959
                  this.success.add(_elem524);
-
 
140960
                }
-
 
140961
                iprot.readListEnd();
-
 
140962
              }
-
 
140963
            } else { 
-
 
140964
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
140965
            }
-
 
140966
            break;
-
 
140967
          default:
-
 
140968
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
140969
        }
-
 
140970
        iprot.readFieldEnd();
-
 
140971
      }
-
 
140972
      iprot.readStructEnd();
-
 
140973
      validate();
-
 
140974
    }
-
 
140975
 
-
 
140976
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
140977
      oprot.writeStructBegin(STRUCT_DESC);
-
 
140978
 
-
 
140979
      if (this.isSetSuccess()) {
-
 
140980
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
140981
        {
-
 
140982
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
140983
          for (long _iter525 : this.success)
-
 
140984
          {
-
 
140985
            oprot.writeI64(_iter525);
-
 
140986
          }
-
 
140987
          oprot.writeListEnd();
-
 
140988
        }
-
 
140989
        oprot.writeFieldEnd();
-
 
140990
      }
-
 
140991
      oprot.writeFieldStop();
-
 
140992
      oprot.writeStructEnd();
-
 
140993
    }
-
 
140994
 
-
 
140995
    @Override
-
 
140996
    public String toString() {
-
 
140997
      StringBuilder sb = new StringBuilder("getCartByValue_result(");
-
 
140998
      boolean first = true;
-
 
140999
 
-
 
141000
      sb.append("success:");
-
 
141001
      if (this.success == null) {
-
 
141002
        sb.append("null");
-
 
141003
      } else {
-
 
141004
        sb.append(this.success);
-
 
141005
      }
-
 
141006
      first = false;
-
 
141007
      sb.append(")");
-
 
141008
      return sb.toString();
-
 
141009
    }
-
 
141010
 
140274
    public void validate() throws org.apache.thrift.TException {
141011
    public void validate() throws org.apache.thrift.TException {
140275
      // check for required fields
141012
      // check for required fields
140276
    }
141013
    }
140277
 
141014
 
140278
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
141015
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {