Subversion Repositories SmartDukaan

Rev

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

Rev 18764 Rev 19247
Line 612... Line 612...
612
 
612
 
613
    public boolean updateBulkPricesOnProduction(long item_id, List<BulkItemPricing> bulkItemPricingList) throws org.apache.thrift.TException;
613
    public boolean updateBulkPricesOnProduction(long item_id, List<BulkItemPricing> bulkItemPricingList) throws org.apache.thrift.TException;
614
 
614
 
615
    public List<Long> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException;
615
    public List<Long> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException;
616
 
616
 
-
 
617
    public boolean updateItemPricing(List<ItemPricing> itemPricingList) throws org.apache.thrift.TException;
-
 
618
 
617
  }
619
  }
618
 
620
 
619
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
621
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
620
 
622
 
621
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
623
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 1008... Line 1010...
1008
 
1010
 
1009
    public void updateBulkPricesOnProduction(long item_id, List<BulkItemPricing> bulkItemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateBulkPricesOnProduction_call> resultHandler) throws org.apache.thrift.TException;
1011
    public void updateBulkPricesOnProduction(long item_id, List<BulkItemPricing> bulkItemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateBulkPricesOnProduction_call> resultHandler) throws org.apache.thrift.TException;
1010
 
1012
 
1011
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartByValue_call> resultHandler) throws org.apache.thrift.TException;
1013
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartByValue_call> resultHandler) throws org.apache.thrift.TException;
1012
 
1014
 
-
 
1015
    public void updateItemPricing(List<ItemPricing> itemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemPricing_call> resultHandler) throws org.apache.thrift.TException;
-
 
1016
 
1013
  }
1017
  }
1014
 
1018
 
1015
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1019
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1016
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1020
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1017
      public Factory() {}
1021
      public Factory() {}
Line 5653... Line 5657...
5653
        return result.success;
5657
        return result.success;
5654
      }
5658
      }
5655
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartByValue failed: unknown result");
5659
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartByValue failed: unknown result");
5656
    }
5660
    }
5657
 
5661
 
-
 
5662
    public boolean updateItemPricing(List<ItemPricing> itemPricingList) throws org.apache.thrift.TException
-
 
5663
    {
-
 
5664
      send_updateItemPricing(itemPricingList);
-
 
5665
      return recv_updateItemPricing();
-
 
5666
    }
-
 
5667
 
-
 
5668
    public void send_updateItemPricing(List<ItemPricing> itemPricingList) throws org.apache.thrift.TException
-
 
5669
    {
-
 
5670
      updateItemPricing_args args = new updateItemPricing_args();
-
 
5671
      args.setItemPricingList(itemPricingList);
-
 
5672
      sendBase("updateItemPricing", args);
-
 
5673
    }
-
 
5674
 
-
 
5675
    public boolean recv_updateItemPricing() throws org.apache.thrift.TException
-
 
5676
    {
-
 
5677
      updateItemPricing_result result = new updateItemPricing_result();
-
 
5678
      receiveBase(result, "updateItemPricing");
-
 
5679
      if (result.isSetSuccess()) {
-
 
5680
        return result.success;
-
 
5681
      }
-
 
5682
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateItemPricing failed: unknown result");
-
 
5683
    }
-
 
5684
 
5658
  }
5685
  }
5659
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5686
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5660
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5687
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5661
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5688
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5662
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5689
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 12090... Line 12117...
12090
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12117
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12091
        return (new Client(prot)).recv_getCartByValue();
12118
        return (new Client(prot)).recv_getCartByValue();
12092
      }
12119
      }
12093
    }
12120
    }
12094
 
12121
 
-
 
12122
    public void updateItemPricing(List<ItemPricing> itemPricingList, org.apache.thrift.async.AsyncMethodCallback<updateItemPricing_call> resultHandler) throws org.apache.thrift.TException {
-
 
12123
      checkReady();
-
 
12124
      updateItemPricing_call method_call = new updateItemPricing_call(itemPricingList, resultHandler, this, ___protocolFactory, ___transport);
-
 
12125
      this.___currentMethod = method_call;
-
 
12126
      ___manager.call(method_call);
-
 
12127
    }
