Subversion Repositories SmartDukaan

Rev

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

Rev 15045 Rev 16264
Line 370... Line 370...
370
 
370
 
371
    public long createRemovalStockShipmentReference(RemovalStockShipmentReference removalStockShipmentReference) throws WarehouseServiceException, org.apache.thrift.TException;
371
    public long createRemovalStockShipmentReference(RemovalStockShipmentReference removalStockShipmentReference) throws WarehouseServiceException, org.apache.thrift.TException;
372
 
372
 
373
    public void updateShipmentReferenceTransferLot(long transferLotId, long shipmentReferenceId) throws WarehouseServiceException, org.apache.thrift.TException;
373
    public void updateShipmentReferenceTransferLot(long transferLotId, long shipmentReferenceId) throws WarehouseServiceException, org.apache.thrift.TException;
374
 
374
 
-
 
375
    /**
-
 
376
     * Returns the shipment references and the count of scans against on a given day.
-
 
377
     * 
-
 
378
     * @param date
-
 
379
     */
-
 
380
    public List<TransferInvoiceScan> fetchScansPerTransferInvoiceNumber(long date) throws org.apache.thrift.TException;
-
 
381
 
375
  }
382
  }
376
 
383
 
377
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
384
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
378
 
385
 
379
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
386
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 514... Line 521...
514
 
521
 
515
    public void createRemovalStockShipmentReference(RemovalStockShipmentReference removalStockShipmentReference, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRemovalStockShipmentReference_call> resultHandler) throws org.apache.thrift.TException;
522
    public void createRemovalStockShipmentReference(RemovalStockShipmentReference removalStockShipmentReference, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRemovalStockShipmentReference_call> resultHandler) throws org.apache.thrift.TException;
516
 
523
 
517
    public void updateShipmentReferenceTransferLot(long transferLotId, long shipmentReferenceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateShipmentReferenceTransferLot_call> resultHandler) throws org.apache.thrift.TException;
524
    public void updateShipmentReferenceTransferLot(long transferLotId, long shipmentReferenceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateShipmentReferenceTransferLot_call> resultHandler) throws org.apache.thrift.TException;
518
 
525
 
-
 
526
    public void fetchScansPerTransferInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchScansPerTransferInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
-
 
527
 
519
  }
528
  }
520
 
529
 
521
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
530
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
522
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
531
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
523
      public Factory() {}
532
      public Factory() {}
Line 2315... Line 2324...
2315
        throw result.ex;
2324
        throw result.ex;
2316
      }
2325
      }
2317
      return;
2326
      return;
2318
    }
2327
    }
2319
 
2328
 
-
 
2329
    public List<TransferInvoiceScan> fetchScansPerTransferInvoiceNumber(long date) throws org.apache.thrift.TException
-
 
2330
    {
-
 
2331
      send_fetchScansPerTransferInvoiceNumber(date);
-
 
2332
      return recv_fetchScansPerTransferInvoiceNumber();
-
 
2333
    }
-
 
2334
 
-
 
2335
    public void send_fetchScansPerTransferInvoiceNumber(long date) throws org.apache.thrift.TException
-
 
2336
    {
-
 
2337
      fetchScansPerTransferInvoiceNumber_args args = new fetchScansPerTransferInvoiceNumber_args();
-
 
2338
      args.setDate(date);
-
 
2339
      sendBase("fetchScansPerTransferInvoiceNumber", args);
-
 
2340
    }
-
 
2341
 
-
 
2342
    public List<TransferInvoiceScan> recv_fetchScansPerTransferInvoiceNumber() throws org.apache.thrift.TException
-
 
2343
    {
-
 
2344
      fetchScansPerTransferInvoiceNumber_result result = new fetchScansPerTransferInvoiceNumber_result();
-
 
2345
      receiveBase(result, "fetchScansPerTransferInvoiceNumber");
-
 
2346
      if (result.isSetSuccess()) {
-
 
2347
        return result.success;
-
 
2348
      }
-
 
2349
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchScansPerTransferInvoiceNumber failed: unknown result");
-
 
2350
    }
-
 
2351
 
2320
  }
2352
  }
