Subversion Repositories SmartDukaan

Rev

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

Rev 7306 Rev 7330
Line 354... Line 354...
354
 
354
 
355
    public List<VoucherItemMapping> getAllItemVouchers(long itemId) throws org.apache.thrift.TException;
355
    public List<VoucherItemMapping> getAllItemVouchers(long itemId) throws org.apache.thrift.TException;
356
 
356
 
357
    public boolean isValidCatalogItemId(long catalog_item_id) throws org.apache.thrift.TException;
357
    public boolean isValidCatalogItemId(long catalog_item_id) throws org.apache.thrift.TException;
358
 
358
 
359
    public double getVatPercentageForItem(long itemId, double price) throws org.apache.thrift.TException;
359
    public double getVatPercentageForItem(long itemId, long stateId, double price) throws org.apache.thrift.TException;
360
 
360
 
361
    public double getVatAmountForItem(long itemId, double price) throws org.apache.thrift.TException;
361
    public double getVatAmountForItem(long itemId, double price) throws org.apache.thrift.TException;
362
 
362
 
363
    public List<Item> getAllIgnoredInventoryUpdateItemsList(int offset, int limit) throws org.apache.thrift.TException;
363
    public List<Item> getAllIgnoredInventoryUpdateItemsList(int offset, int limit) throws org.apache.thrift.TException;
364
 
364
 
Line 558... Line 558...
558
 
558
 
559
    public void getAllItemVouchers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemVouchers_call> resultHandler) throws org.apache.thrift.TException;
559
    public void getAllItemVouchers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemVouchers_call> resultHandler) throws org.apache.thrift.TException;
560
 
560
 
561
    public void isValidCatalogItemId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isValidCatalogItemId_call> resultHandler) throws org.apache.thrift.TException;
561
    public void isValidCatalogItemId(long catalog_item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isValidCatalogItemId_call> resultHandler) throws org.apache.thrift.TException;
562
 
562
 
563
    public void getVatPercentageForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatPercentageForItem_call> resultHandler) throws org.apache.thrift.TException;
563
    public void getVatPercentageForItem(long itemId, long stateId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatPercentageForItem_call> resultHandler) throws org.apache.thrift.TException;
564
 
564
 
565
    public void getVatAmountForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatAmountForItem_call> resultHandler) throws org.apache.thrift.TException;
565
    public void getVatAmountForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVatAmountForItem_call> resultHandler) throws org.apache.thrift.TException;
566
 
566
 
567
    public void getAllIgnoredInventoryUpdateItemsList(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryUpdateItemsList_call> resultHandler) throws org.apache.thrift.TException;
567
    public void getAllIgnoredInventoryUpdateItemsList(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryUpdateItemsList_call> resultHandler) throws org.apache.thrift.TException;
568
 
568
 
Line 2451... Line 2451...
2451
        return result.success;
2451
        return result.success;
2452
      }
2452
      }
2453
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
2453
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
2454
    }
2454
    }
2455
 
2455
 
2456
    public double getVatPercentageForItem(long itemId, double price) throws org.apache.thrift.TException
2456
    public double getVatPercentageForItem(long itemId, long stateId, double price) throws org.apache.thrift.TException
2457
    {
2457
    {
2458
      send_getVatPercentageForItem(itemId, price);
2458
      send_getVatPercentageForItem(itemId, stateId, price);
2459
      return recv_getVatPercentageForItem();
2459
      return recv_getVatPercentageForItem();
2460
    }
2460
    }
2461
 
2461
 
2462
    public void send_getVatPercentageForItem(long itemId, double price) throws org.apache.thrift.TException
2462
    public void send_getVatPercentageForItem(long itemId, long stateId, double price) throws org.apache.thrift.TException
2463
    {
2463
    {
2464
      getVatPercentageForItem_args args = new getVatPercentageForItem_args();
2464
      getVatPercentageForItem_args args = new getVatPercentageForItem_args();
2465
      args.setItemId(itemId);
2465
      args.setItemId(itemId);
-
 
2466
      args.setStateId(stateId);
2466
      args.setPrice(price);
2467
      args.setPrice(price);
2467
      sendBase("getVatPercentageForItem", args);
2468
      sendBase("getVatPercentageForItem", args);
2468
    }
2469
    }
2469
 
2470
 
2470
    public double recv_getVatPercentageForItem() throws org.apache.thrift.TException
2471
    public double recv_getVatPercentageForItem() throws org.apache.thrift.TException
Line 5435... Line 5436...
5435
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5436
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5436
        return (new Client(prot)).recv_isValidCatalogItemId();
