Subversion Repositories SmartDukaan

Rev

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

Rev 6921 Rev 6962
Line 378... Line 378...
378
 
378
 
379
    public Insurer getInsurer(long insurerId) throws org.apache.thrift.TException;
379
    public Insurer getInsurer(long insurerId) throws org.apache.thrift.TException;
380
 
380
 
381
    public List<Insurer> getAllInsurers() throws org.apache.thrift.TException;
381
    public List<Insurer> getAllInsurers() throws org.apache.thrift.TException;
382
 
382
 
-
 
383
    public void updateInsuranceDeclaredAmount(long insurerId, double amount) throws org.apache.thrift.TException;
-
 
384
 
383
  }
385
  }
384
 
386
 
385
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
387
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
386
 
388
 
387
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
389
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 546... Line 548...
546
 
548
 
547
    public void getInsurer(long insurerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInsurer_call> resultHandler) throws org.apache.thrift.TException;
549
    public void getInsurer(long insurerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInsurer_call> resultHandler) throws org.apache.thrift.TException;
548
 
550
 
549
    public void getAllInsurers(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllInsurers_call> resultHandler) throws org.apache.thrift.TException;
551
    public void getAllInsurers(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllInsurers_call> resultHandler) throws org.apache.thrift.TException;
550
 
552
 
-
 
553
    public void updateInsuranceDeclaredAmount(long insurerId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateInsuranceDeclaredAmount_call> resultHandler) throws org.apache.thrift.TException;
-
 
554
 
551
  }
555
  }
552
 
556
 
553
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
557
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
554
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
558
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
555
      public Factory() {}
559
      public Factory() {}
Line 2585... Line 2589...
2585
        return result.success;
2589
        return result.success;
2586
      }
2590
      }
2587
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
2591
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
2588
    }
2592
    }
2589
 
2593
 
-
 
2594
    public void updateInsuranceDeclaredAmount(long insurerId, double amount) throws org.apache.thrift.TException
-
 
2595
    {
-
 
2596
      send_updateInsuranceDeclaredAmount(insurerId, amount);
-
 
2597
      recv_updateInsuranceDeclaredAmount();
-
 
2598
    }
-
 
2599
 
-
 
2600
    public void send_updateInsuranceDeclaredAmount(long insurerId, double amount) throws org.apache.thrift.TException
-
 
2601
    {
-
 
2602
      updateInsuranceDeclaredAmount_args args = new updateInsuranceDeclaredAmount_args();
-
 
2603
      args.setInsurerId(insurerId);
-
 
2604
      args.setAmount(amount);
-
 
2605
      sendBase("updateInsuranceDeclaredAmount", args);
-
 
2606
    }
-
 
2607
 
-
 
2608
    public void recv_updateInsuranceDeclaredAmount() throws org.apache.thrift.TException
-
 
2609
    {
-
 
2610
      updateInsuranceDeclaredAmount_result result = new updateInsuranceDeclaredAmount_result();
-
 
2611
      receiveBase(result, "updateInsuranceDeclaredAmount");
-
 
2612
      return;
-
 
2613
    }
-
 
2614
 
2590
  }
2615
  }
2591
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2616
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2592
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2617
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2593
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2618
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2594
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2619
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5341... Line 5366...
5341
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5366
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5342
        return (new Client(prot)).recv_getAllInsurers();
5367
        return (new Client(prot)).recv_getAllInsurers();
5343
      }
5368
      }
5344
    }
5369
    }
5345
 
5370
 
-
 
5371
    public void updateInsuranceDeclaredAmount(long insurerId, double amount, org.apache.thrift.async.AsyncMethodCallback<updateInsuranceDeclaredAmount_call> resultHandler) throws org.apache.thrift.TException {
-
 
5372
      checkReady();
-
 
5373
      updateInsuranceDeclaredAmount_call method_call = new updateInsuranceDeclaredAmount_call(insurerId, amount, resultHandler, this, ___protocolFactory, ___transport);
-
 
5374
      this.___currentMethod = method_call;
-
 
5375
      ___manager.call(method_call);
-
 
5376
    }
