Subversion Repositories SmartDukaan

Rev

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

Rev 23152 Rev 23307
Line 626... Line 626...
626
 
626
 
627
    public Map<Long,GstRate> getStateTaxRate(List<Long> itemIds, long stateId) throws org.apache.thrift.TException;
627
    public Map<Long,GstRate> getStateTaxRate(List<Long> itemIds, long stateId) throws org.apache.thrift.TException;
628
 
628
 
629
    public Map<Long,Double> getIgstTaxRate(List<Long> itemIds) throws org.apache.thrift.TException;
629
    public Map<Long,Double> getIgstTaxRate(List<Long> itemIds) throws org.apache.thrift.TException;
630
 
630
 
-
 
631
    public void persistStateGstRate(StateGstRate stateGstRate) throws org.apache.thrift.TException;
-
 
632
 
631
    public Map<String,GstRate> getInterStateGstRates() throws CatalogServiceException, org.apache.thrift.TException;
633
    public Map<String,GstRate> getInterStateGstRates() throws CatalogServiceException, org.apache.thrift.TException;
632
 
634
 
633
    public List<CategoryHsnCode> getHsnCodesByCategory(long categoryId) throws CatalogServiceException, org.apache.thrift.TException;
635
    public List<CategoryHsnCode> getHsnCodesByCategory(long categoryId) throws CatalogServiceException, org.apache.thrift.TException;
634
 
636
 
635
    public Map<Long,Double> getAllFofoDeals(List<Long> itemIds, List<Long> tagIds) throws org.apache.thrift.TException;
637
    public Map<Long,Double> getAllFofoDeals(List<Long> itemIds, List<Long> tagIds) throws org.apache.thrift.TException;
Line 1042... Line 1044...
1042
 
1044
 
1043
    public void getStateTaxRate(List<Long> itemIds, long stateId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStateTaxRate_call> resultHandler) throws org.apache.thrift.TException;
1045
    public void getStateTaxRate(List<Long> itemIds, long stateId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStateTaxRate_call> resultHandler) throws org.apache.thrift.TException;
1044
 
1046
 
1045
    public void getIgstTaxRate(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgstTaxRate_call> resultHandler) throws org.apache.thrift.TException;
1047
    public void getIgstTaxRate(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgstTaxRate_call> resultHandler) throws org.apache.thrift.TException;
1046
 
1048
 
-
 
1049
    public void persistStateGstRate(StateGstRate stateGstRate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.persistStateGstRate_call> resultHandler) throws org.apache.thrift.TException;
-
 
1050
 
1047
    public void getInterStateGstRates(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInterStateGstRates_call> resultHandler) throws org.apache.thrift.TException;
1051
    public void getInterStateGstRates(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInterStateGstRates_call> resultHandler) throws org.apache.thrift.TException;
1048
 
1052
 
1049
    public void getHsnCodesByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHsnCodesByCategory_call> resultHandler) throws org.apache.thrift.TException;
1053
    public void getHsnCodesByCategory(long categoryId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHsnCodesByCategory_call> resultHandler) throws org.apache.thrift.TException;
1050
 
1054
 
1051
    public void getAllFofoDeals(List<Long> itemIds, List<Long> tagIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFofoDeals_call> resultHandler) throws org.apache.thrift.TException;
1055
    public void getAllFofoDeals(List<Long> itemIds, List<Long> tagIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFofoDeals_call> resultHandler) throws org.apache.thrift.TException;
Line 5866... Line 5870...
5866
        return result.success;
5870
        return result.success;
5867
      }
5871
      }
5868
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgstTaxRate failed: unknown result");
5872
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgstTaxRate failed: unknown result");
5869
    }
5873
    }
5870
 
5874
 
-
 
5875
    public void persistStateGstRate(StateGstRate stateGstRate) throws org.apache.thrift.TException
-
 
