Subversion Repositories SmartDukaan

Rev

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

Rev 13529 Rev 14491
Line 360... Line 360...
360
 
360
 
361
    public List<InvAgeConsiderItems> getInventoryAgeConsideredItems(long itemId) throws WarehouseServiceException, org.apache.thrift.TException;
361
    public List<InvAgeConsiderItems> getInventoryAgeConsideredItems(long itemId) throws WarehouseServiceException, org.apache.thrift.TException;
362
 
362
 
363
    public List<InventoryMovement> getCompleteMovementForThirdPartyWarehouse(long startDate, long endDate) throws org.apache.thrift.TException;
363
    public List<InventoryMovement> getCompleteMovementForThirdPartyWarehouse(long startDate, long endDate) throws org.apache.thrift.TException;
364
 
364
 
-
 
365
    public List<DoaOutInventoryItem> getAllDoaOutInventoryItems() throws WarehouseServiceException, org.apache.thrift.TException;
-
 
366
 
365
  }
367
  }
366
 
368
 
367
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
369
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
368
 
370
 
369
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
371
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 494... Line 496...
494
 
496
 
495
    public void getInventoryAgeConsideredItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAgeConsideredItems_call> resultHandler) throws org.apache.thrift.TException;
497
    public void getInventoryAgeConsideredItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAgeConsideredItems_call> resultHandler) throws org.apache.thrift.TException;
496
 
498
 
497
    public void getCompleteMovementForThirdPartyWarehouse(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementForThirdPartyWarehouse_call> resultHandler) throws org.apache.thrift.TException;
499
    public void getCompleteMovementForThirdPartyWarehouse(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementForThirdPartyWarehouse_call> resultHandler) throws org.apache.thrift.TException;
498
 
500
 
-
 
501
    public void getAllDoaOutInventoryItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllDoaOutInventoryItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
502
 
499
  }
503
  }
500
 
504
 
501
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
505
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
502
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
506
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
503
      public Factory() {}
507
      public Factory() {}
Line 2168... Line 2172...
2168
        return result.success;
2172
        return result.success;
2169
      }
2173
      }
2170
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCompleteMovementForThirdPartyWarehouse failed: unknown result");
2174
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCompleteMovementForThirdPartyWarehouse failed: unknown result");
2171
    }
2175
    }
2172
 
2176
 
-
 
2177
    public List<DoaOutInventoryItem> getAllDoaOutInventoryItems() throws WarehouseServiceException, org.apache.thrift.TException
-
 
2178
    {
-
 
2179
      send_getAllDoaOutInventoryItems();
-
 
2180
      return recv_getAllDoaOutInventoryItems();
-
 
2181
    }
-
 
2182
 
-
 
2183
    public void send_getAllDoaOutInventoryItems() throws org.apache.thrift.TException
-
 
2184
    {
-
 
2185
      getAllDoaOutInventoryItems_args args = new getAllDoaOutInventoryItems_args();
-
 
2186
      sendBase("getAllDoaOutInventoryItems", args);
-
 
2187
    }
-
 
2188
 
-
 
2189
    public List<DoaOutInventoryItem> recv_getAllDoaOutInventoryItems() throws WarehouseServiceException, org.apache.thrift.TException
-
 
2190
    {
-
 
2191
      getAllDoaOutInventoryItems_result result = new getAllDoaOutInventoryItems_result();
-
 
2192
      receiveBase(result, "getAllDoaOutInventoryItems");
-
 
2193
      if (result.isSetSuccess()) {
-
 
2194
        return result.success;
-
 
2195
      }
-
 
2196
      if (result.ex != null) {
-
 
2197
        throw result.ex;
-
 
2198
      }
-
 
2199
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllDoaOutInventoryItems failed: unknown result");
-
 
2200
    }
-
 
2201
 
2173
  }
2202
  }
2174
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2203
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2175
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2204
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2176
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2205
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2177
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2206
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4494... Line 4523...
4494
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4523
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4495
        return (new Client(prot)).recv_getCompleteMovementForThirdPartyWarehouse();
