Subversion Repositories SmartDukaan

Rev

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

Rev 10308 Rev 10489
Line 51... Line 51...
51
     * @param transferLotId
51
     * @param transferLotId
52
     */
52
     */
53
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
53
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
54
 
54
 
55
    /**
55
    /**
-
 
56
     * Scan non-serialized items.
-
 
57
     * 
-
 
58
     * @param inventoryItem
-
 
59
     * @param scan
-
 
60
     */
-
 
61
    public void genericScan(InventoryItem inventoryItem, Scan scan) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
62
 
-
 
63
    /**
56
     * Scan serialized items linked with an order. Returns its price.
64
     * Scan serialized items linked with an order. Returns its price.
57
     * 
65
     * 
58
     * @param serialNumber
66
     * @param serialNumber
59
     * @param type
67
     * @param type
60
     * @param orderId
68
     * @param orderId
Line 342... Line 350...
342
 
350
 
343
    public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
351
    public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
344
 
352
 
345
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scan_call> resultHandler) throws org.apache.thrift.TException;
353
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scan_call> resultHandler) throws org.apache.thrift.TException;
346
 
354
 
-
 
355
    public void genericScan(InventoryItem inventoryItem, Scan scan, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.genericScan_call> resultHandler) throws org.apache.thrift.TException;
-
 
356
 
347
    public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException;
357
    public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException;
348
 
358
 
349
    public void scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOrder_call> resultHandler) throws org.apache.thrift.TException;
359
    public void scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOrder_call> resultHandler) throws org.apache.thrift.TException;
350
 
360
 
351
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
361
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
Line 548... Line 558...
548
        throw result.wex;
558
        throw result.wex;
549
      }
559
      }
550
      return;
560
      return;
551
    }
561
    }
552
 
562
 
-
 
563
    public void genericScan(InventoryItem inventoryItem, Scan scan) throws WarehouseServiceException, org.apache.thrift.TException
-
 
564
    {
-
 
565
      send_genericScan(inventoryItem, scan);
-
 
566
      recv_genericScan();
-
 
567
    }
-
 
568
 
-
 
569
    public void send_genericScan(InventoryItem inventoryItem, Scan scan) throws org.apache.thrift.TException
-
 
570
    {
-
 
571
      genericScan_args args = new genericScan_args();
-
 
572
      args.setInventoryItem(inventoryItem);
-
 
573
      args.setScan(scan);
-
 
574
      sendBase("genericScan", args);
-
 
575
    }
-
 
576
 
-
 
577
    public void recv_genericScan() throws WarehouseServiceException, org.apache.thrift.TException
-
 
578
    {
-
 
579
      genericScan_result result = new genericScan_result();
-
 
580
      receiveBase(result, "genericScan");
-
 
581
      if (result.wex != null) {
-
 
582
        throw result.wex;
-
 
583
      }
-
 
584
      return;
-
 
585
    }
-
 
586
 
553
    public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
587
    public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
554
    {
588
    {
555
      send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId);
589
      send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId);
556
      return recv_scanSerializedItemForOrder();
590
      return recv_scanSerializedItemForOrder();
557
    }
591
    }
Line 1959... Line 1993...
1959
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1993
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1960
        (new Client(prot)).recv_scan();
1994
        (new Client(prot)).recv_scan();
1961
      }
1995
      }
1962
    }
1996
    }
1963
 
1997
 
-
 
1998
    public void genericScan(InventoryItem inventoryItem, Scan scan, org.apache.thrift.async.AsyncMethodCallback<genericScan_call> resultHandler) throws org.apache.thrift.TException {
-
 
1999
      checkReady();
-
 
2000
      genericScan_call method_call = new genericScan_call(inventoryItem, scan, resultHandler, this, ___protocolFactory, ___transport);
-
 
2001
      this.___currentMethod = method_call;
-
 
2002
      ___manager.call(method_call);
-
 
2003
    }
-
 
2004
 
-
 
2005
    public static class genericScan_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2006
      private InventoryItem inventoryItem;
-
 
2007
      private Scan scan;
-
 
2008
      public genericScan_call(InventoryItem inventoryItem, Scan scan, org.apache.thrift.async.AsyncMethodCallback<genericScan_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 {
-
 
2009
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2010
        this.inventoryItem = inventoryItem;
-
 
2011
        this.scan = scan;
-
 
2012
      }
-
 
2013
 
-
 
2014
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2015
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("genericScan", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2016
        genericScan_args args = new genericScan_args();
-
 
2017
        args.setInventoryItem(inventoryItem);
-
 
2018
        args.setScan(scan);
-
 
2019
        args.write(prot);
-
 
2020
        prot.writeMessageEnd();
-
 
2021
      }
-
 
2022
 
-
 
2023
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
2024
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2025
          throw new IllegalStateException("Method call not finished!");
-
 
2026
        }
-
 
2027
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2028
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2029
        (new Client(prot)).recv_genericScan();
-
 
2030
      }
-
 
2031
    }
-
 
2032
 
1964
    public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException {
2033
    public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException {
1965
      checkReady();
2034
      checkReady();
1966
      scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
2035
      scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
1967
      this.___currentMethod = method_call;
2036
      this.___currentMethod = method_call;
1968
      ___manager.call(method_call);
2037
      ___manager.call(method_call);
Line 3781... Line 3850...
3781
 
3850
 
3782
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
3851
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
3783
      processMap.put("getInventoryItem", new getInventoryItem());
3852
      processMap.put("getInventoryItem", new getInventoryItem());
3784
      processMap.put("getNonSeralizedInventoryItem", new getNonSeralizedInventoryItem());
3853
      processMap.put("getNonSeralizedInventoryItem", new getNonSeralizedInventoryItem());
3785
      processMap.put("scan", new scan());
3854
      processMap.put("scan", new scan());
-
 
3855
      processMap.put("genericScan", new genericScan());
3786
      processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
3856
      processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
3787
      processMap.put("scanForOrder", new scanForOrder());
3857
      processMap.put("scanForOrder", new scanForOrder());
3788
      processMap.put("createItemNumberMapping", new createItemNumberMapping());
3858
      processMap.put("createItemNumberMapping", new createItemNumberMapping());
3789
      processMap.put("getItemNumbers", new getItemNumbers());
3859
      processMap.put("getItemNumbers", new getItemNumbers());
3790
      processMap.put("getItemIds", new getItemIds());
3860
      processMap.put("getItemIds", new getItemIds());
Line 3895... Line 3965...
3895
        }
3965
        }
3896
        return result;
3966
        return result;
3897
      }
3967
      }
3898
    }
3968
    }
3899
 
3969
 
-
 
3970
    private static class genericScan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, genericScan_args> {
-
 
3971
      public genericScan() {
-
 
3972
        super("genericScan");
-
 
3973
      }
-
 
3974
 
-
 
3975
      protected genericScan_args getEmptyArgsInstance() {
-
 
3976
        return new genericScan_args();
-
 
3977
      }
-
 
3978
 
-
 
3979
      protected genericScan_result getResult(I iface, genericScan_args args) throws org.apache.thrift.TException {
-
 
3980
        genericScan_result result = new genericScan_result();
-
 
3981
        try {
-
 
3982
          iface.genericScan(args.inventoryItem, args.scan);
-
 
3983
        } catch (WarehouseServiceException wex) {
-
 
3984
          result.wex = wex;
-
 
3985
        }
-
 
3986
        return result;
-
 
3987
      }
-
 
3988
    }
-
 
3989
 
3900
    private static class scanSerializedItemForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItemForOrder_args> {
3990
    private static class scanSerializedItemForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItemForOrder_args> {
3901
      public scanSerializedItemForOrder() {
3991
      public scanSerializedItemForOrder() {
3902
        super("scanSerializedItemForOrder");
3992
        super("scanSerializedItemForOrder");
3903
      }
3993
      }
3904
 
3994
 
Line 7374... Line 7464...
7374
      }
7464
      }
7375
    }
7465
    }
7376
 
7466
 
7377
  }
7467
  }
7378
 
7468
 
-
 
7469
  public static class genericScan_args implements org.apache.thrift.TBase<genericScan_args, genericScan_args._Fields>, java.io.Serializable, Cloneable   {
-
 
7470
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("genericScan_args");
-
 
7471
 
-
 
7472
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItem", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
7473
    private static final org.apache.thrift.protocol.TField SCAN_FIELD_DESC = new org.apache.thrift.protocol.TField("scan", org.apache.thrift.protocol.TType.STRUCT, (short)2);
-
 
7474
 
-
 
7475
    private InventoryItem inventoryItem; // required
-
 
7476
    private Scan scan; // required
-
 
7477
 
-
 
7478
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7479
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
7480
      INVENTORY_ITEM((short)1, "inventoryItem"),
-
 
7481
      SCAN((short)2, "scan");
-
 
7482
 
-
 
7483
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7484
 
-
 
7485
      static {
-
 
7486
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7487
          byName.put(field.getFieldName(), field);
-
 
7488
        }
-
 
7489
      }
-
 
7490
 
-
 
7491
      /**
-
 
7492
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7493
       */