5876
    {
-
 
5877
      send_persistStateGstRate(stateGstRate);
-
 
5878
      recv_persistStateGstRate();
-
 
5879
    }
-
 
5880
 
-
 
5881
    public void send_persistStateGstRate(StateGstRate stateGstRate) throws org.apache.thrift.TException
-
 
5882
    {
-
 
5883
      persistStateGstRate_args args = new persistStateGstRate_args();
-
 
5884
      args.setStateGstRate(stateGstRate);
-
 
5885
      sendBase("persistStateGstRate", args);
-
 
5886
    }
-
 
5887
 
-
 
5888
    public void recv_persistStateGstRate() throws org.apache.thrift.TException
-
 
5889
    {
-
 
5890
      persistStateGstRate_result result = new persistStateGstRate_result();
-
 
5891
      receiveBase(result, "persistStateGstRate");
-
 
5892
      return;
-
 
5893
    }
-
 
5894
 
5871
    public Map<String,GstRate> getInterStateGstRates() throws CatalogServiceException, org.apache.thrift.TException
5895
    public Map<String,GstRate> getInterStateGstRates() throws CatalogServiceException, org.apache.thrift.TException
5872
    {
5896
    {
5873
      send_getInterStateGstRates();
5897
      send_getInterStateGstRates();
5874
      return recv_getInterStateGstRates();
5898
      return recv_getInterStateGstRates();
5875
    }
5899
    }
Line 12611... Line 12635...
12611
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12635
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12612
        return (new Client(prot)).recv_getIgstTaxRate();
12636
        return (new Client(prot)).recv_getIgstTaxRate();
12613
      }
12637
      }
12614
    }
12638
    }
12615
 
12639
 
-
 
12640
    public void persistStateGstRate(StateGstRate stateGstRate, org.apache.thrift.async.AsyncMethodCallback<persistStateGstRate_call> resultHandler) throws org.apache.thrift.TException {
-
 
12641
      checkReady();
-
 
12642
      persistStateGstRate_call method_call = new persistStateGstRate_call(stateGstRate, resultHandler, this, ___protocolFactory, ___transport);
-
 
12643
      this.___currentMethod = method_call;
-
 
12644
      ___manager.call(method_call);
-
 
12645
    }
-
 
12646
 
-
 
12647
    public static class persistStateGstRate_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
12648
      private StateGstRate stateGstRate;
-
 
12649
      public persistStateGstRate_call(StateGstRate stateGstRate, org.apache.thrift.async.AsyncMethodCallback<persistStateGstRate_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 {
-
 
12650
        super(client, protocolFactory, transport, resultHandler, false);
-
 
12651
        this.stateGstRate = stateGstRate;
-
 
12652
      }
-
 
12653
 
-
 
12654
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
12655
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("persistStateGstRate", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
12656
        persistStateGstRate_args args = new persistStateGstRate_args();
-
 
12657
        args.setStateGstRate(stateGstRate);
-
 
12658
        args.write(prot);
-
 
12659
        prot.writeMessageEnd();
-
 
12660
      }
-
 
12661
 
-
 
12662
      public void getResult() throws org.apache.thrift.TException {
-
 
12663
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12664
          throw new IllegalStateException("Method call not finished!");
-
 
12665
        }
-
 
12666
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12667
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12668
        (new Client(prot)).recv_persistStateGstRate();
-
 
12669
      }
-
 
12670
    }
-
 
12671
 
