Subversion Repositories SmartDukaan

Rev

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

Rev 6832 Rev 6857
Line 301... Line 301...
301
 
301
 
302
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException;
302
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException;
303
 
303
 
304
    public List<OOSStatus> getOosStatusesForXDaysForItem(long itemId, int days) throws org.apache.thrift.TException;
304
    public List<OOSStatus> getOosStatusesForXDaysForItem(long itemId, int days) throws org.apache.thrift.TException;
305
 
305
 
-
 
306
    public List<ItemStockPurchaseParams> getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException;
-
 
307
 
306
  }
308
  }
307
 
309
 
308
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
310
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
309
 
311
 
310
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
312
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 401... Line 403...
401
 
403
 
402
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException;
404
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException;
403
 
405
 
404
    public void getOosStatusesForXDaysForItem(long itemId, int days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOosStatusesForXDaysForItem_call> resultHandler) throws org.apache.thrift.TException;
406
    public void getOosStatusesForXDaysForItem(long itemId, int days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOosStatusesForXDaysForItem_call> resultHandler) throws org.apache.thrift.TException;
405
 
407
 
-
 
408
    public void getNonZeroItemStockPurchaseParams(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonZeroItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
-
 
409
 
406
  }
410
  }
407
 
411
 
408
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
412
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
409
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
413
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
410
      public Factory() {}
414
      public Factory() {}
Line 1582... Line 1586...
1582
        return result.success;
1586
        return result.success;
1583
      }
1587
      }
1584
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
1588
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
1585
    }
1589
    }
1586
 
1590
 
-
 
1591
    public List<ItemStockPurchaseParams> getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException
-
 
1592
    {
-
 
1593
      send_getNonZeroItemStockPurchaseParams();
-
 
1594
      return recv_getNonZeroItemStockPurchaseParams();
-
 
1595
    }
-
 
1596
 
-
 
1597
    public void send_getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException
-
 
1598
    {
-
 
1599
      getNonZeroItemStockPurchaseParams_args args = new getNonZeroItemStockPurchaseParams_args();
-
 
1600
      sendBase("getNonZeroItemStockPurchaseParams", args);
-
 
1601
    }
-
 
1602
 
-
 
1603
    public List<ItemStockPurchaseParams> recv_getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException
-
 
1604
    {
-
 
1605
      getNonZeroItemStockPurchaseParams_result result = new getNonZeroItemStockPurchaseParams_result();
-
 
1606
      receiveBase(result, "getNonZeroItemStockPurchaseParams");
-
 
1607
      if (result.isSetSuccess()) {
-
 
1608
        return result.success;
-
 
1609
      }
-
 
1610
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
-
 
1611
    }
-
 
1612
 
1587
  }
1613
  }
1588
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1614
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1589
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1615
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1590
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1616
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1591
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1617
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 3238... Line 3264...
3238
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3264
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3239
        return (new Client(prot)).recv_getOosStatusesForXDaysForItem();
3265
        return (new Client(prot)).recv_getOosStatusesForXDaysForItem();
3240
      }
3266
      }
3241
    }
3267
    }
3242
 
3268
 
-
 
3269
    public void getNonZeroItemStockPurchaseParams(org.apache.thrift.async.AsyncMethodCallback<getNonZeroItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
-
 
3270
      checkReady();
-
 
3271
      getNonZeroItemStockPurchaseParams_call method_call = new getNonZeroItemStockPurchaseParams_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
3272
      this.___currentMethod = method_call;
-
 
3273
      ___manager.call(method_call);
-
 
3274
    }
-
 
3275
 
-
 
3276
    public static class getNonZeroItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3277
      public getNonZeroItemStockPurchaseParams_call(org.apache.thrift.async.AsyncMethodCallback<getNonZeroItemStockPurchaseParams_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 {
-
 
3278
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3279
      }
-
 
3280
 
-
 
3281
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3282
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonZeroItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3283
        getNonZeroItemStockPurchaseParams_args args = new getNonZeroItemStockPurchaseParams_args();
-
 
3284
        args.write(prot);
-
 
3285
        prot.writeMessageEnd();
-
 
3286
      }