-
 
7494
      public static _Fields findByThriftId(int fieldId) {
-
 
7495
        switch(fieldId) {
-
 
7496
          case 1: // INVENTORY_ITEM
-
 
7497
            return INVENTORY_ITEM;
-
 
7498
          case 2: // SCAN
-
 
7499
            return SCAN;
-
 
7500
          default:
-
 
7501
            return null;
-
 
7502
        }
-
 
7503
      }
-
 
7504
 
-
 
7505
      /**
-
 
7506
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7507
       * if it is not found.
-
 
7508
       */
-
 
7509
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7510
        _Fields fields = findByThriftId(fieldId);
-
 
7511
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7512
        return fields;
-
 
7513
      }
-
 
7514
 
-
 
7515
      /**
-
 
7516
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7517
       */
-
 
7518
      public static _Fields findByName(String name) {
-
 
7519
        return byName.get(name);
-
 
7520
      }
-
 
7521
 
-
 
7522
      private final short _thriftId;
-
 
7523
      private final String _fieldName;
-
 
7524
 
-
 
7525
      _Fields(short thriftId, String fieldName) {
-
 
7526
        _thriftId = thriftId;
-
 
7527
        _fieldName = fieldName;
-
 
7528
      }
-
 
7529
 
-
 
7530
      public short getThriftFieldId() {
-
 
7531
        return _thriftId;
-
 
7532
      }