4524
        return (new Client(prot)).recv_getCompleteMovementForThirdPartyWarehouse();
4496
      }
4525
      }
4497
    }
4526
    }
4498
 
4527
 
-
 
4528
    public void getAllDoaOutInventoryItems(org.apache.thrift.async.AsyncMethodCallback<getAllDoaOutInventoryItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
4529
      checkReady();
-
 
4530
      getAllDoaOutInventoryItems_call method_call = new getAllDoaOutInventoryItems_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
4531
      this.___currentMethod = method_call;
-
 
4532
      ___manager.call(method_call);
-
 
4533
    }
-
 
4534
 
-
 
4535
    public static class getAllDoaOutInventoryItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4536
      public getAllDoaOutInventoryItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllDoaOutInventoryItems_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 {
-
 
4537
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4538
      }
-
 
4539
 
-
 
4540
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4541
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllDoaOutInventoryItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4542
        getAllDoaOutInventoryItems_args args = new getAllDoaOutInventoryItems_args();
-
 
4543
        args.write(prot);
-
 
4544
        prot.writeMessageEnd();
-
 
4545
      }
-
 
4546
 
-
 
4547
      public List<DoaOutInventoryItem> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
4548
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4549
          throw new IllegalStateException("Method call not finished!");
-
 
4550
        }
-
 
4551
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4552
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4553
        return (new Client(prot)).recv_getAllDoaOutInventoryItems();
-
 
4554
      }
-
 
4555
    }
-
 
4556
 
4499
  }
4557
  }
4500
 
4558
 
4501
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4559
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4502
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4560
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4503
    public Processor(I iface) {
4561
    public Processor(I iface) {
Line 4572... Line 4630...
4572
      processMap.put("getItemsInPurchaseReturn", new getItemsInPurchaseReturn());
4630
      processMap.put("getItemsInPurchaseReturn", new getItemsInPurchaseReturn());
4573
      processMap.put("getScansForInventoryItem", new getScansForInventoryItem());
4631
      processMap.put("getScansForInventoryItem", new getScansForInventoryItem());
4574
      processMap.put("checkGrnImeiStatus", new checkGrnImeiStatus());
4632
      processMap.put("checkGrnImeiStatus", new checkGrnImeiStatus());
4575
      processMap.put("getInventoryAgeConsideredItems", new getInventoryAgeConsideredItems());
4633
      processMap.put("getInventoryAgeConsideredItems", new getInventoryAgeConsideredItems());
4576
      processMap.put("getCompleteMovementForThirdPartyWarehouse", new getCompleteMovementForThirdPartyWarehouse());
4634
      processMap.put("getCompleteMovementForThirdPartyWarehouse", new getCompleteMovementForThirdPartyWarehouse());
-
 
4635
      processMap.put("getAllDoaOutInventoryItems", new getAllDoaOutInventoryItems());
4577
      return processMap;
4636
      return processMap;
4578
    }
4637
    }
4579
 
4638
 
4580
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4639
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4581
      public getInventoryItem() {
4640
      public getInventoryItem() {
Line 5782... Line 5841...
5782
        result.success = iface.getCompleteMovementForThirdPartyWarehouse(args.startDate, args.endDate);
5841
        result.success = iface.getCompleteMovementForThirdPartyWarehouse(args.startDate, args.endDate);
5783
        return result;
5842
        return result;
5784
      }
5843
      }
5785
    }
5844
    }
5786
 
5845
 
-
 
5846
    private static class getAllDoaOutInventoryItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllDoaOutInventoryItems_args> {
-
 
5847
      public getAllDoaOutInventoryItems() {
-
 
5848
        super("getAllDoaOutInventoryItems");
-
 
5849
      }
-
 
5850
 
-
 
5851
      protected getAllDoaOutInventoryItems_args getEmptyArgsInstance() {
-
 
5852
        return new getAllDoaOutInventoryItems_args();
-
 
5853
      }
-
 
5854
 
-
 
5855
      protected getAllDoaOutInventoryItems_result getResult(I iface, getAllDoaOutInventoryItems_args args) throws org.apache.thrift.TException {
-
 
5856
        getAllDoaOutInventoryItems_result result = new getAllDoaOutInventoryItems_result();
-
 
5857
        try {
-
 
5858
          result.success = iface.getAllDoaOutInventoryItems();
-
 
5859
        } catch (WarehouseServiceException ex) {
-
 
5860
          result.ex = ex;
-
 
5861
        }
-
 
5862
        return result;
-
 
5863
      }
-
 
5864
    }