2321
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2353
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2322
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2354
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2323
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2355
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2324
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2356
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4801... Line 4833...
4801
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4833
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4802
        (new Client(prot)).recv_updateShipmentReferenceTransferLot();
4834
        (new Client(prot)).recv_updateShipmentReferenceTransferLot();
4803
      }
4835
      }
4804
    }
4836
    }
4805
 
4837
 
-
 
4838
    public void fetchScansPerTransferInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<fetchScansPerTransferInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException {
-
 
4839
      checkReady();
-
 
4840
      fetchScansPerTransferInvoiceNumber_call method_call = new fetchScansPerTransferInvoiceNumber_call(date, resultHandler, this, ___protocolFactory, ___transport);
-
 
4841
      this.___currentMethod = method_call;
-
 
4842
      ___manager.call(method_call);
-
 
4843
    }
-
 
4844
 
-
 
4845
    public static class fetchScansPerTransferInvoiceNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4846
      private long date;
-
 
4847
      public fetchScansPerTransferInvoiceNumber_call(long date, org.apache.thrift.async.AsyncMethodCallback<fetchScansPerTransferInvoiceNumber_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 {
-
 
4848
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4849
        this.date = date;
-
 
4850
      }
-
 
4851
 
-
 
4852
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4853
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchScansPerTransferInvoiceNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4854
        fetchScansPerTransferInvoiceNumber_args args = new fetchScansPerTransferInvoiceNumber_args();
-
 
4855
        args.setDate(date);
-
 
4856
        args.write(prot);
-
 
4857
        prot.writeMessageEnd();
-
 
4858
      }
-
 
4859
 
-
 
4860
      public List<TransferInvoiceScan> getResult() throws org.apache.thrift.TException {
-
 
4861
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4862
          throw new IllegalStateException("Method call not finished!");
-
 
4863
        }
-
 
4864
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4865
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4866
        return (new Client(prot)).recv_fetchScansPerTransferInvoiceNumber();
-
 
4867
      }
-
 
4868
    }
-
 
4869
 
4806
  }
4870
  }
4807
 
4871
 
4808
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4872
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4809
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4873
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4810
    public Processor(I iface) {
4874
    public Processor(I iface) {
Line 4884... Line 4948...
4884
      processMap.put("getAllDoaOutInventoryItems", new getAllDoaOutInventoryItems());
4948
      processMap.put("getAllDoaOutInventoryItems", new getAllDoaOutInventoryItems());
4885
      processMap.put("getAllUnCompletedStockShipments", new getAllUnCompletedStockShipments());
4949
      processMap.put("getAllUnCompletedStockShipments", new getAllUnCompletedStockShipments());
4886
      processMap.put("getRemovalStockShipmentReferenceById", new getRemovalStockShipmentReferenceById());
4950
      processMap.put("getRemovalStockShipmentReferenceById", new getRemovalStockShipmentReferenceById());
4887
      processMap.put("createRemovalStockShipmentReference", new createRemovalStockShipmentReference());
4951
      processMap.put("createRemovalStockShipmentReference", new createRemovalStockShipmentReference());
4888
      processMap.put("updateShipmentReferenceTransferLot", new updateShipmentReferenceTransferLot());
4952
      processMap.put("updateShipmentReferenceTransferLot", new updateShipmentReferenceTransferLot());
-
 
4953
      processMap.put("fetchScansPerTransferInvoiceNumber", new fetchScansPerTransferInvoiceNumber());
4889
      return processMap;
4954
      return processMap;
4890
    }
4955
    }
4891
 
4956
 
4892
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4957
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4893
      public getInventoryItem() {
4958
      public getInventoryItem() {
Line 6195... Line 6260...
6195
        }
6260
        }
6196
        return result;
6261
        return result;
6197
      }
6262
      }
6198
    }
6263
    }
6199
 
6264
 
-
 
