Subversion Repositories SmartDukaan

Rev

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

Rev 6765 Rev 6880
Line 192... Line 192...
192
     * @param date
192
     * @param date
193
     */
193
     */
194
    public List<InventoryAvailability> getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException;
194
    public List<InventoryAvailability> getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException;
195
 
195
 
196
    /**
196
    /**
197
     * Insert Purchase/Scan Entries for product billed by Hotspot using OURS_EXTERNAL Billing
197
     * Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
198
     * 
198
     * 
199
     * @param itemId
199
     * @param itemId
200
     * @param serialNumber
200
     * @param serialNumber
201
     * @param itemNumber
201
     * @param itemNumber
202
     * @param invoiceNumber
202
     * @param invoiceNumber
Line 205... Line 205...
205
     * @param orderId
205
     * @param orderId
206
     */
206
     */
207
    public InventoryItem scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws WarehouseServiceException, org.apache.thrift.TException;
207
    public InventoryItem scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws WarehouseServiceException, org.apache.thrift.TException;
208
 
208
 
209
    /**
209
    /**
210
     * Insert Purchase_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
210
     * Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
211
     * 
211
     * 
212
     * @param orderId
212
     * @param orderId
213
     * @param unitPrice
213
     * @param unitPrice
214
     */
214
     */
215
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException;
215
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException;
216
 
216
 
-
 
217
    public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
-
 
218
 
-
 
219
    public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
-
 
220
 
217
  }
221
  }
218
 
222
 
219
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
223
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
220
 
224
 
221
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
225
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 264... Line 268...
264
 
268
 
265
    public void scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursExternalSale_call> resultHandler) throws org.apache.thrift.TException;
269
    public void scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursExternalSale_call> resultHandler) throws org.apache.thrift.TException;
266
 
270
 
267
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException;
271
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException;
268
 
272
 
-
 
273
    public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
-
 
274
 
-
 
275
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
-
 
276
 
269
  }
277
  }
270
 
278
 
271
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
279
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
272
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
280
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
273
      public Factory() {}
281
      public Factory() {}
Line 881... Line 889...
881
      scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
889
      scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
882
      receiveBase(result, "scanForOursExternalSaleReturn");
890
      receiveBase(result, "scanForOursExternalSaleReturn");
883
      return;
891
      return;
884
    }
892
    }
885
 
893
 
-
 
894
    public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
-
 
895
    {
-
 
896
      send_getMovementNonSerializedInventoryByScans(startDate, endDate);
-
 
897
      return recv_getMovementNonSerializedInventoryByScans();
-
 
898
    }
-
 
899
 
-
 
900
    public void send_getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
-
 
901
    {
-
 
902
      getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
-
 
903
      args.setStartDate(startDate);
-
 
904
      args.setEndDate(endDate);
-
 
905
      sendBase("getMovementNonSerializedInventoryByScans", args);
-
 
906
    }
-
 
907
 
-
 
908
    public List<InventoryMovement> recv_getMovementNonSerializedInventoryByScans() throws org.apache.thrift.TException
-
 
909
    {
-
 
910
      getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
-
 
911
      receiveBase(result, "getMovementNonSerializedInventoryByScans");
-
 
912
      if (result.isSetSuccess()) {
-
 
913
        return result.success;
-
 
914
      }
-
 
915
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
-
 
916
    }
-
 
917
 
-
 
918
    public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
-
 
919
    {
-
 
920
      send_getMovementSerializedInventoryByScans(startDate, endDate);
-
 
921
      return recv_getMovementSerializedInventoryByScans();
-
 
922
    }
-
 
923
 
-
 
924
    public void send_getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
-
 
925
    {
-
 
926
      getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
-
 
927
      args.setStartDate(startDate);
-
 
928
      args.setEndDate(endDate);
-
 
929
      sendBase("getMovementSerializedInventoryByScans", args);
-
 
930
    }
-
 
931
 
-
 
932
    public List<InventoryMovement> recv_getMovementSerializedInventoryByScans() throws org.apache.thrift.TException
-
 
933
    {
-
 
934
      getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
-
 
935
      receiveBase(result, "getMovementSerializedInventoryByScans");
-
 
936
      if (result.isSetSuccess()) {
-
 
937
        return result.success;
-
 
938
      }
-
 
939
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
-
 
940
    }
-
 
941
 
886
  }
942
  }
887
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
943
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
888
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
944
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
889
      private org.apache.thrift.async.TAsyncClientManager clientManager;
945
      private org.apache.thrift.async.TAsyncClientManager clientManager;
890
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
946
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1742... Line 1798...
1742
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1798
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1743
        (new Client(prot)).recv_scanForOursExternalSaleReturn();
1799
        (new Client(prot)).recv_scanForOursExternalSaleReturn();
1744
      }
1800
      }
1745
    }
1801
    }
1746
 
1802
 
-
 
1803
    public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
-
 
1804
      checkReady();
-
 
1805
      getMovementNonSerializedInventoryByScans_call method_call = new getMovementNonSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
1806
      this.___currentMethod = method_call;
-
 
1807
      ___manager.call(method_call);
-
 
1808
    }
-
 
1809
 
-
 
1810
    public static class getMovementNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1811
      private long startDate;
-
 
1812
      private long endDate;
-
 
1813
      public getMovementNonSerializedInventoryByScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementNonSerializedInventoryByScans_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 {
-
 
1814
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1815
        this.startDate = startDate;
-
 
1816
        this.endDate = endDate;
-
 
1817
      }
-
 
1818
 
-
 
1819
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1820
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1821
        getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
-
 
1822
        args.setStartDate(startDate);
-
 
1823
        args.setEndDate(endDate);
-
 
1824
        args.write(prot);
-
 
1825
        prot.writeMessageEnd();
-
 
1826
      }
-
 
1827
 
-
 
1828
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
-
 
1829
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1830
          throw new IllegalStateException("Method call not finished!");
-
 
1831
        }
-
 
1832
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1833
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1834
        return (new Client(prot)).recv_getMovementNonSerializedInventoryByScans();
-
 
1835
      }
-
 
1836
    }
-
 
1837
 
-
 
1838
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
-
 
1839
      checkReady();
-
 
1840
      getMovementSerializedInventoryByScans_call method_call = new getMovementSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
1841
      this.___currentMethod = method_call;
-
 
1842
      ___manager.call(method_call);
-
 
1843
    }
-
 
1844
 
-
 
1845
    public static class getMovementSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1846
      private long startDate;
-
 
1847
      private long endDate;
-
 
1848
      public getMovementSerializedInventoryByScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementSerializedInventoryByScans_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 {
-
 
1849
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1850
        this.startDate = startDate;
-
 
1851
        this.endDate = endDate;
-
 
1852
      }
-
 
1853
 
-
 
1854
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1855
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1856
        getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
-
 
1857
        args.setStartDate(startDate);
-
 
1858
        args.setEndDate(endDate);
-
 
1859
        args.write(prot);
-
 
1860
        prot.writeMessageEnd();
-
 
1861
      }
-
 
1862
 
-
 
1863
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
-
 
1864
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1865
          throw new IllegalStateException("Method call not finished!");
-
 
1866
        }
-
 
1867
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1868
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1869
        return (new Client(prot)).recv_getMovementSerializedInventoryByScans();
-
 
1870
      }
-
 
1871
    }
-
 
1872
 
1747
  }
1873
  }
1748
 
1874
 