-
 
5865
 
5787
  }
5866
  }
5788
 
5867
 
5789
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
5868
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
5790
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
5869
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
5791
 
5870
 
Line 54591... Line 54670...
54591
      }
54670
      }
54592
      first = false;
54671
      first = false;
54593
      sb.append(")");
54672
      sb.append(")");
54594
      return sb.toString();
54673
      return sb.toString();
54595
    }
54674
    }
-
 
54675
 
-
 
54676
    public void validate() throws org.apache.thrift.TException {
-
 
54677
      // check for required fields
-
 
54678
    }
-
 
54679
 
-
 
54680
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
54681
      try {
-
 
54682
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
54683
      } catch (org.apache.thrift.TException te) {
-
 
54684
        throw new java.io.IOException(te);
-
 
54685
      }
-
 
54686
    }
-
 
54687
 
-
 
54688
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
54689
      try {
-
 
54690
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
54691
      } catch (org.apache.thrift.TException te) {
-
 
54692
        throw new java.io.IOException(te);
-
 
54693
      }
-
 
54694
    }
-
 
54695
 
-
 
54696
  }
-
 
54697
 
-
 
54698
  public static class getAllDoaOutInventoryItems_args implements org.apache.thrift.TBase<getAllDoaOutInventoryItems_args, getAllDoaOutInventoryItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
54699
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllDoaOutInventoryItems_args");
-
 
54700
 
-
 
54701
 
-
 
54702
 
-
 
54703
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
54704
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
54705
;
-
 
54706
 
-
 
54707
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
54708
 
-
 
54709
      static {
-
 
54710
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
54711
          byName.put(field.getFieldName(), field);
-
 
54712
        }
-
 
54713
      }
-
 
54714
 
-
 
54715
      /**
-
 
54716
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
54717
       */
-
 
54718
      public static _Fields findByThriftId(int fieldId) {
-
 
54719
        switch(fieldId) {
-
 
54720
          default:
-
 
54721
            return null;
-
 
54722
        }
-
 
54723
      }
-
 
54724
 
-
 
54725
      /**
-
 
54726
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
54727
       * if it is not found.
-
 
54728
       */
-
 
54729
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
54730
        _Fields fields = findByThriftId(fieldId);
-
 
54731
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
54732
        return fields;
-
 
54733
      }
-
 
54734
 
-
 
54735
      /**
-
 
54736
       * Find the _Fields constant that matches name, or null if its not found.
-
 
54737
       */
-
 
54738
      public static _Fields findByName(String name) {
-
 
54739
        return byName.get(name);
-
 
54740
      }
-
 
54741
 
-
 
54742
      private final short _thriftId;
-
 
54743
      private final String _fieldName;
-
 
54744
 
-
 
54745
      _Fields(short thriftId, String fieldName) {
-
 
54746
        _thriftId = thriftId;
-
 
54747
        _fieldName = fieldName;
-
 
54748
      }
-
 
54749
 
-
 
54750
      public short getThriftFieldId() {
-
 
54751
        return _thriftId;
-
 
54752
      }
-
 
54753
 
-
 
54754
      public String getFieldName() {
-
 
54755
        return _fieldName;
-
 
54756
      }
-
 
54757
    }
-
 
54758
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
54759
    static {
-
 
54760
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
54761
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
54762
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllDoaOutInventoryItems_args.class, metaDataMap);
-
 
54763
    }
-
 
54764
 
-
 
54765
    public getAllDoaOutInventoryItems_args() {
-
 
54766
    }
-
 
54767
 
-
 
54768
    /**
-
 
54769
     * Performs a deep copy on <i>other</i>.
-
 
54770
     */
-
 