-
 
12128
 
-
 
12129
    public static class updateItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
12130
      private List<ItemPricing> itemPricingList;
-
 
12131
      public updateItemPricing_call(List<ItemPricing> itemPricingList, org.apache.thrift.async.AsyncMethodCallback<updateItemPricing_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 {
-
 
12132
        super(client, protocolFactory, transport, resultHandler, false);
-
 
12133
        this.itemPricingList = itemPricingList;
-
 
12134
      }
-
 
12135
 
-
 
12136
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
12137
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
12138
        updateItemPricing_args args = new updateItemPricing_args();
-
 
12139
        args.setItemPricingList(itemPricingList);
-
 
12140
        args.write(prot);
-
 
12141
        prot.writeMessageEnd();
-
 
12142
      }
-
 
12143
 
-
 
12144
      public boolean getResult() throws org.apache.thrift.TException {
-
 
12145
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12146
          throw new IllegalStateException("Method call not finished!");
-
 
12147
        }
-
 
12148
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12149
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12150
        return (new Client(prot)).recv_updateItemPricing();
-
 
12151
      }
-
 
12152
    }
-
 
12153
 
12095
  }
12154
  }
12096
 
12155
 
12097
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12156
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12098
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12157
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12099
    public Processor(I iface) {
12158
    public Processor(I iface) {
Line 12299... Line 12358...
12299
      processMap.put("deleteBulkPricingForItemById", new deleteBulkPricingForItemById());
12358
      processMap.put("deleteBulkPricingForItemById", new deleteBulkPricingForItemById());
12300
      processMap.put("deleteBulkPricingForItem", new deleteBulkPricingForItem());
12359
      processMap.put("deleteBulkPricingForItem", new deleteBulkPricingForItem());
12301
      processMap.put("getBulkPricingByItemId", new getBulkPricingByItemId());
12360
      processMap.put("getBulkPricingByItemId", new getBulkPricingByItemId());
12302
      processMap.put("updateBulkPricesOnProduction", new updateBulkPricesOnProduction());
12361
      processMap.put("updateBulkPricesOnProduction", new updateBulkPricesOnProduction());
12303
      processMap.put("getCartByValue", new getCartByValue());
12362
      processMap.put("getCartByValue", new getCartByValue());
-
 
12363
      processMap.put("updateItemPricing", new updateItemPricing());
12304
      return processMap;
12364
      return processMap;
12305
    }
12365
    }
12306
 
12366
 
12307
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
12367
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
12308
      public addItem() {
12368
      public addItem() {
Line 15688... Line 15748...
15688
        result.success = iface.getCartByValue(args.cartIds);
15748
        result.success = iface.getCartByValue(args.cartIds);
15689
        return result;
15749
        return result;
15690
      }
15750
      }
15691
    }
15751
    }
15692
 
15752
 
-
 
15753
    private static class updateItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItemPricing_args> {
-
 
15754
      public updateItemPricing() {
-
 
15755
        super("updateItemPricing");
-
 
15756
      }
-
 
15757
 
-
 
15758
      protected updateItemPricing_args getEmptyArgsInstance() {
-
 
15759
        return new updateItemPricing_args();
-
 
15760
      }
-
 
15761
 
-
 
15762
      protected updateItemPricing_result getResult(I iface, updateItemPricing_args args) throws org.apache.thrift.TException {
-
 
15763
        updateItemPricing_result result = new updateItemPricing_result();
-
 
15764
        result.success = iface.updateItemPricing(args.itemPricingList);
-
 
15765
        result.setSuccessIsSet(true);
-
 
15766
        return result;
-
 
15767
      }
-
 
15768
    }
-
 
15769
 
15693
  }
15770
  }
15694
 
15771
 
15695
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15772
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15696
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15773
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15697
 
15774
 
Line 141006... Line 141083...
141006
      first = false;
141083
      first = false;
141007
      sb.append(")");
141084
      sb.append(")");