6265
    private static class fetchScansPerTransferInvoiceNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fetchScansPerTransferInvoiceNumber_args> {
-
 
6266
      public fetchScansPerTransferInvoiceNumber() {
-
 
6267
        super("fetchScansPerTransferInvoiceNumber");
-
 
6268
      }
-
 
6269
 
-
 
6270
      protected fetchScansPerTransferInvoiceNumber_args getEmptyArgsInstance() {
-
 
6271
        return new fetchScansPerTransferInvoiceNumber_args();
-
 
6272
      }
-
 
6273
 
-
 
6274
      protected fetchScansPerTransferInvoiceNumber_result getResult(I iface, fetchScansPerTransferInvoiceNumber_args args) throws org.apache.thrift.TException {
-
 
6275
        fetchScansPerTransferInvoiceNumber_result result = new fetchScansPerTransferInvoiceNumber_result();
-
 
6276
        result.success = iface.fetchScansPerTransferInvoiceNumber(args.date);
-
 
6277
        return result;
-
 
6278
      }
-
 
6279
    }
-
 
6280
 
6200
  }
6281
  }
6201
 
6282
 
6202
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
6283
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
6203
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
6284
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
6204
 
6285
 
Line 58359... Line 58440...
58359
      }
58440
      }
58360
      first = false;
58441
      first = false;
58361
      sb.append(")");
58442
      sb.append(")");
58362
      return sb.toString();
58443
      return sb.toString();
58363
    }
58444
    }
-
 
58445
 
-
 
58446
    public void validate() throws org.apache.thrift.TException {
-
 
58447
      // check for required fields
-
 
58448
    }
-
 
58449
 
-
 
58450
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
58451
      try {
-
 
58452
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
58453
      } catch (org.apache.thrift.TException te) {
-
 
58454
        throw new java.io.IOException(te);
-
 
58455
      }
-
 
58456
    }
-
 
58457
 
-
 
58458
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
58459
      try {
-
 
58460
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
58461
      } catch (org.apache.thrift.TException te) {
-
 
58462
        throw new java.io.IOException(te);
-
 
58463
      }
-
 
58464
    }
-
 
58465
 
-
 
58466
  }
-
 
58467
 
-
 
58468
  public static class fetchScansPerTransferInvoiceNumber_args implements org.apache.thrift.TBase<fetchScansPerTransferInvoiceNumber_args, fetchScansPerTransferInvoiceNumber_args._Fields>, java.io.Serializable, Cloneable   {
-
 
58469
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerTransferInvoiceNumber_args");
-
 
58470
 
-
 
58471
    private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
58472
 
-
 
58473
    private long date; // required
-
 
58474
 
-
 
58475
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
58476
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
58477
      DATE((short)1, "date");
-
 
58478
 
-
 
58479
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
58480
 
-
 
58481
      static {
-
 
58482
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
58483
          byName.put(field.getFieldName(), field);
-
 
58484
        }
-
 
58485
      }
-
 
58486
 
-
 
58487
      /**
-
 
58488
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
58489
       */
-
 
58490
      public static _Fields findByThriftId(int fieldId) {
-
 
58491
        switch(fieldId) {
-
 
58492
          case 1: // DATE
-
 
58493
            return DATE;
-
 
58494
          default:
-
 
58495
            return null;
-
 
58496
        }
-
 
58497
      }
-
 
58498
 
-
 
58499
      /**
-
 
58500
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
58501
       * if it is not found.
-
 
58502
       */
-
 
58503
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
58504
        _Fields fields = findByThriftId(fieldId);
-
 
58505
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
58506
        return fields;
-
 
58507
      }
-
 
58508
 
-
 
58509
      /**
-
 
58510
       * Find the _Fields constant that matches name, or null if its not found.
-
 
58511
       */
-
 
58512
      public static _Fields findByName(String name) {
-
 
58513
        return byName.get(name);
-
 
58514
      }
-
 
58515
 
-
 
58516
      private final short _thriftId;
-
 
58517
      private final String _fieldName;
-
 
58518
 
-
 
58519
      _Fields(short thriftId, String fieldName) {
-
 
58520
        _thriftId = thriftId;
-
 
58521
        _fieldName = fieldName;
-
 
58522
      }
-
 
58523
 
-
 
58524
      public short getThriftFieldId() {
-
 
58525
        return _thriftId;
-
 
58526
      }
-
 
58527
 
-
 
58528
      public String getFieldName() {
-
 
58529
        return _fieldName;
-
 
58530
      }
-
 
58531
    }
-
 
58532
 
-
 
58533
    // isset id assignments
-
 
58534
    private static final int __DATE_ISSET_ID = 0;
-
 
58535
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
58536
 