54771
    public getAllDoaOutInventoryItems_args(getAllDoaOutInventoryItems_args other) {
-
 
54772
    }
-
 
54773
 
-
 
54774
    public getAllDoaOutInventoryItems_args deepCopy() {
-
 
54775
      return new getAllDoaOutInventoryItems_args(this);
-
 
54776
    }
-
 
54777
 
-
 
54778
    @Override
-
 
54779
    public void clear() {
-
 
54780
    }
-
 
54781
 
-
 
54782
    public void setFieldValue(_Fields field, Object value) {
-
 
54783
      switch (field) {
-
 
54784
      }
-
 
54785
    }
-
 
54786
 
-
 
54787
    public Object getFieldValue(_Fields field) {
-
 
54788
      switch (field) {
-
 
54789
      }
-
 
54790
      throw new IllegalStateException();
-
 
54791
    }
-
 
54792
 
-
 
54793
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
54794
    public boolean isSet(_Fields field) {
-
 
54795
      if (field == null) {
-
 
54796
        throw new IllegalArgumentException();
-
 
54797
      }
-
 
54798
 
-
 
54799
      switch (field) {
-
 
54800
      }
-
 
54801
      throw new IllegalStateException();
-
 
54802
    }
-
 
54803
 
-
 
54804
    @Override
-
 
54805
    public boolean equals(Object that) {
-
 
54806
      if (that == null)
-
 
54807
        return false;
-
 
54808
      if (that instanceof getAllDoaOutInventoryItems_args)
-
 
54809
        return this.equals((getAllDoaOutInventoryItems_args)that);
-
 
54810
      return false;
-
 
54811
    }
-
 
54812
 
-
 
54813
    public boolean equals(getAllDoaOutInventoryItems_args that) {
-
 
54814
      if (that == null)
-
 
54815
        return false;
-
 
54816
 
-
 
54817
      return true;
-
 
54818
    }
-
 
54819
 
-
 
54820
    @Override
-
 
54821
    public int hashCode() {
-
 
54822
      return 0;
-
 
54823
    }
-
 
54824
 
-
 
54825
    public int compareTo(getAllDoaOutInventoryItems_args other) {
-
 
54826
      if (!getClass().equals(other.getClass())) {
-
 
54827
        return getClass().getName().compareTo(other.getClass().getName());
-
 
54828
      }
-
 
54829
 
-
 
54830
      int lastComparison = 0;
-
 
54831
      getAllDoaOutInventoryItems_args typedOther = (getAllDoaOutInventoryItems_args)other;
-
 
54832
 
-
 
54833
      return 0;
-
 
54834
    }
-
 
54835
 
-
 
54836
    public _Fields fieldForId(int fieldId) {
-
 
54837
      return _Fields.findByThriftId(fieldId);
-
 
54838
    }
-
 
54839
 
-
 
54840
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
54841
      org.apache.thrift.protocol.TField field;
-
 
54842
      iprot.readStructBegin();
-
 
54843
      while (true)
-
 
54844
      {
-
 
54845
        field = iprot.readFieldBegin();
-
 
54846
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
54847
          break;
-
 
54848
        }
-
 
54849
        switch (field.id) {
-
 
54850
          default:
-
 
54851
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54852
        }
-
 
54853
        iprot.readFieldEnd();
-
 
54854
      }
-
 
54855
      iprot.readStructEnd();
-
 
54856
      validate();
-
 
54857
    }
-
 
54858
 
-
 
54859
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
54860
      validate();
-
 
54861
 
-
 
54862
      oprot.writeStructBegin(STRUCT_DESC);
-
 
54863
      oprot.writeFieldStop();
-
 
54864
      oprot.writeStructEnd();
-
 
54865
    }
-
 
54866
 
-
 
54867
    @Override
-
 
54868
    public String toString() {
-
 
54869
      StringBuilder sb = new StringBuilder("getAllDoaOutInventoryItems_args(");
-
 
54870
      boolean first = true;
-
 
54871
 
-
 
54872
      sb.append(")");
-
 
54873
      return sb.toString();
-
 
54874
    }
-
 
54875
 
-
 
