Subversion Repositories SmartDukaan

Rev

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

Rev 13504 Rev 13529
Line 358... Line 358...
358
 
358
 
359
    public List<String> checkGrnImeiStatus(List<String> imeiNos) throws WarehouseServiceException, org.apache.thrift.TException;
359
    public List<String> checkGrnImeiStatus(List<String> imeiNos) throws WarehouseServiceException, org.apache.thrift.TException;
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;
-
 
364
 
363
  }
365
  }
364
 
366
 
365
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
367
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
366
 
368
 
367
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
369
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 490... Line 492...
490
 
492
 
491
    public void checkGrnImeiStatus(List<String> imeiNos, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkGrnImeiStatus_call> resultHandler) throws org.apache.thrift.TException;
493
    public void checkGrnImeiStatus(List<String> imeiNos, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkGrnImeiStatus_call> resultHandler) throws org.apache.thrift.TException;
492
 
494
 
493
    public void getInventoryAgeConsideredItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAgeConsideredItems_call> resultHandler) throws org.apache.thrift.TException;
495
    public void getInventoryAgeConsideredItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAgeConsideredItems_call> resultHandler) throws org.apache.thrift.TException;
494
 
496
 
-
 
497
    public void getCompleteMovementForThirdPartyWarehouse(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementForThirdPartyWarehouse_call> resultHandler) throws org.apache.thrift.TException;
-
 
498
 
495
  }
499
  }
496
 
500
 
497
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
501
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
498
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
502
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
499
      public Factory() {}
503
      public Factory() {}
Line 2140... Line 2144...
2140
        throw result.ex;
2144
        throw result.ex;
2141
      }
2145
      }
2142
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryAgeConsideredItems failed: unknown result");
2146
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryAgeConsideredItems failed: unknown result");
2143
    }
2147
    }
2144
 
2148
 
-
 
2149
    public List<InventoryMovement> getCompleteMovementForThirdPartyWarehouse(long startDate, long endDate) throws org.apache.thrift.TException
-
 
2150
    {
-
 
2151
      send_getCompleteMovementForThirdPartyWarehouse(startDate, endDate);
-
 
2152
      return recv_getCompleteMovementForThirdPartyWarehouse();
-
 
2153
    }
-
 
2154
 
-
 
2155
    public void send_getCompleteMovementForThirdPartyWarehouse(long startDate, long endDate) throws org.apache.thrift.TException
-
 
2156
    {
-
 
2157
      getCompleteMovementForThirdPartyWarehouse_args args = new getCompleteMovementForThirdPartyWarehouse_args();
-
 
2158
      args.setStartDate(startDate);
-
 
2159
      args.setEndDate(endDate);
-
 
2160
      sendBase("getCompleteMovementForThirdPartyWarehouse", args);
-
 
2161
    }
-
 
2162
 
-
 
2163
    public List<InventoryMovement> recv_getCompleteMovementForThirdPartyWarehouse() throws org.apache.thrift.TException
-
 
2164
    {
-
 
2165
      getCompleteMovementForThirdPartyWarehouse_result result = new getCompleteMovementForThirdPartyWarehouse_result();
-
 
2166
      receiveBase(result, "getCompleteMovementForThirdPartyWarehouse");
-
 
2167
      if (result.isSetSuccess()) {
-
 
2168
        return result.success;
-
 
2169
      }
-
 
2170
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCompleteMovementForThirdPartyWarehouse failed: unknown result");
-
 
2171
    }
-
 
2172
 
2145
  }
2173
  }
2146
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2174
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2147
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2175
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2148
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2176
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2149
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2177
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4431... Line 4459...
4431
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4459
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4432
        return (new Client(prot)).recv_getInventoryAgeConsideredItems();
4460
        return (new Client(prot)).recv_getInventoryAgeConsideredItems();
4433
      }
4461
      }
4434
    }
4462
    }
4435
 
4463
 
-
 
4464
    public void getCompleteMovementForThirdPartyWarehouse(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementForThirdPartyWarehouse_call> resultHandler) throws org.apache.thrift.TException {
-
 
4465
      checkReady();
-
 
4466
      getCompleteMovementForThirdPartyWarehouse_call method_call = new getCompleteMovementForThirdPartyWarehouse_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
4467
      this.___currentMethod = method_call;
-
 
4468
      ___manager.call(method_call);
-
 
4469
    }
-
 
4470
 
-
 
4471
    public static class getCompleteMovementForThirdPartyWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4472
      private long startDate;
-
 
