Subversion Repositories SmartDukaan

Rev

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

Rev 9816 Rev 9861
Line 504... Line 504...
504
 
504
 
505
    public List<MarketPlaceItemPrice> getMarketPlaceItemsForPriceUpdate(long source) throws org.apache.thrift.TException;
505
    public List<MarketPlaceItemPrice> getMarketPlaceItemsForPriceUpdate(long source) throws org.apache.thrift.TException;
506
 
506
 
507
    public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp, long source) throws org.apache.thrift.TException;
507
    public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp, long source) throws org.apache.thrift.TException;
508
 
508
 
-
 
509
    public void updateItemHoldInventory(Map<Long,Long> itemHoldMap) throws org.apache.thrift.TException;
-
 
510
 
509
  }
511
  }
510
 
512
 
511
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
513
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
512
 
514
 
513
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
515
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 792... Line 794...
792
 
794
 
793
    public void getMarketPlaceItemsForPriceUpdate(long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMarketPlaceItemsForPriceUpdate_call> resultHandler) throws org.apache.thrift.TException;
795
    public void getMarketPlaceItemsForPriceUpdate(long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMarketPlaceItemsForPriceUpdate_call> resultHandler) throws org.apache.thrift.TException;
794
 
796
 
795
    public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMarketPlacePriceUpdateStatus_call> resultHandler) throws org.apache.thrift.TException;
797
    public void updateMarketPlacePriceUpdateStatus(List<Long> skulist, long timestamp, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMarketPlacePriceUpdateStatus_call> resultHandler) throws org.apache.thrift.TException;
796
 
798
 
-
 
799
    public void updateItemHoldInventory(Map<Long,Long> itemHoldMap, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemHoldInventory_call> resultHandler) throws org.apache.thrift.TException;
-
 
800
 
797
  }
801
  }
798
 
802
 
799
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
803
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
800
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
804
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
801
      public Factory() {}
805
      public Factory() {}
Line 4185... Line 4189...
4185
      updateMarketPlacePriceUpdateStatus_result result = new updateMarketPlacePriceUpdateStatus_result();
4189
      updateMarketPlacePriceUpdateStatus_result result = new updateMarketPlacePriceUpdateStatus_result();
4186
      receiveBase(result, "updateMarketPlacePriceUpdateStatus");
4190
      receiveBase(result, "updateMarketPlacePriceUpdateStatus");
4187
      return;
4191
      return;
4188
    }
4192
    }
4189
 
4193
 
-
 
4194
    public void updateItemHoldInventory(Map<Long,Long> itemHoldMap) throws org.apache.thrift.TException
-
 
4195
    {
-
 
4196
      send_updateItemHoldInventory(itemHoldMap);
-
 
4197
      recv_updateItemHoldInventory();
-
 
4198
    }
-
 
4199
 
-
 
4200
    public void send_updateItemHoldInventory(Map<Long,Long> itemHoldMap) throws org.apache.thrift.TException
-
 
4201
    {
-
 
4202
      updateItemHoldInventory_args args = new updateItemHoldInventory_args();
-
 
4203
      args.setItemHoldMap(itemHoldMap);
-
 
4204
      sendBase("updateItemHoldInventory", args);
-
 
4205
    }
-
 
4206
 
-
 
4207
    public void recv_updateItemHoldInventory() throws org.apache.thrift.TException
-
 
4208
    {
-
 
4209
      updateItemHoldInventory_result result = new updateItemHoldInventory_result();
-
 
4210
      receiveBase(result, "updateItemHoldInventory");
-
 
4211
      return;
-
 
4212
    }
-
 
4213
 
4190
  }
4214
  }
4191
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4215
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4192
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4216
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4193
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4217
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4194
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4218
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 8873... Line 8897...
8873
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8897
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8874
        (new Client(prot)).recv_updateMarketPlacePriceUpdateStatus();