12616
    public void getInterStateGstRates(org.apache.thrift.async.AsyncMethodCallback<getInterStateGstRates_call> resultHandler) throws org.apache.thrift.TException {
12672
    public void getInterStateGstRates(org.apache.thrift.async.AsyncMethodCallback<getInterStateGstRates_call> resultHandler) throws org.apache.thrift.TException {
12617
      checkReady();
12673
      checkReady();
12618
      getInterStateGstRates_call method_call = new getInterStateGstRates_call(resultHandler, this, ___protocolFactory, ___transport);
12674
      getInterStateGstRates_call method_call = new getInterStateGstRates_call(resultHandler, this, ___protocolFactory, ___transport);
12619
      this.___currentMethod = method_call;
12675
      this.___currentMethod = method_call;
12620
      ___manager.call(method_call);
12676
      ___manager.call(method_call);
Line 12923... Line 12979...
12923
      processMap.put("getWarrantyInfoForItem", new getWarrantyInfoForItem());
12979
      processMap.put("getWarrantyInfoForItem", new getWarrantyInfoForItem());
12924
      processMap.put("getWarrantyInfoForItemList", new getWarrantyInfoForItemList());
12980
      processMap.put("getWarrantyInfoForItemList", new getWarrantyInfoForItemList());
12925
      processMap.put("getGstRatesByState", new getGstRatesByState());
12981
      processMap.put("getGstRatesByState", new getGstRatesByState());
12926
      processMap.put("getStateTaxRate", new getStateTaxRate());
12982
      processMap.put("getStateTaxRate", new getStateTaxRate());
12927
      processMap.put("getIgstTaxRate", new getIgstTaxRate());
12983
      processMap.put("getIgstTaxRate", new getIgstTaxRate());
-
 
12984
      processMap.put("persistStateGstRate", new persistStateGstRate());
12928
      processMap.put("getInterStateGstRates", new getInterStateGstRates());
12985
      processMap.put("getInterStateGstRates", new getInterStateGstRates());
12929
      processMap.put("getHsnCodesByCategory", new getHsnCodesByCategory());
12986
      processMap.put("getHsnCodesByCategory", new getHsnCodesByCategory());
12930
      processMap.put("getAllFofoDeals", new getAllFofoDeals());
12987
      processMap.put("getAllFofoDeals", new getAllFofoDeals());
12931
      return processMap;
12988
      return processMap;
12932
    }
12989
    }
Line 16444... Line 16501...
16444
        result.success = iface.getIgstTaxRate(args.itemIds);
16501
        result.success = iface.getIgstTaxRate(args.itemIds);
16445
        return result;
16502
        return result;
16446
      }
16503
      }
16447
    }
16504
    }
16448
 
16505
 
-
 
16506
    private static class persistStateGstRate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, persistStateGstRate_args> {
-
 
16507
      public persistStateGstRate() {
-
 
16508
        super("persistStateGstRate");
-
 
16509
      }
-
 
16510
 
-
 
16511
      protected persistStateGstRate_args getEmptyArgsInstance() {
-
 
16512
        return new persistStateGstRate_args();
-
 
16513
      }
-
 
16514
 
-
 
16515
      protected persistStateGstRate_result getResult(I iface, persistStateGstRate_args args) throws org.apache.thrift.TException {
-
 
16516
        persistStateGstRate_result result = new persistStateGstRate_result();
-
 
16517
        iface.persistStateGstRate(args.stateGstRate);
-
 
16518
        return result;
-
 
16519
      }
-
 
16520
    }
-
 
16521
 
16449
    private static class getInterStateGstRates<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInterStateGstRates_args> {
16522
    private static class getInterStateGstRates<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInterStateGstRates_args> {
16450
      public getInterStateGstRates() {
16523
      public getInterStateGstRates() {
16451
        super("getInterStateGstRates");
16524
        super("getInterStateGstRates");
16452
      }
16525
      }
16453
 
16526
 
Line 40749... Line 40822...
40749
      }
40822
      }
40750
    }
40823
    }
40751
 
40824
 
40752
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40825
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40753
      try {
40826
      try {
-
 
40827
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
40828
        __isset_bit_vector = new BitSet(1);
40754
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40829
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40755
      } catch (org.apache.thrift.TException te) {
40830
      } catch (org.apache.thrift.TException te) {
40756
        throw new java.io.IOException(te);
40831
        throw new java.io.IOException(te);
40757
      }
40832
      }