-
 
3287
 
-
 
3288
      public List<ItemStockPurchaseParams> getResult() throws org.apache.thrift.TException {
-
 
3289
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3290
          throw new IllegalStateException("Method call not finished!");
-
 
3291
        }
-
 
3292
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3293
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3294
        return (new Client(prot)).recv_getNonZeroItemStockPurchaseParams();
-
 
3295
      }
-
 
3296
    }
-
 
3297
 
3243
  }
3298
  }
3244
 
3299
 
3245
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3300
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3246
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3301
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3247
    public Processor(I iface) {
3302
    public Processor(I iface) {
Line 3299... Line 3354...
3299
      processMap.put("getIgnoredInventoryUpdateItemids", new getIgnoredInventoryUpdateItemids());
3354
      processMap.put("getIgnoredInventoryUpdateItemids", new getIgnoredInventoryUpdateItemids());
3300
      processMap.put("updateItemStockPurchaseParams", new updateItemStockPurchaseParams());
3355
      processMap.put("updateItemStockPurchaseParams", new updateItemStockPurchaseParams());
3301
      processMap.put("getItemStockPurchaseParams", new getItemStockPurchaseParams());
3356
      processMap.put("getItemStockPurchaseParams", new getItemStockPurchaseParams());
3302
      processMap.put("addOosStatusForItem", new addOosStatusForItem());
3357
      processMap.put("addOosStatusForItem", new addOosStatusForItem());
3303
      processMap.put("getOosStatusesForXDaysForItem", new getOosStatusesForXDaysForItem());
3358
      processMap.put("getOosStatusesForXDaysForItem", new getOosStatusesForXDaysForItem());
-
 
3359
      processMap.put("getNonZeroItemStockPurchaseParams", new getNonZeroItemStockPurchaseParams());
3304
      return processMap;
3360
      return processMap;
3305
    }
3361
    }
3306
 
3362
 
3307
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
3363
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
3308
      public addWarehouse() {
3364
      public addWarehouse() {
Line 4168... Line 4224...
4168
        result.success = iface.getOosStatusesForXDaysForItem(args.itemId, args.days);
4224
        result.success = iface.getOosStatusesForXDaysForItem(args.itemId, args.days);
4169
        return result;
4225
        return result;
4170
      }
4226
      }
4171
    }
4227
    }
4172
 
4228
 
-
 
4229
    private static class getNonZeroItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonZeroItemStockPurchaseParams_args> {
-
 
4230
      public getNonZeroItemStockPurchaseParams() {
-
 
4231
        super("getNonZeroItemStockPurchaseParams");
-
 
4232
      }
-
 
4233
 
-
 
4234
      protected getNonZeroItemStockPurchaseParams_args getEmptyArgsInstance() {
-
 
4235
        return new getNonZeroItemStockPurchaseParams_args();
-
 
4236
      }
-
 
4237
 
-
 
4238
      protected getNonZeroItemStockPurchaseParams_result getResult(I iface, getNonZeroItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
-
 
4239
        getNonZeroItemStockPurchaseParams_result result = new getNonZeroItemStockPurchaseParams_result();
-
 
4240
        result.success = iface.getNonZeroItemStockPurchaseParams();
-
 
4241
        return result;
-
 
4242
      }
-
 
4243
    }
-
 
4244
 
4173
  }
4245
  }
4174
 
4246
 
4175
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
4247
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
4176
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
4248
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
4177
 
4249
 
Line 36657... Line 36729...
36657
      boolean first = true;
36729
      boolean first = true;
36658
 
36730
 
36659
      sb.append("success:");
36731
      sb.append("success:");
36660
      if (this.success == null) {
36732
      if (this.success == null) {
36661
        sb.append("null");
36733
        sb.append("null");
-
 
36734
      } else {
-
 
36735
        sb.append(this.success);
-
 
36736
      }
-
 
36737
      first = false;
-
 
36738
      sb.append(")");
-
 
36739
      return sb.toString();
-
 
36740
    }
-
 