4473
      private long endDate;
-
 
4474
      public getCompleteMovementForThirdPartyWarehouse_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementForThirdPartyWarehouse_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 {
-
 
4475
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4476
        this.startDate = startDate;
-
 
4477
        this.endDate = endDate;
-
 
4478
      }
-
 
4479
 
-
 
4480
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4481
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCompleteMovementForThirdPartyWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4482
        getCompleteMovementForThirdPartyWarehouse_args args = new getCompleteMovementForThirdPartyWarehouse_args();
-
 
4483
        args.setStartDate(startDate);
-
 
4484
        args.setEndDate(endDate);
-
 
4485
        args.write(prot);
-
 
4486
        prot.writeMessageEnd();
-
 
4487
      }
-
 
4488
 
-
 
4489
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
-
 
4490
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4491
          throw new IllegalStateException("Method call not finished!");
-
 
4492
        }
-
 
4493
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4494
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4495
        return (new Client(prot)).recv_getCompleteMovementForThirdPartyWarehouse();
-
 
4496
      }
-
 
4497
    }
-
 
4498
 
4436
  }
4499
  }
4437
 
4500
 
4438
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4501
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4439
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4502
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4440
    public Processor(I iface) {
4503
    public Processor(I iface) {
Line 4508... Line 4571...
4508
      processMap.put("scanForBadPurchaseReturn", new scanForBadPurchaseReturn());
4571
      processMap.put("scanForBadPurchaseReturn", new scanForBadPurchaseReturn());
4509
      processMap.put("getItemsInPurchaseReturn", new getItemsInPurchaseReturn());
4572
      processMap.put("getItemsInPurchaseReturn", new getItemsInPurchaseReturn());
4510
      processMap.put("getScansForInventoryItem", new getScansForInventoryItem());
4573
      processMap.put("getScansForInventoryItem", new getScansForInventoryItem());
4511
      processMap.put("checkGrnImeiStatus", new checkGrnImeiStatus());
4574
      processMap.put("checkGrnImeiStatus", new checkGrnImeiStatus());
4512
      processMap.put("getInventoryAgeConsideredItems", new getInventoryAgeConsideredItems());
4575
      processMap.put("getInventoryAgeConsideredItems", new getInventoryAgeConsideredItems());
-
 
4576
      processMap.put("getCompleteMovementForThirdPartyWarehouse", new getCompleteMovementForThirdPartyWarehouse());
4513
      return processMap;
4577
      return processMap;
4514
    }
4578
    }
4515
 
4579
 
4516
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4580
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4517
      public getInventoryItem() {
4581
      public getInventoryItem() {
Line 5702... Line 5766...
5702
        }
5766
        }
5703
        return result;
5767
        return result;
5704
      }
5768
      }
5705
    }
5769
    }
5706
 
5770
 
-
 
5771
    private static class getCompleteMovementForThirdPartyWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCompleteMovementForThirdPartyWarehouse_args> {
-
 
5772
      public getCompleteMovementForThirdPartyWarehouse() {
-
 
5773
        super("getCompleteMovementForThirdPartyWarehouse");
-
 
5774
      }
-
 
5775
 
-
 
5776
      protected getCompleteMovementForThirdPartyWarehouse_args getEmptyArgsInstance() {
-
 
5777
        return new getCompleteMovementForThirdPartyWarehouse_args();
-
 
5778
      }
-
 
5779
 
-
 
5780
      protected getCompleteMovementForThirdPartyWarehouse_result getResult(I iface, getCompleteMovementForThirdPartyWarehouse_args args) throws org.apache.thrift.TException {
-
 
5781
        getCompleteMovementForThirdPartyWarehouse_result result = new getCompleteMovementForThirdPartyWarehouse_result();
-
 
5782
        result.success = iface.getCompleteMovementForThirdPartyWarehouse(args.startDate, args.endDate);
-
 
5783
        return result;
-
 
5784
      }
-
 
5785
    }
-
 
5786
 
5707
  }
5787
  }
5708
 
5788
 
5709
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
5789
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
5710
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
5790
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
5711
 
5791
 
Line 53803... Line 53883...
53803
      }
53883
      }
53804
      first = false;
53884
      first = false;
53805
      sb.append(")");
53885
      sb.append(")");
53806
      return sb.toString();
53886
      return sb.toString();
53807
    }
53887
    }
-
 
53888
 
-
 
53889
    public void validate() throws org.apache.thrift.TException {
-
 
53890
      // check for required fields
-
 
53891
    }
-
 
53892
 
-
 