5437
        return (new Client(prot)).recv_isValidCatalogItemId();
5437
      }
5438
      }
5438
    }
5439
    }
5439
 
5440
 
5440
    public void getVatPercentageForItem(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<getVatPercentageForItem_call> resultHandler) throws org.apache.thrift.TException {
5441
    public void getVatPercentageForItem(long itemId, long stateId, double price, org.apache.thrift.async.AsyncMethodCallback<getVatPercentageForItem_call> resultHandler) throws org.apache.thrift.TException {
5441
      checkReady();
5442
      checkReady();
5442
      getVatPercentageForItem_call method_call = new getVatPercentageForItem_call(itemId, price, resultHandler, this, ___protocolFactory, ___transport);
5443
      getVatPercentageForItem_call method_call = new getVatPercentageForItem_call(itemId, stateId, price, resultHandler, this, ___protocolFactory, ___transport);
5443
      this.___currentMethod = method_call;
5444
      this.___currentMethod = method_call;
5444
      ___manager.call(method_call);
5445
      ___manager.call(method_call);
5445
    }
5446
    }
5446
 
5447
 
5447
    public static class getVatPercentageForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
5448
    public static class getVatPercentageForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
5448
      private long itemId;
5449
      private long itemId;
-
 
5450
      private long stateId;
5449
      private double price;
5451
      private double price;
5450
      public getVatPercentageForItem_call(long itemId, double price, org.apache.thrift.async.AsyncMethodCallback<getVatPercentageForItem_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 {
5452
      public getVatPercentageForItem_call(long itemId, long stateId, double price, org.apache.thrift.async.AsyncMethodCallback<getVatPercentageForItem_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 {
5451
        super(client, protocolFactory, transport, resultHandler, false);
5453
        super(client, protocolFactory, transport, resultHandler, false);
5452
        this.itemId = itemId;
5454
        this.itemId = itemId;
-
 
5455
        this.stateId = stateId;
5453
        this.price = price;
5456
        this.price = price;
5454
      }
5457
      }
5455
 
5458
 
5456
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5459
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5457
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVatPercentageForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
5460
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVatPercentageForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
5458
        getVatPercentageForItem_args args = new getVatPercentageForItem_args();
5461
        getVatPercentageForItem_args args = new getVatPercentageForItem_args();
5459
        args.setItemId(itemId);
5462
        args.setItemId(itemId);
-
 
5463
        args.setStateId(stateId);
5460
        args.setPrice(price);
5464
        args.setPrice(price);
5461
        args.write(prot);
5465
        args.write(prot);
5462
        prot.writeMessageEnd();
5466
        prot.writeMessageEnd();
5463
      }
5467
      }
5464
 
5468
 
Line 7632... Line 7636...
7632
        return new getVatPercentageForItem_args();
7636
        return new getVatPercentageForItem_args();
7633
      }
7637
      }
7634
 
7638
 
7635
      protected getVatPercentageForItem_result getResult(I iface, getVatPercentageForItem_args args) throws org.apache.thrift.TException {
7639
      protected getVatPercentageForItem_result getResult(I iface, getVatPercentageForItem_args args) throws org.apache.thrift.TException {
7636
        getVatPercentageForItem_result result = new getVatPercentageForItem_result();
7640
        getVatPercentageForItem_result result = new getVatPercentageForItem_result();
7637
        result.success = iface.getVatPercentageForItem(args.itemId, args.price);
7641
        result.success = iface.getVatPercentageForItem(args.itemId, args.stateId, args.price);
7638
        result.setSuccessIsSet(true);
7642
        result.setSuccessIsSet(true);
7639
        return result;
7643
        return result;
7640
      }
7644
      }
7641
    }
7645
    }
7642
 
7646
 
Line 58312... Line 58316...
58312
 
58316
 