-
 
5377
 
-
 
5378
    public static class updateInsuranceDeclaredAmount_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5379
      private long insurerId;
-
 
5380
      private double amount;
-
 
5381
      public updateInsuranceDeclaredAmount_call(long insurerId, double amount, org.apache.thrift.async.AsyncMethodCallback<updateInsuranceDeclaredAmount_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 {
-
 
5382
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5383
        this.insurerId = insurerId;
-
 
5384
        this.amount = amount;
-
 
5385
      }
-
 
5386
 
-
 
5387
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5388
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInsuranceDeclaredAmount", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5389
        updateInsuranceDeclaredAmount_args args = new updateInsuranceDeclaredAmount_args();
-
 
5390
        args.setInsurerId(insurerId);
-
 
5391
        args.setAmount(amount);
-
 
5392
        args.write(prot);
-
 
5393
        prot.writeMessageEnd();
-
 
5394
      }
-
 
5395
 
-
 
5396
      public void getResult() throws org.apache.thrift.TException {
-
 
5397
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5398
          throw new IllegalStateException("Method call not finished!");
-
 
5399
        }
-
 
5400
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5401
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5402
        (new Client(prot)).recv_updateInsuranceDeclaredAmount();
-
 
5403
      }
-
 
5404
    }
-
 
5405
 
5346
  }
5406
  }
5347
 
5407
 
5348
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5408
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5349
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5409
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5350
    public Processor(I iface) {
5410
    public Processor(I iface) {
Line 5436... Line 5496...
5436
      processMap.put("getAllIgnoredInventoryUpdateItemsList", new getAllIgnoredInventoryUpdateItemsList());
5496
      processMap.put("getAllIgnoredInventoryUpdateItemsList", new getAllIgnoredInventoryUpdateItemsList());
5437
      processMap.put("getAllAliveItems", new getAllAliveItems());
5497
      processMap.put("getAllAliveItems", new getAllAliveItems());
5438
      processMap.put("getInsuranceAmount", new getInsuranceAmount());
5498
      processMap.put("getInsuranceAmount", new getInsuranceAmount());
5439
      processMap.put("getInsurer", new getInsurer());
5499
      processMap.put("getInsurer", new getInsurer());
5440
      processMap.put("getAllInsurers", new getAllInsurers());
5500
      processMap.put("getAllInsurers", new getAllInsurers());
-
 
5501
      processMap.put("updateInsuranceDeclaredAmount", new updateInsuranceDeclaredAmount());
5441
      return processMap;
5502
      return processMap;
5442
    }
5503
    }
5443
 
5504
 
5444
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
5505
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
5445
      public addItem() {
5506
      public addItem() {
Line 6929... Line 6990...
6929
        result.success = iface.getAllInsurers();
6990
        result.success = iface.getAllInsurers();
6930
        return result;
6991
        return result;
6931
      }
6992
      }
6932
    }
6993
    }
6933
 
6994
 
-
 
6995
    private static class updateInsuranceDeclaredAmount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInsuranceDeclaredAmount_args> {
-
 
6996
      public updateInsuranceDeclaredAmount() {
-
 
6997
        super("updateInsuranceDeclaredAmount");
-
 
6998
      }
-
 
6999
 
-
 
7000
      protected updateInsuranceDeclaredAmount_args getEmptyArgsInstance() {
-
 
7001
        return new updateInsuranceDeclaredAmount_args();
-
 
7002
      }
-
 
7003
 
-
 
7004
      protected updateInsuranceDeclaredAmount_result getResult(I iface, updateInsuranceDeclaredAmount_args args) throws org.apache.thrift.TException {
-
 
7005
        updateInsuranceDeclaredAmount_result result = new updateInsuranceDeclaredAmount_result();
-
 
7006
        iface.updateInsuranceDeclaredAmount(args.insurerId, args.amount);
-
 
7007
        return result;
-
 
7008
      }
-
 
7009
    }