40758
    }
40833
    }
Line 147009... Line 147084...
147009
      sb.append(")");
147084
      sb.append(")");
147010
      return sb.toString();
147085
      return sb.toString();
147011
    }
147086
    }
147012
 
147087
 
147013
    public void validate() throws org.apache.thrift.TException {
147088
    public void validate() throws org.apache.thrift.TException {
-
 
147089
      // check for required fields
-
 
147090
    }
-
 
147091
 
-
 
147092
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
147093
      try {
-
 
147094
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
147095
      } catch (org.apache.thrift.TException te) {
-
 
147096
        throw new java.io.IOException(te);
-
 
147097
      }
-
 
147098
    }
-
 
147099
 
-
 
147100
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
147101
      try {
-
 
147102
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
147103
      } catch (org.apache.thrift.TException te) {
-
 
147104
        throw new java.io.IOException(te);
-
 
147105
      }
-
 
147106
    }
-
 
147107
 
-
 
147108
  }
-
 
147109
 
-
 
147110
  public static class persistStateGstRate_args implements org.apache.thrift.TBase<persistStateGstRate_args, persistStateGstRate_args._Fields>, java.io.Serializable, Cloneable   {
-
 
147111
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("persistStateGstRate_args");
-
 
147112
 
-
 
147113
    private static final org.apache.thrift.protocol.TField STATE_GST_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("stateGstRate", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
147114
 
-
 
147115
    private StateGstRate stateGstRate; // required
-
 
147116
 
-
 
147117
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
147118
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
147119
      STATE_GST_RATE((short)1, "stateGstRate");
-
 
147120
 
-
 
147121
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
147122
 
-
 
147123
      static {
-
 
147124
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
147125
          byName.put(field.getFieldName(), field);
-
 
147126
        }
-
 
147127
      }
-
 
147128
 
-
 
147129
      /**
-
 
147130
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
147131
       */
-
 
147132
      public static _Fields findByThriftId(int fieldId) {
-
 
147133
        switch(fieldId) {
-
 
147134
          case 1: // STATE_GST_RATE
-
 
147135
            return STATE_GST_RATE;
-
 
147136
          default:
-
 
147137
            return null;
-
 
147138
        }
-
 
147139
      }
-
 
147140
 
-
 
147141
      /**
-
 
147142
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
147143
       * if it is not found.
-
 
147144
       */
-
 
147145
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
147146
        _Fields fields = findByThriftId(fieldId);
-
 
147147
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
147148
        return fields;
-
 
147149
      }
-
 
147150
 
-
 
147151
      /**
-
 
147152
       * Find the _Fields constant that matches name, or null if its not found.
-
 
147153
       */
-
 
147154
      public static _Fields findByName(String name) {
-
 
147155
        return byName.get(name);
-
 
147156
      }
-
 
147157
 
-
 
147158
      private final short _thriftId;
-
 
147159
      private final String _fieldName;
-
 
147160
 
-
 
147161
      _Fields(short thriftId, String fieldName) {
-
 
147162
        _thriftId = thriftId;
-
 
147163
        _fieldName = fieldName;
-
 
147164
      }
-
 
147165
 
-
 
147166
      public short getThriftFieldId() {
-
 
147167
        return _thriftId;
-
 
147168
      }
-
 
147169
 
-
 
147170
      public String getFieldName() {
-
 
147171
        return _fieldName;
-
 
147172
      }
-
 
147173
    }
-
 
147174
 
-
 
147175
    // isset id assignments
-
 
147176
 
-
 
147177
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
147178
    static {
-
 
147179
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
147180
      tmpMap.put(_Fields.STATE_GST_RATE, new org.apache.thrift.meta_data.FieldMetaData("stateGstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
147181
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StateGstRate.class)));
-
 
147182
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
147183
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(persistStateGstRate_args.class, metaDataMap);
-
 
147184
    }
-
 
147185
 