1749
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1875
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1750
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1876
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1751
    public Processor(I iface) {
1877
    public Processor(I iface) {
Line 1779... Line 1905...
1779
      processMap.put("getCurrentNonSerializedInventoryByScans", new getCurrentNonSerializedInventoryByScans());
1905
      processMap.put("getCurrentNonSerializedInventoryByScans", new getCurrentNonSerializedInventoryByScans());
1780
      processMap.put("getHistoricSerializedInventoryByScans", new getHistoricSerializedInventoryByScans());
1906
      processMap.put("getHistoricSerializedInventoryByScans", new getHistoricSerializedInventoryByScans());
1781
      processMap.put("getHistoricNonSerializedInventoryByScans", new getHistoricNonSerializedInventoryByScans());
1907
      processMap.put("getHistoricNonSerializedInventoryByScans", new getHistoricNonSerializedInventoryByScans());
1782
      processMap.put("scanForOursExternalSale", new scanForOursExternalSale());
1908
      processMap.put("scanForOursExternalSale", new scanForOursExternalSale());
1783
      processMap.put("scanForOursExternalSaleReturn", new scanForOursExternalSaleReturn());
1909
      processMap.put("scanForOursExternalSaleReturn", new scanForOursExternalSaleReturn());
-
 
1910
      processMap.put("getMovementNonSerializedInventoryByScans", new getMovementNonSerializedInventoryByScans());
-
 
1911
      processMap.put("getMovementSerializedInventoryByScans", new getMovementSerializedInventoryByScans());
1784
      return processMap;
1912
      return processMap;
1785
    }
1913
    }
1786
 
1914
 
1787
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
1915
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
1788
      public getInventoryItem() {
1916
      public getInventoryItem() {
Line 2210... Line 2338...
2210
        iface.scanForOursExternalSaleReturn(args.orderId, args.unitPrice);
2338
        iface.scanForOursExternalSaleReturn(args.orderId, args.unitPrice);
2211
        return result;
2339
        return result;
2212
      }
2340
      }
2213
    }
2341
    }
2214
 
2342
 
-
 
2343
    private static class getMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementNonSerializedInventoryByScans_args> {
-
 
2344
      public getMovementNonSerializedInventoryByScans() {
-
 
2345
        super("getMovementNonSerializedInventoryByScans");
-
 
2346
      }
-
 
2347
 
-
 
2348
      protected getMovementNonSerializedInventoryByScans_args getEmptyArgsInstance() {
-
 
2349
        return new getMovementNonSerializedInventoryByScans_args();
-
 
2350
      }
-
 
2351
 
-
 
2352
      protected getMovementNonSerializedInventoryByScans_result getResult(I iface, getMovementNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
-
 
2353
        getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
-
 
2354
        result.success = iface.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate);
-
 
2355
        return result;
-
 
2356
      }
-
 
2357
    }
-
 
2358
 
-
 
2359
    private static class getMovementSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementSerializedInventoryByScans_args> {
-
 
2360
      public getMovementSerializedInventoryByScans() {
-
 
2361
        super("getMovementSerializedInventoryByScans");
-
 
2362
      }
-
 
2363
 
-
 
2364
      protected getMovementSerializedInventoryByScans_args getEmptyArgsInstance() {
-
 
2365
        return new getMovementSerializedInventoryByScans_args();
-
 
2366
      }
-
 
2367
 
-
 
2368
      protected getMovementSerializedInventoryByScans_result getResult(I iface, getMovementSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
-
 
2369
        getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
-
 
2370
        result.success = iface.getMovementSerializedInventoryByScans(args.startDate, args.endDate);
-
 
2371
        return result;
-
 
2372
      }
-
 
2373
    }
-
 
2374
 
2215
  }
2375
  }
2216
 
2376
 
2217
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
2377
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
2218
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
2378
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
2219
 
2379
 
Line 19480... Line 19640...
19480
      sb.append(")");
19640
      sb.append(")");
19481
      return sb.toString();
19641
      return sb.toString();
19482
    }
19642
    }
19483
 
19643
 
19484
    public void validate() throws org.apache.thrift.TException {
19644
    public void validate() throws org.apache.thrift.TException {
-
 
19645
      // check for required fields
-
 
19646
    }
-
 
19647
 
-
 
19648
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
19649
      try {
-
 
19650
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
19651
      } catch (org.apache.thrift.TException te) {
-
 
19652
        throw new java.io.IOException(te);
-
 
19653
      }
-
 
19654
    }
-
 
19655
 
-
 
19656
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
19657
      try {
-
 
19658
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
19659
      } catch (org.apache.thrift.TException te) {
-
 
19660
        throw new java.io.IOException(te);
-
 
19661
      }
-
 
19662
    }
-
 
19663
 
-
 
19664
  }
-
 
19665
 
-
 
19666
  public static class getMovementNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_args, getMovementNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
-
 
19667
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_args");
-
 
19668
 
-
 
19669
    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);
-
 
19670
    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);
-
 
19671
 
-
 
19672
    private long startDate; // required
-
 
19673
    private long endDate; // required
-
 
19674
 
-
 
19675
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
19676
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
19677
      START_DATE((short)1, "startDate"),
-
 
19678
      END_DATE((short)2, "endDate");
-
 
19679
 
-
 
19680
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
19681
 
-
 
19682
      static {
-
 
19683
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
19684
          byName.put(field.getFieldName(), field);
-
 
19685
        }
-
 
19686
      }
-
 
19687
 
-
 
19688
      /**
-
 
19689
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
19690
       */
-
 
19691
      public static _Fields findByThriftId(int fieldId) {
-
 
19692
        switch(fieldId) {
-
 
19693
          case 1: // START_DATE
-
 
19694
            return START_DATE;
-
 
19695
          case 2: // END_DATE
-
 
19696
            return END_DATE;
-
 
19697
          default:
-
 
19698
            return null;
-
 
19699
        }
-
 
19700
      }
-
 
19701
 
-
 
19702
      /**
-
 
19703
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
19704
       * if it is not found.
-
 
19705
       */
-
 
19706
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
19707
        _Fields fields = findByThriftId(fieldId);
-
 
19708
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
19709
        return fields;
-
 
19710
      }
-
 
19711
 
-
 
19712
      /**
-
 
19713
       * Find the _Fields constant that matches name, or null if its not found.
-
 
19714
       */
-
 
19715
      public static _Fields findByName(String name) {
-
 
19716
        return byName.get(name);
-
 
19717
      }
-
 
19718
 
-
 
19719
      private final short _thriftId;
-
 
19720
      private final String _fieldName;
-
 
19721
 
-
 
19722
      _Fields(short thriftId, String fieldName) {
-
 
19723
        _thriftId = thriftId;
-
 
19724
        _fieldName = fieldName;
-
 
19725
      }
-
 
19726
 
-
 
19727
      public short getThriftFieldId() {
-
 
19728
        return _thriftId;
-
 
19729
      }
-
 
19730
 
-
 
19731
      public String getFieldName() {
-
 
19732
        return _fieldName;
-
 
19733
      }
-
 
19734
    }
-
 
19735
 
-
 
19736
    // isset id assignments
-
 
19737
    private static final int __STARTDATE_ISSET_ID = 0;
-
 
19738
    private static final int __ENDDATE_ISSET_ID = 1;
-
 
19739
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
19740
 
-
 
19741
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
19742
    static {
-
 
19743
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
19744
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
19745
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
19746
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
19747
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
19748
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
19749
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_args.class, metaDataMap);
-
 
19750
    }
-
 
19751
 
-
 
19752
    public getMovementNonSerializedInventoryByScans_args() {
-
 
19753
    }
-
 
19754
 
-
 
19755
    public getMovementNonSerializedInventoryByScans_args(
-
 
19756
      long startDate,
-
 
19757
      long endDate)
-
 
19758
    {
-
 
19759
      this();
-
 
19760
      this.startDate = startDate;
-
 
19761
      setStartDateIsSet(true);
-
 
19762
      this.endDate = endDate;
-
 
19763
      setEndDateIsSet(true);
-
 
19764
    }
-
 
19765
 
-
 
19766
    /**
-
 
19767
     * Performs a deep copy on <i>other</i>.
-
 
19768
     */
-
 