-
 
7010
 
6934
  }
7011
  }
6935
 
7012
 
6936
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
7013
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
6937
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
7014
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
6938
 
7015
 
Line 62389... Line 62466...
62389
      sb.append(")");
62466
      sb.append(")");
62390
      return sb.toString();
62467
      return sb.toString();
62391
    }
62468
    }
62392
 
62469
 
62393
    public void validate() throws org.apache.thrift.TException {
62470
    public void validate() throws org.apache.thrift.TException {
-
 
62471
      // check for required fields
-
 
62472
    }
-
 
62473
 
-
 
62474
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
62475
      try {
-
 
62476
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
62477
      } catch (org.apache.thrift.TException te) {
-
 
62478
        throw new java.io.IOException(te);
-
 
62479
      }
-
 
62480
    }
-
 
62481
 
-
 
62482
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
62483
      try {
-
 
62484
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
62485
      } catch (org.apache.thrift.TException te) {
-
 
62486
        throw new java.io.IOException(te);
-
 
62487
      }
-
 
62488
    }
-
 
62489
 
-
 
62490
  }
-
 
62491
 
-
 
62492
  public static class updateInsuranceDeclaredAmount_args implements org.apache.thrift.TBase<updateInsuranceDeclaredAmount_args, updateInsuranceDeclaredAmount_args._Fields>, java.io.Serializable, Cloneable   {
-
 
62493
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInsuranceDeclaredAmount_args");
-
 
62494
 
-
 
62495
    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)1);
-
 
62496
    private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
-
 
62497
 
-
 
62498
    private long insurerId; // required
-
 
62499
    private double amount; // required
-
 
62500
 
-
 
62501
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
62502
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
62503
      INSURER_ID((short)1, "insurerId"),
-
 
62504
      AMOUNT((short)2, "amount");
-
 
62505
 
-
 
62506
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
62507
 
-
 
62508
      static {
-
 
62509
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
62510
          byName.put(field.getFieldName(), field);
-
 
62511
        }
-
 
62512
      }
-
 
62513
 
-
 
62514
      /**
-
 
62515
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
62516
       */
-
 
62517
      public static _Fields findByThriftId(int fieldId) {
-
 
62518
        switch(fieldId) {
-
 
62519
          case 1: // INSURER_ID
-
 
62520
            return INSURER_ID;
-
 
62521
          case 2: // AMOUNT
-
 
62522
            return AMOUNT;
-
 
62523
          default:
-
 
62524
            return null;
-
 
62525
        }
-
 
62526
      }
-
 
62527
 
-
 
62528
      /**
-
 
62529
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
62530
       * if it is not found.
-
 
62531
       */
-
 
62532
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
62533
        _Fields fields = findByThriftId(fieldId);
-
 
62534
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
62535
        return fields;
-
 
62536
      }
-
 
62537
 
-
 
62538
      /**
-
 
62539
       * Find the _Fields constant that matches name, or null if its not found.
-
 
62540
       */
-
 
62541
      public static _Fields findByName(String name) {
-
 
62542
        return byName.get(name);
-
 
62543
      }
-
 
62544
 
-
 
62545
      private final short _thriftId;
-
 
62546
      private final String _fieldName;
-
 
62547
 
-
 
62548
      _Fields(short thriftId, String fieldName) {
-
 
62549
        _thriftId = thriftId;
-
 
62550
        _fieldName = fieldName;
-
 
62551
      }
-
 
62552
 
-
 
62553
      public short getThriftFieldId() {
-
 
62554
        return _thriftId;
-
 
62555
      }
-
 
62556
 
-
 