-
 
147186
    public persistStateGstRate_args() {
-
 
147187
    }
-
 
147188
 
-
 
147189
    public persistStateGstRate_args(
-
 
147190
      StateGstRate stateGstRate)
-
 
147191
    {
-
 
147192
      this();
-
 
147193
      this.stateGstRate = stateGstRate;
-
 
147194
    }
-
 
147195
 
-
 
147196
    /**
-
 
147197
     * Performs a deep copy on <i>other</i>.
-
 
147198
     */
-
 
147199
    public persistStateGstRate_args(persistStateGstRate_args other) {
-
 
147200
      if (other.isSetStateGstRate()) {
-
 
147201
        this.stateGstRate = new StateGstRate(other.stateGstRate);
-
 
147202
      }
-
 
147203
    }
-
 
147204
 
-
 
147205
    public persistStateGstRate_args deepCopy() {
-
 
147206
      return new persistStateGstRate_args(this);
-
 
147207
    }
-
 
147208
 
-
 
147209
    @Override
-
 
147210
    public void clear() {
-
 
147211
      this.stateGstRate = null;
-
 
147212
    }
-
 
147213
 
-
 
147214
    public StateGstRate getStateGstRate() {
-
 
147215
      return this.stateGstRate;
-
 
147216
    }
-
 
147217
 
-
 
147218
    public void setStateGstRate(StateGstRate stateGstRate) {
-
 
147219
      this.stateGstRate = stateGstRate;
-
 
147220
    }
-
 
147221
 
-
 
147222
    public void unsetStateGstRate() {
-
 
147223
      this.stateGstRate = null;
-
 
147224
    }
-
 
147225
 
-
 
147226
    /** Returns true if field stateGstRate is set (has been assigned a value) and false otherwise */
-
 
147227
    public boolean isSetStateGstRate() {
-
 
147228
      return this.stateGstRate != null;
-
 
147229
    }
-
 
147230
 
-
 
147231
    public void setStateGstRateIsSet(boolean value) {
-
 
147232
      if (!value) {
-
 
147233
        this.stateGstRate = null;
-
 
147234
      }
-
 
147235
    }
-
 
147236
 
-
 
147237
    public void setFieldValue(_Fields field, Object value) {
-
 
147238
      switch (field) {
-
 
147239
      case STATE_GST_RATE:
-
 
147240
        if (value == null) {
-
 
147241
          unsetStateGstRate();
-
 
147242
        } else {
-
 
147243
          setStateGstRate((StateGstRate)value);
-
 
147244
        }
-
 
147245
        break;
-
 
147246
 
-
 
147247
      }
-
 
147248
    }
-
 
147249
 
-
 
147250
    public Object getFieldValue(_Fields field) {
-
 
147251
      switch (field) {
-
 
147252
      case STATE_GST_RATE:
-
 
147253
        return getStateGstRate();
-
 
147254
 
-
 
147255
      }
-
 
147256
      throw new IllegalStateException();
-
 
147257
    }
-
 
147258
 
-
 
147259
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
147260
    public boolean isSet(_Fields field) {
-
 
147261
      if (field == null) {
-
 
147262
        throw new IllegalArgumentException();
-
 
147263
      }
-
 
147264
 
-
 
147265
      switch (field) {
-
 
147266
      case STATE_GST_RATE:
-
 
147267
        return isSetStateGstRate();
-
 
147268
      }
-
 
147269
      throw new IllegalStateException();
-
 
147270
    }
-
 
147271
 
-
 
147272
    @Override
-
 
147273
    public boolean equals(Object that) {
-
 
147274
      if (that == null)
-
 
147275
        return false;
-
 
147276
      if (that instanceof persistStateGstRate_args)
-
 
147277
        return this.equals((persistStateGstRate_args)that);
-
 
147278
      return false;
-
 
147279
    }
-
 
147280
 
-
 