53893
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
53894
      try {
-
 
53895
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
53896
      } catch (org.apache.thrift.TException te) {
-
 
53897
        throw new java.io.IOException(te);
-
 
53898
      }
-
 
53899
    }
-
 
53900
 
-
 
53901
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
53902
      try {
-
 
53903
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
53904
      } catch (org.apache.thrift.TException te) {
-
 
53905
        throw new java.io.IOException(te);
-
 
53906
      }
-
 
53907
    }
-
 
53908
 
-
 
53909
  }
-
 
53910
 
-
 
53911
  public static class getCompleteMovementForThirdPartyWarehouse_args implements org.apache.thrift.TBase<getCompleteMovementForThirdPartyWarehouse_args, getCompleteMovementForThirdPartyWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
-
 
53912
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementForThirdPartyWarehouse_args");
-
 
53913
 
-
 
53914
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
53915
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
53916
 
-
 
53917
    private long startDate; // required
-
 
53918
    private long endDate; // required
-
 
53919
 
-
 
53920
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
53921
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
53922
      START_DATE((short)1, "startDate"),
-
 
53923
      END_DATE((short)2, "endDate");
-
 
53924
 
-
 
53925
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
53926
 
-
 
53927
      static {
-
 
53928
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
53929
          byName.put(field.getFieldName(), field);
-
 
53930
        }
-
 
53931
      }
-
 
53932
 
-
 
53933
      /**
-
 
53934
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
53935
       */
-
 
53936
      public static _Fields findByThriftId(int fieldId) {
-
 
53937
        switch(fieldId) {
-
 
53938
          case 1: // START_DATE
-
 
53939
            return START_DATE;
-
 
53940
          case 2: // END_DATE
-
 
53941
            return END_DATE;
-
 
53942
          default:
-
 
53943
            return null;
-
 
53944
        }
-
 
53945
      }
-
 
53946
 
-
 
53947
      /**
-
 
53948
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
53949
       * if it is not found.
-
 
53950
       */
-
 
53951
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
53952
        _Fields fields = findByThriftId(fieldId);
-
 
53953
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
53954
        return fields;
-
 
53955
      }
-
 
53956
 
-
 
53957
      /**
-
 
53958
       * Find the _Fields constant that matches name, or null if its not found.
-
 
53959
       */
-
 
53960
      public static _Fields findByName(String name) {
-
 
53961
        return byName.get(name);
-
 
53962
      }
-
 
53963
 
-
 
53964
      private final short _thriftId;
-
 
53965
      private final String _fieldName;
-
 
53966
 
-
 
53967
      _Fields(short thriftId, String fieldName) {
-
 
53968
        _thriftId = thriftId;
-
 
53969
        _fieldName = fieldName;
-
 
53970
      }
-
 
53971
 
-
 
53972
      public short getThriftFieldId() {
-
 
53973
        return _thriftId;
-
 
53974
      }
-
 
53975
 
-
 
53976
      public String getFieldName() {
-
 
53977
        return _fieldName;
-
 
53978
      }
-
 
53979
    }
-
 
53980
 
-
 
53981
    // isset id assignments
-
 
53982
    private static final int __STARTDATE_ISSET_ID = 0;
-
 
53983
    private static final int __ENDDATE_ISSET_ID = 1;
-
 
53984
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
53985
 
-
 
53986
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
53987
    static {
-
 
53988
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
53989
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53990
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
53991
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53992
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
53993
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
53994
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementForThirdPartyWarehouse_args.class, metaDataMap);
-
 
53995
    }
-
 
53996
 
-
 
53997
    public getCompleteMovementForThirdPartyWarehouse_args() {
-
 
53998
    }
-
 
53999
 
-
 
54000
    public getCompleteMovementForThirdPartyWarehouse_args(
-
 
54001
      long startDate,
-
 
54002
      long endDate)
-
 
54003
    {
-
 
54004
      this();
-
 
54005
      this.startDate = startDate;
-
 
54006
      setStartDateIsSet(true);
-
 
54007
      this.endDate = endDate;
-
 
54008
      setEndDateIsSet(true);
-
 
54009
    }
-
 
54010
 
-
 
54011
    /**
-
 
54012
     * Performs a deep copy on <i>other</i>.
-
 
54013
     */
-
 
54014
    public getCompleteMovementForThirdPartyWarehouse_args(getCompleteMovementForThirdPartyWarehouse_args other) {
-
 
54015
      __isset_bit_vector.clear();
-
 
54016
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
54017
      this.startDate = other.startDate;
-
 
54018
      this.endDate = other.endDate;
-
 
54019
    }