-
 
7533
 
-
 
7534
      public String getFieldName() {
-
 
7535
        return _fieldName;
-
 
7536
      }
-
 
7537
    }
-
 
7538
 
-
 
7539
    // isset id assignments
-
 
7540
 
-
 
7541
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
7542
    static {
-
 
7543
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7544
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7545
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
-
 
7546
      tmpMap.put(_Fields.SCAN, new org.apache.thrift.meta_data.FieldMetaData("scan", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7547
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class)));
-
 
7548
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
7549
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(genericScan_args.class, metaDataMap);
-
 
7550
    }
-
 
7551
 
-
 
7552
    public genericScan_args() {
-
 
7553
    }
-
 
7554
 
-
 
7555
    public genericScan_args(
-
 
7556
      InventoryItem inventoryItem,
-
 
7557
      Scan scan)
-
 
7558
    {
-
 
7559
      this();
-
 
7560
      this.inventoryItem = inventoryItem;
-
 
7561
      this.scan = scan;
-
 
7562
    }
-
 
7563
 
-
 
7564
    /**
-
 
7565
     * Performs a deep copy on <i>other</i>.
-
 
7566
     */
-
 
7567
    public genericScan_args(genericScan_args other) {
-
 
7568
      if (other.isSetInventoryItem()) {
-
 
7569
        this.inventoryItem = new InventoryItem(other.inventoryItem);
-
 
7570
      }
-
 
7571
      if (other.isSetScan()) {
-
 
7572
        this.scan = new Scan(other.scan);
-
 
7573
      }
-
 
7574
    }
-
 
7575
 
-
 
7576
    public genericScan_args deepCopy() {
-
 
7577
      return new genericScan_args(this);
-
 
7578
    }
-
 
7579
 
-
 
7580
    @Override
-
 
7581
    public void clear() {
-
 
7582
      this.inventoryItem = null;
-
 
7583
      this.scan = null;
-
 
7584
    }
-
 
7585
 
-
 
7586
    public InventoryItem getInventoryItem() {
-
 
7587
      return this.inventoryItem;
-
 
7588
    }
-
 
7589
 
-
 