19769
    public getMovementNonSerializedInventoryByScans_args(getMovementNonSerializedInventoryByScans_args other) {
-
 
19770
      __isset_bit_vector.clear();
-
 
19771
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
19772
      this.startDate = other.startDate;
-
 
19773
      this.endDate = other.endDate;
-
 
19774
    }
-
 
19775
 
-
 
19776
    public getMovementNonSerializedInventoryByScans_args deepCopy() {
-
 
19777
      return new getMovementNonSerializedInventoryByScans_args(this);
-
 
19778
    }
-
 
19779
 
-
 
19780
    @Override
-
 
19781
    public void clear() {
-
 
19782
      setStartDateIsSet(false);
-
 
19783
      this.startDate = 0;
-
 
19784
      setEndDateIsSet(false);
-
 
19785
      this.endDate = 0;
-
 
19786
    }
-
 
19787
 
-
 
19788
    public long getStartDate() {
-
 
19789
      return this.startDate;
-
 
19790
    }
-
 
19791
 
-
 
19792
    public void setStartDate(long startDate) {
-
 
19793
      this.startDate = startDate;
-
 
19794
      setStartDateIsSet(true);
-
 
19795
    }
-
 
19796
 
-
 
19797
    public void unsetStartDate() {
-
 
19798
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
-
 
19799
    }
-
 
19800
 
-
 
19801
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
-
 
19802
    public boolean isSetStartDate() {
-
 
19803
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
-
 
19804
    }
-
 
19805
 
-
 
19806
    public void setStartDateIsSet(boolean value) {
-
 
19807
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
-
 
19808
    }
-
 
19809
 
-
 
19810
    public long getEndDate() {
-
 
19811
      return this.endDate;
-
 
19812
    }
-
 
19813
 
-
 
19814
    public void setEndDate(long endDate) {
-
 
19815
      this.endDate = endDate;
-
 
19816
      setEndDateIsSet(true);
-
 
19817
    }
-
 
19818
 
-
 
19819
    public void unsetEndDate() {
-
 
19820
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
-
 
19821
    }
-
 
19822
 
-
 
19823
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
-
 
19824
    public boolean isSetEndDate() {
-
 
19825
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
-
 
19826
    }
-
 
19827
 
-
 
19828
    public void setEndDateIsSet(boolean value) {
-
 
19829
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
-
 
19830
    }
-
 
19831
 
-
 
19832
    public void setFieldValue(_Fields field, Object value) {
-
 
19833
      switch (field) {
-
 
19834
      case START_DATE:
-
 
19835
        if (value == null) {
-
 
19836
          unsetStartDate();
-
 
19837
        } else {
-
 
19838
          setStartDate((Long)value);
-
 
19839
        }
-
 
19840
        break;
-
 
19841
 
-
 
19842
      case END_DATE:
-
 
19843
        if (value == null) {
-
 
19844
          unsetEndDate();
-
 
19845
        } else {
-
 
19846
          setEndDate((Long)value);
-
 
19847
        }
-
 
19848
        break;
-
 
19849
 
-
 
19850
      }
-
 
19851
    }
-
 
19852
 
-
 
19853
    public Object getFieldValue(_Fields field) {
-
 
19854
      switch (field) {
-
 
19855
      case START_DATE:
-
 
19856
        return Long.valueOf(getStartDate());
-
 
19857
 
-
 
19858
      case END_DATE:
-
 
19859
        return Long.valueOf(getEndDate());
-
 
19860
 
-
 
19861
      }
-
 
19862
      throw new IllegalStateException();
-
 
19863
    }
-
 
19864
 
-
 
19865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
19866
    public boolean isSet(_Fields field) {
-
 
19867
      if (field == null) {
-
 
19868
        throw new IllegalArgumentException();
-
 
19869
      }
-
 
19870
 
-
 
19871
      switch (field) {
-
 
19872
      case START_DATE:
-
 
19873
        return isSetStartDate();
-
 
19874
      case END_DATE:
-
 
19875
        return isSetEndDate();
-
 
19876
      }
-
 
19877
      throw new IllegalStateException();
-
 
19878
    }
-
 
19879
 
-
 
19880
    @Override
-
 
19881
    public boolean equals(Object that) {
-
 
19882
      if (that == null)
-
 
19883
        return false;
-
 
19884
      if (that instanceof getMovementNonSerializedInventoryByScans_args)
-
 
19885
        return this.equals((getMovementNonSerializedInventoryByScans_args)that);
-
 
19886
      return false;
-
 
19887
    }
-
 
19888
 
-
 
19889
    public boolean equals(getMovementNonSerializedInventoryByScans_args that) {
-
 
19890
      if (that == null)
-
 
19891
        return false;
-
 
19892
 
-
 
19893
      boolean this_present_startDate = true;
-
 
19894
      boolean that_present_startDate = true;
-
 
19895
      if (this_present_startDate || that_present_startDate) {
-
 
19896
        if (!(this_present_startDate && that_present_startDate))
-
 
19897
          return false;
-
 
19898
        if (this.startDate != that.startDate)
-
 
19899
          return false;
-
 
19900
      }
-
 
19901
 
-
 
19902
      boolean this_present_endDate = true;
-
 
19903
      boolean that_present_endDate = true;
-
 
19904
      if (this_present_endDate || that_present_endDate) {
-
 
19905
        if (!(this_present_endDate && that_present_endDate))
-
 
19906
          return false;
-
 
19907
        if (this.endDate != that.endDate)
-
 
19908
          return false;
-
 
19909
      }
-
 
19910
 
-
 
19911
      return true;
-
 
19912
    }
-
 
19913
 
-
 
19914
    @Override
-
 
19915
    public int hashCode() {
-
 
19916
      return 0;
-
 
19917
    }
-
 
19918
 
-
 
19919
    public int compareTo(getMovementNonSerializedInventoryByScans_args other) {
-
 
19920
      if (!getClass().equals(other.getClass())) {
-
 
19921
        return getClass().getName().compareTo(other.getClass().getName());
-
 
19922
      }
-
 
19923
 
-
 
19924
      int lastComparison = 0;
-
 
19925
      getMovementNonSerializedInventoryByScans_args typedOther = (getMovementNonSerializedInventoryByScans_args)other;
-
 
19926
 
-
 
19927
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
-
 
19928
      if (lastComparison != 0) {
-
 
19929
        return lastComparison;
-
 
19930
      }
-
 
19931
      if (isSetStartDate()) {
-
 
19932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
-
 
19933
        if (lastComparison != 0) {
-
 
19934
          return lastComparison;
-
 
19935
        }
-
 
19936
      }
-
 
19937
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
-
 
19938
      if (lastComparison != 0) {
-
 
19939
        return lastComparison;
-
 
19940
      }
-
 
19941
      if (isSetEndDate()) {
-
 
19942
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
-
 
19943
        if (lastComparison != 0) {
-
 
19944
          return lastComparison;
-
 
19945
        }
-
 
19946
      }
-
 
19947
      return 0;
-
 
19948
    }
-
 
19949
 
-
 
19950
    public _Fields fieldForId(int fieldId) {
-
 
19951
      return _Fields.findByThriftId(fieldId);
-
 
19952
    }
-
 
19953
 
-
 
19954
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
19955
      org.apache.thrift.protocol.TField field;
-
 
19956
      iprot.readStructBegin();
-
 
19957
      while (true)
-
 
19958
      {
-
 
19959
        field = iprot.readFieldBegin();
-
 
19960
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
19961
          break;
-
 
19962
        }
-
 
19963
        switch (field.id) {
-
 
19964
          case 1: // START_DATE
-
 
19965
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
19966
              this.startDate = iprot.readI64();
-
 
19967
              setStartDateIsSet(true);
-
 
19968
            } else { 
-
 
19969
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19970
            }
-
 
19971
            break;
-
 
19972
          case 2: // END_DATE
-
 
19973
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
19974
              this.endDate = iprot.readI64();
-
 
19975
              setEndDateIsSet(true);
-
 
