Subversion Repositories SmartDukaan

Rev

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

Rev 6850 Rev 6921
Line 368... Line 368...
368
 
368
 
369
    /**
369
    /**
370
     * This method returns the insurance amount needed to insure the given item for a given quantity.
370
     * This method returns the insurance amount needed to insure the given item for a given quantity.
371
     * 
371
     * 
372
     * @param itemId
372
     * @param itemId
-
 
373
     * @param price
373
     * @param insurerId
374
     * @param insurerId
374
     * @param quantity
375
     * @param quantity
375
     */
376
     */
376
    public long getInsuranceAmount(long itemId, long insurerId, long quantity) throws org.apache.thrift.TException;
377
    public long getInsuranceAmount(long itemId, double price, long insurerId, long quantity) throws org.apache.thrift.TException;
377
 
378
 
378
    public Insurer getInsurer(long insurerId) throws org.apache.thrift.TException;
379
    public Insurer getInsurer(long insurerId) throws org.apache.thrift.TException;
379
 
380
 
380
    public List<Insurer> getAllInsurers() throws org.apache.thrift.TException;
381
    public List<Insurer> getAllInsurers() throws org.apache.thrift.TException;
381
 
382
 
Line 539... Line 540...
539
 
540
 
540
    public void getAllIgnoredInventoryUpdateItemsList(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryUpdateItemsList_call> resultHandler) throws org.apache.thrift.TException;
541
    public void getAllIgnoredInventoryUpdateItemsList(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryUpdateItemsList_call> resultHandler) throws org.apache.thrift.TException;
541
 
542
 
542
    public void getAllAliveItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAliveItems_call> resultHandler) throws org.apache.thrift.TException;
543
    public void getAllAliveItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAliveItems_call> resultHandler) throws org.apache.thrift.TException;
543
 
544
 
544
    public void getInsuranceAmount(long itemId, long insurerId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInsuranceAmount_call> resultHandler) throws org.apache.thrift.TException;
545
    public void getInsuranceAmount(long itemId, double price, long insurerId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInsuranceAmount_call> resultHandler) throws org.apache.thrift.TException;
545
 
546
 
546
    public void getInsurer(long insurerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInsurer_call> resultHandler) throws org.apache.thrift.TException;
547
    public void getInsurer(long insurerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInsurer_call> resultHandler) throws org.apache.thrift.TException;
547
 
548
 
548
    public void getAllInsurers(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllInsurers_call> resultHandler) throws org.apache.thrift.TException;
549
    public void getAllInsurers(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllInsurers_call> resultHandler) throws org.apache.thrift.TException;
549
 
550
 
Line 2513... Line 2514...
2513
        return result.success;
2514
        return result.success;
2514
      }
2515
      }
2515
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
2516
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
2516
    }
2517
    }
2517
 
2518
 
2518
    public long getInsuranceAmount(long itemId, long insurerId, long quantity) throws org.apache.thrift.TException
2519
    public long getInsuranceAmount(long itemId, double price, long insurerId, long quantity) throws org.apache.thrift.TException
2519
    {
2520
    {
2520
      send_getInsuranceAmount(itemId, insurerId, quantity);
2521
      send_getInsuranceAmount(itemId, price, insurerId, quantity);
2521
      return recv_getInsuranceAmount();
2522
      return recv_getInsuranceAmount();
2522
    }
2523
    }
2523
 
2524
 
2524
    public void send_getInsuranceAmount(long itemId, long insurerId, long quantity) throws org.apache.thrift.TException
2525
    public void send_getInsuranceAmount(long itemId, double price, long insurerId, long quantity) throws org.apache.thrift.TException
2525
    {
2526
    {
2526
      getInsuranceAmount_args args = new getInsuranceAmount_args();
2527
      getInsuranceAmount_args args = new getInsuranceAmount_args();
2527
      args.setItemId(itemId);
2528
      args.setItemId(itemId);
-
 
2529
      args.setPrice(price);
2528
      args.setInsurerId(insurerId);
2530
      args.setInsurerId(insurerId);
2529
      args.setQuantity(quantity);
2531
      args.setQuantity(quantity);
2530
      sendBase("getInsuranceAmount", args);
2532
      sendBase("getInsuranceAmount", args);
2531
    }
2533
    }