7590
    public void setInventoryItem(InventoryItem inventoryItem) {
-
 
7591
      this.inventoryItem = inventoryItem;
-
 
7592
    }
-
 
7593
 
-
 
7594
    public void unsetInventoryItem() {
-
 
7595
      this.inventoryItem = null;
-
 
7596
    }
-
 
7597
 
-
 
7598
    /** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
-
 
7599
    public boolean isSetInventoryItem() {
-
 
7600
      return this.inventoryItem != null;
-
 
7601
    }
-
 
7602
 
-
 
7603
    public void setInventoryItemIsSet(boolean value) {
-
 
7604
      if (!value) {
-
 
7605
        this.inventoryItem = null;
-
 
7606
      }
-
 
7607
    }
-
 
7608
 
-
 
7609
    public Scan getScan() {
-
 
7610
      return this.scan;
-
 
7611
    }
-
 
7612
 
-
 
7613
    public void setScan(Scan scan) {
-
 
7614
      this.scan = scan;
-
 
7615
    }
-
 
7616
 
-
 
7617
    public void unsetScan() {
-
 
7618
      this.scan = null;
-
 
7619
    }
-
 
7620
 
-
 
7621
    /** Returns true if field scan is set (has been assigned a value) and false otherwise */
-
 
7622
    public boolean isSetScan() {
-
 
7623
      return this.scan != null;
-
 
7624
    }
-
 
7625
 
-
 
7626
    public void setScanIsSet(boolean value) {
-
 
7627
      if (!value) {
-
 
7628
        this.scan = null;
-
 
7629
      }
-
 
7630
    }
-
 
7631
 
-
 
7632
    public void setFieldValue(_Fields field, Object value) {
-
 
7633
      switch (field) {
-
 
7634
      case INVENTORY_ITEM:
-
 
7635
        if (value == null) {
-
 
7636
          unsetInventoryItem();
-
 
7637
        } else {
-
 
7638
          setInventoryItem((InventoryItem)value);
-
 
7639
        }
-
 
7640
        break;
-
 
7641
 
-
 
7642
      case SCAN:
-
 
7643
        if (value == null) {
-
 
7644
          unsetScan();
-
 
7645
        } else {
-
 
7646
          setScan((Scan)value);
-
 
7647
        }
-
 
7648
        break;
-
 
7649
 
-
 
7650
      }
-
 
7651
    }
-
 
7652
 
-
 
7653
    public Object getFieldValue(_Fields field) {
-
 
7654
      switch (field) {
-
 
7655
      case INVENTORY_ITEM:
-
 
7656
        return getInventoryItem();
-
 
7657
 
-
 
7658
      case SCAN:
-
 
7659
        return getScan();
-
 
7660
 
-
 
7661
      }
-
 
7662
      throw new IllegalStateException();
-
 
7663
    }
-
 
7664
 
-
 
7665
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
7666
    public boolean isSet(_Fields field) {
-
 
7667
      if (field == null) {
-
 
7668
        throw new IllegalArgumentException();
-
 
7669
      }
-
 
7670
 
-
 
7671
      switch (field) {
-
 
7672
      case INVENTORY_ITEM:
-
 
7673
        return isSetInventoryItem();
-
 
7674
      case SCAN:
-
 
7675
        return isSetScan();
-
 
7676
      }
-
 
7677
      throw new IllegalStateException();
-
 
7678
    }
-
 
7679
 
-
 
7680
    @Override
-
 
7681
    public boolean equals(Object that) {
-
 
7682
      if (that == null)
-
 
7683
        return false;
-
 
7684
      if (that instanceof genericScan_args)
-
 
7685
        return this.equals((genericScan_args)that);
-
 
7686
      return false;
-
 
7687
    }
-
 
7688
 
-
 