-
 
58537
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
58538
    static {
-
 
58539
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
58540
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
58541
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
58542
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
58543
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerTransferInvoiceNumber_args.class, metaDataMap);
-
 
58544
    }
-
 
58545
 
-
 
58546
    public fetchScansPerTransferInvoiceNumber_args() {
-
 
58547
    }
-
 
58548
 
-
 
58549
    public fetchScansPerTransferInvoiceNumber_args(
-
 
58550
      long date)
-
 
58551
    {
-
 
58552
      this();
-
 
58553
      this.date = date;
-
 
58554
      setDateIsSet(true);
-
 
58555
    }
-
 
58556
 
-
 
58557
    /**
-
 
58558
     * Performs a deep copy on <i>other</i>.
-
 
58559
     */
-
 
58560
    public fetchScansPerTransferInvoiceNumber_args(fetchScansPerTransferInvoiceNumber_args other) {
-
 
58561
      __isset_bit_vector.clear();
-
 
58562
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
58563
      this.date = other.date;
-
 
58564
    }
-
 
58565
 
-
 
58566
    public fetchScansPerTransferInvoiceNumber_args deepCopy() {
-
 
58567
      return new fetchScansPerTransferInvoiceNumber_args(this);
-
 
58568
    }
-
 
58569
 
-
 
58570
    @Override
-
 
58571
    public void clear() {
-
 
58572
      setDateIsSet(false);
-
 
58573
      this.date = 0;
-
 
58574
    }
-
 
58575
 
-
 
58576
    public long getDate() {
-
 
58577
      return this.date;
-
 
58578
    }
-
 
58579
 
-
 
58580
    public void setDate(long date) {
-
 
58581
      this.date = date;
-
 
58582
      setDateIsSet(true);
-
 
58583
    }
-
 
58584
 
-
 
58585
    public void unsetDate() {
-
 
58586
      __isset_bit_vector.clear(__DATE_ISSET_ID);
-
 
58587
    }
-
 
58588
 
-
 
58589
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
-
 
58590
    public boolean isSetDate() {
-
 
58591
      return __isset_bit_vector.get(__DATE_ISSET_ID);
-
 
58592
    }
-
 
58593
 
-
 
58594
    public void setDateIsSet(boolean value) {
-
 
58595
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
-
 
58596
    }
-
 
58597
 
-
 
58598
    public void setFieldValue(_Fields field, Object value) {
-
 
58599
      switch (field) {
-
 
58600
      case DATE:
-
 
58601
        if (value == null) {
-
 
58602
          unsetDate();
-
 
58603
        } else {
-
 
58604
          setDate((Long)value);
-
 
58605
        }
-
 
58606
        break;
-
 
58607
 
-
 
58608
      }
-
 
58609
    }
-
 
58610
 
-
 
58611
    public Object getFieldValue(_Fields field) {
-
 
58612
      switch (field) {
-
 
58613
      case DATE:
-
 
58614
        return Long.valueOf(getDate());
-
 
58615
 
-
 
58616
      }
-
 
58617
      throw new IllegalStateException();
-
 
58618
    }
-
 
58619
 
-
 
58620
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
58621
    public boolean isSet(_Fields field) {
-
 
58622
      if (field == null) {
-
 
58623
        throw new IllegalArgumentException();
-
 
58624
      }
-
 
58625
 
-
 
58626
      switch (field) {
-
 
58627
      case DATE:
-
 
58628
        return isSetDate();
-
 
58629
      }
-
 
58630
      throw new IllegalStateException();
-
 
58631
    }
-
 
58632
 
-
 
58633
    @Override
-
 
58634
    public boolean equals(Object that) {
-
 
58635
      if (that == null)
-
 
58636
        return false;
-
 
58637
      if (that instanceof fetchScansPerTransferInvoiceNumber_args)
-
 
58638
        return this.equals((fetchScansPerTransferInvoiceNumber_args)that);
-
 
58639
      return false;
-
 
58640
    }
-
 
58641
 
-
 