19976
            } else { 
-
 
19977
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19978
            }
-
 
19979
            break;
-
 
19980
          default:
-
 
19981
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19982
        }
-
 
19983
        iprot.readFieldEnd();
-
 
19984
      }
-
 
19985
      iprot.readStructEnd();
-
 
19986
      validate();
-
 
19987
    }
-
 
19988
 
-
 
19989
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
19990
      validate();
-
 
19991
 
-
 
19992
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19993
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
-
 
19994
      oprot.writeI64(this.startDate);
-
 
19995
      oprot.writeFieldEnd();
-
 
19996
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
-
 
19997
      oprot.writeI64(this.endDate);
-
 
19998
      oprot.writeFieldEnd();
-
 
19999
      oprot.writeFieldStop();
-
 
20000
      oprot.writeStructEnd();
-
 
20001
    }
-
 
20002
 
-
 
20003
    @Override
-
 
20004
    public String toString() {
-
 
20005
      StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_args(");
-
 
20006
      boolean first = true;
-
 
20007
 
-
 
20008
      sb.append("startDate:");
-
 
20009
      sb.append(this.startDate);
-
 
20010
      first = false;
-
 
20011
      if (!first) sb.append(", ");
-
 
20012
      sb.append("endDate:");
-
 
20013
      sb.append(this.endDate);
-
 
20014
      first = false;
-
 
20015
      sb.append(")");
-
 
20016
      return sb.toString();
-
 
20017
    }
-
 
20018
 
-
 
20019
    public void validate() throws org.apache.thrift.TException {
-
 
20020
      // check for required fields
-
 
20021
    }
-
 
20022
 
-
 
20023
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
20024
      try {
-
 
20025
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
20026
      } catch (org.apache.thrift.TException te) {
-
 
20027
        throw new java.io.IOException(te);
-
 
20028
      }
-
 
20029
    }
-
 
20030
 
-
 
20031
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
20032
      try {
-
 
20033
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
20034
        __isset_bit_vector = new BitSet(1);
-
 
20035
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
20036
      } catch (org.apache.thrift.TException te) {
-
 
20037
        throw new java.io.IOException(te);
-
 
20038
      }
-
 
20039
    }
-
 
20040
 
-
 
20041
  }
-
 
20042
 
-
 
20043
  public static class getMovementNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_result, getMovementNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
-
 
20044
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_result");
-
 
20045
 
-
 
20046
    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);
-
 
20047
 
-
 
20048
    private List<InventoryMovement> success; // required
-
 
20049
 
-
 
20050
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
20051
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
20052
      SUCCESS((short)0, "success");
-
 
20053
 
-
 
20054
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
20055
 
-
 
20056
      static {
-
 
20057
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
20058
          byName.put(field.getFieldName(), field);
-
 
20059
        }
-
 
20060
      }
-
 
20061
 
-
 
20062
      /**
-
 
20063
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
20064
       */
-
 
20065
      public static _Fields findByThriftId(int fieldId) {
-
 
20066
        switch(fieldId) {
-
 
20067
          case 0: // SUCCESS
-
 
20068
            return SUCCESS;
-
 
20069
          default:
-
 
20070
            return null;
-
 
20071
        }
-
 
20072
      }
-
 
20073
 
-
 
20074
      /**
-
 
20075
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
20076
       * if it is not found.
-
 
20077
       */
-
 
20078
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
20079
        _Fields fields = findByThriftId(fieldId);
-
 
20080
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
20081
        return fields;
-
 
20082
      }
-
 
20083
 
-
 
20084
      /**
-
 
20085
       * Find the _Fields constant that matches name, or null if its not found.
-
 
20086
       */
-
 
20087
      public static _Fields findByName(String name) {
-
 
20088
        return byName.get(name);
-
 
20089
      }
-
 
20090
 
-
 
20091
      private final short _thriftId;
-
 
20092
      private final String _fieldName;
-
 
20093
 
-
 
20094
      _Fields(short thriftId, String fieldName) {
-
 
20095
        _thriftId = thriftId;
-
 
20096
        _fieldName = fieldName;
-
 
20097
      }
-
 
20098
 
-
 
20099
      public short getThriftFieldId() {
-
 
20100
        return _thriftId;
-
 
20101
      }
-
 
20102
 
-
 
20103
      public String getFieldName() {
-
 
20104
        return _fieldName;
-
 
20105
      }
-
 
20106
    }
-
 
20107
 
-
 
20108
    // isset id assignments
-
 
20109
 
-
 
20110
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
20111
    static {
-
 
20112
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
20113
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20114
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
20115
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
-
 
20116
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
20117
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_result.class, metaDataMap);
-
 
20118
    }
-
 
20119
 
-
 
20120
    public getMovementNonSerializedInventoryByScans_result() {
-
 
20121
    }
-
 
20122
 
-
 
20123
    public getMovementNonSerializedInventoryByScans_result(
-
 
20124
      List<InventoryMovement> success)
-
 
20125
    {
-
 
20126
      this();
-
 
20127
      this.success = success;
-
 
20128
    }
-
 
20129
 
-
 
20130
    /**
-
 
20131
     * Performs a deep copy on <i>other</i>.
-
 
20132
     */
-
 
20133
    public getMovementNonSerializedInventoryByScans_result(getMovementNonSerializedInventoryByScans_result other) {
-
 
20134
      if (other.isSetSuccess()) {
-
 
20135
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
-
 
20136
        for (InventoryMovement other_element : other.success) {
-
 
20137
          __this__success.add(new InventoryMovement(other_element));
-
 
20138
        }
-
 
20139
        this.success = __this__success;
-
 
20140
      }
-
 
20141
    }
-
 
20142
 
-
 
20143
    public getMovementNonSerializedInventoryByScans_result deepCopy() {
-
 
20144
      return new getMovementNonSerializedInventoryByScans_result(this);
-
 
20145
    }
-
 
20146
 
-
 
20147
    @Override
-
 
20148
    public void clear() {
-
 
20149
      this.success = null;
-
 
20150
    }
-
 
20151
 
-
 
20152
    public int getSuccessSize() {
-
 
20153
      return (this.success == null) ? 0 : this.success.size();
-
 
20154
    }
-
 
20155
 
-
 
20156
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
-
 
20157
      return (this.success == null) ? null : this.success.iterator();
-
 
20158
    }
-
 
20159
 
-
 
20160
    public void addToSuccess(InventoryMovement elem) {
-
 
20161
      if (this.success == null) {
-
 
20162
        this.success = new ArrayList<InventoryMovement>();
-
 
20163
      }
-
 
20164
      this.success.add(elem);
-
 
20165
    }
-
 
20166
 
-
 
20167
    public List<InventoryMovement> getSuccess() {
-
 
20168
      return this.success;
-
 
20169
    }
-
 
20170
 
-
 
20171
    public void setSuccess(List<InventoryMovement> success) {
-
 
20172
      this.success = success;
-
 
20173
    }
-
 
20174
 
-
 
20175
    public void unsetSuccess() {
-
 
20176
      this.success = null;
-
 
20177
    }
-
 
20178
 
-
 
20179
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
20180
    public boolean isSetSuccess() {
-
 
20181
      return this.success != null;
-
 
20182
    }
-
 
20183
 
-
 
20184
    public void setSuccessIsSet(boolean value) {
-
 
20185
      if (!value) {
-
 
20186
        this.success = null;
-
 
20187
      }
-
 
20188
    }
-
 
20189
 
-
 
20190
    public void setFieldValue(_Fields field, Object value) {
-
 
20191
      switch (field) {
-
 
20192
      case SUCCESS:
-
 
20193
        if (value == null) {
-
 
20194
          unsetSuccess();
-
 
20195
        } else {
-
 
20196
          setSuccess((List<InventoryMovement>)value);
-
 
20197
        }
-
 
20198
        break;
-
 
20199
 
-
 
20200
      }
-
 
20201
    }
-
 