62557
      public String getFieldName() {
-
 
62558
        return _fieldName;
-
 
62559
      }
-
 
62560
    }
-
 
62561
 
-
 
62562
    // isset id assignments
-
 
62563
    private static final int __INSURERID_ISSET_ID = 0;
-
 
62564
    private static final int __AMOUNT_ISSET_ID = 1;
-
 
62565
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
62566
 
-
 
62567
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
62568
    static {
-
 
62569
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
62570
      tmpMap.put(_Fields.INSURER_ID, new org.apache.thrift.meta_data.FieldMetaData("insurerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
62571
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
62572
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
62573
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
62574
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
62575
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInsuranceDeclaredAmount_args.class, metaDataMap);
-
 
62576
    }
-
 
62577
 
-
 
62578
    public updateInsuranceDeclaredAmount_args() {
-
 
62579
    }
-
 
62580
 
-
 
62581
    public updateInsuranceDeclaredAmount_args(
-
 
62582
      long insurerId,
-
 
62583
      double amount)
-
 
62584
    {
-
 
62585
      this();
-
 
62586
      this.insurerId = insurerId;
-
 
62587
      setInsurerIdIsSet(true);
-
 
62588
      this.amount = amount;
-
 
62589
      setAmountIsSet(true);
-
 
62590
    }
-
 
62591
 
-
 
62592
    /**
-
 
62593
     * Performs a deep copy on <i>other</i>.
-
 
62594
     */
-
 
62595
    public updateInsuranceDeclaredAmount_args(updateInsuranceDeclaredAmount_args other) {
-
 
62596
      __isset_bit_vector.clear();
-
 
62597
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
62598
      this.insurerId = other.insurerId;
-
 
62599
      this.amount = other.amount;
-
 
62600
    }
-
 
62601
 
-
 
62602
    public updateInsuranceDeclaredAmount_args deepCopy() {
-
 
62603
      return new updateInsuranceDeclaredAmount_args(this);
-
 
62604
    }
-
 
62605
 
-
 
62606
    @Override
-
 
62607
    public void clear() {
-
 
62608
      setInsurerIdIsSet(false);
-
 
62609
      this.insurerId = 0;
-
 
62610
      setAmountIsSet(false);
-
 
62611
      this.amount = 0.0;
-
 
62612
    }
-
 
62613
 
-
 
62614
    public long getInsurerId() {
-
 
62615
      return this.insurerId;
-
 
62616
    }
-
 
62617
 
-
 
62618
    public void setInsurerId(long insurerId) {
-
 
62619
      this.insurerId = insurerId;
-
 
62620
      setInsurerIdIsSet(true);
-
 
62621
    }
-
 
62622
 
-
 
62623
    public void unsetInsurerId() {
-
 
62624
      __isset_bit_vector.clear(__INSURERID_ISSET_ID);
-
 
62625
    }
-
 
62626
 
-
 
62627
    /** Returns true if field insurerId is set (has been assigned a value) and false otherwise */
-
 
62628
    public boolean isSetInsurerId() {
-
 
62629
      return __isset_bit_vector.get(__INSURERID_ISSET_ID);
-
 
62630
    }
-
 
62631
 
-
 
62632
    public void setInsurerIdIsSet(boolean value) {
-
 
62633
      __isset_bit_vector.set(__INSURERID_ISSET_ID, value);
-
 
62634
    }
-
 
62635
 
-
 
62636
    public double getAmount() {
-
 
62637
      return this.amount;
-
 
62638
    }
-
 
62639
 
-
 
62640
    public void setAmount(double amount) {
-
 
62641
      this.amount = amount;
-
 
62642
      setAmountIsSet(true);
-
 
62643
    }
-
 
62644
 
-
 
62645
    public void unsetAmount() {
-
 
62646
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
-
 
62647
    }
-
 
62648
 
-
 
62649
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
-
 
62650
    public boolean isSetAmount() {
-
 
62651
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
-
 
62652
    }
-
 
62653
 
-
 
62654
    public void setAmountIsSet(boolean value) {
-
 
62655
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
-
 
62656
    }
-
 
62657
 
-
 
62658
    public void setFieldValue(_Fields field, Object value) {
-
 
62659
      switch (field) {
-
 
62660
      case INSURER_ID:
-
 
62661
        if (value == null) {
-
 
62662
          unsetInsurerId();
-
 
62663
        } else {
-
 
62664
          setInsurerId((Long)value);
-
 
62665
        }
-
 
62666
        break;
-
 
62667
 
-
 
62668
      case AMOUNT:
-
 
62669
        if (value == null) {
-
 
62670
          unsetAmount();
-
 
62671
        } else {
-
 
62672
          setAmount((Double)value);
-
 
62673
        }
-
 
62674
        break;
-
 
62675
 
-
 
62676
      }
-
 
62677
    }
-
 
62678
 
-
 
62679
    public Object getFieldValue(_Fields field) {
-
 
62680
      switch (field) {
-
 
62681
      case INSURER_ID:
-
 
62682
        return Long.valueOf(getInsurerId());
-
 
62683
 
-
 
62684
      case AMOUNT:
-
 
62685
        return Double.valueOf(getAmount());
-
 
62686
 
-
 
62687
      }
-
 
62688
      throw new IllegalStateException();
-
 
62689
    }
-
 
62690
 
-
 
62691
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
62692
    public boolean isSet(_Fields field) {
-
 
62693
      if (field == null) {
-
 
62694
        throw new IllegalArgumentException();
-
 
62695
      }
-
 
62696
 
-
 
62697
      switch (field) {
-
 
62698
      case INSURER_ID:
-
 
62699
        return isSetInsurerId();
-
 
62700
      case AMOUNT:
-
 
62701
        return isSetAmount();
-
 
62702
      }
-
 
62703
      throw new IllegalStateException();
-
 
62704
    }
-
 
62705
 
-
 
62706
    @Override
-
 
62707
    public boolean equals(Object that) {
-
 
62708
      if (that == null)
-
 
62709
        return false;
-
 
62710
      if (that instanceof updateInsuranceDeclaredAmount_args)
-
 
62711
        return this.equals((updateInsuranceDeclaredAmount_args)that);
-
 
62712
      return false;
-
 
62713
    }
-
 
62714
 
-
 
62715
    public boolean equals(updateInsuranceDeclaredAmount_args that) {
-
 
62716
      if (that == null)
-
 
62717
        return false;
-
 
62718
 
-
 
62719
      boolean this_present_insurerId = true;
-
 
62720
      boolean that_present_insurerId = true;
-
 
62721
      if (this_present_insurerId || that_present_insurerId) {
-
 
62722
        if (!(this_present_insurerId && that_present_insurerId))
-
 
62723
          return false;
-
 
62724
        if (this.insurerId != that.insurerId)
-
 
62725
          return false;
-
 
62726
      }
-
 
62727
 
-
 
62728
      boolean this_present_amount = true;
-
 
62729
      boolean that_present_amount = true;
-
 
62730
      if (this_present_amount || that_present_amount) {
-
 
62731
        if (!(this_present_amount && that_present_amount))
-
 
62732
          return false;
-
 
62733
        if (this.amount != that.amount)
-
 
62734
          return false;
-
 
62735
      }
-
 
62736
 
-
 
62737
      return true;
-
 
62738
    }
-
 
62739
 
-
 
62740
    @Override
-
 
62741
    public int hashCode() {
-
 
62742
      return 0;
-
 
62743
    }
-
 
62744
 
-
 
62745
    public int compareTo(updateInsuranceDeclaredAmount_args other) {
-
 
62746
      if (!getClass().equals(other.getClass())) {
-
 
62747
        return getClass().getName().compareTo(other.getClass().getName());
-
 
62748
      }
-
 
62749
 
-
 
62750
      int lastComparison = 0;
-
 
62751
      updateInsuranceDeclaredAmount_args typedOther = (updateInsuranceDeclaredAmount_args)other;
-
 
62752
 
-
 
62753
      lastComparison = Boolean.valueOf(isSetInsurerId()).compareTo(typedOther.isSetInsurerId());
-
 
62754
      if (lastComparison != 0) {
-
 
62755
        return lastComparison;
-
 
62756
      }
-
 
62757
      if (isSetInsurerId()) {
-
 
62758
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insurerId, typedOther.insurerId);
-
 
62759
        if (lastComparison != 0) {
-
 
62760
          return lastComparison;
-
 
62761
        }
-
 
62762
      }
-
 
62763
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
-
 
62764
      if (lastComparison != 0) {
-
 
62765
        return lastComparison;
-
 
62766
      }
-
 
62767
      if (isSetAmount()) {
-
 
62768
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
-
 
62769
        if (lastComparison != 0) {
-
 
62770
          return lastComparison;
-
 
62771
        }
-
 
62772
      }
-
 
62773
      return 0;
-
 
62774
    }