147281
    public boolean equals(persistStateGstRate_args that) {
-
 
147282
      if (that == null)
-
 
147283
        return false;
-
 
147284
 
-
 
147285
      boolean this_present_stateGstRate = true && this.isSetStateGstRate();
-
 
147286
      boolean that_present_stateGstRate = true && that.isSetStateGstRate();
-
 
147287
      if (this_present_stateGstRate || that_present_stateGstRate) {
-
 
147288
        if (!(this_present_stateGstRate && that_present_stateGstRate))
-
 
147289
          return false;
-
 
147290
        if (!this.stateGstRate.equals(that.stateGstRate))
-
 
147291
          return false;
-
 
147292
      }
-
 
147293
 
-
 
147294
      return true;
-
 
147295
    }
-
 
147296
 
-
 
147297
    @Override
-
 
147298
    public int hashCode() {
-
 
147299
      return 0;
-
 
147300
    }
-
 
147301
 
-
 
147302
    public int compareTo(persistStateGstRate_args other) {
-
 
147303
      if (!getClass().equals(other.getClass())) {
-
 
147304
        return getClass().getName().compareTo(other.getClass().getName());
-
 
147305
      }
-
 
147306
 
-
 
147307
      int lastComparison = 0;
-
 
147308
      persistStateGstRate_args typedOther = (persistStateGstRate_args)other;
-
 
147309
 
-
 
147310
      lastComparison = Boolean.valueOf(isSetStateGstRate()).compareTo(typedOther.isSetStateGstRate());
-
 
147311
      if (lastComparison != 0) {
-
 
147312
        return lastComparison;
-
 
147313
      }
-
 
147314
      if (isSetStateGstRate()) {
-
 
147315
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stateGstRate, typedOther.stateGstRate);
-
 
147316
        if (lastComparison != 0) {
-
 
147317
          return lastComparison;
-
 
147318
        }
-
 
147319
      }
-
 
147320
      return 0;
-
 
147321
    }
-
 
147322
 
-
 
147323
    public _Fields fieldForId(int fieldId) {
-
 
147324
      return _Fields.findByThriftId(fieldId);
-
 
147325
    }
-
 
147326
 
-
 
147327
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
147328
      org.apache.thrift.protocol.TField field;
-
 
147329
      iprot.readStructBegin();
-
 
147330
      while (true)
-
 
147331
      {
-
 
147332
        field = iprot.readFieldBegin();
-
 
147333
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
147334
          break;
-
 
147335
        }
-
 
147336
        switch (field.id) {
-
 
147337
          case 1: // STATE_GST_RATE
-
 
147338
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
147339
              this.stateGstRate = new StateGstRate();
-
 
147340
              this.stateGstRate.read(iprot);
-
 
147341
            } else { 
-
 
147342
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
147343
            }
-
 
147344
            break;
-
 
147345
          default:
-
 
147346
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
147347
        }
-
 
147348
        iprot.readFieldEnd();
-
 
147349
      }
-
 
147350
      iprot.readStructEnd();
-
 
147351
      validate();
-
 
147352
    }
-
 
147353
 
-
 
147354
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
147355
      validate();
-
 
147356
 
-
 
147357
      oprot.writeStructBegin(STRUCT_DESC);
-
 
147358
      if (this.stateGstRate != null) {
-
 
147359
        oprot.writeFieldBegin(STATE_GST_RATE_FIELD_DESC);
-
 
147360
        this.stateGstRate.write(oprot);
-
 
147361
        oprot.writeFieldEnd();
-
 
147362
      }
-
 
147363
      oprot.writeFieldStop();
-
 
147364
      oprot.writeStructEnd();
-
 
147365
    }
-
 
147366
 
-
 
147367
    @Override
-
 