54876
    public void validate() throws org.apache.thrift.TException {
-
 
54877
      // check for required fields
-
 
54878
    }
-
 
54879
 
-
 
54880
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
54881
      try {
-
 
54882
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
54883
      } catch (org.apache.thrift.TException te) {
-
 
54884
        throw new java.io.IOException(te);
-
 
54885
      }
-
 
54886
    }
-
 
54887
 
-
 
54888
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
54889
      try {
-
 
54890
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
54891
      } catch (org.apache.thrift.TException te) {
-
 
54892
        throw new java.io.IOException(te);
-
 
54893
      }
-
 
54894
    }
-
 
54895
 
-
 
54896
  }
-
 
54897
 
-
 
54898
  public static class getAllDoaOutInventoryItems_result implements org.apache.thrift.TBase<getAllDoaOutInventoryItems_result, getAllDoaOutInventoryItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
54899
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllDoaOutInventoryItems_result");
-
 
54900
 
-
 
54901
    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);
-
 
54902
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
54903
 
-
 
54904
    private List<DoaOutInventoryItem> success; // required
-
 
54905
    private WarehouseServiceException ex; // required
-
 
54906
 
-
 
54907
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
54908
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
54909
      SUCCESS((short)0, "success"),
-
 
54910
      EX((short)1, "ex");
-
 
54911
 
-
 
54912
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
54913
 
-
 
54914
      static {
-
 
54915
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
54916
          byName.put(field.getFieldName(), field);
-
 
54917
        }
-
 
54918
      }
-
 
54919
 
-
 
54920
      /**
-
 
54921
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
54922
       */
-
 
54923
      public static _Fields findByThriftId(int fieldId) {
-
 
54924
        switch(fieldId) {
-
 
54925
          case 0: // SUCCESS
-
 
54926
            return SUCCESS;
-
 
54927
          case 1: // EX
-
 
54928
            return EX;
-
 
54929
          default:
-
 
54930
            return null;
-
 
54931
        }
-
 
54932
      }
-
 
54933
 
-
 
54934
      /**
-
 
54935
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
54936
       * if it is not found.
-
 
54937
       */
-
 
54938
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
54939
        _Fields fields = findByThriftId(fieldId);
-
 
54940
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
54941
        return fields;
-
 
54942
      }
-
 
54943
 
-
 
54944
      /**
-
 
54945
       * Find the _Fields constant that matches name, or null if its not found.
-
 
54946
       */
-
 
54947
      public static _Fields findByName(String name) {
-
 
54948
        return byName.get(name);
-
 
54949
      }
-
 
54950
 
-
 
54951
      private final short _thriftId;
-
 
54952
      private final String _fieldName;
-
 
54953
 
-
 
54954
      _Fields(short thriftId, String fieldName) {
-
 
54955
        _thriftId = thriftId;
-
 
54956
        _fieldName = fieldName;
-
 
54957
      }
-
 
54958
 
-
 
54959
      public short getThriftFieldId() {
-
 
54960
        return _thriftId;
-
 
54961
      }
-
 
54962
 
-
 
54963
      public String getFieldName() {
-
 
54964
        return _fieldName;
-
 
54965
      }
-
 
54966
    }
-
 
54967
 
-
 
54968
    // isset id assignments
-
 
54969
 
-
 
54970
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
54971
    static {
-
 
54972
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
54973
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
54974
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
54975
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DoaOutInventoryItem.class))));
-
 
54976
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
54977
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
54978
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
54979
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllDoaOutInventoryItems_result.class, metaDataMap);
-
 
54980
    }
-
 
54981
 
-
 
54982
    public getAllDoaOutInventoryItems_result() {
-
 
54983
    }
-
 
54984
 
-
 
54985
    public getAllDoaOutInventoryItems_result(
-
 
54986
      List<DoaOutInventoryItem> success,
-
 
54987
      WarehouseServiceException ex)
-
 
54988
    {
-
 
54989
      this();
-
 
54990
      this.success = success;
-
 
54991
      this.ex = ex;
-
 
54992
    }
-
 
54993
 
-
 