7689
    public boolean equals(genericScan_args that) {
-
 
7690
      if (that == null)
-
 
7691
        return false;
-
 
7692
 
-
 
7693
      boolean this_present_inventoryItem = true && this.isSetInventoryItem();
-
 
7694
      boolean that_present_inventoryItem = true && that.isSetInventoryItem();
-
 
7695
      if (this_present_inventoryItem || that_present_inventoryItem) {
-
 
7696
        if (!(this_present_inventoryItem && that_present_inventoryItem))
-
 
7697
          return false;
-
 
7698
        if (!this.inventoryItem.equals(that.inventoryItem))
-
 
7699
          return false;
-
 
7700
      }
-
 
7701
 
-
 
7702
      boolean this_present_scan = true && this.isSetScan();
-
 
7703
      boolean that_present_scan = true && that.isSetScan();
-
 
7704
      if (this_present_scan || that_present_scan) {
-
 
7705
        if (!(this_present_scan && that_present_scan))
-
 
7706
          return false;
-
 
7707
        if (!this.scan.equals(that.scan))
-
 
7708
          return false;
-
 
7709
      }
-
 
7710
 
-
 
7711
      return true;
-
 
7712
    }
-
 
7713
 
-
 
7714
    @Override
-
 
7715
    public int hashCode() {
-
 
7716
      return 0;
-
 
7717
    }
-
 
7718
 
-
 
7719
    public int compareTo(genericScan_args other) {
-
 
7720
      if (!getClass().equals(other.getClass())) {
-
 
7721
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7722
      }
-
 
7723
 
-
 
7724
      int lastComparison = 0;
-
 
7725
      genericScan_args typedOther = (genericScan_args)other;
-
 
7726
 
-
 
7727
      lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
-
 
7728
      if (lastComparison != 0) {
-
 
7729
        return lastComparison;
-
 
7730
      }
-
 
7731
      if (isSetInventoryItem()) {
-
 
7732
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
-
 
7733
        if (lastComparison != 0) {
-
 
7734
          return lastComparison;
-
 
7735
        }
-
 
7736
      }
-
 
7737
      lastComparison = Boolean.valueOf(isSetScan()).compareTo(typedOther.isSetScan());
-
 
7738
      if (lastComparison != 0) {
-
 
7739
        return lastComparison;
-
 
7740
      }
-
 
7741
      if (isSetScan()) {
-
 
7742
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scan, typedOther.scan);
-
 
7743
        if (lastComparison != 0) {
-
 
7744
          return lastComparison;
-
 
7745
        }
-
 
7746
      }
-
 
7747
      return 0;
-
 
7748
    }
-
 
7749
 
-
 
7750
    public _Fields fieldForId(int fieldId) {
-
 
7751
      return _Fields.findByThriftId(fieldId);
-
 
7752
    }
-
 
7753
 
-
 
7754
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
7755
      org.apache.thrift.protocol.TField field;
-
 
7756
      iprot.readStructBegin();
-
 
7757
      while (true)
-
 
7758
      {
-
 
7759
        field = iprot.readFieldBegin();
-
 
7760
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
7761
          break;
-
 
7762
        }
-
 
7763
        switch (field.id) {
-
 
7764
          case 1: // INVENTORY_ITEM
-
 
7765
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
7766
              this.inventoryItem = new InventoryItem();
-
 
7767
              this.inventoryItem.read(iprot);
-
 
7768
            } else { 
-
 
7769
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7770
            }
-
 
7771
            break;
-
 
7772
          case 2: // SCAN
-
 
7773
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
7774
              this.scan = new Scan();
-
 
7775
              this.scan.read(iprot);
-
 
7776
            } else { 
-
 
7777
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7778
            }
-
 
7779
            break;
-
 
7780
          default:
-
 
7781
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
7782
        }
-
 
7783
        iprot.readFieldEnd();
-
 
7784
      }
-
 
7785
      iprot.readStructEnd();
-
 
7786
      validate();
-
 
7787
    }
-
 
7788
 
-
 
7789
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
7790
      validate();
-
 
7791
 
-
 
7792
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7793
      if (this.inventoryItem != null) {
-
 
7794
        oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
-
 
7795
        this.inventoryItem.write(oprot);
-
 
7796
        oprot.writeFieldEnd();
-
 
7797
      }
-
 
7798
      if (this.scan != null) {
-
 
7799
        oprot.writeFieldBegin(SCAN_FIELD_DESC);
-
 
7800
        this.scan.write(oprot);
-
 
7801
        oprot.writeFieldEnd();
-
 
7802
      }
-
 
7803
      oprot.writeFieldStop();
-
 
7804
      oprot.writeStructEnd();
-
 
7805
    }
-
 
7806
 
-
 
7807
    @Override
-
 