20202
 
-
 
20203
    public Object getFieldValue(_Fields field) {
-
 
20204
      switch (field) {
-
 
20205
      case SUCCESS:
-
 
20206
        return getSuccess();
-
 
20207
 
-
 
20208
      }
-
 
20209
      throw new IllegalStateException();
-
 
20210
    }
-
 
20211
 
-
 
20212
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
20213
    public boolean isSet(_Fields field) {
-
 
20214
      if (field == null) {
-
 
20215
        throw new IllegalArgumentException();
-
 
20216
      }
-
 
20217
 
-
 
20218
      switch (field) {
-
 
20219
      case SUCCESS:
-
 
20220
        return isSetSuccess();
-
 
20221
      }
-
 
20222
      throw new IllegalStateException();
-
 
20223
    }
-
 
20224
 
-
 
20225
    @Override
-
 
20226
    public boolean equals(Object that) {
-
 
20227
      if (that == null)
-
 
20228
        return false;
-
 
20229
      if (that instanceof getMovementNonSerializedInventoryByScans_result)
-
 
20230
        return this.equals((getMovementNonSerializedInventoryByScans_result)that);
-
 
20231
      return false;
-
 
20232
    }
-
 
20233
 
-
 
20234
    public boolean equals(getMovementNonSerializedInventoryByScans_result that) {
-
 
20235
      if (that == null)
-
 
20236
        return false;
-
 
20237
 
-
 
20238
      boolean this_present_success = true && this.isSetSuccess();
-
 
20239
      boolean that_present_success = true && that.isSetSuccess();
-
 
20240
      if (this_present_success || that_present_success) {
-
 
20241
        if (!(this_present_success && that_present_success))
-
 
20242
          return false;
-
 
20243
        if (!this.success.equals(that.success))
-
 
20244
          return false;
-
 
20245
      }
-
 
20246
 
-
 
20247
      return true;
-
 
20248
    }
-
 
20249
 
-
 
20250
    @Override
-
 
20251
    public int hashCode() {
-
 
20252
      return 0;
-
 
20253
    }
-
 
20254
 
-
 
20255
    public int compareTo(getMovementNonSerializedInventoryByScans_result other) {
-
 
20256
      if (!getClass().equals(other.getClass())) {
-
 
20257
        return getClass().getName().compareTo(other.getClass().getName());
-
 
20258
      }
-
 
20259
 
-
 
20260
      int lastComparison = 0;
-
 
20261
      getMovementNonSerializedInventoryByScans_result typedOther = (getMovementNonSerializedInventoryByScans_result)other;
-
 
20262
 
-
 
20263
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
20264
      if (lastComparison != 0) {
-
 
20265
        return lastComparison;
-
 
20266
      }
-
 
20267
      if (isSetSuccess()) {
-
 
20268
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
20269
        if (lastComparison != 0) {
-
 
20270
          return lastComparison;
-
 
20271
        }
-
 
20272
      }
-
 
20273
      return 0;
-
 
20274
    }
-
 
20275
 
-
 
20276
    public _Fields fieldForId(int fieldId) {
-
 
20277
      return _Fields.findByThriftId(fieldId);
-
 
20278
    }
-
 
20279
 
-
 
20280
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
20281
      org.apache.thrift.protocol.TField field;
-
 
20282
      iprot.readStructBegin();
-
 
20283
      while (true)
-
 
20284
      {
-
 
20285
        field = iprot.readFieldBegin();
-
 
20286
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
20287
          break;
-
 
20288
        }
-
 
20289
        switch (field.id) {
-
 
20290
          case 0: // SUCCESS
-
 
20291
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
20292
              {
-
 
20293
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
-
 
20294
                this.success = new ArrayList<InventoryMovement>(_list56.size);
-
 
20295
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
-
 
20296
                {
-
 
20297
                  InventoryMovement _elem58; // required
-
 
20298
                  _elem58 = new InventoryMovement();
-
 
20299
                  _elem58.read(iprot);
-
 
20300
                  this.success.add(_elem58);
-
 
20301
                }
-
 
20302
                iprot.readListEnd();
-
 
20303
              }
-
 
20304
            } else { 
-
 
20305
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20306
            }
-
 
20307
            break;
-
 
20308
          default:
-
 
20309
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20310
        }
-
 
20311
        iprot.readFieldEnd();
-
 
20312
      }
-
 
20313
      iprot.readStructEnd();
-
 
20314
      validate();
-
 
20315
    }
-
 
20316
 
-
 
20317
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
20318
      oprot.writeStructBegin(STRUCT_DESC);
-
 
20319
 
-
 
20320
      if (this.isSetSuccess()) {
-
 
20321
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
20322
        {
-
 
20323
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
20324
          for (InventoryMovement _iter59 : this.success)
-
 
20325
          {
-
 
20326
            _iter59.write(oprot);
-
 
20327
          }
-
 
20328
          oprot.writeListEnd();
-
 
20329
        }
-
 
20330
        oprot.writeFieldEnd();
-
 
20331
      }
-
 
20332
      oprot.writeFieldStop();
-
 
20333
      oprot.writeStructEnd();
-
 
20334
    }
-
 
20335
 
-
 
20336
    @Override
-
 
20337
    public String toString() {
-
 
20338
      StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_result(");
-
 
20339
      boolean first = true;
-
 
20340
 
-
 
20341
      sb.append("success:");
-
 
20342
      if (this.success == null) {
-
 
20343
        sb.append("null");
-
 
20344
      } else {
-
 
20345
        sb.append(this.success);
-
 
20346
      }
-
 
20347
      first = false;
-
 
20348
      sb.append(")");
-
 
20349
      return sb.toString();
-
 
20350
    }
-
 
20351
 
-
 
20352
    public void validate() throws org.apache.thrift.TException {
-
 
20353
      // check for required fields
-
 
20354
    }
-
 
20355
 
-
 
20356
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
20357
      try {
-
 
20358
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
20359
      } catch (org.apache.thrift.TException te) {
-
 
20360
        throw new java.io.IOException(te);
-
 
20361
      }
-
 
20362
    }
-
 
20363
 
-
 
20364
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
20365
      try {
-
 
20366
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
20367
      } catch (org.apache.thrift.TException te) {
-
 
20368
        throw new java.io.IOException(te);
-
 
20369
      }
-
 
20370
    }
-
 
20371
 
-
 
20372
  }
-
 
20373
 
-
 
20374
  public static class getMovementSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_args, getMovementSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
-
 
20375
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_args");
-
 
20376
 
-
 
20377
    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);
-
 
20378
    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);
-
 
20379
 
-
 
20380
    private long startDate; // required
-
 
20381
    private long endDate; // required
-
 
20382
 
-
 
20383
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
20384
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
20385
      START_DATE((short)1, "startDate"),
-
 
20386
      END_DATE((short)2, "endDate");
-
 
20387
 
-
 
20388
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
20389
 
-
 
20390
      static {
-
 
20391
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
20392
          byName.put(field.getFieldName(), field);
-
 
20393
        }
-
 
20394
      }
-
 
20395
 
-
 
20396
      /**
-
 
20397
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
20398
       */
-
 
20399
      public static _Fields findByThriftId(int fieldId) {
-
 
20400
        switch(fieldId) {
-
 
20401
          case 1: // START_DATE
-
 
20402
            return START_DATE;
-
 
20403
          case 2: // END_DATE
-
 
20404
            return END_DATE;
-
 
20405
          default:
-
 
20406
            return null;
-
 
20407
        }
-
 
20408
      }
-
 
20409
 
-
 
20410
      /**
-
 
20411
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
20412
       * if it is not found.
-
 
20413
       */
-
 
20414
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
20415
        _Fields fields = findByThriftId(fieldId);
-
 
20416
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
20417
        return fields;
-
 
20418
      }
-
 
20419
 
-
 
20420
      /**
-
 
20421
       * Find the _Fields constant that matches name, or null if its not found.
-
 
20422
       */