-
 
54020
 
-
 
54021
    public getCompleteMovementForThirdPartyWarehouse_args deepCopy() {
-
 
54022
      return new getCompleteMovementForThirdPartyWarehouse_args(this);
-
 
54023
    }
-
 
54024
 
-
 
54025
    @Override
-
 
54026
    public void clear() {
-
 
54027
      setStartDateIsSet(false);
-
 
54028
      this.startDate = 0;
-
 
54029
      setEndDateIsSet(false);
-
 
54030
      this.endDate = 0;
-
 
54031
    }
-
 
54032
 
-
 
54033
    public long getStartDate() {
-
 
54034
      return this.startDate;
-
 
54035
    }
-
 
54036
 
-
 
54037
    public void setStartDate(long startDate) {
-
 
54038
      this.startDate = startDate;
-
 
54039
      setStartDateIsSet(true);
-
 
54040
    }
-
 
54041
 
-
 
54042
    public void unsetStartDate() {
-
 
54043
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
-
 
54044
    }
-
 
54045
 
-
 
54046
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
-
 
54047
    public boolean isSetStartDate() {
-
 
54048
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
-
 
54049
    }
-
 
54050
 
-
 
54051
    public void setStartDateIsSet(boolean value) {
-
 
54052
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
-
 
54053
    }
-
 
54054
 
-
 
54055
    public long getEndDate() {
-
 
54056
      return this.endDate;
-
 
54057
    }
-
 
54058
 
-
 
54059
    public void setEndDate(long endDate) {
-
 
54060
      this.endDate = endDate;
-
 
54061
      setEndDateIsSet(true);
-
 
54062
    }
-
 
54063
 
-
 
54064
    public void unsetEndDate() {
-
 
54065
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
-
 
54066
    }
-
 
54067
 
-
 
54068
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
-
 
54069
    public boolean isSetEndDate() {
-
 
54070
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
-
 
54071
    }
-
 
54072
 
-
 
54073
    public void setEndDateIsSet(boolean value) {
-
 
54074
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
-
 
54075
    }
-
 
54076
 
-
 
54077
    public void setFieldValue(_Fields field, Object value) {
-
 
54078
      switch (field) {
-
 
54079
      case START_DATE:
-
 
54080
        if (value == null) {
-
 
54081
          unsetStartDate();
-
 
54082
        } else {
-
 
54083
          setStartDate((Long)value);
-
 
54084
        }
-
 
54085
        break;
-
 
54086
 
-
 
54087
      case END_DATE:
-
 
54088
        if (value == null) {
-
 
54089
          unsetEndDate();
-
 
54090
        } else {
-
 
54091
          setEndDate((Long)value);
-
 
54092
        }
-
 
54093
        break;
-
 
54094
 
-
 
54095
      }
-
 
54096
    }
-
 
54097
 
-
 
54098
    public Object getFieldValue(_Fields field) {
-
 
54099
      switch (field) {
-
 
54100
      case START_DATE:
-
 
54101
        return Long.valueOf(getStartDate());
-
 
54102
 
-
 
54103
      case END_DATE:
-
 
54104
        return Long.valueOf(getEndDate());
-
 
54105
 
-
 
54106
      }
-
 
54107
      throw new IllegalStateException();
-
 
54108
    }
-
 
54109
 
-
 
54110
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
54111
    public boolean isSet(_Fields field) {
-
 
54112
      if (field == null) {
-
 
54113
        throw new IllegalArgumentException();
-
 
54114
      }
-
 
54115
 
-
 
54116
      switch (field) {
-
 
54117
      case START_DATE:
-
 
54118
        return isSetStartDate();
-
 
54119
      case END_DATE:
-
 
54120
        return isSetEndDate();
-
 
54121
      }
-
 
54122
      throw new IllegalStateException();
-
 
54123
    }
-
 
54124
 
-
 
54125
    @Override
-
 
54126
    public boolean equals(Object that) {
-
 
54127
      if (that == null)
-
 
54128
        return false;
-
 
54129
      if (that instanceof getCompleteMovementForThirdPartyWarehouse_args)
-
 
54130
        return this.equals((getCompleteMovementForThirdPartyWarehouse_args)that);
-
 
54131
      return false;
-
 
54132
    }
-
 
54133
 
-
 