147368
    public String toString() {
-
 
147369
      StringBuilder sb = new StringBuilder("persistStateGstRate_args(");
-
 
147370
      boolean first = true;
-
 
147371
 
-
 
147372
      sb.append("stateGstRate:");
-
 
147373
      if (this.stateGstRate == null) {
-
 
147374
        sb.append("null");
-
 
147375
      } else {
-
 
147376
        sb.append(this.stateGstRate);
-
 
147377
      }
-
 
147378
      first = false;
-
 
147379
      sb.append(")");
-
 
147380
      return sb.toString();
-
 
147381
    }
-
 
147382
 
-
 
147383
    public void validate() throws org.apache.thrift.TException {
-
 
147384
      // check for required fields
-
 
147385
    }
-
 
147386
 
-
 
147387
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
147388
      try {
-
 
147389
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
147390
      } catch (org.apache.thrift.TException te) {
-
 
147391
        throw new java.io.IOException(te);
-
 
147392
      }
-
 
147393
    }
-
 
147394
 
-
 
147395
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
147396
      try {
-
 
147397
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
147398
      } catch (org.apache.thrift.TException te) {
-
 
147399
        throw new java.io.IOException(te);
-
 
147400
      }
-
 
147401
    }
-
 
147402
 
-
 
147403
  }
-
 
147404
 
-
 
147405
  public static class persistStateGstRate_result implements org.apache.thrift.TBase<persistStateGstRate_result, persistStateGstRate_result._Fields>, java.io.Serializable, Cloneable   {
-
 
147406
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("persistStateGstRate_result");
-
 
147407
 
-
 
147408
 
-
 
147409
 
-
 
147410
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
147411
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
147412
;
-
 
147413
 
-
 
147414
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
147415
 
-
 
147416
      static {
-
 
147417
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
147418
          byName.put(field.getFieldName(), field);
-
 
147419
        }
-
 
147420
      }
-
 
147421
 
-
 
147422
      /**
-
 
147423
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
147424
       */
-
 
147425
      public static _Fields findByThriftId(int fieldId) {
-
 
147426
        switch(fieldId) {
-
 
147427
          default:
-
 
147428
            return null;
-
 
147429
        }
-
 
147430
      }
-
 
147431
 
-
 
147432
      /**
-
 
147433
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
147434
       * if it is not found.
-
 
147435
       */
-
 
147436
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
147437
        _Fields fields = findByThriftId(fieldId);
-
 
147438
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
147439
        return fields;
-
 
147440
      }
-
 
147441
 
-
 
147442
      /**
-
 
147443
       * Find the _Fields constant that matches name, or null if its not found.
-
 
147444
       */
-
 
147445
      public static _Fields findByName(String name) {
-
 
147446
        return byName.get(name);
-
 
147447
      }
-
 
147448
 
-
 
147449
      private final short _thriftId;
-
 
147450
      private final String _fieldName;
-
 
147451
 
-
 
147452
      _Fields(short thriftId, String fieldName) {
-
 
147453
        _thriftId = thriftId;
-
 
147454
        _fieldName = fieldName;
-
 
147455
      }
-
 
147456
 
-
 
147457
      public short getThriftFieldId() {
-
 
147458
        return _thriftId;
-
 
147459
      }
-
 
147460
 
-
 
147461
      public String getFieldName() {
-
 
147462
        return _fieldName;
-
 
147463
      }
-
 
147464
    }
-
 
147465
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
147466
    static {
-
 
147467
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
147468
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
147469
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(persistStateGstRate_result.class, metaDataMap);
-
 
147470
    }
-
 
147471
 
-
 
147472
    public persistStateGstRate_result() {
-
 
147473
    }
-
 
147474
 
-
 
147475
    /**
-
 
147476
     * Performs a deep copy on <i>other</i>.
-
 
147477
     */
-
 
147478
    public persistStateGstRate_result(persistStateGstRate_result other) {
-
 
147479
    }
-
 
147480
 
-
 
147481
    public persistStateGstRate_result deepCopy() {
-
 
147482
      return new persistStateGstRate_result(this);
-
 
147483
    }