8898
        (new Client(prot)).recv_updateMarketPlacePriceUpdateStatus();
8875
      }
8899
      }
8876
    }
8900
    }
8877
 
8901
 
-
 
8902
    public void updateItemHoldInventory(Map<Long,Long> itemHoldMap, org.apache.thrift.async.AsyncMethodCallback<updateItemHoldInventory_call> resultHandler) throws org.apache.thrift.TException {
-
 
8903
      checkReady();
-
 
8904
      updateItemHoldInventory_call method_call = new updateItemHoldInventory_call(itemHoldMap, resultHandler, this, ___protocolFactory, ___transport);
-
 
8905
      this.___currentMethod = method_call;
-
 
8906
      ___manager.call(method_call);
-
 
8907
    }
-
 
8908
 
-
 
8909
    public static class updateItemHoldInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
8910
      private Map<Long,Long> itemHoldMap;
-
 
8911
      public updateItemHoldInventory_call(Map<Long,Long> itemHoldMap, org.apache.thrift.async.AsyncMethodCallback<updateItemHoldInventory_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 {
-
 
8912
        super(client, protocolFactory, transport, resultHandler, false);
-
 
8913
        this.itemHoldMap = itemHoldMap;
-
 
8914
      }
-
 
8915
 
-
 
8916
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
8917
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItemHoldInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
8918
        updateItemHoldInventory_args args = new updateItemHoldInventory_args();
-
 
8919
        args.setItemHoldMap(itemHoldMap);
-
 
8920
        args.write(prot);
-
 
8921
        prot.writeMessageEnd();
-
 
8922
      }
-
 
8923
 
-
 
8924
      public void getResult() throws org.apache.thrift.TException {
-
 
8925
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
8926
          throw new IllegalStateException("Method call not finished!");
-
 
8927
        }
-
 
8928
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
8929
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
8930
        (new Client(prot)).recv_updateItemHoldInventory();
-
 
8931
      }
-
 
8932
    }
-
 
8933
 
8878
  }
8934
  }
8879
 
8935
 
8880
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
8936
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
8881
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
8937
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
8882
    public Processor(I iface) {
8938
    public Processor(I iface) {
Line 9028... Line 9084...
9028
      processMap.put("getMarketplacedetailsForItem", new getMarketplacedetailsForItem());
9084
      processMap.put("getMarketplacedetailsForItem", new getMarketplacedetailsForItem());
9029
      processMap.put("updateMarketplaceAttributesForItem", new updateMarketplaceAttributesForItem());
9085
      processMap.put("updateMarketplaceAttributesForItem", new updateMarketplaceAttributesForItem());
9030
      processMap.put("getCostingForMarketplace", new getCostingForMarketplace());
9086
      processMap.put("getCostingForMarketplace", new getCostingForMarketplace());
9031
      processMap.put("getMarketPlaceItemsForPriceUpdate", new getMarketPlaceItemsForPriceUpdate());
9087
      processMap.put("getMarketPlaceItemsForPriceUpdate", new getMarketPlaceItemsForPriceUpdate());
9032
      processMap.put("updateMarketPlacePriceUpdateStatus", new updateMarketPlacePriceUpdateStatus());
9088
      processMap.put("updateMarketPlacePriceUpdateStatus", new updateMarketPlacePriceUpdateStatus());
-
 
9089
      processMap.put("updateItemHoldInventory", new updateItemHoldInventory());
9033
      return processMap;
9090
      return processMap;
9034
    }
9091
    }
9035
 
9092
 
9036
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
9093
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
9037
      public addItem() {
9094
      public addItem() {
Line 11520... Line 11577...
11520
        iface.updateMarketPlacePriceUpdateStatus(args.skulist, args.timestamp, args.source);
11577
        iface.updateMarketPlacePriceUpdateStatus(args.skulist, args.timestamp, args.source);
11521
        return result;
11578
        return result;
11522
      }
11579
      }