36741
 
-
 
36742
    public void validate() throws org.apache.thrift.TException {
-
 
36743
      // check for required fields
-
 
36744
    }
-
 
36745
 
-
 
36746
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
36747
      try {
-
 
36748
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
36749
      } catch (org.apache.thrift.TException te) {
-
 
36750
        throw new java.io.IOException(te);
-
 
36751
      }
-
 
36752
    }
-
 
36753
 
-
 
36754
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
36755
      try {
-
 
36756
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
36757
      } catch (org.apache.thrift.TException te) {
-
 
36758
        throw new java.io.IOException(te);
-
 
36759
      }
-
 
36760
    }
-
 
36761
 
-
 
36762
  }
-
 
36763
 
-
 
36764
  public static class getNonZeroItemStockPurchaseParams_args implements org.apache.thrift.TBase<getNonZeroItemStockPurchaseParams_args, getNonZeroItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
-
 
36765
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonZeroItemStockPurchaseParams_args");
-
 
36766
 
-
 
36767
 
-
 
36768
 
-
 
36769
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
36770
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
36771
;
-
 
36772
 
-
 
36773
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
36774
 
-
 
36775
      static {
-
 
36776
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
36777
          byName.put(field.getFieldName(), field);
-
 
36778
        }
-
 
36779
      }
-
 
36780
 
-
 
36781
      /**
-
 
36782
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
36783
       */
-
 
36784
      public static _Fields findByThriftId(int fieldId) {
-
 
36785
        switch(fieldId) {
-
 
36786
          default:
-
 
36787
            return null;
-
 
36788
        }
-
 
36789
      }
-
 
36790
 
-
 
36791
      /**
-
 
36792
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
36793
       * if it is not found.
-
 
36794
       */
-
 
36795
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
36796
        _Fields fields = findByThriftId(fieldId);
-
 
36797
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
36798
        return fields;
-
 
36799
      }
-
 
36800
 
-
 
36801
      /**
-
 
36802
       * Find the _Fields constant that matches name, or null if its not found.
-
 
36803
       */
-
 
36804
      public static _Fields findByName(String name) {
-
 
36805
        return byName.get(name);
-
 
36806
      }
-
 
36807
 
-
 
36808
      private final short _thriftId;
-
 
36809
      private final String _fieldName;
-
 
36810
 
-
 
36811
      _Fields(short thriftId, String fieldName) {
-
 
36812
        _thriftId = thriftId;
-
 
36813
        _fieldName = fieldName;
-
 
36814
      }
-
 
36815
 
-
 
36816
      public short getThriftFieldId() {
-
 
36817
        return _thriftId;
-
 
36818
      }
-
 
36819
 
-
 
36820
      public String getFieldName() {
-
 
36821
        return _fieldName;
-
 
36822
      }
-
 
36823
    }
-
 
36824
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
36825
    static {
-
 
36826
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
36827
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
36828
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonZeroItemStockPurchaseParams_args.class, metaDataMap);
-
 
36829
    }
-
 
36830
 
-
 
36831
    public getNonZeroItemStockPurchaseParams_args() {
-
 
36832
    }
-
 
36833
 
-
 
36834
    /**
-
 
36835
     * Performs a deep copy on <i>other</i>.
-
 
36836
     */
-
 
36837
    public getNonZeroItemStockPurchaseParams_args(getNonZeroItemStockPurchaseParams_args other) {
-
 
36838
    }
-
 
36839
 
-
 
36840
    public getNonZeroItemStockPurchaseParams_args deepCopy() {
-
 
36841
      return new getNonZeroItemStockPurchaseParams_args(this);
-
 
36842
    }
-
 
36843
 
-
 
36844
    @Override
-
 
36845
    public void clear() {
-
 
36846
    }
-
 
36847
 
-
 
36848
    public void setFieldValue(_Fields field, Object value) {
-
 
36849
      switch (field) {
-
 
36850
      }
-
 
36851
    }
-
 
36852
 
-
 
36853
    public Object getFieldValue(_Fields field) {
-
 
36854
      switch (field) {
-
 
36855
      }
-
 
36856
      throw new IllegalStateException();
-
 
36857
    }