58642
    public boolean equals(fetchScansPerTransferInvoiceNumber_args that) {
-
 
58643
      if (that == null)
-
 
58644
        return false;
-
 
58645
 
-
 
58646
      boolean this_present_date = true;
-
 
58647
      boolean that_present_date = true;
-
 
58648
      if (this_present_date || that_present_date) {
-
 
58649
        if (!(this_present_date && that_present_date))
-
 
58650
          return false;
-
 
58651
        if (this.date != that.date)
-
 
58652
          return false;
-
 
58653
      }
-
 
58654
 
-
 
58655
      return true;
-
 
58656
    }
-
 
58657
 
-
 
58658
    @Override
-
 
58659
    public int hashCode() {
-
 
58660
      return 0;
-
 
58661
    }
-
 
58662
 
-
 
58663
    public int compareTo(fetchScansPerTransferInvoiceNumber_args other) {
-
 
58664
      if (!getClass().equals(other.getClass())) {
-
 
58665
        return getClass().getName().compareTo(other.getClass().getName());
-
 
58666
      }
-
 
58667
 
-
 
58668
      int lastComparison = 0;
-
 
58669
      fetchScansPerTransferInvoiceNumber_args typedOther = (fetchScansPerTransferInvoiceNumber_args)other;
-
 
58670
 
-
 
58671
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
-
 
58672
      if (lastComparison != 0) {
-
 
58673
        return lastComparison;
-
 
58674
      }
-
 
58675
      if (isSetDate()) {
-
 
58676
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
-
 
58677
        if (lastComparison != 0) {
-
 
58678
          return lastComparison;
-
 
58679
        }
-
 
58680
      }
-
 
58681
      return 0;
-
 
58682
    }
-
 
58683
 
-
 
58684
    public _Fields fieldForId(int fieldId) {
-
 
58685
      return _Fields.findByThriftId(fieldId);
-
 
58686
    }
-
 
58687
 
-
 
58688
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
58689
      org.apache.thrift.protocol.TField field;
-
 
58690
      iprot.readStructBegin();
-
 
58691
      while (true)
-
 
58692
      {
-
 
58693
        field = iprot.readFieldBegin();
-
 
58694
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
58695
          break;
-
 
58696
        }
-
 
58697
        switch (field.id) {
-
 
58698
          case 1: // DATE
-
 
58699
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
58700
              this.date = iprot.readI64();
-
 
58701
              setDateIsSet(true);
-
 
58702
            } else { 
-
 
58703
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58704
            }
-
 
58705
            break;
-
 
58706
          default:
-
 
58707
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58708
        }
-
 
58709
        iprot.readFieldEnd();
-
 
58710
      }
-
 
58711
      iprot.readStructEnd();
-
 
58712
      validate();
-
 
58713
    }
-
 
58714
 
-
 
58715
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
58716
      validate();
-
 
58717
 
-
 
58718
      oprot.writeStructBegin(STRUCT_DESC);
-
 
58719
      oprot.writeFieldBegin(DATE_FIELD_DESC);
-
 
58720
      oprot.writeI64(this.date);
-
 
58721
      oprot.writeFieldEnd();
-
 
58722
      oprot.writeFieldStop();
-
 
58723
      oprot.writeStructEnd();
-
 
58724
    }
-
 
58725
 
-
 
58726
    @Override
-
 
58727
    public String toString() {
-
 
58728
      StringBuilder sb = new StringBuilder("fetchScansPerTransferInvoiceNumber_args(");
-
 
58729
      boolean first = true;
-
 
58730
 
-
 
58731
      sb.append("date:");
-
 
58732
      sb.append(this.date);
-
 
58733
      first = false;
-
 
58734
      sb.append(")");
-
 
58735
      return sb.toString();
-
 
58736
    }
-
 
58737
 
-
 
58738
    public void validate() throws org.apache.thrift.TException {
-
 
58739
      // check for required fields
-
 
58740
    }
-
 
58741
 
-
 
58742
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
58743
      try {
-
 
58744
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
58745
      } catch (org.apache.thrift.TException te) {
-
 
58746
        throw new java.io.IOException(te);
-
 
58747
      }
-
 
58748
    }
-
 
58749
 
-
 
58750
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
58751
      try {
-
 
58752
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
58753
        __isset_bit_vector = new BitSet(1);
-
 
58754
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
58755
      } catch (org.apache.thrift.TException te) {
-
 
58756
        throw new java.io.IOException(te);
-
 
58757
      }