54134
    public boolean equals(getCompleteMovementForThirdPartyWarehouse_args that) {
-
 
54135
      if (that == null)
-
 
54136
        return false;
-
 
54137
 
-
 
54138
      boolean this_present_startDate = true;
-
 
54139
      boolean that_present_startDate = true;
-
 
54140
      if (this_present_startDate || that_present_startDate) {
-
 
54141
        if (!(this_present_startDate && that_present_startDate))
-
 
54142
          return false;
-
 
54143
        if (this.startDate != that.startDate)
-
 
54144
          return false;
-
 
54145
      }
-
 
54146
 
-
 
54147
      boolean this_present_endDate = true;
-
 
54148
      boolean that_present_endDate = true;
-
 
54149
      if (this_present_endDate || that_present_endDate) {
-
 
54150
        if (!(this_present_endDate && that_present_endDate))
-
 
54151
          return false;
-
 
54152
        if (this.endDate != that.endDate)
-
 
54153
          return false;
-
 
54154
      }
-
 
54155
 
-
 
54156
      return true;
-
 
54157
    }
-
 
54158
 
-
 
54159
    @Override
-
 
54160
    public int hashCode() {
-
 
54161
      return 0;
-
 
54162
    }
-
 
54163
 
-
 
54164
    public int compareTo(getCompleteMovementForThirdPartyWarehouse_args other) {
-
 
54165
      if (!getClass().equals(other.getClass())) {
-
 
54166
        return getClass().getName().compareTo(other.getClass().getName());
-
 
54167
      }
-
 
54168
 
-
 
54169
      int lastComparison = 0;
-
 
54170
      getCompleteMovementForThirdPartyWarehouse_args typedOther = (getCompleteMovementForThirdPartyWarehouse_args)other;
-
 
54171
 
-
 
54172
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
-
 
54173
      if (lastComparison != 0) {
-
 
54174
        return lastComparison;
-
 
54175
      }
-
 
54176
      if (isSetStartDate()) {
-
 
54177
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
-
 
54178
        if (lastComparison != 0) {
-
 
54179
          return lastComparison;
-
 
54180
        }
-
 
54181
      }
-
 
54182
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
-
 
54183
      if (lastComparison != 0) {
-
 
54184
        return lastComparison;
-
 
54185
      }
-
 
54186
      if (isSetEndDate()) {
-
 
54187
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
-
 
54188
        if (lastComparison != 0) {
-
 
54189
          return lastComparison;
-
 
54190
        }
-
 
54191
      }
-
 
54192
      return 0;
-
 
54193
    }
-
 
54194
 
-
 
54195
    public _Fields fieldForId(int fieldId) {
-
 
54196
      return _Fields.findByThriftId(fieldId);
-
 
54197
    }
-
 
54198
 
-
 
54199
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
54200
      org.apache.thrift.protocol.TField field;
-
 
54201
      iprot.readStructBegin();
-
 
54202
      while (true)
-
 
54203
      {
-
 
54204
        field = iprot.readFieldBegin();
-
 
54205
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
54206
          break;
-
 
54207
        }
-
 
54208
        switch (field.id) {
-
 
54209
          case 1: // START_DATE
-
 
54210
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
54211
              this.startDate = iprot.readI64();
-
 
54212
              setStartDateIsSet(true);
-
 
54213
            } else { 
-
 
54214
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54215
            }
-
 
54216
            break;
-
 
54217
          case 2: // END_DATE
-
 
54218
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
54219
              this.endDate = iprot.readI64();
-
 
54220
              setEndDateIsSet(true);
-
 
54221
            } else { 
-
 
54222
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54223
            }
-
 
54224
            break;
-
 
54225
          default:
-
 
54226
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54227
        }
-
 
54228
        iprot.readFieldEnd();
-
 
54229
      }
-
 
54230
      iprot.readStructEnd();
-
 
54231
      validate();
-
 
54232
    }
-
 
54233
 
-
 
54234
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
54235
      validate();
-
 
54236
 
-
 
54237
      oprot.writeStructBegin(STRUCT_DESC);
-
 
54238
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
-
 
54239
      oprot.writeI64(this.startDate);
-
 
54240
      oprot.writeFieldEnd();
-
 
54241
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
-
 
54242
      oprot.writeI64(this.endDate);
-
 
54243
      oprot.writeFieldEnd();
-
 
54244
      oprot.writeFieldStop();
-
 
54245
      oprot.writeStructEnd();
-
 
54246
    }
-
 
54247
 
-
 
54248
    @Override
-
 