11523
    }
11580
    }
11524
 
11581
 
-
 
11582
    private static class updateItemHoldInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItemHoldInventory_args> {
-
 
11583
      public updateItemHoldInventory() {
-
 
11584
        super("updateItemHoldInventory");
-
 
11585
      }
-
 
11586
 
-
 
11587
      protected updateItemHoldInventory_args getEmptyArgsInstance() {
-
 
11588
        return new updateItemHoldInventory_args();
-
 
11589
      }
-
 
11590
 
-
 
11591
      protected updateItemHoldInventory_result getResult(I iface, updateItemHoldInventory_args args) throws org.apache.thrift.TException {
-
 
11592
        updateItemHoldInventory_result result = new updateItemHoldInventory_result();
-
 
11593
        iface.updateItemHoldInventory(args.itemHoldMap);
-
 
11594
        return result;
-
 
11595
      }
-
 
11596
    }
-
 
11597
 
11525
  }
11598
  }
11526
 
11599
 
11527
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
11600
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
11528
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
11601
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
11529
 
11602
 
Line 102821... Line 102894...
102821
      boolean first = true;
102894
      boolean first = true;
102822
 
102895
 
102823
      sb.append(")");
102896
      sb.append(")");
102824
      return sb.toString();
102897
      return sb.toString();
102825
    }
102898
    }
-
 
102899
 
-
 
102900
    public void validate() throws org.apache.thrift.TException {
-
 
102901
      // check for required fields
-
 
102902
    }
-
 
102903
 
-
 
102904
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
102905
      try {
-
 
102906
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
102907
      } catch (org.apache.thrift.TException te) {
-
 
102908
        throw new java.io.IOException(te);
-
 
102909
      }
-
 
102910
    }
-
 
102911
 
-
 
102912
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
102913
      try {
-
 
102914
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
102915
      } catch (org.apache.thrift.TException te) {
-
 
102916
        throw new java.io.IOException(te);
-
 
102917
      }
-
 
102918
    }
-
 
102919
 
-
 
102920
  }
-
 
102921
 
-
 
102922
  public static class updateItemHoldInventory_args implements org.apache.thrift.TBase<updateItemHoldInventory_args, updateItemHoldInventory_args._Fields>, java.io.Serializable, Cloneable   {
-
 
102923
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemHoldInventory_args");
-
 
102924
 
-
 
102925
    private static final org.apache.thrift.protocol.TField ITEM_HOLD_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("itemHoldMap", org.apache.thrift.protocol.TType.MAP, (short)1);
-
 
102926
 
-
 
102927
    private Map<Long,Long> itemHoldMap; // required
-
 
102928
 
-
 
102929
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
102930
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
102931
      ITEM_HOLD_MAP((short)1, "itemHoldMap");
-
 
102932
 
-
 
102933
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
102934
 
-
 
102935
      static {
-
 
102936
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
102937
          byName.put(field.getFieldName(), field);
-
 
102938
        }
-
 
102939
      }
-
 
102940
 
-
 
102941
      /**
-
 
102942
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
102943
       */
-
 
102944
      public static _Fields findByThriftId(int fieldId) {
-
 
102945
        switch(fieldId) {
-
 
102946
          case 1: // ITEM_HOLD_MAP
-
 
102947
            return ITEM_HOLD_MAP;
-
 
102948
          default:
-
 
102949
            return null;
-
 
102950
        }
-
 
102951
      }
-
 
102952
 
-
 
102953
      /**
-
 
102954
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
102955
       * if it is not found.
-
 
102956
       */
-
 
102957
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
102958
        _Fields fields = findByThriftId(fieldId);
-
 
102959
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
102960
        return fields;
-
 
102961
      }
-
 
102962
 
-
 
102963
      /**
-
 
102964
       * Find the _Fields constant that matches name, or null if its not found.
-
 
102965
       */