7808
    public String toString() {
-
 
7809
      StringBuilder sb = new StringBuilder("genericScan_args(");
-
 
7810
      boolean first = true;
-
 
7811
 
-
 
7812
      sb.append("inventoryItem:");
-
 
7813
      if (this.inventoryItem == null) {
-
 
7814
        sb.append("null");
-
 
7815
      } else {
-
 
7816
        sb.append(this.inventoryItem);
-
 
7817
      }
-
 
7818
      first = false;
-
 
7819
      if (!first) sb.append(", ");
-
 
7820
      sb.append("scan:");
-
 
7821
      if (this.scan == null) {
-
 
7822
        sb.append("null");
-
 
7823
      } else {
-
 
7824
        sb.append(this.scan);
-
 
7825
      }
-
 
7826
      first = false;
-
 
7827
      sb.append(")");
-
 
7828
      return sb.toString();
-
 
7829
    }
-
 
7830
 
-
 
7831
    public void validate() throws org.apache.thrift.TException {
-
 
7832
      // check for required fields
-
 
7833
    }
-
 
7834
 
-
 
7835
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7836
      try {
-
 
7837
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7838
      } catch (org.apache.thrift.TException te) {
-
 
7839
        throw new java.io.IOException(te);
-
 
7840
      }
-
 
7841
    }
-
 
7842
 
-
 
7843
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7844
      try {
-
 
7845
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7846
      } catch (org.apache.thrift.TException te) {
-
 
7847
        throw new java.io.IOException(te);
-
 
7848
      }
-
 
7849
    }
-
 
7850
 
-
 
7851
  }
-
 
7852
 
-
 
7853
  public static class genericScan_result implements org.apache.thrift.TBase<genericScan_result, genericScan_result._Fields>, java.io.Serializable, Cloneable   {
-
 
7854
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("genericScan_result");
-
 
7855
 
-
 
7856
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
7857
 
-
 
7858
    private WarehouseServiceException wex; // required
-
 
7859
 
-
 
7860
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7861
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
7862
      WEX((short)1, "wex");
-
 
7863
 
-
 
7864
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7865
 
-
 
7866
      static {
-
 
7867
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7868
          byName.put(field.getFieldName(), field);
-
 
7869
        }
-
 
7870
      }
-
 
7871
 
-
 
7872
      /**
-
 
7873
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7874
       */
-
 
7875
      public static _Fields findByThriftId(int fieldId) {
-
 
7876
        switch(fieldId) {
-
 
7877
          case 1: // WEX
-
 
7878
            return WEX;
-
 
7879
          default:
-
 
7880
            return null;
-
 
7881
        }
-
 
7882
      }
-
 
7883
 
-
 
7884
      /**
-
 
7885
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7886
       * if it is not found.
-
 
7887
       */
-
 
7888
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7889
        _Fields fields = findByThriftId(fieldId);
-
 
7890
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7891
        return fields;
-
 
7892
      }
-
 
7893
 
-
 
7894
      /**
-
 
7895
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7896
       */
-
 
7897
      public static _Fields findByName(String name) {
-
 
7898
        return byName.get(name);
-
 
7899
      }
-
 
7900
 
-
 
7901
      private final short _thriftId;
-
 
7902
      private final String _fieldName;
-
 
7903
 
-
 
7904
      _Fields(short thriftId, String fieldName) {
-
 
7905
        _thriftId = thriftId;
-
 
7906
        _fieldName = fieldName;
-
 
7907
      }
-
 
7908
 
-
 
7909
      public short getThriftFieldId() {
-
 
7910
        return _thriftId;
-
 
7911
      }
-
 
7912
 
-
 
7913
      public String getFieldName() {
-
 
7914
        return _fieldName;
-
 
7915
      }
-
 
7916
    }
-
 
7917
 
-
 
7918
    // isset id assignments
-
 
7919
 
-
 
7920
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
7921
    static {
-
 
7922
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7923
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7924
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
7925
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
7926
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(genericScan_result.class, metaDataMap);
-
 
7927
    }
-
 
7928
 
-
 
7929
    public genericScan_result() {
-
 
7930
    }
-
 
7931
 
-
 
7932
    public genericScan_result(
-
 
7933
      WarehouseServiceException wex)
-
 
7934
    {
-
 
7935
      this();
-
 
7936
      this.wex = wex;
-
 
7937
    }