-
 
36858
 
-
 
36859
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
36860
    public boolean isSet(_Fields field) {
-
 
36861
      if (field == null) {
-
 
36862
        throw new IllegalArgumentException();
-
 
36863
      }
-
 
36864
 
-
 
36865
      switch (field) {
-
 
36866
      }
-
 
36867
      throw new IllegalStateException();
-
 
36868
    }
-
 
36869
 
-
 
36870
    @Override
-
 
36871
    public boolean equals(Object that) {
-
 
36872
      if (that == null)
-
 
36873
        return false;
-
 
36874
      if (that instanceof getNonZeroItemStockPurchaseParams_args)
-
 
36875
        return this.equals((getNonZeroItemStockPurchaseParams_args)that);
-
 
36876
      return false;
-
 
36877
    }
-
 
36878
 
-
 
36879
    public boolean equals(getNonZeroItemStockPurchaseParams_args that) {
-
 
36880
      if (that == null)
-
 
36881
        return false;
-
 
36882
 
-
 
36883
      return true;
-
 
36884
    }
-
 
36885
 
-
 
36886
    @Override
-
 
36887
    public int hashCode() {
-
 
36888
      return 0;
-
 
36889
    }
-
 
36890
 
-
 
36891
    public int compareTo(getNonZeroItemStockPurchaseParams_args other) {
-
 
36892
      if (!getClass().equals(other.getClass())) {
-
 
36893
        return getClass().getName().compareTo(other.getClass().getName());
-
 
36894
      }
-
 
36895
 
-
 
36896
      int lastComparison = 0;
-
 
36897
      getNonZeroItemStockPurchaseParams_args typedOther = (getNonZeroItemStockPurchaseParams_args)other;
-
 
36898
 
-
 
36899
      return 0;
-
 
36900
    }
-
 
36901
 
-
 
36902
    public _Fields fieldForId(int fieldId) {
-
 
36903
      return _Fields.findByThriftId(fieldId);
-
 
36904
    }
-
 
36905
 
-
 
36906
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
36907
      org.apache.thrift.protocol.TField field;
-
 
36908
      iprot.readStructBegin();
-
 
36909
      while (true)
-
 
36910
      {
-
 
36911
        field = iprot.readFieldBegin();
-
 
36912
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
36913
          break;
-
 
36914
        }
-
 
36915
        switch (field.id) {
-
 
36916
          default:
-
 
36917
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
36918
        }
-
 
36919
        iprot.readFieldEnd();
-
 
36920
      }
-
 
36921
      iprot.readStructEnd();
-
 
36922
      validate();
-
 
36923
    }
-
 
36924
 
-
 
36925
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
36926
      validate();
-
 
36927
 
-
 
36928
      oprot.writeStructBegin(STRUCT_DESC);
-
 
36929
      oprot.writeFieldStop();
-
 
36930
      oprot.writeStructEnd();
-
 
36931
    }
-
 
36932
 
-
 
36933
    @Override
-
 
36934
    public String toString() {
-
 
36935
      StringBuilder sb = new StringBuilder("getNonZeroItemStockPurchaseParams_args(");
-
 
36936
      boolean first = true;
-
 
36937
 
-
 
36938
      sb.append(")");
-
 
36939
      return sb.toString();
-
 
36940
    }
-
 
36941
 
-
 
36942
    public void validate() throws org.apache.thrift.TException {
-
 
36943
      // check for required fields
-
 
36944
    }
-
 
36945
 
-
 
36946
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
36947
      try {
-
 
36948
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
36949
      } catch (org.apache.thrift.TException te) {
-
 
36950
        throw new java.io.IOException(te);
-
 
36951
      }
-
 
36952
    }
-
 
36953
 
-
 
36954
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
36955
      try {
-
 
36956
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
36957
      } catch (org.apache.thrift.TException te) {
-
 
36958
        throw new java.io.IOException(te);
-
 
36959
      }
-
 
36960
    }
-
 
36961
 
-
 
36962
  }
-
 
36963
 
-
 