-
 
102966
      public static _Fields findByName(String name) {
-
 
102967
        return byName.get(name);
-
 
102968
      }
-
 
102969
 
-
 
102970
      private final short _thriftId;
-
 
102971
      private final String _fieldName;
-
 
102972
 
-
 
102973
      _Fields(short thriftId, String fieldName) {
-
 
102974
        _thriftId = thriftId;
-
 
102975
        _fieldName = fieldName;
-
 
102976
      }
-
 
102977
 
-
 
102978
      public short getThriftFieldId() {
-
 
102979
        return _thriftId;
-
 
102980
      }
-
 
102981
 
-
 
102982
      public String getFieldName() {
-
 
102983
        return _fieldName;
-
 
102984
      }
-
 
102985
    }
-
 
102986
 
-
 
102987
    // isset id assignments
-
 
102988
 
-
 
102989
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
102990
    static {
-
 
102991
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
102992
      tmpMap.put(_Fields.ITEM_HOLD_MAP, new org.apache.thrift.meta_data.FieldMetaData("itemHoldMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
102993
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
102994
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
102995
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
102996
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
102997
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemHoldInventory_args.class, metaDataMap);
-
 
102998
    }
-
 
102999
 
-
 
103000
    public updateItemHoldInventory_args() {
-
 
103001
    }
-
 
103002
 
-
 
103003
    public updateItemHoldInventory_args(
-
 
103004
      Map<Long,Long> itemHoldMap)
-
 
103005
    {
-
 
103006
      this();
-
 
103007
      this.itemHoldMap = itemHoldMap;
-
 
103008
    }
-
 
103009
 
-
 
103010
    /**
-
 
103011
     * Performs a deep copy on <i>other</i>.
-
 
103012
     */
-
 
103013
    public updateItemHoldInventory_args(updateItemHoldInventory_args other) {
-
 
103014
      if (other.isSetItemHoldMap()) {
-
 
103015
        Map<Long,Long> __this__itemHoldMap = new HashMap<Long,Long>();
-
 
103016
        for (Map.Entry<Long, Long> other_element : other.itemHoldMap.entrySet()) {
-
 
103017
 
-
 
103018
          Long other_element_key = other_element.getKey();
-
 
103019
          Long other_element_value = other_element.getValue();
-
 
103020
 
-
 
103021
          Long __this__itemHoldMap_copy_key = other_element_key;
-
 
103022
 
-
 
103023
          Long __this__itemHoldMap_copy_value = other_element_value;
-
 
103024
 
-
 
103025
          __this__itemHoldMap.put(__this__itemHoldMap_copy_key, __this__itemHoldMap_copy_value);
-
 
103026
        }
-
 
103027
        this.itemHoldMap = __this__itemHoldMap;
-
 
103028
      }
-
 
103029
    }
-
 
103030
 
-
 
103031
    public updateItemHoldInventory_args deepCopy() {
-
 
103032
      return new updateItemHoldInventory_args(this);
-
 
103033
    }
-
 
103034
 
-
 
103035
    @Override
-
 
103036
    public void clear() {
-
 
103037
      this.itemHoldMap = null;
-
 
103038
    }
-
 
103039
 
-
 
103040
    public int getItemHoldMapSize() {
-
 
103041
      return (this.itemHoldMap == null) ? 0 : this.itemHoldMap.size();
-
 
103042
    }
-
 
103043
 
-
 
103044
    public void putToItemHoldMap(long key, long val) {
-
 
103045
      if (this.itemHoldMap == null) {
-
 
103046
        this.itemHoldMap = new HashMap<Long,Long>();
-
 
103047
      }
-
 
103048
      this.itemHoldMap.put(key, val);
-
 
103049
    }
-
 
103050
 
-
 
103051
    public Map<Long,Long> getItemHoldMap() {
-
 
103052
      return this.itemHoldMap;
-
 
103053
    }
-
 
103054
 
-
 
103055
    public void setItemHoldMap(Map<Long,Long> itemHoldMap) {
-
 
103056
      this.itemHoldMap = itemHoldMap;
-
 
103057
    }
-
 
103058
 
-
 
103059
    public void unsetItemHoldMap() {
-
 
103060
      this.itemHoldMap = null;
-
 
103061
    }
-
 
103062
 
-
 
103063
    /** Returns true if field itemHoldMap is set (has been assigned a value) and false otherwise */
-
 
103064
    public boolean isSetItemHoldMap() {
-
 
103065
      return this.itemHoldMap != null;
-
 
103066
    }
-
 
103067
 
-
 
103068
    public void setItemHoldMapIsSet(boolean value) {
-
 
103069
      if (!value) {
-
 
103070
        this.itemHoldMap = null;
-
 
103071
      }
-
 
103072
    }
-
 
103073
 
-
 
103074
    public void setFieldValue(_Fields field, Object value) {
-
 
103075
      switch (field) {
-
 
103076
      case ITEM_HOLD_MAP:
-
 
103077
        if (value == null) {
-
 
103078
          unsetItemHoldMap();
-
 
103079
        } else {
-
 
103080
          setItemHoldMap((Map<Long,Long>)value);
-
 
103081
        }
-
 
103082
        break;
-
 
103083
 
-
 
103084
      }
-
 
103085
    }
-
 
103086
 
-
 
103087
    public Object getFieldValue(_Fields field) {
-
 
103088
      switch (field) {
-
 
103089
      case ITEM_HOLD_MAP:
-
 
103090
        return getItemHoldMap();
-
 
103091
 
-
 
103092
      }
-
 
103093
      throw new IllegalStateException();
-
 
103094
    }
-
 
103095
 
-
 
103096
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
103097
    public boolean isSet(_Fields field) {
-
 
103098
      if (field == null) {
-
 
103099
        throw new IllegalArgumentException();
-
 
103100
      }
-
 
103101
 
-
 
103102
      switch (field) {
-
 
103103
      case ITEM_HOLD_MAP:
-
 
103104
        return isSetItemHoldMap();
-
 
103105
      }
-
 
103106
      throw new IllegalStateException();
-
 
103107
    }
-
 
103108
 
-
 
103109
    @Override
-
 
103110
    public boolean equals(Object that) {
-
 
103111
      if (that == null)
-
 
103112
        return false;
-
 
103113
      if (that instanceof updateItemHoldInventory_args)
-
 
103114
        return this.equals((updateItemHoldInventory_args)that);
-
 
103115
      return false;
-
 
103116
    }
-
 
103117
 
-
 
103118
    public boolean equals(updateItemHoldInventory_args that) {
-
 
103119
      if (that == null)
-
 
103120
        return false;
-
 
103121
 
-
 
103122
      boolean this_present_itemHoldMap = true && this.isSetItemHoldMap();
-
 
103123
      boolean that_present_itemHoldMap = true && that.isSetItemHoldMap();
-
 
103124
      if (this_present_itemHoldMap || that_present_itemHoldMap) {
-
 
103125
        if (!(this_present_itemHoldMap && that_present_itemHoldMap))
-
 
103126
          return false;
-
 
103127
        if (!this.itemHoldMap.equals(that.itemHoldMap))
-
 
103128
          return false;
-
 
103129
      }
-
 
103130
 
-
 
103131
      return true;
-
 
103132
    }
-
 
103133
 
-
 
103134
    @Override
-
 
103135
    public int hashCode() {
-
 
103136
      return 0;
-
 
103137
    }
-
 
103138
 
-
 
103139
    public int compareTo(updateItemHoldInventory_args other) {
-
 
103140
      if (!getClass().equals(other.getClass())) {
-
 
103141
        return getClass().getName().compareTo(other.getClass().getName());
-
 
103142
      }
-
 
103143
 
-
 
103144
      int lastComparison = 0;
-
 
103145
      updateItemHoldInventory_args typedOther = (updateItemHoldInventory_args)other;
-
 
103146
 
-
 
103147
      lastComparison = Boolean.valueOf(isSetItemHoldMap()).compareTo(typedOther.isSetItemHoldMap());
-
 
103148
      if (lastComparison != 0) {
-
 
103149
        return lastComparison;
-
 
103150
      }
-
 
103151
      if (isSetItemHoldMap()) {
-
 
103152
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemHoldMap, typedOther.itemHoldMap);
-
 
103153
        if (lastComparison != 0) {
-
 
103154
          return lastComparison;
-
 
103155
        }
-
 
103156
      }
-
 
103157
      return 0;
-
 
103158
    }