141008
      return sb.toString();
141085
      return sb.toString();
141009
    }
141086
    }
141010
 
141087
 
-
 
141088
    public void validate() throws org.apache.thrift.TException {
-
 
141089
      // check for required fields
-
 
141090
    }
-
 
141091
 
-
 
141092
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
141093
      try {
-
 
141094
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
141095
      } catch (org.apache.thrift.TException te) {
-
 
141096
        throw new java.io.IOException(te);
-
 
141097
      }
-
 
141098
    }
-
 
141099
 
-
 
141100
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
141101
      try {
-
 
141102
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
141103
      } catch (org.apache.thrift.TException te) {
-
 
141104
        throw new java.io.IOException(te);
-
 
141105
      }
-
 
141106
    }
-
 
141107
 
-
 
141108
  }
-
 
141109
 
-
 
141110
  public static class updateItemPricing_args implements org.apache.thrift.TBase<updateItemPricing_args, updateItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
-
 
141111
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemPricing_args");
-
 
141112
 
-
 
141113
    private static final org.apache.thrift.protocol.TField ITEM_PRICING_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("itemPricingList", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
141114
 
-
 
141115
    private List<ItemPricing> itemPricingList; // required
-
 
141116
 
-
 
141117
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
141118
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
141119
      ITEM_PRICING_LIST((short)1, "itemPricingList");
-
 
141120
 
-
 
141121
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
141122
 
-
 
141123
      static {
-
 
141124
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
141125
          byName.put(field.getFieldName(), field);
-
 
141126
        }
-
 
141127
      }
-
 
141128
 
-
 
141129
      /**
-
 
141130
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
141131
       */
-
 
141132
      public static _Fields findByThriftId(int fieldId) {
-
 
141133
        switch(fieldId) {
-
 
141134
          case 1: // ITEM_PRICING_LIST
-
 
141135
            return ITEM_PRICING_LIST;
-
 
141136
          default:
-
 
141137
            return null;
-
 
141138
        }
-
 
141139
      }
-
 
141140
 
-
 
141141
      /**
-
 
141142
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
141143
       * if it is not found.
-
 
141144
       */
-
 
141145
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
141146
        _Fields fields = findByThriftId(fieldId);
-
 
141147
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
141148
        return fields;
-
 
141149
      }
-
 
141150
 
-
 
141151
      /**
-
 
141152
       * Find the _Fields constant that matches name, or null if its not found.
-
 
141153
       */
-
 
141154
      public static _Fields findByName(String name) {
-
 
141155
        return byName.get(name);
-
 
141156
      }
-
 
141157
 
-
 
141158
      private final short _thriftId;
-
 
141159
      private final String _fieldName;
-
 
141160
 
-
 
141161
      _Fields(short thriftId, String fieldName) {
-
 
141162
        _thriftId = thriftId;
-
 
141163
        _fieldName = fieldName;
-
 
141164
      }
-
 
141165
 
-
 
141166
      public short getThriftFieldId() {
-
 
141167
        return _thriftId;
-
 
141168
      }
-
 
141169
 
-
 
141170
      public String getFieldName() {
-
 
141171
        return _fieldName;
-
 
141172
      }
-
 
141173
    }
-
 
141174
 
-
 
141175
    // isset id assignments
-
 
141176
 
-
 
141177
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
141178
    static {
-
 
141179
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
141180
      tmpMap.put(_Fields.ITEM_PRICING_LIST, new org.apache.thrift.meta_data.FieldMetaData("itemPricingList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
141181
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
141182
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemPricing.class))));
-
 
141183
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
141184
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemPricing_args.class, metaDataMap);
-
 
141185
    }
-
 
141186
 
-
 
141187
    public updateItemPricing_args() {
-
 
141188
    }
-
 
141189
 
-
 
141190
    public updateItemPricing_args(
-
 
141191
      List<ItemPricing> itemPricingList)
-
 
141192
    {
-
 
141193
      this();
-
 
141194
      this.itemPricingList = itemPricingList;
-
 
141195
    }
-
 
141196
 
-
 