-
 
62775
 
-
 
62776
    public _Fields fieldForId(int fieldId) {
-
 
62777
      return _Fields.findByThriftId(fieldId);
-
 
62778
    }
-
 
62779
 
-
 
62780
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
62781
      org.apache.thrift.protocol.TField field;
-
 
62782
      iprot.readStructBegin();
-
 
62783
      while (true)
-
 
62784
      {
-
 
62785
        field = iprot.readFieldBegin();
-
 
62786
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
62787
          break;
-
 
62788
        }
-
 
62789
        switch (field.id) {
-
 
62790
          case 1: // INSURER_ID
-
 
62791
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
62792
              this.insurerId = iprot.readI64();
-
 
62793
              setInsurerIdIsSet(true);
-
 
62794
            } else { 
-
 
62795
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62796
            }
-
 
62797
            break;
-
 
62798
          case 2: // AMOUNT
-
 
62799
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
62800
              this.amount = iprot.readDouble();
-
 
62801
              setAmountIsSet(true);
-
 
62802
            } else { 
-
 
62803
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62804
            }
-
 
62805
            break;
-
 
62806
          default:
-
 
62807
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62808
        }
-
 
62809
        iprot.readFieldEnd();
-
 
62810
      }
-
 
62811
      iprot.readStructEnd();