54994
    /**
-
 
54995
     * Performs a deep copy on <i>other</i>.
-
 
54996
     */
-
 
54997
    public getAllDoaOutInventoryItems_result(getAllDoaOutInventoryItems_result other) {
-
 
54998
      if (other.isSetSuccess()) {
-
 
54999
        List<DoaOutInventoryItem> __this__success = new ArrayList<DoaOutInventoryItem>();
-
 
55000
        for (DoaOutInventoryItem other_element : other.success) {
-
 
55001
          __this__success.add(new DoaOutInventoryItem(other_element));
-
 
55002
        }
-
 
55003
        this.success = __this__success;
-
 
55004
      }
-
 
55005
      if (other.isSetEx()) {
-
 
55006
        this.ex = new WarehouseServiceException(other.ex);
-
 
55007
      }
-
 
55008
    }
-
 
55009
 
-
 
55010
    public getAllDoaOutInventoryItems_result deepCopy() {
-
 
55011
      return new getAllDoaOutInventoryItems_result(this);
-
 
55012
    }
-
 
55013
 
-
 
55014
    @Override
-
 
55015
    public void clear() {
-
 
55016
      this.success = null;
-
 
55017
      this.ex = null;
-
 
55018
    }
-
 
55019
 
-
 
55020
    public int getSuccessSize() {
-
 
55021
      return (this.success == null) ? 0 : this.success.size();
-
 
55022
    }
-
 
55023
 
-
 
55024
    public java.util.Iterator<DoaOutInventoryItem> getSuccessIterator() {
-
 
55025
      return (this.success == null) ? null : this.success.iterator();
-
 
55026
    }
-
 
55027
 
-
 
55028
    public void addToSuccess(DoaOutInventoryItem elem) {
-
 
55029
      if (this.success == null) {
-
 
55030
        this.success = new ArrayList<DoaOutInventoryItem>();
-
 
55031
      }
-
 
55032
      this.success.add(elem);
-
 
55033
    }
-
 
55034
 
-
 
55035
    public List<DoaOutInventoryItem> getSuccess() {
-
 
55036
      return this.success;
-
 
55037
    }
-
 
55038
 
-
 
55039
    public void setSuccess(List<DoaOutInventoryItem> success) {
-
 
55040
      this.success = success;
-
 
55041
    }
-
 
55042
 
-
 
55043
    public void unsetSuccess() {
-
 
55044
      this.success = null;
-
 
55045
    }
-
 
55046
 
-
 
55047
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
55048
    public boolean isSetSuccess() {
-
 
55049
      return this.success != null;
-
 
55050
    }
-
 
55051
 
-
 
55052
    public void setSuccessIsSet(boolean value) {
-
 
55053
      if (!value) {
-
 
55054
        this.success = null;
-
 
55055
      }
-
 
55056
    }
-
 
55057
 
-
 
55058
    public WarehouseServiceException getEx() {
-
 
55059
      return this.ex;
-
 
55060
    }
-
 
55061
 
-
 
55062
    public void setEx(WarehouseServiceException ex) {
-
 
55063
      this.ex = ex;
-
 
55064
    }
-
 
55065
 
-
 
55066
    public void unsetEx() {
-
 
55067
      this.ex = null;
-
 
55068
    }
-
 
55069
 
-
 
55070
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
55071
    public boolean isSetEx() {
-
 
55072
      return this.ex != null;
-
 
55073
    }
-
 
55074
 
-
 
55075
    public void setExIsSet(boolean value) {
-
 
55076
      if (!value) {
-
 
55077
        this.ex = null;
-
 
55078
      }
-
 
55079
    }
-
 
55080
 
-
 
55081
    public void setFieldValue(_Fields field, Object value) {
-
 
55082
      switch (field) {
-
 
55083
      case SUCCESS:
-
 
55084
        if (value == null) {
-
 
55085
          unsetSuccess();
-
 
55086
        } else {
-
 
55087
          setSuccess((List<DoaOutInventoryItem>)value);
-
 
55088
        }
-
 
55089
        break;
-
 
55090
 
-
 
55091
      case EX:
-
 
55092
        if (value == null) {
-
 
55093
          unsetEx();
-
 
55094
        } else {
-
 
55095
          setEx((WarehouseServiceException)value);
-
 
55096
        }
-
 
55097
        break;
-
 
55098
 
-
 
55099
      }
-
 
55100
    }