-
 
58758
    }
-
 
58759
 
-
 
58760
  }
-
 
58761
 
-
 
58762
  public static class fetchScansPerTransferInvoiceNumber_result implements org.apache.thrift.TBase<fetchScansPerTransferInvoiceNumber_result, fetchScansPerTransferInvoiceNumber_result._Fields>, java.io.Serializable, Cloneable   {
-
 
58763
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerTransferInvoiceNumber_result");
-
 
58764
 
-
 
58765
    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);
-
 
58766
 
-
 
58767
    private List<TransferInvoiceScan> success; // required
-
 
58768
 
-
 
58769
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
58770
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
58771
      SUCCESS((short)0, "success");
-
 
58772
 
-
 
58773
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
58774
 
-
 
58775
      static {
-
 
58776
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
58777
          byName.put(field.getFieldName(), field);
-
 
58778
        }
-
 
58779
      }
-
 
58780
 
-
 
58781
      /**
-
 
58782
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
58783
       */
-
 
58784
      public static _Fields findByThriftId(int fieldId) {
-
 
58785
        switch(fieldId) {
-
 
58786
          case 0: // SUCCESS
-
 
58787
            return SUCCESS;
-
 
58788
          default:
-
 
58789
            return null;
-
 
58790
        }
-
 
58791
      }
-
 
58792
 
-
 
58793
      /**
-
 
58794
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
58795
       * if it is not found.
-
 
58796
       */
-
 
58797
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
58798
        _Fields fields = findByThriftId(fieldId);
-
 
58799
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
58800
        return fields;
-
 
58801
      }
-
 
58802
 
-
 
58803
      /**
-
 
58804
       * Find the _Fields constant that matches name, or null if its not found.
-
 
58805
       */
-
 
58806
      public static _Fields findByName(String name) {
-
 
58807
        return byName.get(name);
-
 
58808
      }
-
 
58809
 
-
 
58810
      private final short _thriftId;
-
 
58811
      private final String _fieldName;
-
 
58812
 
-
 
58813
      _Fields(short thriftId, String fieldName) {
-
 
58814
        _thriftId = thriftId;
-
 
58815
        _fieldName = fieldName;
-
 
58816
      }
-
 
58817
 
-
 
58818
      public short getThriftFieldId() {
-
 
58819
        return _thriftId;
-
 
58820
      }
-
 
58821
 
-
 
58822
      public String getFieldName() {
-
 
58823
        return _fieldName;
-
 
58824
      }
-
 
58825
    }
-
 
58826
 
-
 
58827
    // isset id assignments
-
 
58828
 
-
 
58829
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
58830
    static {
-
 
58831
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
58832
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
58833
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
58834
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferInvoiceScan.class))));
-
 
58835
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
58836
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerTransferInvoiceNumber_result.class, metaDataMap);
-
 
58837
    }
-
 
58838
 
-
 
58839
    public fetchScansPerTransferInvoiceNumber_result() {
-
 
58840
    }
-
 
58841
 
-
 
58842
    public fetchScansPerTransferInvoiceNumber_result(
-
 
58843
      List<TransferInvoiceScan> success)
-
 
58844
    {
-
 
58845
      this();
-
 
58846
      this.success = success;
-
 
58847
    }
-
 
58848
 
-
 
58849
    /**
-
 
58850
     * Performs a deep copy on <i>other</i>.
-
 
58851
     */
-
 
58852
    public fetchScansPerTransferInvoiceNumber_result(fetchScansPerTransferInvoiceNumber_result other) {
-
 
58853
      if (other.isSetSuccess()) {
-
 
58854
        List<TransferInvoiceScan> __this__success = new ArrayList<TransferInvoiceScan>();
-
 
58855
        for (TransferInvoiceScan other_element : other.success) {
-
 
58856
          __this__success.add(new TransferInvoiceScan(other_element));
-
 
58857
        }
-
 
58858
        this.success = __this__success;
-
 
58859
      }
-
 
58860
    }
-
 
58861
 
-
 
58862
    public fetchScansPerTransferInvoiceNumber_result deepCopy() {
-
 
58863
      return new fetchScansPerTransferInvoiceNumber_result(this);
-
 
58864
    }
-
 