58313
  public static class getVatPercentageForItem_args implements org.apache.thrift.TBase<getVatPercentageForItem_args, getVatPercentageForItem_args._Fields>, java.io.Serializable, Cloneable   {
58317
  public static class getVatPercentageForItem_args implements org.apache.thrift.TBase<getVatPercentageForItem_args, getVatPercentageForItem_args._Fields>, java.io.Serializable, Cloneable   {
58314
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatPercentageForItem_args");
58318
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVatPercentageForItem_args");
58315
 
58319
 
58316
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
58320
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
58321
    private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I64, (short)2);
58317
    private static final org.apache.thrift.protocol.TField PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("price", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
58322
    private static final org.apache.thrift.protocol.TField PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("price", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
58318
 
58323
 
58319
    private long itemId; // required
58324
    private long itemId; // required
-
 
58325
    private long stateId; // required
58320
    private double price; // required
58326
    private double price; // required
58321
 
58327
 
58322
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58328
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58323
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58329
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58324
      ITEM_ID((short)1, "itemId"),
58330
      ITEM_ID((short)1, "itemId"),
-
 
58331
      STATE_ID((short)2, "stateId"),
58325
      PRICE((short)2, "price");
58332
      PRICE((short)3, "price");
58326
 
58333
 
58327
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
58334
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
58328
 
58335
 
58329
      static {
58336
      static {
58330
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
58337
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 58337... Line 58344...
58337
       */
58344
       */
58338
      public static _Fields findByThriftId(int fieldId) {
58345
      public static _Fields findByThriftId(int fieldId) {
58339
        switch(fieldId) {
58346
        switch(fieldId) {
58340
          case 1: // ITEM_ID
58347
          case 1: // ITEM_ID
58341
            return ITEM_ID;
58348
            return ITEM_ID;
-
 
58349
          case 2: // STATE_ID
-
 
58350
            return STATE_ID;
58342
          case 2: // PRICE
58351
          case 3: // PRICE
58343
            return PRICE;
58352
            return PRICE;
58344
          default:
58353
          default:
58345
            return null;
58354
            return null;
58346
        }
58355
        }
58347
      }
58356
      }
Line 58380... Line 58389...
58380
      }
58389
      }
58381
    }
58390
    }
58382
 
58391
 
58383
    // isset id assignments
58392
    // isset id assignments
58384
    private static final int __ITEMID_ISSET_ID = 0;
58393
    private static final int __ITEMID_ISSET_ID = 0;
-
 
58394
    private static final int __STATEID_ISSET_ID = 1;
58385
    private static final int __PRICE_ISSET_ID = 1;
58395
    private static final int __PRICE_ISSET_ID = 2;
58386
    private BitSet __isset_bit_vector = new BitSet(2);
58396
    private BitSet __isset_bit_vector = new BitSet(3);
58387
 
58397
 
58388
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
58398
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
58389
    static {
58399
    static {
58390
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
58400
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
58391
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
58401
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
58392
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
58402
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
58403
      tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
58404
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
58393
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
58405
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
58394
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
58406
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
58395
      metaDataMap = Collections.unmodifiableMap(tmpMap);
58407
      metaDataMap = Collections.unmodifiableMap(tmpMap);
58396
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatPercentageForItem_args.class, metaDataMap);
58408
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVatPercentageForItem_args.class, metaDataMap);
58397
    }
58409
    }
Line 58399... Line 58411...
58399
    public getVatPercentageForItem_args() {
58411
    public getVatPercentageForItem_args() {
58400
    }
58412
    }
58401
 
58413
 
58402
    public getVatPercentageForItem_args(
58414
    public getVatPercentageForItem_args(
58403
      long itemId,
58415
      long itemId,
-
 
58416
      long stateId,
58404
      double price)
58417
      double price)
58405
    {
58418
    {
58406
      this();
58419
      this();
58407
      this.itemId = itemId;
58420
      this.itemId = itemId;
58408
      setItemIdIsSet(true);
58421
      setItemIdIsSet(true);
-
 
58422
      this.stateId = stateId;
-
 
58423
      setStateIdIsSet(true);
58409
      this.price = price;
58424
      this.price = price;
58410
      setPriceIsSet(true);
58425
      setPriceIsSet(true);
58411
    }
58426
    }
58412
 
58427
 
58413
    /**
58428
    /**
Line 58415... Line 58430...
58415
     */
58430
     */
58416
    public getVatPercentageForItem_args(getVatPercentageForItem_args other) {
58431
    public getVatPercentageForItem_args(getVatPercentageForItem_args other) {
58417
      __isset_bit_vector.clear();
58432
      __isset_bit_vector.clear();
58418
      __isset_bit_vector.or(other.__isset_bit_vector);
58433
      __isset_bit_vector.or(other.__isset_bit_vector);
58419
      this.itemId = other.itemId;
58434
      this.itemId = other.itemId;
-
 
58435
      this.stateId = other.stateId;
58420
      this.price = other.price;
58436
      this.price = other.price;
58421
    }
58437
    }
58422
 
58438
 