-
 
20423
      public static _Fields findByName(String name) {
-
 
20424
        return byName.get(name);
-
 
20425
      }
-
 
20426
 
-
 
20427
      private final short _thriftId;
-
 
20428
      private final String _fieldName;
-
 
20429
 
-
 
20430
      _Fields(short thriftId, String fieldName) {
-
 
20431
        _thriftId = thriftId;
-
 
20432
        _fieldName = fieldName;
-
 
20433
      }
-
 
20434
 
-
 
20435
      public short getThriftFieldId() {
-
 
20436
        return _thriftId;
-
 
20437
      }
-
 
20438
 
-
 
20439
      public String getFieldName() {
-
 
20440
        return _fieldName;
-
 
20441
      }
-
 
20442
    }
-
 
20443
 
-
 
20444
    // isset id assignments
-
 
20445
    private static final int __STARTDATE_ISSET_ID = 0;
-
 
20446
    private static final int __ENDDATE_ISSET_ID = 1;
-
 
20447
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
20448
 
-
 
20449
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
20450
    static {
-
 
20451
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
20452
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20453
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
20454
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20455
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
20456
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
20457
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_args.class, metaDataMap);
-
 
20458
    }
-
 
20459
 
-
 
20460
    public getMovementSerializedInventoryByScans_args() {
-
 
20461
    }
-
 
20462
 
-
 
20463
    public getMovementSerializedInventoryByScans_args(
-
 
20464
      long startDate,
-
 
20465
      long endDate)
-
 
20466
    {
-
 
20467
      this();
-
 
20468
      this.startDate = startDate;
-
 
20469
      setStartDateIsSet(true);
-
 
20470
      this.endDate = endDate;
-
 
20471
      setEndDateIsSet(true);
-
 
20472
    }
-
 
20473
 
-
 
20474
    /**
-
 
20475
     * Performs a deep copy on <i>other</i>.
-
 
20476
     */
-
 
20477
    public getMovementSerializedInventoryByScans_args(getMovementSerializedInventoryByScans_args other) {
-
 
20478
      __isset_bit_vector.clear();
-
 
20479
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
20480
      this.startDate = other.startDate;
-
 
20481
      this.endDate = other.endDate;
-
 
20482
    }
-
 
20483
 
-
 
20484
    public getMovementSerializedInventoryByScans_args deepCopy() {
-
 
20485
      return new getMovementSerializedInventoryByScans_args(this);
-
 
20486
    }
-
 
20487
 
-
 
20488
    @Override
-
 
20489
    public void clear() {
-
 
20490
      setStartDateIsSet(false);
-
 
20491
      this.startDate = 0;
-
 
20492
      setEndDateIsSet(false);
-
 
20493
      this.endDate = 0;
-
 
20494
    }
-
 
20495
 
-
 
20496
    public long getStartDate() {
-
 
20497
      return this.startDate;
-
 
20498
    }
-
 
20499
 
-
 
20500
    public void setStartDate(long startDate) {
-
 
20501
      this.startDate = startDate;
-
 
20502
      setStartDateIsSet(true);
-
 
20503
    }
-
 
20504
 
-
 
20505
    public void unsetStartDate() {
-
 
20506
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
-
 
20507
    }
-
 
20508
 
-
 
20509
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
-
 
20510
    public boolean isSetStartDate() {
-
 
20511
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
-
 
20512
    }
-
 
20513
 
-
 
20514
    public void setStartDateIsSet(boolean value) {
-
 
20515
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
-
 
20516
    }
-
 
20517
 
-
 
20518
    public long getEndDate() {
-
 
20519
      return this.endDate;
-
 
20520
    }
-
 
20521
 
-
 
20522
    public void setEndDate(long endDate) {
-
 
20523
      this.endDate = endDate;
-
 
20524
      setEndDateIsSet(true);
-
 
20525
    }
-
 
20526
 
-
 
20527
    public void unsetEndDate() {
-
 
20528
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
-
 
20529
    }
-
 
20530
 
-
 
20531
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
-
 
20532
    public boolean isSetEndDate() {
-
 
20533
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
-
 
20534
    }
-
 
20535
 
-
 
20536
    public void setEndDateIsSet(boolean value) {
-
 
20537
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
-
 
20538
    }
-
 
20539
 
-
 
20540
    public void setFieldValue(_Fields field, Object value) {
-
 
20541
      switch (field) {
-
 
20542
      case START_DATE:
-
 
20543
        if (value == null) {
-
 
20544
          unsetStartDate();
-
 
20545
        } else {
-
 
20546
          setStartDate((Long)value);
-
 
20547
        }
-
 
20548
        break;
-
 
20549
 
-
 
20550
      case END_DATE:
-
 
20551
        if (value == null) {
-
 
20552
          unsetEndDate();
-
 
20553
        } else {
-
 
20554
          setEndDate((Long)value);
-
 
20555
        }
-
 
20556
        break;
-
 
20557
 
-
 
20558
      }
-
 
20559
    }
-
 
20560
 
-
 
20561
    public Object getFieldValue(_Fields field) {
-
 
20562
      switch (field) {
-
 
20563
      case START_DATE:
-
 
20564
        return Long.valueOf(getStartDate());
-
 
20565
 
-
 
20566
      case END_DATE:
-
 
20567
        return Long.valueOf(getEndDate());
-
 
20568
 
-
 
20569
      }
-
 
20570
      throw new IllegalStateException();
-
 
20571
    }
-
 
20572
 
-
 
20573
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
20574
    public boolean isSet(_Fields field) {
-
 
20575
      if (field == null) {
-
 
20576
        throw new IllegalArgumentException();
-
 
20577
      }
-
 
20578
 
-
 
20579
      switch (field) {
-
 
20580
      case START_DATE:
-
 
20581
        return isSetStartDate();
-
 
20582
      case END_DATE:
-
 
20583
        return isSetEndDate();
-
 
20584
      }
-
 
20585
      throw new IllegalStateException();
-
 
20586
    }
-
 
20587
 
-
 
20588
    @Override
-
 
20589
    public boolean equals(Object that) {
-
 
20590
      if (that == null)
-
 
20591
        return false;
-
 
20592
      if (that instanceof getMovementSerializedInventoryByScans_args)
-
 
20593
        return this.equals((getMovementSerializedInventoryByScans_args)that);
-
 
20594
      return false;
-
 
20595
    }
-
 
20596
 
-
 
20597
    public boolean equals(getMovementSerializedInventoryByScans_args that) {
-
 
20598
      if (that == null)
-
 
20599
        return false;
-
 
20600
 
-
 
20601
      boolean this_present_startDate = true;
-
 
20602
      boolean that_present_startDate = true;
-
 
20603
      if (this_present_startDate || that_present_startDate) {
-
 
20604
        if (!(this_present_startDate && that_present_startDate))
-
 
20605
          return false;
-
 
20606
        if (this.startDate != that.startDate)
-
 
20607
          return false;
-
 
20608
      }
-
 
20609
 
-
 
20610
      boolean this_present_endDate = true;
-
 
20611
      boolean that_present_endDate = true;
-
 
20612
      if (this_present_endDate || that_present_endDate) {
-
 
20613
        if (!(this_present_endDate && that_present_endDate))
-
 
20614
          return false;
-
 
20615
        if (this.endDate != that.endDate)
-
 
20616
          return false;
-
 
20617
      }
-
 
20618
 
-
 
20619
      return true;
-
 
20620
    }
-
 
20621
 
-
 
20622
    @Override
-
 
20623
    public int hashCode() {
-
 
20624
      return 0;
-
 
20625
    }
-
 
20626
 
-
 