36964
  public static class getNonZeroItemStockPurchaseParams_result implements org.apache.thrift.TBase<getNonZeroItemStockPurchaseParams_result, getNonZeroItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
-
 
36965
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonZeroItemStockPurchaseParams_result");
-
 
36966
 
-
 
36967
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
36968
 
-
 
36969
    private List<ItemStockPurchaseParams> success; // required
-
 
36970
 
-
 
36971
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
36972
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
36973
      SUCCESS((short)0, "success");
-
 
36974
 
-
 
36975
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
36976
 
-
 
36977
      static {
-
 
36978
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
36979
          byName.put(field.getFieldName(), field);
-
 
36980
        }
-
 
36981
      }
-
 
36982
 
-
 
36983
      /**
-
 
36984
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
36985
       */
-
 
36986
      public static _Fields findByThriftId(int fieldId) {
-
 
36987
        switch(fieldId) {
-
 
36988
          case 0: // SUCCESS
-
 
36989
            return SUCCESS;
-
 
36990
          default:
-
 
36991
            return null;
-
 
36992
        }
-
 
36993
      }
-
 
36994
 
-
 
36995
      /**
-
 
36996
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
36997
       * if it is not found.
-
 
36998
       */
-
 
36999
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
37000
        _Fields fields = findByThriftId(fieldId);
-
 
37001
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
37002
        return fields;
-
 
37003
      }
-
 
37004
 
-
 
37005
      /**
-
 
37006
       * Find the _Fields constant that matches name, or null if its not found.
-
 
37007
       */
-
 
37008
      public static _Fields findByName(String name) {
-
 
37009
        return byName.get(name);
-
 
37010
      }
-
 
37011
 
-
 
37012
      private final short _thriftId;
-
 
37013
      private final String _fieldName;
-
 
37014
 
-
 
37015
      _Fields(short thriftId, String fieldName) {
-
 
37016
        _thriftId = thriftId;
-
 
37017
        _fieldName = fieldName;
-
 
37018
      }
-
 
37019
 
-
 
37020
      public short getThriftFieldId() {
-
 
37021
        return _thriftId;
-
 
37022
      }
-
 
37023
 
-
 
37024
      public String getFieldName() {
-
 
37025
        return _fieldName;
-
 
37026
      }
-
 
37027
    }
-
 
37028
 
-
 
37029
    // isset id assignments
-
 
37030
 
-
 
37031
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
37032
    static {
-
 
37033
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
37034
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
37035
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
37036
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemStockPurchaseParams.class))));
-
 
37037
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
37038
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonZeroItemStockPurchaseParams_result.class, metaDataMap);
-
 
37039
    }
-
 
37040
 
-
 
37041
    public getNonZeroItemStockPurchaseParams_result() {
-
 
37042
    }
-
 
37043
 
-
 
37044
    public getNonZeroItemStockPurchaseParams_result(
-
 
37045
      List<ItemStockPurchaseParams> success)
-
 
37046
    {
-
 
37047
      this();
-
 
37048
      this.success = success;
-
 
37049
    }
-
 
37050
 
-
 
37051
    /**
-
 
37052
     * Performs a deep copy on <i>other</i>.
-
 
37053
     */
-
 
37054
    public getNonZeroItemStockPurchaseParams_result(getNonZeroItemStockPurchaseParams_result other) {
-
 
37055
      if (other.isSetSuccess()) {
-
 
37056
        List<ItemStockPurchaseParams> __this__success = new ArrayList<ItemStockPurchaseParams>();
-
 
37057
        for (ItemStockPurchaseParams other_element : other.success) {
-
 
37058
          __this__success.add(new ItemStockPurchaseParams(other_element));
-
 
37059
        }
-
 
37060
        this.success = __this__success;
-
 
37061
      }
-
 
37062
    }
-
 
37063
 
-
 
37064
    public getNonZeroItemStockPurchaseParams_result deepCopy() {
-
 
37065
      return new getNonZeroItemStockPurchaseParams_result(this);
-
 
37066
    }
-
 
37067
 
-
 
37068
    @Override
-
 