54249
    public String toString() {
-
 
54250
      StringBuilder sb = new StringBuilder("getCompleteMovementForThirdPartyWarehouse_args(");
-
 
54251
      boolean first = true;
-
 
54252
 
-
 
54253
      sb.append("startDate:");
-
 
54254
      sb.append(this.startDate);
-
 
54255
      first = false;
-
 
54256
      if (!first) sb.append(", ");
-
 
54257
      sb.append("endDate:");
-
 
54258
      sb.append(this.endDate);
-
 
54259
      first = false;
-
 
54260
      sb.append(")");
-
 
54261
      return sb.toString();
-
 
54262
    }
-
 
54263
 
-
 
54264
    public void validate() throws org.apache.thrift.TException {
-
 
54265
      // check for required fields
-
 
54266
    }
-
 
54267
 
-
 
54268
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
54269
      try {
-
 
54270
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
54271
      } catch (org.apache.thrift.TException te) {
-
 
54272
        throw new java.io.IOException(te);
-
 
54273
      }
-
 
54274
    }
-
 
54275
 
-
 
54276
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
54277
      try {
-
 
54278
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
54279
        __isset_bit_vector = new BitSet(1);
-
 
54280
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
54281
      } catch (org.apache.thrift.TException te) {
-
 
54282
        throw new java.io.IOException(te);
-
 
54283
      }
-
 
54284
    }
-
 
54285
 
-
 
54286
  }
-
 
54287
 
-
 
54288
  public static class getCompleteMovementForThirdPartyWarehouse_result implements org.apache.thrift.TBase<getCompleteMovementForThirdPartyWarehouse_result, getCompleteMovementForThirdPartyWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
-
 
54289
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementForThirdPartyWarehouse_result");
-
 
54290
 
-
 
54291
    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);
-
 
54292
 
-
 
54293
    private List<InventoryMovement> success; // required
-
 
54294
 
-
 
54295
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
54296
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
54297
      SUCCESS((short)0, "success");
-
 
54298
 
-
 
54299
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
54300
 
-
 
54301
      static {
-
 
54302
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
54303
          byName.put(field.getFieldName(), field);
-
 
54304
        }
-
 
54305
      }
-
 
54306
 
-
 
54307
      /**
-
 
54308
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
54309
       */
-
 
54310
      public static _Fields findByThriftId(int fieldId) {
-
 
54311
        switch(fieldId) {
-
 
54312
          case 0: // SUCCESS
-
 
54313
            return SUCCESS;
-
 
54314
          default:
-
 
54315
            return null;
-
 
54316
        }
-
 
54317
      }
-
 
54318
 
-
 
54319
      /**
-
 
54320
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
54321
       * if it is not found.
-
 
54322
       */
-
 
54323
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
54324
        _Fields fields = findByThriftId(fieldId);
-
 
54325
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
54326
        return fields;
-
 
54327
      }
-
 
54328
 
-
 
54329
      /**
-
 
54330
       * Find the _Fields constant that matches name, or null if its not found.
-
 
54331
       */
-
 
54332
      public static _Fields findByName(String name) {
-
 
54333
        return byName.get(name);
-
 
54334
      }
-
 
54335
 
-
 
54336
      private final short _thriftId;
-
 
54337
      private final String _fieldName;
-
 
54338
 
-
 
54339
      _Fields(short thriftId, String fieldName) {
-
 
54340
        _thriftId = thriftId;
-
 
54341
        _fieldName = fieldName;
-
 
54342
      }
-
 
54343
 
-
 
54344
      public short getThriftFieldId() {
-
 
54345
        return _thriftId;
-
 
54346
      }
-
 
54347
 
-
 
54348
      public String getFieldName() {
-
 
54349
        return _fieldName;
-
 
54350
      }
-
 
54351
    }
-
 
54352
 
-
 
54353
    // isset id assignments
-
 
54354
 
-
 
54355
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
54356
    static {
-
 
54357
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
54358
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
54359
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
54360
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
-
 
54361
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
54362
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementForThirdPartyWarehouse_result.class, metaDataMap);
-
 
54363
    }
-
 
54364
 
-
 
54365
    public getCompleteMovementForThirdPartyWarehouse_result() {
-
 
54366
    }
-
 
54367
 
-
 
54368
    public getCompleteMovementForThirdPartyWarehouse_result(
-
 
54369
      List<InventoryMovement> success)
-
 
54370
    {
-
 
54371
      this();
-
 
54372
      this.success = success;
-
 
54373
    }
-
 
54374
 
-
 
54375
    /**
-
 
54376
     * Performs a deep copy on <i>other</i>.
-
 
54377
     */
-
 