-
 
103159
 
-
 
103160
    public _Fields fieldForId(int fieldId) {
-
 
103161
      return _Fields.findByThriftId(fieldId);
-
 
103162
    }
-
 
103163
 
-
 
103164
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
103165
      org.apache.thrift.protocol.TField field;
-
 
103166
      iprot.readStructBegin();
-
 
103167
      while (true)
-
 
103168
      {
-
 
103169
        field = iprot.readFieldBegin();
-
 
103170
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
103171
          break;
-
 
103172
        }
-
 
103173
        switch (field.id) {
-
 
103174
          case 1: // ITEM_HOLD_MAP
-
 
103175
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
103176
              {
-
 
103177
                org.apache.thrift.protocol.TMap _map324 = iprot.readMapBegin();
-
 
103178
                this.itemHoldMap = new HashMap<Long,Long>(2*_map324.size);
-
 
103179
                for (int _i325 = 0; _i325 < _map324.size; ++_i325)
-
 
103180
                {
-
 
103181
                  long _key326; // required
-
 
103182
                  long _val327; // required
-
 
103183
                  _key326 = iprot.readI64();
-
 
103184
                  _val327 = iprot.readI64();
-
 
103185
                  this.itemHoldMap.put(_key326, _val327);
-
 
103186
                }
-
 
103187
                iprot.readMapEnd();
-
 
103188
              }
-
 
103189
            } else { 
-
 
103190
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
103191
            }