58423
    public getVatPercentageForItem_args deepCopy() {
58439
    public getVatPercentageForItem_args deepCopy() {
58424
      return new getVatPercentageForItem_args(this);
58440
      return new getVatPercentageForItem_args(this);
Line 58426... Line 58442...
58426
 
58442
 
58427
    @Override
58443
    @Override
58428
    public void clear() {
58444
    public void clear() {
58429
      setItemIdIsSet(false);
58445
      setItemIdIsSet(false);
58430
      this.itemId = 0;
58446
      this.itemId = 0;
-
 
58447
      setStateIdIsSet(false);
-
 
58448
      this.stateId = 0;
58431
      setPriceIsSet(false);
58449
      setPriceIsSet(false);
58432
      this.price = 0.0;
58450
      this.price = 0.0;
58433
    }
58451
    }
58434
 
58452
 
58435
    public long getItemId() {
58453
    public long getItemId() {
Line 58452... Line 58470...
58452
 
58470
 
58453
    public void setItemIdIsSet(boolean value) {
58471
    public void setItemIdIsSet(boolean value) {
58454
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
58472
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
58455
    }
58473
    }
58456
 
58474
 
-
 
58475
    public long getStateId() {
-
 
58476
      return this.stateId;
-
 
58477
    }
-
 
58478
 
-
 
58479
    public void setStateId(long stateId) {
-
 
58480
      this.stateId = stateId;
-
 
58481
      setStateIdIsSet(true);
-
 
58482
    }
-
 
58483
 
-
 
58484
    public void unsetStateId() {
-
 
58485
      __isset_bit_vector.clear(__STATEID_ISSET_ID);
-
 
58486
    }
-
 
58487
 
-
 
58488
    /** Returns true if field stateId is set (has been assigned a value) and false otherwise */
-
 
58489
    public boolean isSetStateId() {
-
 
58490
      return __isset_bit_vector.get(__STATEID_ISSET_ID);
-
 
58491
    }
-
 
58492
 
-
 
58493
    public void setStateIdIsSet(boolean value) {
-
 
58494
      __isset_bit_vector.set(__STATEID_ISSET_ID, value);
-
 
58495
    }
-
 
58496
 
58457
    public double getPrice() {
58497
    public double getPrice() {
58458
      return this.price;
58498
      return this.price;
58459
    }
58499
    }
58460
 
58500
 
58461
    public void setPrice(double price) {
58501
    public void setPrice(double price) {
Line 58484... Line 58524...
58484
        } else {
58524
        } else {
58485
          setItemId((Long)value);
58525
          setItemId((Long)value);
58486
        }
58526
        }
58487
        break;
58527
        break;
58488
 
58528
 
-
 
58529
      case STATE_ID:
-
 
58530
        if (value == null) {
-
 
58531
          unsetStateId();
-
 
58532
        } else {
-
 
58533
          setStateId((Long)value);
-
 
58534
        }
-
 
58535
        break;
-
 
58536
 
58489
      case PRICE:
58537
      case PRICE:
58490
        if (value == null) {
58538
        if (value == null) {
58491
          unsetPrice();
58539
          unsetPrice();
58492
        } else {
58540
        } else {
58493
          setPrice((Double)value);
58541
          setPrice((Double)value);
Line 58500... Line 58548...
58500
    public Object getFieldValue(_Fields field) {
58548
    public Object getFieldValue(_Fields field) {
58501
      switch (field) {
58549
      switch (field) {
58502
      case ITEM_ID:
58550
      case ITEM_ID:
58503
        return Long.valueOf(getItemId());
58551
        return Long.valueOf(getItemId());
58504
 
58552
 
-
 
58553
      case STATE_ID:
-
 
58554
        return Long.valueOf(getStateId());
-
 
58555
 
58505
      case PRICE:
58556
      case PRICE:
58506
        return Double.valueOf(getPrice());
58557
        return Double.valueOf(getPrice());
58507
 
58558
 
58508
      }
58559
      }
58509
      throw new IllegalStateException();
58560
      throw new IllegalStateException();
Line 58516... Line 58567...
58516
      }
58567
      }
58517
 
58568
 
58518
      switch (field) {
58569
      switch (field) {
58519
      case ITEM_ID:
58570
      case ITEM_ID:
58520
        return isSetItemId();
58571
        return isSetItemId();
-
 
58572
      case STATE_ID:
-
 
58573
        return isSetStateId();
58521
      case PRICE:
58574
      case PRICE:
58522
        return isSetPrice();
58575
        return isSetPrice();
58523
      }
58576
      }
58524
      throw new IllegalStateException();
58577
      throw new IllegalStateException();
58525
    }
58578
    }
Line 58544... Line 58597...
58544
          return false;
58597
          return false;
58545
        if (this.itemId != that.itemId)
58598
        if (this.itemId != that.itemId)
58546
          return false;
58599
          return false;
58547
      }
58600
      }
58548
 
58601
 
-
 
58602
      boolean this_present_stateId = true;
-
 
58603
      boolean that_present_stateId = true;
-
 
58604
      if (this_present_stateId || that_present_stateId) {
-
 
58605
        if (!(this_present_stateId && that_present_stateId))
-
 
58606
          return false;
-
 
58607
        if (this.stateId != that.stateId)
-
 
58608
          return false;
-
 
58609
      }
-
 
58610
 
58549
      boolean this_present_price = true;
58611
      boolean this_present_price = true;
58550
      boolean that_present_price = true;
58612
      boolean that_present_price = true;
58551
      if (this_present_price || that_present_price) {
58613
      if (this_present_price || that_present_price) {
58552
        if (!(this_present_price && that_present_price))
58614
        if (!(this_present_price && that_present_price))
58553
          return false;
58615
          return false;
Line 58579... Line 58641...
58579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
58641
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
58580
        if (lastComparison != 0) {
58642
        if (lastComparison != 0) {
58581
          return lastComparison;
58643
          return lastComparison;
58582
        }
58644
        }
58583
      }
58645
      }
-
 
58646
      lastComparison = Boolean.valueOf(isSetStateId()).compareTo(typedOther.isSetStateId());
-
 
58647
      if (lastComparison != 0) {
-
 
58648
        return lastComparison;
-
 
58649
      }
-
 
58650
      if (isSetStateId()) {
-
 
58651
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stateId, typedOther.stateId);
-
 
58652
        if (lastComparison != 0) {
-
 
58653
          return lastComparison;
-
 
58654
        }
-
 
58655
      }
58584
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
58656
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
58585
      if (lastComparison != 0) {
58657
      if (lastComparison != 0) {
58586
        return lastComparison;
58658
        return lastComparison;
58587
      }
58659
      }
58588
      if (isSetPrice()) {
58660
      if (isSetPrice()) {
Line 58614... Line 58686...
58614
              setItemIdIsSet(true);
58686
              setItemIdIsSet(true);
58615
            } else { 
58687
            } else { 
58616
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58688
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58617
            }
58689
            }
58618
            break;
58690
            break;
-
 
58691
          case 2: // STATE_ID
-
 
58692
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
58693
              this.stateId = iprot.readI64();
-
 
58694
              setStateIdIsSet(true);
-
 
58695
            } else { 
-
 
58696
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58697
            }