54378
    public getCompleteMovementForThirdPartyWarehouse_result(getCompleteMovementForThirdPartyWarehouse_result other) {
-
 
54379
      if (other.isSetSuccess()) {
-
 
54380
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
-
 
54381
        for (InventoryMovement other_element : other.success) {
-
 
54382
          __this__success.add(new InventoryMovement(other_element));
-
 
54383
        }
-
 
54384
        this.success = __this__success;
-
 
54385
      }
-
 
54386
    }
-
 
54387
 
-
 
54388
    public getCompleteMovementForThirdPartyWarehouse_result deepCopy() {
-
 
54389
      return new getCompleteMovementForThirdPartyWarehouse_result(this);
-
 
54390
    }
-
 
54391
 
-
 
54392
    @Override
-
 
54393
    public void clear() {
-
 
54394
      this.success = null;
-
 
54395
    }
-
 
54396
 
-
 
54397
    public int getSuccessSize() {
-
 
54398
      return (this.success == null) ? 0 : this.success.size();
-
 
54399
    }
-
 
54400
 
-
 
54401
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
-
 
54402
      return (this.success == null) ? null : this.success.iterator();
-
 
54403
    }
-
 
54404
 
-
 
54405
    public void addToSuccess(InventoryMovement elem) {
-
 
54406
      if (this.success == null) {
-
 
54407
        this.success = new ArrayList<InventoryMovement>();
-
 
54408
      }
-
 
54409
      this.success.add(elem);
-
 
54410
    }
-
 
54411
 
-
 
54412
    public List<InventoryMovement> getSuccess() {
-
 
54413
      return this.success;
-
 
54414
    }
-
 
54415
 
-
 
54416
    public void setSuccess(List<InventoryMovement> success) {
-
 
54417
      this.success = success;
-
 
54418
    }
-
 
54419
 
-
 
54420
    public void unsetSuccess() {
-
 
54421
      this.success = null;
-
 
54422
    }
-
 
54423
 
-
 
54424
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
54425
    public boolean isSetSuccess() {
-
 
54426
      return this.success != null;
-
 
54427
    }
-
 
54428
 
-
 
54429
    public void setSuccessIsSet(boolean value) {
-
 
54430
      if (!value) {
-
 
54431
        this.success = null;
-
 
54432
      }
-
 
54433
    }
-
 
54434
 
-
 
54435
    public void setFieldValue(_Fields field, Object value) {
-
 
54436
      switch (field) {
-
 
54437
      case SUCCESS:
-
 
54438
        if (value == null) {
-
 
54439
          unsetSuccess();
-
 
54440
        } else {
-
 
54441
          setSuccess((List<InventoryMovement>)value);
-
 
54442
        }
-
 
54443
        break;
-
 
54444
 
-
 
54445
      }
-
 
54446
    }
-
 
54447
 
-
 
54448
    public Object getFieldValue(_Fields field) {
-
 
54449
      switch (field) {
-
 
54450
      case SUCCESS:
-
 
54451
        return getSuccess();
-
 
54452
 
-
 
54453
      }
-
 
54454
      throw new IllegalStateException();
-
 
54455
    }
-
 
54456
 
-
 
54457
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
54458
    public boolean isSet(_Fields field) {
-
 
54459
      if (field == null) {
-
 
54460
        throw new IllegalArgumentException();
-
 
54461
      }
-
 
54462
 
-
 
54463
      switch (field) {
-
 
54464
      case SUCCESS:
-
 
54465
        return isSetSuccess();
-
 
54466
      }
-
 
54467
      throw new IllegalStateException();
-
 
54468
    }
-
 
54469
 
-
 
54470
    @Override
-
 
54471
    public boolean equals(Object that) {
-
 
54472
      if (that == null)
-
 
54473
        return false;
-
 
54474
      if (that instanceof getCompleteMovementForThirdPartyWarehouse_result)
-
 
54475
        return this.equals((getCompleteMovementForThirdPartyWarehouse_result)that);
-
 
54476
      return false;
-
 
54477
    }
-
 
54478
 
-
 
54479
    public boolean equals(getCompleteMovementForThirdPartyWarehouse_result that) {
-
 
54480
      if (that == null)
-
 
54481
        return false;
-
 
54482
 
-
 
54483
      boolean this_present_success = true && this.isSetSuccess();
-
 
54484
      boolean that_present_success = true && that.isSetSuccess();
-
 
54485
      if (this_present_success || that_present_success) {
-
 
54486
        if (!(this_present_success && that_present_success))
-
 
54487
          return false;
-
 
54488
        if (!this.success.equals(that.success))
-
 
54489
          return false;
-
 
54490
      }
-
 
54491
 
-
 
54492
      return true;
-
 
54493
    }