20627
    public int compareTo(getMovementSerializedInventoryByScans_args other) {
-
 
20628
      if (!getClass().equals(other.getClass())) {
-
 
20629
        return getClass().getName().compareTo(other.getClass().getName());
-
 
20630
      }
-
 
20631
 
-
 
20632
      int lastComparison = 0;
-
 
20633
      getMovementSerializedInventoryByScans_args typedOther = (getMovementSerializedInventoryByScans_args)other;
-
 
20634
 
-
 
20635
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
-
 
20636
      if (lastComparison != 0) {
-
 
20637
        return lastComparison;
-
 
20638
      }
-
 
20639
      if (isSetStartDate()) {
-
 
20640
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
-
 
20641
        if (lastComparison != 0) {
-
 
20642
          return lastComparison;
-
 
20643
        }
-
 
20644
      }
-
 
20645
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
-
 
20646
      if (lastComparison != 0) {
-
 
20647
        return lastComparison;
-
 
20648
      }
-
 
20649
      if (isSetEndDate()) {
-
 
20650
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
-
 
20651
        if (lastComparison != 0) {
-
 
20652
          return lastComparison;
-
 
20653
        }
-
 
20654
      }
-
 
20655
      return 0;
-
 
20656
    }
-
 
20657
 
-
 
20658
    public _Fields fieldForId(int fieldId) {
-
 
20659
      return _Fields.findByThriftId(fieldId);
-
 
20660
    }
-
 
20661
 
-
 
20662
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
20663
      org.apache.thrift.protocol.TField field;
-
 
20664
      iprot.readStructBegin();
-
 
20665
      while (true)
-
 
20666
      {
-
 
20667
        field = iprot.readFieldBegin();
-
 
20668
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
20669
          break;
-
 
20670
        }
-
 
20671
        switch (field.id) {
-
 
20672
          case 1: // START_DATE
-
 
20673
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
20674
              this.startDate = iprot.readI64();
-
 
20675
              setStartDateIsSet(true);
-
 
20676
            } else { 
-
 
20677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20678
            }
-
 
20679
            break;
-
 
20680
          case 2: // END_DATE
-
 
20681
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
20682
              this.endDate = iprot.readI64();
-
 
20683
              setEndDateIsSet(true);
-
 
20684
            } else { 
-
 
20685
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20686
            }
-
 
20687
            break;
-
 
20688
          default:
-
 
20689
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20690
        }
-
 
20691
        iprot.readFieldEnd();
-
 
20692
      }
-
 
20693
      iprot.readStructEnd();
-
 
20694
      validate();
-
 
20695
    }
-
 
20696
 
-
 
20697
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
20698
      validate();
-
 
20699
 
-
 
20700
      oprot.writeStructBegin(STRUCT_DESC);
-
 
20701
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
-
 
20702
      oprot.writeI64(this.startDate);
-
 
20703
      oprot.writeFieldEnd();
-
 
20704
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
-
 
20705
      oprot.writeI64(this.endDate);
-
 
20706
      oprot.writeFieldEnd();
-
 
20707
      oprot.writeFieldStop();
-
 
20708
      oprot.writeStructEnd();
-
 
20709
    }
-
 
20710
 
-
 
20711
    @Override
-
 
20712
    public String toString() {
-
 
20713
      StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_args(");
-
 
20714
      boolean first = true;
-
 
20715
 
-
 
20716
      sb.append("startDate:");
-
 
20717
      sb.append(this.startDate);
-
 
20718
      first = false;
-
 
20719
      if (!first) sb.append(", ");
-
 
20720
      sb.append("endDate:");
-
 
20721
      sb.append(this.endDate);
-
 
20722
      first = false;
-
 
20723
      sb.append(")");
-
 
20724
      return sb.toString();
-
 
20725
    }
-
 
20726
 
-
 
20727
    public void validate() throws org.apache.thrift.TException {
-
 
20728
      // check for required fields
-
 
20729
    }
-
 
20730
 
-
 
20731
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
20732
      try {
-
 
20733
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
20734
      } catch (org.apache.thrift.TException te) {
-
 
20735
        throw new java.io.IOException(te);
-
 
20736
      }
-
 
20737
    }
-
 
20738
 
-
 
20739
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
20740
      try {
-
 
20741
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
20742
        __isset_bit_vector = new BitSet(1);
-
 
20743
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
20744
      } catch (org.apache.thrift.TException te) {
-
 
20745
        throw new java.io.IOException(te);
-
 
20746
      }
-
 
20747
    }
-
 
20748
 
-
 
20749
  }
-
 
20750
 
-
 
20751
  public static class getMovementSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_result, getMovementSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
-
 
20752
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_result");
-
 
20753
 
-
 
20754
    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);
-
 
20755
 
-
 
20756
    private List<InventoryMovement> success; // required
-
 
20757
 
-
 
20758
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
20759
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
20760
      SUCCESS((short)0, "success");
-
 
20761
 
-
 
20762
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
20763
 
-
 
20764
      static {
-
 
20765
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
20766
          byName.put(field.getFieldName(), field);
-
 
20767
        }
-
 
20768
      }
-
 
20769
 
-
 
20770
      /**
-
 
20771
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
20772
       */
-
 
20773
      public static _Fields findByThriftId(int fieldId) {
-
 
20774
        switch(fieldId) {
-
 
20775
          case 0: // SUCCESS
-
 
20776
            return SUCCESS;
-
 
20777
          default:
-
 
20778
            return null;
-
 
20779
        }
-
 
20780
      }
-
 
20781
 
-
 
20782
      /**
-
 
20783
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
20784
       * if it is not found.
-
 
20785
       */
-
 
20786
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
20787
        _Fields fields = findByThriftId(fieldId);
-
 
20788
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
20789
        return fields;
-
 
20790
      }
-
 
20791
 
-
 
20792
      /**
-
 
20793
       * Find the _Fields constant that matches name, or null if its not found.
-
 
20794
       */
-
 
20795
      public static _Fields findByName(String name) {
-
 
20796
        return byName.get(name);
-
 
20797
      }
-
 
20798
 
-
 
20799
      private final short _thriftId;
-
 
20800
      private final String _fieldName;
-
 
20801
 
-
 
20802
      _Fields(short thriftId, String fieldName) {
-
 
20803
        _thriftId = thriftId;
-
 
20804
        _fieldName = fieldName;
-
 
20805
      }
-
 
20806
 
-
 
20807
      public short getThriftFieldId() {
-
 
20808
        return _thriftId;
-
 
20809
      }
-
 
20810
 
-
 
20811
      public String getFieldName() {
-
 
20812
        return _fieldName;
-
 
20813
      }
-
 
20814
    }
-
 
20815
 
-
 
20816
    // isset id assignments
-
 
20817
 
-
 
20818
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
20819
    static {
-
 
20820
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
20821
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20822
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
20823
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
-
 
20824
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
20825
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_result.class, metaDataMap);
-
 
20826
    }
-
 
20827
 
-
 
20828
    public getMovementSerializedInventoryByScans_result() {
-
 
20829
    }
-
 
20830
 
-
 
20831
    public getMovementSerializedInventoryByScans_result(
-
 
20832
      List<InventoryMovement> success)
-
 
20833
    {
-
 
20834
      this();
-
 
20835
      this.success = success;
-
 
20836
    }
-
 
20837
 
-
 
20838
    /**
-
 
20839
     * Performs a deep copy on <i>other</i>.
-
 
20840
     */
-
 
20841
    public getMovementSerializedInventoryByScans_result(getMovementSerializedInventoryByScans_result other) {
-
 
20842
      if (other.isSetSuccess()) {
-
 
20843
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
-
 
20844
        for (InventoryMovement other_element : other.success) {
-
 
20845
          __this__success.add(new InventoryMovement(other_element));
-
 
20846
        }
-
 
20847
        this.success = __this__success;
-
 
20848
      }
-
 
20849
    }
-
 
20850
 
-
 
20851
    public getMovementSerializedInventoryByScans_result deepCopy() {
-
 
20852
      return new getMovementSerializedInventoryByScans_result(this);
-
 
20853
    }
-
 
20854
 
-
 
20855
    @Override