-
 
55101
 
-
 
55102
    public Object getFieldValue(_Fields field) {
-
 
55103
      switch (field) {
-
 
55104
      case SUCCESS:
-
 
55105
        return getSuccess();
-
 
55106
 
-
 
55107
      case EX:
-
 
55108
        return getEx();
-
 
55109
 
-
 
55110
      }
-
 
55111
      throw new IllegalStateException();
-
 
55112
    }
-
 
55113
 
-
 
55114
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
55115
    public boolean isSet(_Fields field) {
-
 
55116
      if (field == null) {
-
 
55117
        throw new IllegalArgumentException();
-
 
55118
      }
-
 
55119
 
-
 
55120
      switch (field) {
-
 
55121
      case SUCCESS:
-
 
55122
        return isSetSuccess();
-
 
55123
      case EX:
-
 
55124
        return isSetEx();
-
 
55125
      }
-
 
55126
      throw new IllegalStateException();
-
 
55127
    }
-
 
55128
 
-
 
55129
    @Override
-
 
55130
    public boolean equals(Object that) {
-
 
55131
      if (that == null)
-
 
55132
        return false;
-
 
55133
      if (that instanceof getAllDoaOutInventoryItems_result)
-
 
55134
        return this.equals((getAllDoaOutInventoryItems_result)that);
-
 
55135
      return false;
-
 
55136
    }
-
 
55137
 
-
 
55138
    public boolean equals(getAllDoaOutInventoryItems_result that) {
-
 
55139
      if (that == null)
-
 
55140
        return false;
-
 
55141
 
-
 
55142
      boolean this_present_success = true && this.isSetSuccess();
-
 
55143
      boolean that_present_success = true && that.isSetSuccess();
-
 
55144
      if (this_present_success || that_present_success) {
-
 
55145
        if (!(this_present_success && that_present_success))
-
 
55146
          return false;
-
 
55147
        if (!this.success.equals(that.success))
-
 
55148
          return false;
-
 
55149
      }
-
 
55150
 
-
 
55151
      boolean this_present_ex = true && this.isSetEx();
-
 
55152
      boolean that_present_ex = true && that.isSetEx();
-
 
55153
      if (this_present_ex || that_present_ex) {
-
 
55154
        if (!(this_present_ex && that_present_ex))
-
 
55155
          return false;
-
 
55156
        if (!this.ex.equals(that.ex))
-
 
55157
          return false;
-
 
55158
      }
-
 
55159
 
-
 
55160
      return true;
-
 
55161
    }
-
 
55162
 
-
 
55163
    @Override
-
 
55164
    public int hashCode() {
-
 
55165
      return 0;
-
 
55166
    }
-
 
55167
 
-
 
55168
    public int compareTo(getAllDoaOutInventoryItems_result other) {
-
 
55169
      if (!getClass().equals(other.getClass())) {
-
 
55170
        return getClass().getName().compareTo(other.getClass().getName());
-
 
55171
      }
-
 
55172
 
-
 
55173
      int lastComparison = 0;
-
 
55174
      getAllDoaOutInventoryItems_result typedOther = (getAllDoaOutInventoryItems_result)other;
-
 
55175
 
-
 
55176
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
55177
      if (lastComparison != 0) {
-
 
55178
        return lastComparison;
-
 
55179
      }
-
 
55180
      if (isSetSuccess()) {
-
 
55181
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
55182
        if (lastComparison != 0) {
-
 
55183
          return lastComparison;
-
 
55184
        }
-
 
55185
      }
-
 
55186
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
55187
      if (lastComparison != 0) {
-
 
55188
        return lastComparison;
-
 
55189
      }
-
 
55190
      if (isSetEx()) {
-
 
55191
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
55192
        if (lastComparison != 0) {
-
 
55193
          return lastComparison;
-
 
55194
        }
-
 
55195
      }
-
 
55196
      return 0;
-
 
55197
    }