2532
 
2534
 
Line 5237... Line 5239...
5237
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5239
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5238
        return (new Client(prot)).recv_getAllAliveItems();
5240
        return (new Client(prot)).recv_getAllAliveItems();
5239
      }
5241
      }
5240
    }
5242
    }
5241
 
5243
 
5242
    public void getInsuranceAmount(long itemId, long insurerId, long quantity, org.apache.thrift.async.AsyncMethodCallback<getInsuranceAmount_call> resultHandler) throws org.apache.thrift.TException {
5244
    public void getInsuranceAmount(long itemId, double price, long insurerId, long quantity, org.apache.thrift.async.AsyncMethodCallback<getInsuranceAmount_call> resultHandler) throws org.apache.thrift.TException {
5243
      checkReady();
5245
      checkReady();
5244
      getInsuranceAmount_call method_call = new getInsuranceAmount_call(itemId, insurerId, quantity, resultHandler, this, ___protocolFactory, ___transport);
5246
      getInsuranceAmount_call method_call = new getInsuranceAmount_call(itemId, price, insurerId, quantity, resultHandler, this, ___protocolFactory, ___transport);
5245
      this.___currentMethod = method_call;
5247
      this.___currentMethod = method_call;
5246
      ___manager.call(method_call);
5248
      ___manager.call(method_call);
5247
    }
5249
    }
5248
 
5250
 
5249
    public static class getInsuranceAmount_call extends org.apache.thrift.async.TAsyncMethodCall {
5251
    public static class getInsuranceAmount_call extends org.apache.thrift.async.TAsyncMethodCall {
5250
      private long itemId;
5252
      private long itemId;
-
 
5253
      private double price;
5251
      private long insurerId;
5254
      private long insurerId;
5252
      private long quantity;
5255
      private long quantity;
5253
      public getInsuranceAmount_call(long itemId, long insurerId, long quantity, org.apache.thrift.async.AsyncMethodCallback<getInsuranceAmount_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 {
5256
      public getInsuranceAmount_call(long itemId, double price, long insurerId, long quantity, org.apache.thrift.async.AsyncMethodCallback<getInsuranceAmount_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 {
5254
        super(client, protocolFactory, transport, resultHandler, false);
5257
        super(client, protocolFactory, transport, resultHandler, false);
5255
        this.itemId = itemId;
5258
        this.itemId = itemId;
-
 
5259
        this.price = price;
5256
        this.insurerId = insurerId;
5260
        this.insurerId = insurerId;
5257
        this.quantity = quantity;
5261
        this.quantity = quantity;
5258
      }
5262
      }
5259
 
5263
 
5260
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5264
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5261
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInsuranceAmount", org.apache.thrift.protocol.TMessageType.CALL, 0));
5265
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInsuranceAmount", org.apache.thrift.protocol.TMessageType.CALL, 0));
5262
        getInsuranceAmount_args args = new getInsuranceAmount_args();
5266
        getInsuranceAmount_args args = new getInsuranceAmount_args();
5263
        args.setItemId(itemId);
5267
        args.setItemId(itemId);
-
 
5268
        args.setPrice(price);
5264
        args.setInsurerId(insurerId);
5269
        args.setInsurerId(insurerId);
5265
        args.setQuantity(quantity);
5270
        args.setQuantity(quantity);
5266
        args.write(prot);
5271
        args.write(prot);
5267
        prot.writeMessageEnd();
5272
        prot.writeMessageEnd();
5268
      }
5273
      }
Line 6886... Line 6891...
6886
        return new getInsuranceAmount_args();
6891
        return new getInsuranceAmount_args();
6887
      }
6892
      }
6888
 
6893
 
6889
      protected getInsuranceAmount_result getResult(I iface, getInsuranceAmount_args args) throws org.apache.thrift.TException {
6894
      protected getInsuranceAmount_result getResult(I iface, getInsuranceAmount_args args) throws org.apache.thrift.TException {
6890
        getInsuranceAmount_result result = new getInsuranceAmount_result();
6895
        getInsuranceAmount_result result = new getInsuranceAmount_result();
6891
        result.success = iface.getInsuranceAmount(args.itemId, args.insurerId, args.quantity);
6896
        result.success = iface.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity);
6892
        result.setSuccessIsSet(true);
6897
        result.setSuccessIsSet(true);
6893
        return result;
6898
        return result;
6894
      }