-
 
147484
 
-
 
147485
    @Override
-
 
147486
    public void clear() {
-
 
147487
    }
-
 
147488
 
-
 
147489
    public void setFieldValue(_Fields field, Object value) {
-
 
147490
      switch (field) {
-
 
147491
      }
-
 
147492
    }
-
 
147493
 
-
 
147494
    public Object getFieldValue(_Fields field) {
-
 
147495
      switch (field) {
-
 
147496
      }
-
 
147497
      throw new IllegalStateException();
-
 
147498
    }
-
 
147499
 
-
 
147500
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
147501
    public boolean isSet(_Fields field) {
-
 
147502
      if (field == null) {
-
 
147503
        throw new IllegalArgumentException();
-
 
147504
      }
-
 
147505
 
-
 
147506
      switch (field) {
-
 
147507
      }
-
 
147508
      throw new IllegalStateException();
-
 
147509
    }
-
 
147510
 
-
 
147511
    @Override
-
 
147512
    public boolean equals(Object that) {
-
 
147513
      if (that == null)
-
 
147514
        return false;
-
 
147515
      if (that instanceof persistStateGstRate_result)
-
 
147516
        return this.equals((persistStateGstRate_result)that);
-
 
147517
      return false;
-
 
147518
    }
-
 
147519
 
-
 
147520
    public boolean equals(persistStateGstRate_result that) {
-
 
147521
      if (that == null)
-
 
147522
        return false;
-
 
147523
 
-
 
147524
      return true;
-
 
147525
    }
-
 
147526
 
-
 
147527
    @Override
-
 
147528
    public int hashCode() {
-
 
147529
      return 0;
-
 
147530
    }
-
 
147531
 
-
 
147532
    public int compareTo(persistStateGstRate_result other) {
-
 
147533
      if (!getClass().equals(other.getClass())) {
-
 
147534
        return getClass().getName().compareTo(other.getClass().getName());
-
 
147535
      }
-
 
147536
 
-
 
147537
      int lastComparison = 0;
-
 
147538
      persistStateGstRate_result typedOther = (persistStateGstRate_result)other;
-
 
147539
 
-
 
147540
      return 0;
-
 
147541
    }
-
 
147542
 
-
 
147543
    public _Fields fieldForId(int fieldId) {
-
 
147544
      return _Fields.findByThriftId(fieldId);
-
 
147545
    }
-
 
147546
 
-
 
147547
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
147548
      org.apache.thrift.protocol.TField field;
-
 
147549
      iprot.readStructBegin();
-
 
147550
      while (true)
-
 
147551
      {
-
 
147552
        field = iprot.readFieldBegin();
-
 
147553
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
147554
          break;
-
 
147555
        }
-
 
147556
        switch (field.id) {
-
 
147557
          default:
-
 
147558
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
147559
        }
-
 
147560
        iprot.readFieldEnd();
-
 
147561
      }
-
 
147562
      iprot.readStructEnd();
-
 
147563
      validate();
-
 
147564
    }
-
 
147565
 
-
 
147566
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
147567
      oprot.writeStructBegin(STRUCT_DESC);
-
 
147568
 
-
 
147569
      oprot.writeFieldStop();
-
 
147570
      oprot.writeStructEnd();
-
 
147571
    }
-
 
147572
 
-
 
147573
    @Override
-
 
147574
    public String toString() {
-
 
147575
      StringBuilder sb = new StringBuilder("persistStateGstRate_result(");
-
 
147576
      boolean first = true;
-
 
147577
 
-
 
147578
      sb.append(")");
-
 
147579
      return sb.toString();
-
 
147580
    }
-
 
147581
 
-
 
147582
    public void validate() throws org.apache.thrift.TException {
147014
      // check for required fields
147583
      // check for required fields
147015
    }
147584
    }
147016
 
147585
 
147017
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
147586
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
147018
      try {
147587
      try {