141197
    /**
-
 
141198
     * Performs a deep copy on <i>other</i>.
-
 
141199
     */
-
 
141200
    public updateItemPricing_args(updateItemPricing_args other) {
-
 
141201
      if (other.isSetItemPricingList()) {
-
 
141202
        List<ItemPricing> __this__itemPricingList = new ArrayList<ItemPricing>();
-
 
141203
        for (ItemPricing other_element : other.itemPricingList) {
-
 
141204
          __this__itemPricingList.add(new ItemPricing(other_element));
-
 
141205
        }
-
 
141206
        this.itemPricingList = __this__itemPricingList;
-
 
141207
      }
-
 
141208
    }
-
 
141209
 
-
 
141210
    public updateItemPricing_args deepCopy() {
-
 
141211
      return new updateItemPricing_args(this);
-
 
141212
    }
-
 
141213
 
-
 
141214
    @Override
-
 
141215
    public void clear() {
-
 
141216
      this.itemPricingList = null;
-
 
141217
    }
-
 
141218
 
-
 
141219
    public int getItemPricingListSize() {
-
 
141220
      return (this.itemPricingList == null) ? 0 : this.itemPricingList.size();
-
 
141221
    }
-
 
141222
 
-
 
141223
    public java.util.Iterator<ItemPricing> getItemPricingListIterator() {
-
 
141224
      return (this.itemPricingList == null) ? null : this.itemPricingList.iterator();
-
 
141225
    }
-
 
141226
 
-
 
141227
    public void addToItemPricingList(ItemPricing elem) {
-
 
141228
      if (this.itemPricingList == null) {
-
 
141229
        this.itemPricingList = new ArrayList<ItemPricing>();
-
 
141230
      }
-
 
141231
      this.itemPricingList.add(elem);
-
 
141232
    }
-
 
141233
 
-
 
141234
    public List<ItemPricing> getItemPricingList() {
-
 
141235
      return this.itemPricingList;
-
 
141236
    }
-
 
141237
 
-
 
141238
    public void setItemPricingList(List<ItemPricing> itemPricingList) {
-
 
141239
      this.itemPricingList = itemPricingList;
-
 
141240
    }
-
 
141241
 
-
 
141242
    public void unsetItemPricingList() {
-
 
141243
      this.itemPricingList = null;
-
 
141244
    }
-
 
141245
 
-
 
141246
    /** Returns true if field itemPricingList is set (has been assigned a value) and false otherwise */
-
 
141247
    public boolean isSetItemPricingList() {
-
 
141248
      return this.itemPricingList != null;
-
 
141249
    }
-
 
141250
 
-
 
141251
    public void setItemPricingListIsSet(boolean value) {
-
 
141252
      if (!value) {
-
 
141253
        this.itemPricingList = null;
-
 
141254
      }
-
 
141255
    }
-
 
141256
 
-
 
141257
    public void setFieldValue(_Fields field, Object value) {
-
 
141258
      switch (field) {
-
 
141259
      case ITEM_PRICING_LIST:
-
 
141260
        if (value == null) {
-
 
141261
          unsetItemPricingList();
-
 
141262
        } else {
-
 
141263
          setItemPricingList((List<ItemPricing>)value);
-
 
141264
        }
-
 
141265
        break;
-
 
141266
 
-
 
141267
      }
-
 
141268
    }
-
 
141269
 
-
 
141270
    public Object getFieldValue(_Fields field) {
-
 
141271
      switch (field) {
-
 
141272
      case ITEM_PRICING_LIST:
-
 
141273
        return getItemPricingList();
-
 
141274
 
-
 
141275
      }
-
 
141276
      throw new IllegalStateException();
-
 
141277
    }
-
 
141278
 
-
 
141279
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
141280
    public boolean isSet(_Fields field) {
-
 
141281
      if (field == null) {
-
 
141282
        throw new IllegalArgumentException();
-
 
141283
      }
-
 
141284
 
-
 
141285
      switch (field) {
-
 
141286
      case ITEM_PRICING_LIST:
-
 
141287
        return isSetItemPricingList();
-
 
141288
      }
-
 
141289
      throw new IllegalStateException();
-
 
141290
    }