-
 
103192
            break;
-
 
103193
          default:
-
 
103194
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
103195
        }
-
 
103196
        iprot.readFieldEnd();
-
 
103197
      }
-
 
103198
      iprot.readStructEnd();
-
 
103199
      validate();
-
 
103200
    }
-
 
103201
 
-
 
103202
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
103203
      validate();
-
 
103204
 
-
 
103205
      oprot.writeStructBegin(STRUCT_DESC);
-
 
103206
      if (this.itemHoldMap != null) {
-
 
103207
        oprot.writeFieldBegin(ITEM_HOLD_MAP_FIELD_DESC);
-
 
103208
        {
-
 
103209
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.itemHoldMap.size()));
-
 
103210
          for (Map.Entry<Long, Long> _iter328 : this.itemHoldMap.entrySet())
-
 
103211
          {
-
 
103212
            oprot.writeI64(_iter328.getKey());
-
 
103213
            oprot.writeI64(_iter328.getValue());
-
 
103214
          }
-
 
103215
          oprot.writeMapEnd();
-
 
103216
        }
-
 
103217
        oprot.writeFieldEnd();
-
 
103218
      }
-
 
103219
      oprot.writeFieldStop();
-
 
103220
      oprot.writeStructEnd();
-
 
103221
    }
-
 
103222
 
-
 
103223
    @Override
-
 