58865
 
-
 
58866
    @Override
-
 
58867
    public void clear() {
-
 
58868
      this.success = null;
-
 
58869
    }
-
 
58870
 
-
 
58871
    public int getSuccessSize() {
-
 
58872
      return (this.success == null) ? 0 : this.success.size();
-
 
58873
    }
-
 
58874
 
-
 
58875
    public java.util.Iterator<TransferInvoiceScan> getSuccessIterator() {
-
 
58876
      return (this.success == null) ? null : this.success.iterator();
-
 
58877
    }
-
 
58878
 
-
 
58879
    public void addToSuccess(TransferInvoiceScan elem) {
-
 
58880
      if (this.success == null) {
-
 
58881
        this.success = new ArrayList<TransferInvoiceScan>();
-
 
58882
      }
-
 
58883
      this.success.add(elem);
-
 
58884
    }
-
 
58885
 
-
 
58886
    public List<TransferInvoiceScan> getSuccess() {
-
 
58887
      return this.success;
-
 
58888
    }
-
 
58889
 
-
 
58890
    public void setSuccess(List<TransferInvoiceScan> success) {
-
 
58891
      this.success = success;
-
 
58892
    }
-
 
58893
 
-
 
58894
    public void unsetSuccess() {
-
 
58895
      this.success = null;
-
 
58896
    }
-
 
58897
 
-
 
58898
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
58899
    public boolean isSetSuccess() {
-
 
58900
      return this.success != null;
-
 
58901
    }
-
 
58902
 
-
 
58903
    public void setSuccessIsSet(boolean value) {
-
 
58904
      if (!value) {
-
 
58905
        this.success = null;
-
 
58906
      }
-
 
58907
    }
-
 
58908
 
-
 
58909
    public void setFieldValue(_Fields field, Object value) {
-
 
58910
      switch (field) {
-
 
58911
      case SUCCESS:
-
 
58912
        if (value == null) {
-
 
58913
          unsetSuccess();
-
 
58914
        } else {
-
 
58915
          setSuccess((List<TransferInvoiceScan>)value);
-
 
58916
        }
-
 
58917
        break;
-
 
58918
 
-
 
58919
      }
-
 
58920
    }
-
 
58921
 
-
 
58922
    public Object getFieldValue(_Fields field) {
-
 
58923
      switch (field) {
-
 
58924
      case SUCCESS:
-
 
58925
        return getSuccess();
-
 
58926
 
-
 
58927
      }
-
 
58928
      throw new IllegalStateException();
-
 
58929
    }
-
 
58930
 
-
 
58931
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
58932
    public boolean isSet(_Fields field) {
-
 
58933
      if (field == null) {
-
 
58934
        throw new IllegalArgumentException();
-
 
58935
      }
-
 
58936
 
-
 
58937
      switch (field) {
-
 
58938
      case SUCCESS:
-
 
58939
        return isSetSuccess();
-
 
58940
      }
-
 
58941
      throw new IllegalStateException();
-
 
58942
    }
-
 
58943
 
-
 
58944
    @Override
-
 
58945
    public boolean equals(Object that) {
-
 
58946
      if (that == null)
-
 
58947
        return false;
-
 
58948
      if (that instanceof fetchScansPerTransferInvoiceNumber_result)
-
 
58949
        return this.equals((fetchScansPerTransferInvoiceNumber_result)that);
-
 
58950
      return false;
-
 
58951
    }
-
 
58952
 
-
 
58953
    public boolean equals(fetchScansPerTransferInvoiceNumber_result that) {
-
 
58954
      if (that == null)
-
 
58955
        return false;
-
 
58956
 
-
 
58957
      boolean this_present_success = true && this.isSetSuccess();
-
 
58958
      boolean that_present_success = true && that.isSetSuccess();
-
 
58959
      if (this_present_success || that_present_success) {
-
 
58960
        if (!(this_present_success && that_present_success))
-
 
58961
          return false;
-
 
58962
        if (!this.success.equals(that.success))
-
 
58963
          return false;
-
 
58964
      }
-
 
58965
 
-
 
58966
      return true;
-
 
58967
    }
-
 
58968
 
-
 
58969
    @Override
-
 