-
 
54494
 
-
 
54495
    @Override
-
 
54496
    public int hashCode() {
-
 
54497
      return 0;
-
 
54498
    }
-
 
54499
 
-
 
54500
    public int compareTo(getCompleteMovementForThirdPartyWarehouse_result other) {
-
 
54501
      if (!getClass().equals(other.getClass())) {
-
 
54502
        return getClass().getName().compareTo(other.getClass().getName());
-
 
54503
      }
-
 
54504
 
-
 
54505
      int lastComparison = 0;
-
 
54506
      getCompleteMovementForThirdPartyWarehouse_result typedOther = (getCompleteMovementForThirdPartyWarehouse_result)other;
-
 
54507
 
-
 
54508
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
54509
      if (lastComparison != 0) {
-
 
54510
        return lastComparison;
-
 
54511
      }
-
 
54512
      if (isSetSuccess()) {
-
 
54513
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
54514
        if (lastComparison != 0) {
-
 
54515
          return lastComparison;
-
 
54516
        }
-
 
54517
      }
-
 
54518
      return 0;
-
 
54519
    }
-
 
54520
 
-
 
54521
    public _Fields fieldForId(int fieldId) {
-
 
54522
      return _Fields.findByThriftId(fieldId);
-
 
54523
    }
-
 
54524
 
-
 
54525
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
54526
      org.apache.thrift.protocol.TField field;
-
 
54527
      iprot.readStructBegin();
-
 
54528
      while (true)
-
 
54529
      {
-
 
54530
        field = iprot.readFieldBegin();
-
 
54531
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
54532
          break;
-
 
54533
        }
-
 
54534
        switch (field.id) {
-
 
54535
          case 0: // SUCCESS
-
 
54536
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
54537
              {
-
 
54538
                org.apache.thrift.protocol.TList _list174 = iprot.readListBegin();
-
 
54539
                this.success = new ArrayList<InventoryMovement>(_list174.size);
-
 
54540
                for (int _i175 = 0; _i175 < _list174.size; ++_i175)
-
 
54541
                {
-
 
54542
                  InventoryMovement _elem176; // required
-
 
54543
                  _elem176 = new InventoryMovement();
-
 
54544
                  _elem176.read(iprot);
-
 
54545
                  this.success.add(_elem176);
-
 
54546
                }
-
 
54547
                iprot.readListEnd();
-
 
54548
              }
-
 
54549
            } else { 
-
 
54550
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54551
            }
-
 
54552
            break;
-
 
54553
          default:
-
 
54554
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54555
        }
-
 
54556
        iprot.readFieldEnd();
-
 
54557
      }
-
 
54558
      iprot.readStructEnd();
-
 
54559
      validate();
-
 
54560
    }
-
 
54561
 
-
 
54562
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
54563
      oprot.writeStructBegin(STRUCT_DESC);
-
 
54564
 
-
 
54565
      if (this.isSetSuccess()) {
-
 
54566
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
54567
        {
-
 
54568
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
54569
          for (InventoryMovement _iter177 : this.success)
-
 
54570
          {
-
 
54571
            _iter177.write(oprot);
-
 
54572
          }
-
 
54573
          oprot.writeListEnd();
-
 
54574
        }
-
 
54575
        oprot.writeFieldEnd();
-
 
54576
      }
-
 
54577
      oprot.writeFieldStop();
-
 
54578
      oprot.writeStructEnd();
-
 
54579
    }
-
 
54580
 
-
 
54581
    @Override
-
 
54582
    public String toString() {
-
 
54583
      StringBuilder sb = new StringBuilder("getCompleteMovementForThirdPartyWarehouse_result(");
-
 
54584
      boolean first = true;
-
 
54585
 
-
 
54586
      sb.append("success:");
-
 
54587
      if (this.success == null) {
-
 
54588
        sb.append("null");
-
 
54589
      } else {
-
 
54590
        sb.append(this.success);
-
 
54591
      }
-
 
54592
      first = false;
-
 
54593
      sb.append(")");
-
 
54594
      return sb.toString();
-
 
54595
    }
53808
 
54596
 
53809
    public void validate() throws org.apache.thrift.TException {
54597
    public void validate() throws org.apache.thrift.TException {
53810
      // check for required fields
54598
      // check for required fields
53811
    }
54599
    }
53812
 
54600