103224
    public String toString() {
-
 
103225
      StringBuilder sb = new StringBuilder("updateItemHoldInventory_args(");
-
 
103226
      boolean first = true;
-
 
103227
 
-
 
103228
      sb.append("itemHoldMap:");
-
 
103229
      if (this.itemHoldMap == null) {
-
 
103230
        sb.append("null");
-
 
103231
      } else {
-
 
103232
        sb.append(this.itemHoldMap);
-
 
103233
      }
-
 
103234
      first = false;
-
 
103235
      sb.append(")");
-
 
103236
      return sb.toString();
-
 
103237
    }
-
 
103238
 
-
 
103239
    public void validate() throws org.apache.thrift.TException {
-
 
103240
      // check for required fields
-
 
103241
    }
-
 
103242
 
-
 
103243
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
103244
      try {
-
 
103245
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
103246
      } catch (org.apache.thrift.TException te) {
-
 
103247
        throw new java.io.IOException(te);
-
 
103248
      }
-
 
103249
    }
-
 
103250
 
-
 
103251
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
103252
      try {
-
 
103253
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
103254
      } catch (org.apache.thrift.TException te) {
-
 
103255
        throw new java.io.IOException(te);
-
 
103256
      }
-
 
103257
    }
-
 
103258
 
-
 
103259
  }
-
 
103260
 
-
 
103261
  public static class updateItemHoldInventory_result implements org.apache.thrift.TBase<updateItemHoldInventory_result, updateItemHoldInventory_result._Fields>, java.io.Serializable, Cloneable   {
-
 
103262
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemHoldInventory_result");
-
 
103263
 
-
 
103264
 
-
 
103265
 
-
 
103266
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
103267
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
103268
;
-
 
103269
 
-
 
103270
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
103271
 
-
 
103272
      static {
-
 
103273
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
103274
          byName.put(field.getFieldName(), field);
-
 
103275
        }
-
 
103276
      }
-
 
103277
 
-
 
103278
      /**
-
 
103279
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
103280
       */
-
 
103281
      public static _Fields findByThriftId(int fieldId) {
-
 
103282
        switch(fieldId) {
-
 
103283
          default:
-
 
103284
            return null;
-
 
103285
        }
-
 
103286
      }
-
 
103287
 
-
 
103288
      /**
-
 
103289
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
103290
       * if it is not found.
-
 
103291
       */
-
 
103292
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
103293
        _Fields fields = findByThriftId(fieldId);
-
 
103294
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
103295
        return fields;
-
 
103296
      }
-
 
103297
 
-
 
103298
      /**
-
 
103299
       * Find the _Fields constant that matches name, or null if its not found.
-
 
103300
       */
-
 
103301
      public static _Fields findByName(String name) {
-
 
103302
        return byName.get(name);
-
 
103303
      }
-
 
103304
 
-
 
103305
      private final short _thriftId;
-
 
103306
      private final String _fieldName;
-
 
103307
 
-
 
103308
      _Fields(short thriftId, String fieldName) {
-
 
103309
        _thriftId = thriftId;
-
 
103310
        _fieldName = fieldName;
-
 
103311
      }
-
 
103312
 
-
 
103313
      public short getThriftFieldId() {
-
 
103314
        return _thriftId;
-
 
103315
      }
-
 
103316
 
-
 
103317
      public String getFieldName() {
-
 
103318
        return _fieldName;
-
 
103319
      }
-
 
103320
    }
-
 
103321
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
103322
    static {
-
 
103323
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
103324
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
103325
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemHoldInventory_result.class, metaDataMap);
-
 
103326
    }
-
 
103327
 
-
 
103328
    public updateItemHoldInventory_result() {
-
 
103329
    }
-
 
103330
 
-
 
103331
    /**
-
 
103332
     * Performs a deep copy on <i>other</i>.
-
 
103333
     */
-
 
103334
    public updateItemHoldInventory_result(updateItemHoldInventory_result other) {
-
 
103335
    }
-
 
103336
 
-
 
103337
    public updateItemHoldInventory_result deepCopy() {
-
 
103338
      return new updateItemHoldInventory_result(this);
-
 
103339
    }
-
 
103340
 