-
 
62812
      validate();
-
 
62813
    }
-
 
62814
 
-
 
62815
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
62816
      validate();
-
 
62817
 
-
 
62818
      oprot.writeStructBegin(STRUCT_DESC);
-
 
62819
      oprot.writeFieldBegin(INSURER_ID_FIELD_DESC);
-
 
62820
      oprot.writeI64(this.insurerId);
-
 
62821
      oprot.writeFieldEnd();
-
 
62822
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
-
 
62823
      oprot.writeDouble(this.amount);
-
 
62824
      oprot.writeFieldEnd();
-
 
62825
      oprot.writeFieldStop();
-
 
62826
      oprot.writeStructEnd();
-
 
62827
    }
-
 
62828
 
-
 
62829
    @Override
-
 
62830
    public String toString() {
-
 
62831
      StringBuilder sb = new StringBuilder("updateInsuranceDeclaredAmount_args(");
-
 
62832
      boolean first = true;
-
 
62833
 
-
 
62834
      sb.append("insurerId:");
-
 
62835
      sb.append(this.insurerId);
-
 
62836
      first = false;
-
 
62837
      if (!first) sb.append(", ");
-
 
62838
      sb.append("amount:");
-
 
62839
      sb.append(this.amount);
-
 
62840
      first = false;
-
 
62841
      sb.append(")");
-
 
62842
      return sb.toString();
-
 
62843
    }