-
 
141291
 
-
 
141292
    @Override
-
 
141293
    public boolean equals(Object that) {
-
 
141294
      if (that == null)
-
 
141295
        return false;
-
 
141296
      if (that instanceof updateItemPricing_args)
-
 
141297
        return this.equals((updateItemPricing_args)that);
-
 
141298
      return false;
-
 
141299
    }
-
 
141300
 
-
 
141301
    public boolean equals(updateItemPricing_args that) {
-
 
141302
      if (that == null)
-
 
141303
        return false;
-
 
141304
 
-
 
141305
      boolean this_present_itemPricingList = true && this.isSetItemPricingList();
-
 
141306
      boolean that_present_itemPricingList = true && that.isSetItemPricingList();
-
 
141307
      if (this_present_itemPricingList || that_present_itemPricingList) {
-
 
141308
        if (!(this_present_itemPricingList && that_present_itemPricingList))
-
 
141309
          return false;
-
 
141310
        if (!this.itemPricingList.equals(that.itemPricingList))
-
 
141311
          return false;
-
 
141312
      }
-
 
141313
 
-
 
141314
      return true;
-
 
141315
    }
-
 
141316
 
-
 
141317
    @Override
-
 
141318
    public int hashCode() {
-
 
141319
      return 0;
-
 
141320
    }
-
 
141321
 
-
 
141322
    public int compareTo(updateItemPricing_args other) {
-
 
141323
      if (!getClass().equals(other.getClass())) {
-
 
141324
        return getClass().getName().compareTo(other.getClass().getName());
-
 
141325
      }
-
 
141326
 
-
 
141327
      int lastComparison = 0;
-
 
141328
      updateItemPricing_args typedOther = (updateItemPricing_args)other;
-
 
141329
 
-
 
141330
      lastComparison = Boolean.valueOf(isSetItemPricingList()).compareTo(typedOther.isSetItemPricingList());
-
 
141331
      if (lastComparison != 0) {
-
 
141332
        return lastComparison;
-
 
141333
      }
-
 
141334
      if (isSetItemPricingList()) {
-
 
141335
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemPricingList, typedOther.itemPricingList);
-
 
141336
        if (lastComparison != 0) {
-
 
141337
          return lastComparison;
-
 
141338
        }
-
 
141339
      }
-
 
141340
      return 0;
-
 
141341
    }
-
 
141342
 
-
 
141343
    public _Fields fieldForId(int fieldId) {
-
 
141344
      return _Fields.findByThriftId(fieldId);
-
 
141345
    }
-
 
141346
 
-
 
141347
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
141348
      org.apache.thrift.protocol.TField field;
-
 
141349
      iprot.readStructBegin();
-
 
141350
      while (true)
-
 
141351
      {
-
 
141352
        field = iprot.readFieldBegin();
-
 
141353
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
141354
          break;
-
 
141355
        }
-
 
141356
        switch (field.id) {
-
 
141357
          case 1: // ITEM_PRICING_LIST
-
 
141358
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
141359
              {
-
 
141360
                org.apache.thrift.protocol.TList _list526 = iprot.readListBegin();
-
 
141361
                this.itemPricingList = new ArrayList<ItemPricing>(_list526.size);
-
 
141362
                for (int _i527 = 0; _i527 < _list526.size; ++_i527)
-
 
141363
                {
-
 
141364
                  ItemPricing _elem528; // required
-
 
141365
                  _elem528 = new ItemPricing();
-
 
141366
                  _elem528.read(iprot);
-
 
141367
                  this.itemPricingList.add(_elem528);
-
 
141368
                }
-
 
141369
                iprot.readListEnd();
-
 
141370
              }
-
 
141371
            } else { 
-
 
141372
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
141373
            }
-
 
141374
            break;
-
 
141375
          default:
-
 
141376
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
141377
        }
-
 
141378
        iprot.readFieldEnd();
-
 
141379
      }
-
 
141380
      iprot.readStructEnd();
-
 