-
 
7938
 
-
 
7939
    /**
-
 
7940
     * Performs a deep copy on <i>other</i>.
-
 
7941
     */
-
 
7942
    public genericScan_result(genericScan_result other) {
-
 
7943
      if (other.isSetWex()) {
-
 
7944
        this.wex = new WarehouseServiceException(other.wex);
-
 
7945
      }
-
 
7946
    }
-
 
7947
 
-
 
7948
    public genericScan_result deepCopy() {
-
 
7949
      return new genericScan_result(this);
-
 
7950
    }
-
 
7951
 
-
 
7952
    @Override
-
 
7953
    public void clear() {
-
 
7954
      this.wex = null;
-
 
7955
    }
-
 
7956
 
-
 
7957
    public WarehouseServiceException getWex() {
-
 
7958
      return this.wex;
-
 
7959
    }
-
 
7960
 
-
 
7961
    public void setWex(WarehouseServiceException wex) {
-
 
7962
      this.wex = wex;
-
 
7963
    }
-
 
7964
 
-
 
7965
    public void unsetWex() {
-
 
7966
      this.wex = null;
-
 
7967
    }
-
 
7968
 
-
 
7969
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
7970
    public boolean isSetWex() {
-
 
7971
      return this.wex != null;
-
 
7972
    }
-
 
7973
 
-
 
7974
    public void setWexIsSet(boolean value) {
-
 
7975
      if (!value) {
-
 
7976
        this.wex = null;
-
 
7977
      }
-
 
7978
    }
-
 
7979
 
-
 
7980
    public void setFieldValue(_Fields field, Object value) {
-
 
7981
      switch (field) {
-
 
7982
      case WEX:
-
 
7983
        if (value == null) {
-
 
7984
          unsetWex();
-
 
7985
        } else {
-
 
7986
          setWex((WarehouseServiceException)value);
-
 
7987
        }
-
 
7988
        break;
-
 
7989
 
-
 
7990
      }
-
 
7991
    }
-
 
7992
 
-
 
7993
    public Object getFieldValue(_Fields field) {
-
 
7994
      switch (field) {
-
 
7995
      case WEX:
-
 
7996
        return getWex();
-
 
7997
 
-
 
7998
      }
-
 
7999
      throw new IllegalStateException();
-
 
8000
    }
-
 
8001
 
-
 
8002
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
8003
    public boolean isSet(_Fields field) {
-
 
8004
      if (field == null) {
-
 
8005
        throw new IllegalArgumentException();
-
 
8006
      }
-
 
8007
 
-
 
8008
      switch (field) {
-
 
8009
      case WEX:
-
 
8010
        return isSetWex();
-
 
8011
      }
-
 
8012
      throw new IllegalStateException();
-
 
8013
    }
-
 
8014
 
-
 
8015
    @Override
-
 
8016
    public boolean equals(Object that) {
-
 
8017
      if (that == null)
-
 
8018
        return false;
-
 
8019
      if (that instanceof genericScan_result)
-
 
8020
        return this.equals((genericScan_result)that);
-
 
8021
      return false;
-
 
8022
    }
-
 
8023
 
-
 
8024
    public boolean equals(genericScan_result that) {
-
 
8025
      if (that == null)
-
 
8026
        return false;
-
 
8027
 
-
 
8028
      boolean this_present_wex = true && this.isSetWex();
-
 
8029
      boolean that_present_wex = true && that.isSetWex();
-
 
8030
      if (this_present_wex || that_present_wex) {
-
 
8031
        if (!(this_present_wex && that_present_wex))
-
 
8032
          return false;
-
 
8033
        if (!this.wex.equals(that.wex))
-
 
8034
          return false;
-
 
8035
      }
-
 
8036
 
-
 
8037
      return true;
-
 
8038
    }
-
 
8039
 
-
 
8040
    @Override
-
 
8041
    public int hashCode() {
-
 
8042
      return 0;
-
 
8043
    }
-
 
8044
 
-
 