-
 
20856
    public void clear() {
-
 
20857
      this.success = null;
-
 
20858
    }
-
 
20859
 
-
 
20860
    public int getSuccessSize() {
-
 
20861
      return (this.success == null) ? 0 : this.success.size();
-
 
20862
    }
-
 
20863
 
-
 
20864
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
-
 
20865
      return (this.success == null) ? null : this.success.iterator();
-
 
20866
    }
-
 
20867
 
-
 
20868
    public void addToSuccess(InventoryMovement elem) {
-
 
20869
      if (this.success == null) {
-
 
20870
        this.success = new ArrayList<InventoryMovement>();
-
 
20871
      }
-
 
20872
      this.success.add(elem);
-
 
20873
    }
-
 
20874
 
-
 
20875
    public List<InventoryMovement> getSuccess() {
-
 
20876
      return this.success;
-
 
20877
    }
-
 
20878
 
-
 
20879
    public void setSuccess(List<InventoryMovement> success) {
-
 
20880
      this.success = success;
-
 
20881
    }
-
 
20882
 
-
 
20883
    public void unsetSuccess() {
-
 
20884
      this.success = null;
-
 
20885
    }
-
 
20886
 
-
 
20887
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
20888
    public boolean isSetSuccess() {
-
 
20889
      return this.success != null;
-
 
20890
    }
-
 
20891
 
-
 
20892
    public void setSuccessIsSet(boolean value) {
-
 
20893
      if (!value) {
-
 
20894
        this.success = null;
-
 
20895
      }
-
 
20896
    }
-
 
20897
 
-
 
20898
    public void setFieldValue(_Fields field, Object value) {
-
 
20899
      switch (field) {
-
 
20900
      case SUCCESS:
-
 
20901
        if (value == null) {
-
 
20902
          unsetSuccess();
-
 
20903
        } else {
-
 
20904
          setSuccess((List<InventoryMovement>)value);
-
 
20905
        }
-
 
20906
        break;
-
 
20907
 
-
 
20908
      }
-
 
20909
    }
-
 
20910
 
-
 
20911
    public Object getFieldValue(_Fields field) {
-
 
20912
      switch (field) {
-
 
20913
      case SUCCESS:
-
 
20914
        return getSuccess();
-
 
20915
 
-
 
20916
      }
-
 
20917
      throw new IllegalStateException();
-
 
20918
    }
-
 
20919
 
-
 
20920
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
20921
    public boolean isSet(_Fields field) {
-
 
20922
      if (field == null) {
-
 
20923
        throw new IllegalArgumentException();
-
 
20924
      }
-
 
20925
 
-
 
20926
      switch (field) {
-
 
20927
      case SUCCESS:
-
 
20928
        return isSetSuccess();
-
 
20929
      }
-
 
20930
      throw new IllegalStateException();
-
 
20931
    }
-
 
20932
 
-
 
20933
    @Override
-
 
20934
    public boolean equals(Object that) {
-
 
20935
      if (that == null)
-
 
20936
        return false;
-
 
20937
      if (that instanceof getMovementSerializedInventoryByScans_result)
-
 
20938
        return this.equals((getMovementSerializedInventoryByScans_result)that);
-
 
20939
      return false;
-
 
20940
    }
-
 
20941
 
-
 
20942
    public boolean equals(getMovementSerializedInventoryByScans_result that) {
-
 
20943
      if (that == null)
-
 
20944
        return false;
-
 
20945
 
-
 
20946
      boolean this_present_success = true && this.isSetSuccess();
-
 
20947
      boolean that_present_success = true && that.isSetSuccess();
-
 
20948
      if (this_present_success || that_present_success) {
-
 
20949
        if (!(this_present_success && that_present_success))
-
 
20950
          return false;
-
 
20951
        if (!this.success.equals(that.success))
-
 
20952
          return false;
-
 
20953
      }
-
 
20954
 
-
 
20955
      return true;
-
 
20956
    }
-
 
20957
 
-
 
20958
    @Override
-
 
20959
    public int hashCode() {
-
 
20960
      return 0;
-
 
20961
    }
-
 
20962
 
-
 
20963
    public int compareTo(getMovementSerializedInventoryByScans_result other) {
-
 
20964
      if (!getClass().equals(other.getClass())) {
-
 
20965
        return getClass().getName().compareTo(other.getClass().getName());
-
 
20966
      }
-
 
20967
 
-
 
20968
      int lastComparison = 0;
-
 
20969
      getMovementSerializedInventoryByScans_result typedOther = (getMovementSerializedInventoryByScans_result)other;
-
 
20970
 
-
 
20971
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
20972
      if (lastComparison != 0) {
-
 
20973
        return lastComparison;
-
 
20974
      }
-
 
20975
      if (isSetSuccess()) {
-
 
20976
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
20977
        if (lastComparison != 0) {
-
 
20978
          return lastComparison;
-
 
20979
        }
-
 
20980
      }
-
 
20981
      return 0;
-
 
20982
    }
-
 
20983
 
-
 
20984
    public _Fields fieldForId(int fieldId) {
-
 
20985
      return _Fields.findByThriftId(fieldId);
-
 
20986
    }
-
 
20987
 
-
 
20988
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
20989
      org.apache.thrift.protocol.TField field;
-
 
20990
      iprot.readStructBegin();
-
 
20991
      while (true)
-
 
20992
      {
-
 
20993
        field = iprot.readFieldBegin();
-
 
20994
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
20995
          break;
-
 
20996
        }
-
 
20997
        switch (field.id) {
-
 
20998
          case 0: // SUCCESS
-
 
20999
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
21000
              {
-
 
21001
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
-
 
21002
                this.success = new ArrayList<InventoryMovement>(_list60.size);
-
 
21003
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
-
 
21004
                {
-
 
21005
                  InventoryMovement _elem62; // required
-
 
21006
                  _elem62 = new InventoryMovement();
-
 
21007
                  _elem62.read(iprot);
-
 
21008
                  this.success.add(_elem62);
-
 
21009
                }
-
 
21010
                iprot.readListEnd();
-
 
21011
              }
-
 
21012
            } else { 
-
 
21013
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21014
            }
-
 
21015
            break;
-
 
21016
          default:
-
 
21017
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21018
        }
-
 
21019
        iprot.readFieldEnd();
-
 
21020
      }
-
 
21021
      iprot.readStructEnd();
-
 
21022
      validate();
-
 
21023
    }
-
 
21024
 
-
 
21025
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
21026
      oprot.writeStructBegin(STRUCT_DESC);
-
 
21027
 
-
 
21028
      if (this.isSetSuccess()) {
-
 
21029
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
21030
        {
-
 
21031
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
21032
          for (InventoryMovement _iter63 : this.success)
-
 
21033
          {
-
 
21034
            _iter63.write(oprot);
-
 
21035
          }
-
 
21036
          oprot.writeListEnd();
-
 
21037
        }
-
 
21038
        oprot.writeFieldEnd();
-
 
21039
      }
-
 
21040
      oprot.writeFieldStop();
-
 
21041
      oprot.writeStructEnd();
-
 
21042
    }
-
 
21043
 
-
 
21044
    @Override
-
 
21045
    public String toString() {
-
 
21046
      StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_result(");
-
 
21047
      boolean first = true;
-
 
21048
 
-
 
21049
      sb.append("success:");
-
 
21050
      if (this.success == null) {
-
 
21051
        sb.append("null");
-
 
21052
      } else {
-
 
21053
        sb.append(this.success);
-
 
21054
      }
-
 
21055
      first = false;
-
 
21056
      sb.append(")");
-
 
21057
      return sb.toString();
-
 
21058
    }
-
 
21059
 
-
 
21060
    public void validate() throws org.apache.thrift.TException {
19485
      // check for required fields
21061
      // check for required fields
19486
    }
21062
    }
19487
 
21063
 
19488
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21064
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19489
      try {
21065
      try {