141381
      validate();
-
 
141382
    }
-
 
141383
 
-
 
141384
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
141385
      validate();
-
 
141386
 
-
 
141387
      oprot.writeStructBegin(STRUCT_DESC);
-
 
141388
      if (this.itemPricingList != null) {
-
 
141389
        oprot.writeFieldBegin(ITEM_PRICING_LIST_FIELD_DESC);
-
 
141390
        {
-
 
141391
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.itemPricingList.size()));
-
 
141392
          for (ItemPricing _iter529 : this.itemPricingList)
-
 
141393
          {
-
 
141394
            _iter529.write(oprot);
-
 
141395
          }
-
 
141396
          oprot.writeListEnd();
-
 
141397
        }
-
 
141398
        oprot.writeFieldEnd();
-
 
141399
      }
-
 
141400
      oprot.writeFieldStop();
-
 
141401
      oprot.writeStructEnd();
-
 
141402
    }
-
 
141403
 
-
 
141404
    @Override
-
 
141405
    public String toString() {
-
 
141406
      StringBuilder sb = new StringBuilder("updateItemPricing_args(");
-
 
141407
      boolean first = true;
-
 
141408
 
-
 
141409
      sb.append("itemPricingList:");
-
 
141410
      if (this.itemPricingList == null) {
-
 
141411
        sb.append("null");
-
 
141412
      } else {
-
 
141413
        sb.append(this.itemPricingList);
-
 
141414
      }
-
 
141415
      first = false;
-
 
141416
      sb.append(")");
-
 
141417
      return sb.toString();
-
 
141418
    }
-
 
141419
 
-
 
141420
    public void validate() throws org.apache.thrift.TException {
-
 
141421
      // check for required fields
-
 
141422
    }
-
 
141423
 
-
 
141424
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
141425
      try {
-
 
141426
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
141427
      } catch (org.apache.thrift.TException te) {
-
 
141428
        throw new java.io.IOException(te);
-
 
141429
      }
-
 
141430
    }
-
 
141431
 
-
 
141432
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
141433
      try {
-
 
141434
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
141435
      } catch (org.apache.thrift.TException te) {
-
 
141436
        throw new java.io.IOException(te);
-
 
141437
      }
-
 
141438
    }
-
 
141439
 
-
 
141440
  }
-
 
141441
 
-
 
141442
  public static class updateItemPricing_result implements org.apache.thrift.TBase<updateItemPricing_result, updateItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
-
 
141443
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemPricing_result");
-
 
141444
 
-
 
141445
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
141446
 
-
 
141447
    private boolean success; // required
-
 
141448
 
-
 
141449
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
141450
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
141451
      SUCCESS((short)0, "success");
-
 
141452
 
-
 
141453
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
141454
 
-
 
141455
      static {
-
 
141456
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
141457
          byName.put(field.getFieldName(), field);
-
 
141458
        }
-
 
141459
      }
-
 
141460
 
-
 
141461
      /**
-
 
141462
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
141463
       */
-
 
141464
      public static _Fields findByThriftId(int fieldId) {
-
 
141465
        switch(fieldId) {
-
 
141466
          case 0: // SUCCESS
-
 
141467
            return SUCCESS;
-
 
141468
          default:
-
 
141469
            return null;
-
 
141470
        }
-
 
141471
      }
-
 
141472
 
-
 
141473
      /**
-
 
141474
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
141475
       * if it is not found.
-
 
141476
       */
-
 
141477
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
141478
        _Fields fields = findByThriftId(fieldId);
-
 
141479
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
141480
        return fields;
-
 
141481
      }
-
 
141482
 
-
 
141483
      /**
-
 
141484
       * Find the _Fields constant that matches name, or null if its not found.
-
 
141485
       */
-
 
141486
      public static _Fields findByName(String name) {
-
 
141487
        return byName.get(name);
-
 
141488
      }
-
 
141489
 
-
 
141490
      private final short _thriftId;
-
 
141491
      private final String _fieldName;
-
 
141492
 
-
 