37069
    public void clear() {
-
 
37070
      this.success = null;
-
 
37071
    }
-
 
37072
 
-
 
37073
    public int getSuccessSize() {
-
 
37074
      return (this.success == null) ? 0 : this.success.size();
-
 
37075
    }
-
 
37076
 
-
 
37077
    public java.util.Iterator<ItemStockPurchaseParams> getSuccessIterator() {
-
 
37078
      return (this.success == null) ? null : this.success.iterator();
-
 
37079
    }
-
 
37080
 
-
 
37081
    public void addToSuccess(ItemStockPurchaseParams elem) {
-
 
37082
      if (this.success == null) {
-
 
37083
        this.success = new ArrayList<ItemStockPurchaseParams>();
-
 
37084
      }
-
 
37085
      this.success.add(elem);
-
 
37086
    }
-
 
37087
 
-
 
37088
    public List<ItemStockPurchaseParams> getSuccess() {
-
 
37089
      return this.success;
-
 
37090
    }
-
 
37091
 
-
 
37092
    public void setSuccess(List<ItemStockPurchaseParams> success) {
-
 
37093
      this.success = success;
-
 
37094
    }
-
 
37095
 
-
 
37096
    public void unsetSuccess() {
-
 
37097
      this.success = null;
-
 
37098
    }
-
 
37099
 
-
 
37100
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
37101
    public boolean isSetSuccess() {
-
 
37102
      return this.success != null;
-
 
37103
    }
-
 
37104
 
-
 
37105
    public void setSuccessIsSet(boolean value) {
-
 
37106
      if (!value) {
-
 
37107
        this.success = null;
-
 
37108
      }
-
 
37109
    }
-
 
37110
 
-
 
37111
    public void setFieldValue(_Fields field, Object value) {
-
 
37112
      switch (field) {
-
 
37113
      case SUCCESS:
-
 
37114
        if (value == null) {
-
 
37115
          unsetSuccess();
-
 
37116
        } else {
-
 
37117
          setSuccess((List<ItemStockPurchaseParams>)value);
-
 
37118
        }
-
 
37119
        break;
-
 
37120
 
-
 
37121
      }
-
 
37122
    }
-
 
37123
 
-
 
37124
    public Object getFieldValue(_Fields field) {
-
 
37125
      switch (field) {
-
 
37126
      case SUCCESS:
-
 
37127
        return getSuccess();
-
 
37128
 
-
 
37129
      }
-
 
37130
      throw new IllegalStateException();
-
 
37131
    }
-
 
37132
 
-
 
37133
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
37134
    public boolean isSet(_Fields field) {
-
 
37135
      if (field == null) {
-
 
37136
        throw new IllegalArgumentException();
-
 
37137
      }
-
 
37138
 
-
 
37139
      switch (field) {
-
 
37140
      case SUCCESS:
-
 
37141
        return isSetSuccess();
-
 
37142
      }
-
 
37143
      throw new IllegalStateException();
-
 
37144
    }
-
 
37145
 
-
 
37146
    @Override
-
 
37147
    public boolean equals(Object that) {
-
 
37148
      if (that == null)
-
 
37149
        return false;
-
 
37150
      if (that instanceof getNonZeroItemStockPurchaseParams_result)
-
 
37151
        return this.equals((getNonZeroItemStockPurchaseParams_result)that);
-
 
37152
      return false;
-
 
37153
    }
-
 
37154
 
-
 
37155
    public boolean equals(getNonZeroItemStockPurchaseParams_result that) {
-
 
37156
      if (that == null)
-
 
37157
        return false;
-
 
37158
 
-
 
37159
      boolean this_present_success = true && this.isSetSuccess();
-
 
37160
      boolean that_present_success = true && that.isSetSuccess();
-
 
37161
      if (this_present_success || that_present_success) {
-
 
37162
        if (!(this_present_success && that_present_success))
-
 
37163
          return false;
-
 
37164
        if (!this.success.equals(that.success))
-
 
37165
          return false;
-
 
37166
      }
-
 
37167
 
-
 
37168
      return true;
-
 
37169
    }
-
 