-
 
58698
            break;
58619
          case 2: // PRICE
58699
          case 3: // PRICE
58620
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
58700
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
58621
              this.price = iprot.readDouble();
58701
              this.price = iprot.readDouble();
58622
              setPriceIsSet(true);
58702
              setPriceIsSet(true);
58623
            } else { 
58703
            } else { 
58624
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58704
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 58638... Line 58718...
58638
 
58718
 
58639
      oprot.writeStructBegin(STRUCT_DESC);
58719
      oprot.writeStructBegin(STRUCT_DESC);
58640
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
58720
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
58641
      oprot.writeI64(this.itemId);
58721
      oprot.writeI64(this.itemId);
58642
      oprot.writeFieldEnd();
58722
      oprot.writeFieldEnd();
-
 
58723
      oprot.writeFieldBegin(STATE_ID_FIELD_DESC);
-
 
58724
      oprot.writeI64(this.stateId);
-
 
58725
      oprot.writeFieldEnd();
58643
      oprot.writeFieldBegin(PRICE_FIELD_DESC);
58726
      oprot.writeFieldBegin(PRICE_FIELD_DESC);
58644
      oprot.writeDouble(this.price);
58727
      oprot.writeDouble(this.price);
58645
      oprot.writeFieldEnd();
58728
      oprot.writeFieldEnd();
58646
      oprot.writeFieldStop();
58729
      oprot.writeFieldStop();
58647
      oprot.writeStructEnd();
58730
      oprot.writeStructEnd();
Line 58654... Line 58737...
58654
 
58737
 
58655
      sb.append("itemId:");
58738
      sb.append("itemId:");
58656
      sb.append(this.itemId);
58739
      sb.append(this.itemId);
58657
      first = false;
58740
      first = false;
58658
      if (!first) sb.append(", ");
58741
      if (!first) sb.append(", ");
-
 
58742
      sb.append("stateId:");
-
 
58743
      sb.append(this.stateId);
-
 
58744
      first = false;
-
 
58745
      if (!first) sb.append(", ");
58659
      sb.append("price:");
58746
      sb.append("price:");
58660
      sb.append(this.price);
58747
      sb.append(this.price);
58661
      first = false;
58748
      first = false;
58662
      sb.append(")");
58749
      sb.append(")");
58663
      return sb.toString();
58750
      return sb.toString();