8045
    public int compareTo(genericScan_result other) {
-
 
8046
      if (!getClass().equals(other.getClass())) {
-
 
8047
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8048
      }
-
 
8049
 
-
 
8050
      int lastComparison = 0;
-
 
8051
      genericScan_result typedOther = (genericScan_result)other;
-
 
8052
 
-
 
8053
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
8054
      if (lastComparison != 0) {
-
 
8055
        return lastComparison;
-
 
8056
      }
-
 
8057
      if (isSetWex()) {
-
 
8058
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
8059
        if (lastComparison != 0) {
-
 
8060
          return lastComparison;
-
 
8061
        }
-
 
8062
      }
-
 
8063
      return 0;
-
 
8064
    }
-
 
8065
 
-
 
8066
    public _Fields fieldForId(int fieldId) {
-
 
8067
      return _Fields.findByThriftId(fieldId);
-
 
8068
    }
-
 
8069
 
-
 
8070
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
8071
      org.apache.thrift.protocol.TField field;
-
 
8072
      iprot.readStructBegin();
-
 
8073
      while (true)
-
 
8074
      {
-
 
8075
        field = iprot.readFieldBegin();
-
 
8076
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
8077
          break;
-
 
8078
        }
-
 
8079
        switch (field.id) {
-
 
8080
          case 1: // WEX
-
 
8081
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
8082
              this.wex = new WarehouseServiceException();
-
 
8083
              this.wex.read(iprot);
-
 
8084
            } else { 
-
 
8085
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8086
            }
-
 
8087
            break;
-
 
8088
          default:
-
 
8089
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8090
        }
-
 
8091
        iprot.readFieldEnd();
-
 
8092
      }
-
 
8093
      iprot.readStructEnd();
-
 
8094
      validate();
-
 
8095
    }
-
 
8096
 
-
 
8097
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
8098
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8099
 
-
 
8100
      if (this.isSetWex()) {
-
 
8101
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
8102
        this.wex.write(oprot);
-
 
8103
        oprot.writeFieldEnd();
-
 
8104
      }
-
 
8105
      oprot.writeFieldStop();
-
 
8106
      oprot.writeStructEnd();
-
 
8107
    }
-
 
8108
 
-
 
8109
    @Override
-
 
8110
    public String toString() {
-
 
8111
      StringBuilder sb = new StringBuilder("genericScan_result(");
-
 
8112
      boolean first = true;
-
 
8113
 
-
 
8114
      sb.append("wex:");
-
 
8115
      if (this.wex == null) {
-
 
8116
        sb.append("null");
-
 
8117
      } else {
-
 
8118
        sb.append(this.wex);
-
 
8119
      }
-
 
8120
      first = false;
-
 
8121
      sb.append(")");
-
 
8122
      return sb.toString();
-
 
8123
    }
-
 
8124
 
-
 
8125
    public void validate() throws org.apache.thrift.TException {
-
 
8126
      // check for required fields
-
 
8127
    }
-
 
8128
 
-
 
8129
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8130
      try {
-
 
8131
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8132
      } catch (org.apache.thrift.TException te) {
-
 
8133
        throw new java.io.IOException(te);
-
 
8134
      }
-
 
8135
    }
-
 
8136
 
-
 
8137
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8138
      try {
-
 
8139
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8140
      } catch (org.apache.thrift.TException te) {
-
 
8141
        throw new java.io.IOException(te);
-
 
8142
      }
-
 
8143
    }
-
 
8144
 
-
 
8145
  }
-
 
8146
 
7379
  public static class scanSerializedItemForOrder_args implements org.apache.thrift.TBase<scanSerializedItemForOrder_args, scanSerializedItemForOrder_args._Fields>, java.io.Serializable, Cloneable   {
8147
  public static class scanSerializedItemForOrder_args implements org.apache.thrift.TBase<scanSerializedItemForOrder_args, scanSerializedItemForOrder_args._Fields>, java.io.Serializable, Cloneable   {
7380
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
8148
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
7381
 
8149
 
7382
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
8150
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
7383
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
8151
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
Line 29791... Line 30559...
29791
      }
30559
      }
29792
    }
30560
    }
29793
 
30561
 
29794
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30562
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29795
      try {
30563
      try {
-
 
30564
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
30565
        __isset_bit_vector = new BitSet(1);
29796
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30566
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29797
      } catch (org.apache.thrift.TException te) {
30567
      } catch (org.apache.thrift.TException te) {
29798
        throw new java.io.IOException(te);
30568
        throw new java.io.IOException(te);
29799
      }
30569
      }
29800
    }
30570
    }