6899
      }
6895
    }
6900
    }
6896
 
6901
 
Line 60456... Line 60461...
60456
 
60461
 
60457
  public static class getInsuranceAmount_args implements org.apache.thrift.TBase<getInsuranceAmount_args, getInsuranceAmount_args._Fields>, java.io.Serializable, Cloneable   {
60462
  public static class getInsuranceAmount_args implements org.apache.thrift.TBase<getInsuranceAmount_args, getInsuranceAmount_args._Fields>, java.io.Serializable, Cloneable   {
60458
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInsuranceAmount_args");
60463
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInsuranceAmount_args");
60459
 
60464
 
60460
    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);
60465
    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);
-
 
60466
    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);
60461
    private static final org.apache.thrift.protocol.TField INSURER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("insurerId", org.apache.thrift.protocol.TType.I64, (short)2);
60467
    private static final org.apache.thrift.protocol.TField INSURER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("insurerId", org.apache.thrift.protocol.TType.I64, (short)3);
60462
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);
60468
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)4);
60463
 
60469
 
60464
    private long itemId; // required
60470
    private long itemId; // required
-
 
60471
    private double price; // required
60465
    private long insurerId; // required
60472
    private long insurerId; // required
60466
    private long quantity; // required
60473
    private long quantity; // required
60467
 
60474
 
60468
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
60475
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
60469
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
60476
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
60470
      ITEM_ID((short)1, "itemId"),
60477
      ITEM_ID((short)1, "itemId"),
-
 
60478
      PRICE((short)2, "price"),
60471
      INSURER_ID((short)2, "insurerId"),
60479
      INSURER_ID((short)3, "insurerId"),
60472
      QUANTITY((short)3, "quantity");
60480
      QUANTITY((short)4, "quantity");
60473
 
60481
 
60474
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
60482
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
60475
 
60483
 
60476
      static {
60484
      static {
60477
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
60485
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 60484... Line 60492...
60484
       */
60492
       */
60485
      public static _Fields findByThriftId(int fieldId) {
60493
      public static _Fields findByThriftId(int fieldId) {
60486
        switch(fieldId) {
60494
        switch(fieldId) {
60487
          case 1: // ITEM_ID
60495
          case 1: // ITEM_ID
60488
            return ITEM_ID;
60496
            return ITEM_ID;
-
 
60497
          case 2: // PRICE
-
 
60498
            return PRICE;
60489
          case 2: // INSURER_ID
60499
          case 3: // INSURER_ID
60490
            return INSURER_ID;
60500
            return INSURER_ID;
60491
          case 3: // QUANTITY
60501
          case 4: // QUANTITY
60492
            return QUANTITY;
60502
            return QUANTITY;
60493
          default:
60503
          default:
60494
            return null;
60504
            return null;
60495
        }
60505
        }
60496
      }
60506
      }
Line 60529... Line 60539...
60529
      }
60539
      }
60530
    }
60540
    }
60531
 
60541
 
60532
    // isset id assignments
60542
    // isset id assignments
60533
    private static final int __ITEMID_ISSET_ID = 0;
60543
    private static final int __ITEMID_ISSET_ID = 0;
-
 
60544
    private static final int __PRICE_ISSET_ID = 1;
60534
    private static final int __INSURERID_ISSET_ID = 1;
60545
    private static final int __INSURERID_ISSET_ID = 2;
60535
    private static final int __QUANTITY_ISSET_ID = 2;
60546
    private static final int __QUANTITY_ISSET_ID = 3;
60536
    private BitSet __isset_bit_vector = new BitSet(3);
60547
    private BitSet __isset_bit_vector = new BitSet(4);
60537
 
60548
 