-
 
55198
 
-
 
55199
    public _Fields fieldForId(int fieldId) {
-
 
55200
      return _Fields.findByThriftId(fieldId);
-
 
55201
    }
-
 
55202
 
-
 
55203
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
55204
      org.apache.thrift.protocol.TField field;
-
 
55205
      iprot.readStructBegin();
-
 
55206
      while (true)
-
 
55207
      {
-
 
55208
        field = iprot.readFieldBegin();
-
 
55209
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
55210
          break;
-
 
55211
        }
-
 
55212
        switch (field.id) {
-
 
55213
          case 0: // SUCCESS
-
 
55214
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
55215
              {
-
 
55216
                org.apache.thrift.protocol.TList _list178 = iprot.readListBegin();
-
 
55217
                this.success = new ArrayList<DoaOutInventoryItem>(_list178.size);
-
 
55218
                for (int _i179 = 0; _i179 < _list178.size; ++_i179)
-
 
55219
                {
-
 
55220
                  DoaOutInventoryItem _elem180; // required
-
 
55221
                  _elem180 = new DoaOutInventoryItem();
-
 
55222
                  _elem180.read(iprot);
-
 
55223
                  this.success.add(_elem180);
-
 
55224
                }
-
 
55225
                iprot.readListEnd();
-
 
55226
              }
-
 
55227
            } else { 
-
 
55228
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
55229
            }
-
 
55230
            break;
-
 
55231
          case 1: // EX
-
 
55232
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
55233
              this.ex = new WarehouseServiceException();
-
 
55234
              this.ex.read(iprot);
-
 
55235
            } else { 
-
 
55236
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
55237
            }
-
 
55238
            break;
-
 
55239
          default:
-
 
55240
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
55241
        }
-
 
55242
        iprot.readFieldEnd();
-
 
55243
      }
-
 
55244
      iprot.readStructEnd();
-
 
55245
      validate();
-
 
55246
    }
-
 
55247
 
-
 
55248
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
55249
      oprot.writeStructBegin(STRUCT_DESC);
-
 
55250
 
-
 
55251
      if (this.isSetSuccess()) {
-
 
55252
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
55253
        {
-
 
55254
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
55255
          for (DoaOutInventoryItem _iter181 : this.success)
-
 
55256
          {
-
 
55257
            _iter181.write(oprot);
-
 
55258
          }
-
 
55259
          oprot.writeListEnd();
-
 
55260
        }
-
 
55261
        oprot.writeFieldEnd();
-
 
55262
      } else if (this.isSetEx()) {
-
 
55263
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
55264
        this.ex.write(oprot);
-
 
55265
        oprot.writeFieldEnd();
-
 
55266
      }
-
 
55267
      oprot.writeFieldStop();
-
 
55268
      oprot.writeStructEnd();
-
 
55269
    }
-
 
55270
 
-
 
55271
    @Override
-
 
55272
    public String toString() {
-
 
55273
      StringBuilder sb = new StringBuilder("getAllDoaOutInventoryItems_result(");
-
 
55274
      boolean first = true;
-
 
55275
 
-
 
55276
      sb.append("success:");
-
 
55277
      if (this.success == null) {
-
 
55278
        sb.append("null");
-
 
55279
      } else {
-
 
55280
        sb.append(this.success);
-
 
55281
      }
-
 
55282
      first = false;
-
 
55283
      if (!first) sb.append(", ");
-
 
55284
      sb.append("ex:");
-
 
55285
      if (this.ex == null) {
-
 
55286
        sb.append("null");
-
 
55287
      } else {
-
 
55288
        sb.append(this.ex);
-
 
55289
      }
-
 
55290
      first = false;
-
 
55291
      sb.append(")");
-
 
55292
      return sb.toString();
-
 
55293
    }
54596
 
55294
 
54597
    public void validate() throws org.apache.thrift.TException {
55295
    public void validate() throws org.apache.thrift.TException {
54598
      // check for required fields
55296
      // check for required fields
54599
    }
55297
    }
54600
 
55298