-
 
62844
 
-
 
62845
    public void validate() throws org.apache.thrift.TException {
-
 
62846
      // check for required fields
-
 
62847
    }
-
 
62848
 
-
 
62849
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
62850
      try {
-
 
62851
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
62852
      } catch (org.apache.thrift.TException te) {
-
 
62853
        throw new java.io.IOException(te);
-
 
62854
      }
-
 
62855
    }
-
 
62856
 
-
 
62857
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
62858
      try {
-
 
62859
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
62860
        __isset_bit_vector = new BitSet(1);
-
 
62861
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
62862
      } catch (org.apache.thrift.TException te) {
-
 
62863
        throw new java.io.IOException(te);
-
 
62864
      }
-
 
62865
    }
-
 
62866
 
-
 
62867
  }
-
 
62868
 
-
 
62869
  public static class updateInsuranceDeclaredAmount_result implements org.apache.thrift.TBase<updateInsuranceDeclaredAmount_result, updateInsuranceDeclaredAmount_result._Fields>, java.io.Serializable, Cloneable   {
-
 
62870
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInsuranceDeclaredAmount_result");
-
 
62871
 
-
 
62872
 
-
 
62873
 
-
 
62874
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
62875
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
62876
;
-
 
62877
 
-
 
62878
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
62879
 
-
 
62880
      static {
-
 
62881
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
62882
          byName.put(field.getFieldName(), field);
-
 
62883
        }
-
 
62884
      }
-
 
62885
 
-
 
62886
      /**
-
 
62887
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
62888
       */
-
 
62889
      public static _Fields findByThriftId(int fieldId) {
-
 
62890
        switch(fieldId) {
-
 
62891
          default:
-
 
62892
            return null;
-
 
62893
        }
-
 
62894
      }
-
 
62895
 
-
 
62896
      /**
-
 
62897
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
62898
       * if it is not found.
-
 
62899
       */
-
 
62900
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
62901
        _Fields fields = findByThriftId(fieldId);
-
 
62902
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
62903
        return fields;
-
 
62904
      }
-
 
62905
 
-
 
62906
      /**
-
 
62907
       * Find the _Fields constant that matches name, or null if its not found.
-
 
62908
       */
-
 
62909
      public static _Fields findByName(String name) {
-
 
62910
        return byName.get(name);
-
 
62911
      }
-
 
62912
 
-
 
62913
      private final short _thriftId;
-
 
62914
      private final String _fieldName;
-
 
62915
 
-
 
62916
      _Fields(short thriftId, String fieldName) {
-
 
62917
        _thriftId = thriftId;
-
 
62918
        _fieldName = fieldName;
-
 
62919
      }
-
 
62920
 
-
 
62921
      public short getThriftFieldId() {
-
 
62922
        return _thriftId;
-
 
62923
      }
-
 
62924
 
-
 
62925
      public String getFieldName() {
-
 
62926
        return _fieldName;
-
 
62927
      }
-
 
62928
    }
-
 
62929
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
62930
    static {
-
 
62931
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
62932
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
62933
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInsuranceDeclaredAmount_result.class, metaDataMap);
-
 
62934
    }
-
 
62935
 
-
 
62936
    public updateInsuranceDeclaredAmount_result() {
-
 
62937
    }
-
 
62938
 
-
 
62939
    /**
-
 
62940
     * Performs a deep copy on <i>other</i>.
-
 
62941
     */
-
 
62942
    public updateInsuranceDeclaredAmount_result(updateInsuranceDeclaredAmount_result other) {
-
 
62943
    }
-
 
62944
 
-
 
62945
    public updateInsuranceDeclaredAmount_result deepCopy() {
-
 
62946
      return new updateInsuranceDeclaredAmount_result(this);
-
 
62947
    }
-
 
62948
 
-
 
62949
    @Override
-
 
62950
    public void clear() {
-
 
62951
    }
-
 