60538
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
60549
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
60539
    static {
60550
    static {
60540
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
60551
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
60541
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
60552
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
60542
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
60553
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
60554
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
60555
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
60543
      tmpMap.put(_Fields.INSURER_ID, new org.apache.thrift.meta_data.FieldMetaData("insurerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
60556
      tmpMap.put(_Fields.INSURER_ID, new org.apache.thrift.meta_data.FieldMetaData("insurerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
60544
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
60557
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
60545
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
60558
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
60546
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
60559
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
60547
      metaDataMap = Collections.unmodifiableMap(tmpMap);
60560
      metaDataMap = Collections.unmodifiableMap(tmpMap);
Line 60551... Line 60564...
60551
    public getInsuranceAmount_args() {
60564
    public getInsuranceAmount_args() {
60552
    }
60565
    }
60553
 
60566
 
60554
    public getInsuranceAmount_args(
60567
    public getInsuranceAmount_args(
60555
      long itemId,
60568
      long itemId,
-
 
60569
      double price,
60556
      long insurerId,
60570
      long insurerId,
60557
      long quantity)
60571
      long quantity)
60558
    {
60572
    {
60559
      this();
60573
      this();
60560
      this.itemId = itemId;
60574
      this.itemId = itemId;
60561
      setItemIdIsSet(true);
60575
      setItemIdIsSet(true);
-
 
60576
      this.price = price;
-
 
60577
      setPriceIsSet(true);
60562
      this.insurerId = insurerId;
60578
      this.insurerId = insurerId;
60563
      setInsurerIdIsSet(true);
60579
      setInsurerIdIsSet(true);
60564
      this.quantity = quantity;
60580
      this.quantity = quantity;
60565
      setQuantityIsSet(true);
60581
      setQuantityIsSet(true);
60566
    }
60582
    }
Line 60570... Line 60586...
60570
     */
60586
     */
60571
    public getInsuranceAmount_args(getInsuranceAmount_args other) {
60587
    public getInsuranceAmount_args(getInsuranceAmount_args other) {
60572
      __isset_bit_vector.clear();
60588
      __isset_bit_vector.clear();
60573
      __isset_bit_vector.or(other.__isset_bit_vector);
60589
      __isset_bit_vector.or(other.__isset_bit_vector);
60574
      this.itemId = other.itemId;
60590
      this.itemId = other.itemId;
-
 
60591
      this.price = other.price;
60575
      this.insurerId = other.insurerId;
60592
      this.insurerId = other.insurerId;
60576
      this.quantity = other.quantity;
60593
      this.quantity = other.quantity;
60577
    }
60594
    }
60578
 
60595
 
60579
    public getInsuranceAmount_args deepCopy() {
60596
    public getInsuranceAmount_args deepCopy() {
Line 60582... Line 60599...
60582
 
60599
 
60583
    @Override
60600
    @Override
60584
    public void clear() {
60601
    public void clear() {
60585
      setItemIdIsSet(false);
60602
      setItemIdIsSet(false);
60586
      this.itemId = 0;
60603
      this.itemId = 0;
-
 
60604
      setPriceIsSet(false);
-
 
60605
      this.price = 0.0;
60587
      setInsurerIdIsSet(false);
60606
      setInsurerIdIsSet(false);
60588
      this.insurerId = 0;
60607
      this.insurerId = 0;
60589
      setQuantityIsSet(false);
60608
      setQuantityIsSet(false);
60590
      this.quantity = 0;
60609
      this.quantity = 0;
60591
    }
60610
    }
Line 60610... Line 60629...
60610
 
60629
 
60611
    public void setItemIdIsSet(boolean value) {
60630
    public void setItemIdIsSet(boolean value) {
60612
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
60631
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
60613
    }
60632
    }
60614
 
60633
 
-
 
60634
    public double getPrice() {
-
 
60635
      return this.price;
-
 
60636
    }
-
 
60637
 
-
 
60638
    public void setPrice(double price) {
-
 
60639
      this.price = price;
-
 
60640
      setPriceIsSet(true);
-
 
60641
    }
-
 
60642
 
-
 
60643
    public void unsetPrice() {
-
 
60644
      __isset_bit_vector.clear(__PRICE_ISSET_ID);
-
 
60645
    }
-
 
60646
 
-
 
60647
    /** Returns true if field price is set (has been assigned a value) and false otherwise */
-
 
60648
    public boolean isSetPrice() {
-
 
60649
      return __isset_bit_vector.get(__PRICE_ISSET_ID);
-
 
60650
    }
-
 
60651
 
-
 
60652
    public void setPriceIsSet(boolean value) {
-
 
60653
      __isset_bit_vector.set(__PRICE_ISSET_ID, value);
-
 
60654
    }
-
 
60655
 
60615
    public long getInsurerId() {
60656
    public long getInsurerId() {
60616
      return this.insurerId;
60657
      return this.insurerId;
60617
    }
60658
    }
60618
 
60659
 
60619
    public void setInsurerId(long insurerId) {
60660
    public void setInsurerId(long insurerId) {
Line 60664... Line 60705...
60664
        } else {
60705
        } else {
60665
          setItemId((Long)value);
60706
          setItemId((Long)value);
60666
        }
60707
        }
60667
        break;
60708
        break;
60668
 
60709
 
-
 
60710
      case PRICE:
-
 
60711
        if (value == null) {
-
 
60712
          unsetPrice();
-
 
60713
        } else {
-
 
60714
          setPrice((Double)value);
-
 
60715
        }
-
 
60716
        break;
-
 
60717
 
60669
      case INSURER_ID:
60718
      case INSURER_ID:
60670
        if (value == null) {
60719
        if (value == null) {
60671
          unsetInsurerId();
60720
          unsetInsurerId();
60672
        } else {
60721
        } else {
60673
          setInsurerId((Long)value);
60722
          setInsurerId((Long)value);
Line 60688... Line 60737...
60688
    public Object getFieldValue(_Fields field) {
60737
    public Object getFieldValue(_Fields field) {
60689
      switch (field) {
60738
      switch (field) {
60690
      case ITEM_ID:
60739
      case ITEM_ID:
60691
        return Long.valueOf(getItemId());
60740
        return Long.valueOf(getItemId());
60692
 
60741
 
-
 
60742
      case PRICE:
-
 
60743
        return Double.valueOf(getPrice());
-
 
60744
 
60693
      case INSURER_ID:
60745
      case INSURER_ID:
60694
        return Long.valueOf(getInsurerId());
60746
        return Long.valueOf(getInsurerId());
60695
 
60747
 
60696
      case QUANTITY:
60748
      case QUANTITY:
60697
        return Long.valueOf(getQuantity());
60749
        return Long.valueOf(getQuantity());
Line 60707... Line 60759...
60707
      }
60759
      }
60708
 
60760
 
60709
      switch (field) {
60761
      switch (field) {
60710
      case ITEM_ID:
60762
      case ITEM_ID:
60711
        return isSetItemId();
60763
        return isSetItemId();
-
 
60764
      case PRICE:
-
 
60765
        return isSetPrice();
60712
      case INSURER_ID:
60766
      case INSURER_ID:
60713
        return isSetInsurerId();
60767
        return isSetInsurerId();
60714
      case QUANTITY:
60768
      case QUANTITY:
60715
        return isSetQuantity();
60769
        return isSetQuantity();
60716
      }
60770
      }
Line 60737... Line 60791...
60737
          return false;
60791
          return false;
60738
        if (this.itemId != that.itemId)
60792
        if (this.itemId != that.itemId)
60739
          return false;
60793
          return false;
60740
      }
60794
      }
60741
 
60795
 
-
 
60796
      boolean this_present_price = true;
-
 
60797
      boolean that_present_price = true;
-
 
60798
      if (this_present_price || that_present_price) {
-
 
60799
        if (!(this_present_price && that_present_price))
-
 
60800
          return false;
-
 
60801
        if (this.price != that.price)
-
 
60802
          return false;
-
 
60803
      }
-
 
60804
 
60742
      boolean this_present_insurerId = true;
60805
      boolean this_present_insurerId = true;
60743
      boolean that_present_insurerId = true;
60806
      boolean that_present_insurerId = true;
60744
      if (this_present_insurerId || that_present_insurerId) {
60807
      if (this_present_insurerId || that_present_insurerId) {
60745
        if (!(this_present_insurerId && that_present_insurerId))
60808
        if (!(this_present_insurerId && that_present_insurerId))
60746
          return false;
60809
          return false;
Line 60781... Line 60844...
60781
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
60844
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
60782
        if (lastComparison != 0) {
60845
        if (lastComparison != 0) {
60783
          return lastComparison;
60846
          return lastComparison;
60784
        }
60847
        }
60785
      }
60848
      }
-
 
60849
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
-
 
60850
      if (lastComparison != 0) {
-
 
60851
        return lastComparison;
-
 
60852
      }
-
 
60853
      if (isSetPrice()) {
-
 
60854
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);
-
 
60855
        if (lastComparison != 0) {
-
 
60856
          return lastComparison;
-
 
60857
        }
-
 
60858
      }
60786
      lastComparison = Boolean.valueOf(isSetInsurerId()).compareTo(typedOther.isSetInsurerId());
60859
      lastComparison = Boolean.valueOf(isSetInsurerId()).compareTo(typedOther.isSetInsurerId());
60787
      if (lastComparison != 0) {
60860
      if (lastComparison != 0) {
60788
        return lastComparison;
60861
        return lastComparison;
60789
      }
60862
      }
60790
      if (isSetInsurerId()) {
60863
      if (isSetInsurerId()) {
Line 60826... Line 60899...
60826
              setItemIdIsSet(true);
60899
              setItemIdIsSet(true);
60827
            } else { 
60900
            } else { 
60828
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60901
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60829
            }
60902
            }
60830
            break;
60903
            break;
-
 
60904
          case 2: // PRICE
-
 
60905
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
60906
              this.price = iprot.readDouble();
-
 
60907
              setPriceIsSet(true);
-
 
60908
            } else { 
-
 
60909
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
60910
            }
-
 
60911
            break;
60831
          case 2: // INSURER_ID
60912
          case 3: // INSURER_ID
60832
            if (field.type == org.apache.thrift.protocol.TType.I64) {
60913
            if (field.type == org.apache.thrift.protocol.TType.I64) {
60833
              this.insurerId = iprot.readI64();
60914
              this.insurerId = iprot.readI64();
60834
              setInsurerIdIsSet(true);
60915
              setInsurerIdIsSet(true);
60835
            } else { 
60916
            } else { 
60836
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60917
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60837
            }
60918
            }
60838
            break;
60919
            break;
60839
          case 3: // QUANTITY
60920
          case 4: // QUANTITY
60840
            if (field.type == org.apache.thrift.protocol.TType.I64) {
60921
            if (field.type == org.apache.thrift.protocol.TType.I64) {
60841
              this.quantity = iprot.readI64();
60922
              this.quantity = iprot.readI64();
60842
              setQuantityIsSet(true);
60923
              setQuantityIsSet(true);
60843
            } else { 
60924
            } else { 
60844
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60925
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 60858... Line 60939...
60858
 
60939
 
60859
      oprot.writeStructBegin(STRUCT_DESC);
60940
      oprot.writeStructBegin(STRUCT_DESC);
60860
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
60941
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
60861
      oprot.writeI64(this.itemId);
60942
      oprot.writeI64(this.itemId);
60862
      oprot.writeFieldEnd();
60943
      oprot.writeFieldEnd();
-
 
60944
      oprot.writeFieldBegin(PRICE_FIELD_DESC);
-
 
60945
      oprot.writeDouble(this.price);
-
 
60946
      oprot.writeFieldEnd();
60863
      oprot.writeFieldBegin(INSURER_ID_FIELD_DESC);
60947
      oprot.writeFieldBegin(INSURER_ID_FIELD_DESC);
60864
      oprot.writeI64(this.insurerId);
60948
      oprot.writeI64(this.insurerId);
60865
      oprot.writeFieldEnd();
60949
      oprot.writeFieldEnd();
60866
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
60950
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
60867
      oprot.writeI64(this.quantity);
60951
      oprot.writeI64(this.quantity);
Line 60877... Line 60961...
60877
 
60961
 
60878
      sb.append("itemId:");
60962
      sb.append("itemId:");
60879
      sb.append(this.itemId);
60963
      sb.append(this.itemId);
60880
      first = false;
60964
      first = false;
60881
      if (!first) sb.append(", ");
60965
      if (!first) sb.append(", ");
-
 
60966
      sb.append("price:");
-
 
60967
      sb.append(this.price);
-
 
60968
      first = false;
-
 
60969
      if (!first) sb.append(", ");
60882
      sb.append("insurerId:");
60970
      sb.append("insurerId:");
60883
      sb.append(this.insurerId);
60971
      sb.append(this.insurerId);
60884
      first = false;
60972
      first = false;
60885
      if (!first) sb.append(", ");
60973
      if (!first) sb.append(", ");
60886
      sb.append("quantity:");
60974
      sb.append("quantity:");