-
 
103341
    @Override
-
 
103342
    public void clear() {
-
 
103343
    }
-
 
103344
 
-
 
103345
    public void setFieldValue(_Fields field, Object value) {
-
 
103346
      switch (field) {
-
 
103347
      }
-
 
103348
    }
-
 
103349
 
-
 
103350
    public Object getFieldValue(_Fields field) {
-
 
103351
      switch (field) {
-
 
103352
      }
-
 
103353
      throw new IllegalStateException();
-
 
103354
    }
-
 
103355
 
-
 
103356
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
103357
    public boolean isSet(_Fields field) {
-
 
103358
      if (field == null) {
-
 
103359
        throw new IllegalArgumentException();
-
 
103360
      }
-
 
103361
 
-
 
103362
      switch (field) {
-
 
103363
      }
-
 
103364
      throw new IllegalStateException();
-
 
103365
    }
-
 
103366
 
-
 
103367
    @Override
-
 
103368
    public boolean equals(Object that) {
-
 
103369
      if (that == null)
-
 
103370
        return false;
-
 
103371
      if (that instanceof updateItemHoldInventory_result)
-
 
103372
        return this.equals((updateItemHoldInventory_result)that);
-
 
103373
      return false;
-
 
103374
    }
-
 
103375
 
-
 
103376
    public boolean equals(updateItemHoldInventory_result that) {
-
 
103377
      if (that == null)
-
 
103378
        return false;
-
 
103379
 
-
 
103380
      return true;
-
 
103381
    }
-
 
103382
 
-
 
103383
    @Override
-
 
103384
    public int hashCode() {
-
 
103385
      return 0;
-
 
103386
    }
-
 
103387
 
-
 
103388
    public int compareTo(updateItemHoldInventory_result other) {
-
 
103389
      if (!getClass().equals(other.getClass())) {
-
 
103390
        return getClass().getName().compareTo(other.getClass().getName());
-
 
103391
      }
-
 
103392
 
-
 
103393
      int lastComparison = 0;
-
 
103394
      updateItemHoldInventory_result typedOther = (updateItemHoldInventory_result)other;
-
 
103395
 
-
 
103396
      return 0;
-
 
103397
    }
-
 
103398
 
-
 
103399
    public _Fields fieldForId(int fieldId) {
-
 
103400
      return _Fields.findByThriftId(fieldId);
-
 
103401
    }
-
 
103402
 
-
 
103403
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
103404
      org.apache.thrift.protocol.TField field;
-
 
103405
      iprot.readStructBegin();
-
 
103406
      while (true)
-
 
103407
      {
-
 
103408
        field = iprot.readFieldBegin();
-
 
103409
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
103410
          break;
-
 
103411
        }
-
 
103412
        switch (field.id) {
-
 
103413
          default:
-
 
103414
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
103415
        }
-
 
103416
        iprot.readFieldEnd();
-
 
103417
      }
-
 
103418
      iprot.readStructEnd();
-
 
103419
      validate();
-
 
103420
    }
-
 
103421
 
-
 
103422
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
103423
      oprot.writeStructBegin(STRUCT_DESC);
-
 
103424
 
-
 
103425
      oprot.writeFieldStop();
-
 
103426
      oprot.writeStructEnd();
-
 
103427
    }
-
 
103428
 
-
 
103429
    @Override
-
 
103430
    public String toString() {
-
 
103431
      StringBuilder sb = new StringBuilder("updateItemHoldInventory_result(");
-
 
103432
      boolean first = true;
-
 
103433
 
-
 
103434
      sb.append(")");
-
 
103435
      return sb.toString();
-
 
103436
    }
102826
 
103437
 
102827
    public void validate() throws org.apache.thrift.TException {
103438
    public void validate() throws org.apache.thrift.TException {
102828
      // check for required fields
103439
      // check for required fields
102829
    }
103440
    }
102830
 
103441