62952
 
-
 
62953
    public void setFieldValue(_Fields field, Object value) {
-
 
62954
      switch (field) {
-
 
62955
      }
-
 
62956
    }
-
 
62957
 
-
 
62958
    public Object getFieldValue(_Fields field) {
-
 
62959
      switch (field) {
-
 
62960
      }
-
 
62961
      throw new IllegalStateException();
-
 
62962
    }
-
 
62963
 
-
 
62964
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
62965
    public boolean isSet(_Fields field) {
-
 
62966
      if (field == null) {
-
 
62967
        throw new IllegalArgumentException();
-
 
62968
      }
-
 
62969
 
-
 
62970
      switch (field) {
-
 
62971
      }
-
 
62972
      throw new IllegalStateException();
-
 
62973
    }
-
 
62974
 
-
 
62975
    @Override
-
 
62976
    public boolean equals(Object that) {
-
 
62977
      if (that == null)
-
 
62978
        return false;
-
 
62979
      if (that instanceof updateInsuranceDeclaredAmount_result)
-
 
62980
        return this.equals((updateInsuranceDeclaredAmount_result)that);
-
 
62981
      return false;
-
 
62982
    }
-
 
62983
 
-
 
62984
    public boolean equals(updateInsuranceDeclaredAmount_result that) {
-
 
62985
      if (that == null)
-
 
62986
        return false;
-
 
62987
 
-
 
62988
      return true;
-
 
62989
    }
-
 
62990
 
-
 
62991
    @Override
-
 
62992
    public int hashCode() {
-
 
62993
      return 0;
-
 
62994
    }
-
 
62995
 
-
 
62996
    public int compareTo(updateInsuranceDeclaredAmount_result other) {
-
 
62997
      if (!getClass().equals(other.getClass())) {
-
 
62998
        return getClass().getName().compareTo(other.getClass().getName());
-
 
62999
      }
-
 
63000
 
-
 
63001
      int lastComparison = 0;
-
 
63002
      updateInsuranceDeclaredAmount_result typedOther = (updateInsuranceDeclaredAmount_result)other;
-
 
63003
 
-
 
63004
      return 0;
-
 
63005
    }
-
 
63006
 
-
 
63007
    public _Fields fieldForId(int fieldId) {
-
 
63008
      return _Fields.findByThriftId(fieldId);
-
 
63009
    }
-
 
63010
 
-
 
63011
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
63012
      org.apache.thrift.protocol.TField field;
-
 
63013
      iprot.readStructBegin();
-
 
63014
      while (true)
-
 
63015
      {
-
 
63016
        field = iprot.readFieldBegin();
-
 
63017
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
63018
          break;
-
 
63019
        }
-
 
63020
        switch (field.id) {
-
 
63021
          default:
-
 
63022
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
63023
        }
-
 
63024
        iprot.readFieldEnd();
-
 
63025
      }
-
 
63026
      iprot.readStructEnd();
-
 
63027
      validate();
-
 
63028
    }
-
 
63029
 
-
 
63030
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
63031
      oprot.writeStructBegin(STRUCT_DESC);
-
 
63032
 
-
 
63033
      oprot.writeFieldStop();
-
 
63034
      oprot.writeStructEnd();
-
 
63035
    }
-
 
63036
 
-
 
63037
    @Override
-
 
63038
    public String toString() {
-
 
63039
      StringBuilder sb = new StringBuilder("updateInsuranceDeclaredAmount_result(");
-
 
63040
      boolean first = true;
-
 
63041
 
-
 
63042
      sb.append(")");
-
 
63043
      return sb.toString();
-
 
63044
    }
-
 
63045
 
-
 
63046
    public void validate() throws org.apache.thrift.TException {
62394
      // check for required fields
63047
      // check for required fields
62395
    }
63048
    }
62396
 
63049
 
62397
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
63050
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
62398
      try {
63051
      try {