37170
 
-
 
37171
    @Override
-
 
37172
    public int hashCode() {
-
 
37173
      return 0;
-
 
37174
    }
-
 
37175
 
-
 
37176
    public int compareTo(getNonZeroItemStockPurchaseParams_result other) {
-
 
37177
      if (!getClass().equals(other.getClass())) {
-
 
37178
        return getClass().getName().compareTo(other.getClass().getName());
-
 
37179
      }
-
 
37180
 
-
 
37181
      int lastComparison = 0;
-
 
37182
      getNonZeroItemStockPurchaseParams_result typedOther = (getNonZeroItemStockPurchaseParams_result)other;
-
 
37183
 
-
 
37184
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
37185
      if (lastComparison != 0) {
-
 
37186
        return lastComparison;
-
 
37187
      }
-
 
37188
      if (isSetSuccess()) {
-
 
37189
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
37190
        if (lastComparison != 0) {
-
 
37191
          return lastComparison;
-
 
37192
        }
-
 
37193
      }
-
 
37194
      return 0;
-
 
37195
    }
-
 
37196
 
-
 
37197
    public _Fields fieldForId(int fieldId) {
-
 
37198
      return _Fields.findByThriftId(fieldId);
-
 
37199
    }
-
 
37200
 
-
 
37201
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
37202
      org.apache.thrift.protocol.TField field;
-
 
37203
      iprot.readStructBegin();
-
 
37204
      while (true)
-
 
37205
      {
-
 
37206
        field = iprot.readFieldBegin();
-
 
37207
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
37208
          break;
-
 
37209
        }
-
 
37210
        switch (field.id) {
-
 
37211
          case 0: // SUCCESS
-
 
37212
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
37213
              {
-
 
37214
                org.apache.thrift.protocol.TList _list113 = iprot.readListBegin();
-
 
37215
                this.success = new ArrayList<ItemStockPurchaseParams>(_list113.size);
-
 
37216
                for (int _i114 = 0; _i114 < _list113.size; ++_i114)
-
 
37217
                {
-
 
37218
                  ItemStockPurchaseParams _elem115; // required
-
 
37219
                  _elem115 = new ItemStockPurchaseParams();
-
 
37220
                  _elem115.read(iprot);
-
 
37221
                  this.success.add(_elem115);
-
 
37222
                }
-
 
37223
                iprot.readListEnd();
-
 
37224
              }
-
 
37225
            } else { 
-
 
37226
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
37227
            }
-
 
37228
            break;
-
 
37229
          default:
-
 
37230
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
37231
        }
-
 
37232
        iprot.readFieldEnd();
-
 
37233
      }
-
 
37234
      iprot.readStructEnd();
-
 
37235
      validate();
-
 
37236
    }
-
 
37237
 
-
 
37238
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
37239
      oprot.writeStructBegin(STRUCT_DESC);
-
 
37240
 
-
 
37241
      if (this.isSetSuccess()) {
-
 
37242
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
37243
        {
-
 
37244
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
37245
          for (ItemStockPurchaseParams _iter116 : this.success)
-
 
37246
          {
-
 
37247
            _iter116.write(oprot);
-
 
37248
          }
-
 
37249
          oprot.writeListEnd();
-
 
37250
        }
-
 
37251
        oprot.writeFieldEnd();
-
 
37252
      }
-
 
37253
      oprot.writeFieldStop();
-
 
37254
      oprot.writeStructEnd();
-
 
37255
    }
-
 
37256
 
-
 
37257
    @Override
-
 
37258
    public String toString() {
-
 
37259
      StringBuilder sb = new StringBuilder("getNonZeroItemStockPurchaseParams_result(");
-
 
37260
      boolean first = true;
-
 
37261
 
-
 
37262
      sb.append("success:");
-
 
37263
      if (this.success == null) {
-
 
37264
        sb.append("null");
36662
      } else {
37265
      } else {
36663
        sb.append(this.success);
37266
        sb.append(this.success);
36664
      }
37267
      }
36665
      first = false;
37268
      first = false;
36666
      sb.append(")");
37269
      sb.append(")");