141493
      _Fields(short thriftId, String fieldName) {
-
 
141494
        _thriftId = thriftId;
-
 
141495
        _fieldName = fieldName;
-
 
141496
      }
-
 
141497
 
-
 
141498
      public short getThriftFieldId() {
-
 
141499
        return _thriftId;
-
 
141500
      }
-
 
141501
 
-
 
141502
      public String getFieldName() {
-
 
141503
        return _fieldName;
-
 
141504
      }
-
 
141505
    }
-
 
141506
 
-
 
141507
    // isset id assignments
-
 
141508
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
141509
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
141510
 
-
 
141511
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
141512
    static {
-
 
141513
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
141514
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
141515
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
141516
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
141517
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemPricing_result.class, metaDataMap);
-
 
141518
    }
-
 
141519
 
-
 
141520
    public updateItemPricing_result() {
-
 
141521
    }
-
 
141522
 
-
 
141523
    public updateItemPricing_result(
-
 
141524
      boolean success)
-
 
141525
    {
-
 
141526
      this();
-
 
141527
      this.success = success;
-
 
141528
      setSuccessIsSet(true);
-
 
141529
    }
-
 
141530
 
-
 
141531
    /**
-
 
141532
     * Performs a deep copy on <i>other</i>.
-
 
141533
     */
-
 
141534
    public updateItemPricing_result(updateItemPricing_result other) {
-
 
141535
      __isset_bit_vector.clear();
-
 
141536
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
141537
      this.success = other.success;
-
 
141538
    }
-
 
141539
 
-
 
141540
    public updateItemPricing_result deepCopy() {
-
 
141541
      return new updateItemPricing_result(this);
-
 
141542
    }
-
 
141543
 
-
 
141544
    @Override
-
 
141545
    public void clear() {
-
 
141546
      setSuccessIsSet(false);
-
 
141547
      this.success = false;
-
 
141548
    }
-
 
141549
 
-
 
141550
    public boolean isSuccess() {
-
 
141551
      return this.success;
-
 
141552
    }
-
 
141553
 
-
 
141554
    public void setSuccess(boolean success) {
-
 
141555
      this.success = success;
-
 
141556
      setSuccessIsSet(true);
-
 
141557
    }
-
 
141558
 
-
 
141559
    public void unsetSuccess() {
-
 
141560
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
141561
    }
-
 
141562
 
-
 
141563
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
141564
    public boolean isSetSuccess() {
-
 
141565
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
141566
    }
-
 
141567
 
-
 
141568
    public void setSuccessIsSet(boolean value) {
-
 
141569
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
141570
    }
-
 
141571
 
-
 
141572
    public void setFieldValue(_Fields field, Object value) {
-
 
141573
      switch (field) {
-
 
141574
      case SUCCESS:
-
 
141575
        if (value == null) {
-
 
141576
          unsetSuccess();
-
 
141577
        } else {
-
 
141578
          setSuccess((Boolean)value);
-
 
141579
        }
-
 
141580
        break;
-
 
141581
 
-
 
141582
      }
-
 
141583
    }
-
 
141584
 
-
 
141585
    public Object getFieldValue(_Fields field) {
-
 
141586
      switch (field) {
-
 
141587
      case SUCCESS:
-
 
141588
        return Boolean.valueOf(isSuccess());
-
 
141589
 
-
 
141590
      }
-
 
141591
      throw new IllegalStateException();
-
 
141592
    }
-
 
141593
 
-
 
141594
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
141595
    public boolean isSet(_Fields field) {
-
 
141596
      if (field == null) {
-
 
141597
        throw new IllegalArgumentException();
-
 
141598
      }
-
 
141599
 
-
 
141600
      switch (field) {
-
 
141601
      case SUCCESS:
-
 
141602
        return isSetSuccess();
-
 
141603
      }
-
 
141604
      throw new IllegalStateException();
-
 
141605
    }
-
 
141606
 
-
 
141607
    @Override
-
 
141608
    public boolean equals(Object that) {
-
 
141609
      if (that == null)
-
 
141610
        return false;
-
 
141611
      if (that instanceof updateItemPricing_result)
-
 
141612
        return this.equals((updateItemPricing_result)that);
-
 
141613
      return false;
-
 
141614
    }