58970
    public int hashCode() {
-
 
58971
      return 0;
-
 
58972
    }
-
 
58973
 
-
 
58974
    public int compareTo(fetchScansPerTransferInvoiceNumber_result other) {
-
 
58975
      if (!getClass().equals(other.getClass())) {
-
 
58976
        return getClass().getName().compareTo(other.getClass().getName());
-
 
58977
      }
-
 
58978
 
-
 
58979
      int lastComparison = 0;
-
 
58980
      fetchScansPerTransferInvoiceNumber_result typedOther = (fetchScansPerTransferInvoiceNumber_result)other;
-
 
58981
 
-
 
58982
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
58983
      if (lastComparison != 0) {
-
 
58984
        return lastComparison;
-
 
58985
      }
-
 
58986
      if (isSetSuccess()) {
-
 
58987
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
58988
        if (lastComparison != 0) {
-
 
58989
          return lastComparison;
-
 
58990
        }
-
 
58991
      }
-
 
58992
      return 0;
-
 
58993
    }
-
 
58994
 
-
 
58995
    public _Fields fieldForId(int fieldId) {
-
 
58996
      return _Fields.findByThriftId(fieldId);
-
 
58997
    }
-
 
58998
 
-
 
58999
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
59000
      org.apache.thrift.protocol.TField field;
-
 
59001
      iprot.readStructBegin();
-
 
59002
      while (true)
-
 
59003
      {
-
 
59004
        field = iprot.readFieldBegin();
-
 
59005
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
59006
          break;
-
 
59007
        }
-
 
59008
        switch (field.id) {
-
 
59009
          case 0: // SUCCESS
-
 
59010
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
59011
              {
-
 
59012
                org.apache.thrift.protocol.TList _list186 = iprot.readListBegin();
-
 
59013
                this.success = new ArrayList<TransferInvoiceScan>(_list186.size);
-
 
59014
                for (int _i187 = 0; _i187 < _list186.size; ++_i187)
-
 
59015
                {
-
 
59016
                  TransferInvoiceScan _elem188; // required
-
 
59017
                  _elem188 = new TransferInvoiceScan();
-
 
59018
                  _elem188.read(iprot);
-
 
59019
                  this.success.add(_elem188);
-
 
59020
                }
-
 
59021
                iprot.readListEnd();
-
 
59022
              }
-
 
59023
            } else { 
-
 
59024
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59025
            }
-
 
59026
            break;
-
 
59027
          default:
-
 
59028
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59029
        }
-
 
59030
        iprot.readFieldEnd();
-
 
59031
      }
-
 
59032
      iprot.readStructEnd();
-
 
59033
      validate();
-
 
59034
    }
-
 
59035
 
-
 
59036
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
59037
      oprot.writeStructBegin(STRUCT_DESC);
-
 
59038
 
-
 
59039
      if (this.isSetSuccess()) {
-
 
59040
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
59041
        {
-
 
59042
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
59043
          for (TransferInvoiceScan _iter189 : this.success)
-
 
59044
          {
-
 
59045
            _iter189.write(oprot);
-
 
59046
          }
-
 
59047
          oprot.writeListEnd();
-
 
59048
        }
-
 
59049
        oprot.writeFieldEnd();
-
 
59050
      }
-
 
59051
      oprot.writeFieldStop();
-
 
59052
      oprot.writeStructEnd();
-
 
59053
    }
-
 
59054
 
-
 
59055
    @Override
-
 
59056
    public String toString() {
-
 
59057
      StringBuilder sb = new StringBuilder("fetchScansPerTransferInvoiceNumber_result(");
-
 
59058
      boolean first = true;
-
 
59059
 
-
 
59060
      sb.append("success:");
-
 
59061
      if (this.success == null) {
-
 
59062
        sb.append("null");
-
 
59063
      } else {
-
 
59064
        sb.append(this.success);
-
 
59065
      }
-
 
59066
      first = false;
-
 
59067
      sb.append(")");
-
 
59068
      return sb.toString();
-
 
59069
    }
58364
 
59070
 
58365
    public void validate() throws org.apache.thrift.TException {
59071
    public void validate() throws org.apache.thrift.TException {
58366
      // check for required fields
59072
      // check for required fields
58367
    }
59073
    }
58368
 
59074