-
 
141615
 
-
 
141616
    public boolean equals(updateItemPricing_result that) {
-
 
141617
      if (that == null)
-
 
141618
        return false;
-
 
141619
 
-
 
141620
      boolean this_present_success = true;
-
 
141621
      boolean that_present_success = true;
-
 
141622
      if (this_present_success || that_present_success) {
-
 
141623
        if (!(this_present_success && that_present_success))
-
 
141624
          return false;
-
 
141625
        if (this.success != that.success)
-
 
141626
          return false;
-
 
141627
      }
-
 
141628
 
-
 
141629
      return true;
-
 
141630
    }
-
 
141631
 
-
 
141632
    @Override
-
 
141633
    public int hashCode() {
-
 
141634
      return 0;
-
 
141635
    }
-
 
141636
 
-
 
141637
    public int compareTo(updateItemPricing_result other) {
-
 
141638
      if (!getClass().equals(other.getClass())) {
-
 
141639
        return getClass().getName().compareTo(other.getClass().getName());
-
 
141640
      }
-
 
141641
 
-
 
141642
      int lastComparison = 0;
-
 
141643
      updateItemPricing_result typedOther = (updateItemPricing_result)other;
-
 
141644
 
-
 
141645
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
141646
      if (lastComparison != 0) {
-
 
141647
        return lastComparison;
-
 
141648
      }
-
 
141649
      if (isSetSuccess()) {
-
 
141650
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
141651
        if (lastComparison != 0) {
-
 
141652
          return lastComparison;
-
 
141653
        }
-
 
141654
      }
-
 
141655
      return 0;
-
 
141656
    }
-
 
141657
 
-
 
141658
    public _Fields fieldForId(int fieldId) {
-
 
141659
      return _Fields.findByThriftId(fieldId);
-
 
141660
    }
-
 
141661
 
-
 
141662
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
141663
      org.apache.thrift.protocol.TField field;
-
 
141664
      iprot.readStructBegin();
-
 
141665
      while (true)
-
 
141666
      {
-
 
141667
        field = iprot.readFieldBegin();
-
 
141668
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
141669
          break;
-
 
141670
        }
-
 
141671
        switch (field.id) {
-
 
141672
          case 0: // SUCCESS
-
 
141673
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
141674
              this.success = iprot.readBool();
-
 
141675
              setSuccessIsSet(true);
-
 
141676
            } else { 
-
 
141677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
141678
            }
-
 
141679
            break;
-
 
141680
          default:
-
 
141681
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
141682
        }
-
 
141683
        iprot.readFieldEnd();
-
 
141684
      }
-
 
141685
      iprot.readStructEnd();
-
 
141686
      validate();
-
 
141687
    }
-
 
141688
 
-
 
141689
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
141690
      oprot.writeStructBegin(STRUCT_DESC);
-
 
141691
 
-
 
141692
      if (this.isSetSuccess()) {
-
 
141693
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
141694
        oprot.writeBool(this.success);
-
 
141695
        oprot.writeFieldEnd();
-
 
141696
      }
-
 
141697
      oprot.writeFieldStop();
-
 
141698
      oprot.writeStructEnd();
-
 
141699
    }
-
 
141700
 
-
 
141701
    @Override
-
 
141702
    public String toString() {
-
 
141703
      StringBuilder sb = new StringBuilder("updateItemPricing_result(");
-
 
141704
      boolean first = true;
-
 
141705
 
-
 
141706
      sb.append("success:");
-
 
141707
      sb.append(this.success);
-
 
141708
      first = false;
-
 
141709
      sb.append(")");
-
 
141710
      return sb.toString();
-
 
141711
    }
-
 
141712
 
141011
    public void validate() throws org.apache.thrift.TException {
141713
    public void validate() throws org.apache.thrift.TException {
141012
      // check for required fields
141714
      // check for required fields
141013
    }
141715
    }
141014
 
141716
 
141015
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
141717
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {