Subversion Repositories SmartDukaan

Rev

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

Rev 10886 Rev 11751
Line 350... Line 350...
350
 
350
 
351
    public long getCurrentBadQuantityForItem(long itemId, long currentWarehouseId, long physicalWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
351
    public long getCurrentBadQuantityForItem(long itemId, long currentWarehouseId, long physicalWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
352
 
352
 
353
    public long scanForBadPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
353
    public long scanForBadPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
354
 
354
 
355
    public Map<Long,Long> getItemsInPurchaseReturn(long purchaseReturnId) throws WarehouseServiceException, org.apache.thrift.TException;
355
    public Map<Long,Long> getItemsInPurchaseReturn(long purchaseReturnId, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException;
356
 
356
 
357
    public List<Scan> getScansForInventoryItem(long inventoryItemId, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException;
357
    public List<Scan> getScansForInventoryItem(long inventoryItemId, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException;
358
 
358
 
359
  }
359
  }
360
 
360
 
Line 478... Line 478...
478
 
478
 
479
    public void getCurrentBadQuantityForItem(long itemId, long currentWarehouseId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentBadQuantityForItem_call> resultHandler) throws org.apache.thrift.TException;
479
    public void getCurrentBadQuantityForItem(long itemId, long currentWarehouseId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentBadQuantityForItem_call> resultHandler) throws org.apache.thrift.TException;
480
 
480
 
481
    public void scanForBadPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForBadPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
481
    public void scanForBadPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForBadPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
482
 
482
 
483
    public void getItemsInPurchaseReturn(long purchaseReturnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsInPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
483
    public void getItemsInPurchaseReturn(long purchaseReturnId, ScanType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsInPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
484
 
484
 
485
    public void getScansForInventoryItem(long inventoryItemId, ScanType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScansForInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
485
    public void getScansForInventoryItem(long inventoryItemId, ScanType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScansForInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
486
 
486
 
487
  }
487
  }
488
 
488
 
Line 2025... Line 2025...
2025
        throw result.ex;
2025
        throw result.ex;
2026
      }
2026
      }
2027
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForBadPurchaseReturn failed: unknown result");
2027
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForBadPurchaseReturn failed: unknown result");
2028
    }
2028
    }
2029
 
2029
 
2030
    public Map<Long,Long> getItemsInPurchaseReturn(long purchaseReturnId) throws WarehouseServiceException, org.apache.thrift.TException
2030
    public Map<Long,Long> getItemsInPurchaseReturn(long purchaseReturnId, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException
2031
    {
2031
    {
2032
      send_getItemsInPurchaseReturn(purchaseReturnId);
2032
      send_getItemsInPurchaseReturn(purchaseReturnId, type);
2033
      return recv_getItemsInPurchaseReturn();
2033
      return recv_getItemsInPurchaseReturn();
2034
    }
2034
    }
2035
 
2035
 
2036
    public void send_getItemsInPurchaseReturn(long purchaseReturnId) throws org.apache.thrift.TException
2036
    public void send_getItemsInPurchaseReturn(long purchaseReturnId, ScanType type) throws org.apache.thrift.TException
2037
    {
2037
    {
2038
      getItemsInPurchaseReturn_args args = new getItemsInPurchaseReturn_args();
2038
      getItemsInPurchaseReturn_args args = new getItemsInPurchaseReturn_args();
2039
      args.setPurchaseReturnId(purchaseReturnId);
2039
      args.setPurchaseReturnId(purchaseReturnId);
-
 
2040
      args.setType(type);
2040
      sendBase("getItemsInPurchaseReturn", args);
2041
      sendBase("getItemsInPurchaseReturn", args);
2041
    }
2042
    }
2042
 
2043
 
2043
    public Map<Long,Long> recv_getItemsInPurchaseReturn() throws WarehouseServiceException, org.apache.thrift.TException
2044
    public Map<Long,Long> recv_getItemsInPurchaseReturn() throws WarehouseServiceException, org.apache.thrift.TException
2044
    {
2045
    {
Line 4232... Line 4233...
4232
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4233
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4233
        return (new Client(prot)).recv_scanForBadPurchaseReturn();
4234
        return (new Client(prot)).recv_scanForBadPurchaseReturn();
4234
      }
4235
      }
4235
    }
4236
    }
4236
 
4237
 
4237
    public void getItemsInPurchaseReturn(long purchaseReturnId, org.apache.thrift.async.AsyncMethodCallback<getItemsInPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException {
4238
    public void getItemsInPurchaseReturn(long purchaseReturnId, ScanType type, org.apache.thrift.async.AsyncMethodCallback<getItemsInPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException {
4238
      checkReady();
4239
      checkReady();
4239
      getItemsInPurchaseReturn_call method_call = new getItemsInPurchaseReturn_call(purchaseReturnId, resultHandler, this, ___protocolFactory, ___transport);
4240
      getItemsInPurchaseReturn_call method_call = new getItemsInPurchaseReturn_call(purchaseReturnId, type, resultHandler, this, ___protocolFactory, ___transport);
4240
      this.___currentMethod = method_call;
4241
      this.___currentMethod = method_call;
4241
      ___manager.call(method_call);
4242
      ___manager.call(method_call);
4242
    }
4243
    }
4243
 
4244
 
4244
    public static class getItemsInPurchaseReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
4245
    public static class getItemsInPurchaseReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
4245
      private long purchaseReturnId;
4246
      private long purchaseReturnId;
-
 
4247
      private ScanType type;
4246
      public getItemsInPurchaseReturn_call(long purchaseReturnId, org.apache.thrift.async.AsyncMethodCallback<getItemsInPurchaseReturn_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 {
4248
      public getItemsInPurchaseReturn_call(long purchaseReturnId, ScanType type, org.apache.thrift.async.AsyncMethodCallback<getItemsInPurchaseReturn_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 {
4247
        super(client, protocolFactory, transport, resultHandler, false);
4249
        super(client, protocolFactory, transport, resultHandler, false);
4248
        this.purchaseReturnId = purchaseReturnId;
4250
        this.purchaseReturnId = purchaseReturnId;
-
 
4251
        this.type = type;
4249
      }
4252
      }
4250
 
4253
 
4251
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4254
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4252
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsInPurchaseReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
4255
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsInPurchaseReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
4253
        getItemsInPurchaseReturn_args args = new getItemsInPurchaseReturn_args();
4256
        getItemsInPurchaseReturn_args args = new getItemsInPurchaseReturn_args();
4254
        args.setPurchaseReturnId(purchaseReturnId);
4257
        args.setPurchaseReturnId(purchaseReturnId);
-
 
4258
        args.setType(type);
4255
        args.write(prot);
4259
        args.write(prot);
4256
        prot.writeMessageEnd();
4260
        prot.writeMessageEnd();
4257
      }
4261
      }
4258
 
4262
 
4259
      public Map<Long,Long> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
4263
      public Map<Long,Long> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
Line 5500... Line 5504...
5500
      }
5504
      }
5501
 
5505
 
5502
      protected getItemsInPurchaseReturn_result getResult(I iface, getItemsInPurchaseReturn_args args) throws org.apache.thrift.TException {
5506
      protected getItemsInPurchaseReturn_result getResult(I iface, getItemsInPurchaseReturn_args args) throws org.apache.thrift.TException {
5503
        getItemsInPurchaseReturn_result result = new getItemsInPurchaseReturn_result();
5507
        getItemsInPurchaseReturn_result result = new getItemsInPurchaseReturn_result();
5504
        try {
5508
        try {
5505
          result.success = iface.getItemsInPurchaseReturn(args.purchaseReturnId);
5509
          result.success = iface.getItemsInPurchaseReturn(args.purchaseReturnId, args.type);
5506
        } catch (WarehouseServiceException ex) {
5510
        } catch (WarehouseServiceException ex) {
5507
          result.ex = ex;
5511
          result.ex = ex;
5508
        }
5512
        }
5509
        return result;
5513
        return result;
5510
      }
5514
      }
Line 50473... Line 50477...
50473
 
50477
 
50474
  public static class getItemsInPurchaseReturn_args implements org.apache.thrift.TBase<getItemsInPurchaseReturn_args, getItemsInPurchaseReturn_args._Fields>, java.io.Serializable, Cloneable   {
50478
  public static class getItemsInPurchaseReturn_args implements org.apache.thrift.TBase<getItemsInPurchaseReturn_args, getItemsInPurchaseReturn_args._Fields>, java.io.Serializable, Cloneable   {
50475
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsInPurchaseReturn_args");
50479
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsInPurchaseReturn_args");
50476
 
50480
 
50477
    private static final org.apache.thrift.protocol.TField PURCHASE_RETURN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseReturnId", org.apache.thrift.protocol.TType.I64, (short)1);
50481
    private static final org.apache.thrift.protocol.TField PURCHASE_RETURN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseReturnId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
50482
    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);
50478
 
50483
 
50479
    private long purchaseReturnId; // required
50484
    private long purchaseReturnId; // required
-
 
50485
    private ScanType type; // required
50480
 
50486
 
50481
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50487
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50482
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50488
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50483
      PURCHASE_RETURN_ID((short)1, "purchaseReturnId");
50489
      PURCHASE_RETURN_ID((short)1, "purchaseReturnId"),
-
 
50490
      /**
-
 
50491
       * 
-
 
50492
       * @see ScanType
-
 
50493
       */
-
 
50494
      TYPE((short)2, "type");
50484
 
50495
 
50485
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50496
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50486
 
50497
 
50487
      static {
50498
      static {
50488
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50499
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 50495... Line 50506...
50495
       */
50506
       */
50496
      public static _Fields findByThriftId(int fieldId) {
50507
      public static _Fields findByThriftId(int fieldId) {
50497
        switch(fieldId) {
50508
        switch(fieldId) {
50498
          case 1: // PURCHASE_RETURN_ID
50509
          case 1: // PURCHASE_RETURN_ID
50499
            return PURCHASE_RETURN_ID;
50510
            return PURCHASE_RETURN_ID;
-
 
50511
          case 2: // TYPE
-
 
50512
            return TYPE;
50500
          default:
50513
          default:
50501
            return null;
50514
            return null;
50502
        }
50515
        }
50503
      }
50516
      }
50504
 
50517
 
Line 50543... Line 50556...
50543
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50556
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50544
    static {
50557
    static {
50545
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50558
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50546
      tmpMap.put(_Fields.PURCHASE_RETURN_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseReturnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50559
      tmpMap.put(_Fields.PURCHASE_RETURN_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseReturnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50547
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
50560
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
50561
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
50562
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
50548
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50563
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50549
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsInPurchaseReturn_args.class, metaDataMap);
50564
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsInPurchaseReturn_args.class, metaDataMap);
50550
    }
50565
    }
50551
 
50566
 
50552
    public getItemsInPurchaseReturn_args() {
50567
    public getItemsInPurchaseReturn_args() {
50553
    }
50568
    }
50554
 
50569
 
50555
    public getItemsInPurchaseReturn_args(
50570
    public getItemsInPurchaseReturn_args(
50556
      long purchaseReturnId)
50571
      long purchaseReturnId,
-
 
50572
      ScanType type)
50557
    {
50573
    {
50558
      this();
50574
      this();
50559
      this.purchaseReturnId = purchaseReturnId;
50575
      this.purchaseReturnId = purchaseReturnId;
50560
      setPurchaseReturnIdIsSet(true);
50576
      setPurchaseReturnIdIsSet(true);
-
 
50577
      this.type = type;
50561
    }
50578
    }
50562
 
50579
 
50563
    /**
50580
    /**
50564
     * Performs a deep copy on <i>other</i>.
50581
     * Performs a deep copy on <i>other</i>.
50565
     */
50582
     */
50566
    public getItemsInPurchaseReturn_args(getItemsInPurchaseReturn_args other) {
50583
    public getItemsInPurchaseReturn_args(getItemsInPurchaseReturn_args other) {
50567
      __isset_bit_vector.clear();
50584
      __isset_bit_vector.clear();
50568
      __isset_bit_vector.or(other.__isset_bit_vector);
50585
      __isset_bit_vector.or(other.__isset_bit_vector);
50569
      this.purchaseReturnId = other.purchaseReturnId;
50586
      this.purchaseReturnId = other.purchaseReturnId;
-
 
50587
      if (other.isSetType()) {
-
 
50588
        this.type = other.type;
-
 
50589
      }
50570
    }
50590
    }
50571
 
50591
 
50572
    public getItemsInPurchaseReturn_args deepCopy() {
50592
    public getItemsInPurchaseReturn_args deepCopy() {
50573
      return new getItemsInPurchaseReturn_args(this);
50593
      return new getItemsInPurchaseReturn_args(this);
50574
    }
50594
    }
50575
 
50595
 
50576
    @Override
50596
    @Override
50577
    public void clear() {
50597
    public void clear() {
50578
      setPurchaseReturnIdIsSet(false);
50598
      setPurchaseReturnIdIsSet(false);
50579
      this.purchaseReturnId = 0;
50599
      this.purchaseReturnId = 0;
-
 
50600
      this.type = null;
50580
    }
50601
    }
50581
 
50602
 
50582
    public long getPurchaseReturnId() {
50603
    public long getPurchaseReturnId() {
50583
      return this.purchaseReturnId;
50604
      return this.purchaseReturnId;
50584
    }
50605
    }
Line 50599... Line 50620...
50599
 
50620
 
50600
    public void setPurchaseReturnIdIsSet(boolean value) {
50621
    public void setPurchaseReturnIdIsSet(boolean value) {
50601
      __isset_bit_vector.set(__PURCHASERETURNID_ISSET_ID, value);
50622
      __isset_bit_vector.set(__PURCHASERETURNID_ISSET_ID, value);
50602
    }
50623
    }
50603
 
50624
 
-
 
50625
    /**
-
 
50626
     * 
-
 
50627
     * @see ScanType
-
 
50628
     */
-
 
50629
    public ScanType getType() {
-
 
50630
      return this.type;
-
 
50631
    }
-
 
50632
 
-
 
50633
    /**
-
 
50634
     * 
-
 
50635
     * @see ScanType
-
 
50636
     */
-
 
50637
    public void setType(ScanType type) {
-
 
50638
      this.type = type;
-
 
50639
    }
-
 
50640
 
-
 
50641
    public void unsetType() {
-
 
50642
      this.type = null;
-
 
50643
    }
-
 
50644
 
-
 
50645
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
-
 
50646
    public boolean isSetType() {
-
 
50647
      return this.type != null;
-
 
50648
    }
-
 
50649
 
-
 
50650
    public void setTypeIsSet(boolean value) {
-
 
50651
      if (!value) {
-
 
50652
        this.type = null;
-
 
50653
      }
-
 
50654
    }
-
 
50655
 
50604
    public void setFieldValue(_Fields field, Object value) {
50656
    public void setFieldValue(_Fields field, Object value) {
50605
      switch (field) {
50657
      switch (field) {
50606
      case PURCHASE_RETURN_ID:
50658
      case PURCHASE_RETURN_ID:
50607
        if (value == null) {
50659
        if (value == null) {
50608
          unsetPurchaseReturnId();
50660
          unsetPurchaseReturnId();
50609
        } else {
50661
        } else {
50610
          setPurchaseReturnId((Long)value);
50662
          setPurchaseReturnId((Long)value);
50611
        }
50663
        }
50612
        break;
50664
        break;
50613
 
50665
 
-
 
50666
      case TYPE:
-
 
50667
        if (value == null) {
-
 
50668
          unsetType();
-
 
50669
        } else {
-
 
50670
          setType((ScanType)value);
-
 
50671
        }
-
 
50672
        break;
-
 
50673
 
50614
      }
50674
      }
50615
    }
50675
    }
50616
 
50676
 
50617
    public Object getFieldValue(_Fields field) {
50677
    public Object getFieldValue(_Fields field) {
50618
      switch (field) {
50678
      switch (field) {
50619
      case PURCHASE_RETURN_ID:
50679
      case PURCHASE_RETURN_ID:
50620
        return Long.valueOf(getPurchaseReturnId());
50680
        return Long.valueOf(getPurchaseReturnId());
50621
 
50681
 
-
 
50682
      case TYPE:
-
 
50683
        return getType();
-
 
50684
 
50622
      }
50685
      }
50623
      throw new IllegalStateException();
50686
      throw new IllegalStateException();
50624
    }
50687
    }
50625
 
50688
 
50626
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50689
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 50630... Line 50693...
50630
      }
50693
      }
50631
 
50694
 
50632
      switch (field) {
50695
      switch (field) {
50633
      case PURCHASE_RETURN_ID:
50696
      case PURCHASE_RETURN_ID:
50634
        return isSetPurchaseReturnId();
50697
        return isSetPurchaseReturnId();
-
 
50698
      case TYPE:
-
 
50699
        return isSetType();
50635
      }
50700
      }
50636
      throw new IllegalStateException();
50701
      throw new IllegalStateException();
50637
    }
50702
    }
50638
 
50703
 
50639
    @Override
50704
    @Override
Line 50656... Line 50721...
50656
          return false;
50721
          return false;
50657
        if (this.purchaseReturnId != that.purchaseReturnId)
50722
        if (this.purchaseReturnId != that.purchaseReturnId)
50658
          return false;
50723
          return false;
50659
      }
50724
      }
50660
 
50725
 
-
 
50726
      boolean this_present_type = true && this.isSetType();
-
 
50727
      boolean that_present_type = true && that.isSetType();
-
 
50728
      if (this_present_type || that_present_type) {
-
 
50729
        if (!(this_present_type && that_present_type))
-
 
50730
          return false;
-
 
50731
        if (!this.type.equals(that.type))
-
 
50732
          return false;
-
 
50733
      }
-
 
50734
 
50661
      return true;
50735
      return true;
50662
    }
50736
    }
50663
 
50737
 
50664
    @Override
50738
    @Override
50665
    public int hashCode() {
50739
    public int hashCode() {
Line 50682... Line 50756...
50682
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseReturnId, typedOther.purchaseReturnId);
50756
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseReturnId, typedOther.purchaseReturnId);
50683
        if (lastComparison != 0) {
50757
        if (lastComparison != 0) {
50684
          return lastComparison;
50758
          return lastComparison;
50685
        }
50759
        }
50686
      }
50760
      }
-
 
50761
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
-
 
50762
      if (lastComparison != 0) {
-
 
50763
        return lastComparison;
-
 
50764
      }
-
 
50765
      if (isSetType()) {
-
 
50766
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
-
 
50767
        if (lastComparison != 0) {
-
 
50768
          return lastComparison;
-
 
50769
        }
-
 
50770
      }
50687
      return 0;
50771
      return 0;
50688
    }
50772
    }
50689
 
50773
 
50690
    public _Fields fieldForId(int fieldId) {
50774
    public _Fields fieldForId(int fieldId) {
50691
      return _Fields.findByThriftId(fieldId);
50775
      return _Fields.findByThriftId(fieldId);
Line 50707... Line 50791...
50707
              setPurchaseReturnIdIsSet(true);
50791
              setPurchaseReturnIdIsSet(true);
50708
            } else { 
50792
            } else { 
50709
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50793
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50710
            }
50794
            }
50711
            break;
50795
            break;
-
 
50796
          case 2: // TYPE
-
 
50797
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
50798
              this.type = ScanType.findByValue(iprot.readI32());
-
 
50799
            } else { 
-
 
50800
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
50801
            }
-
 
50802
            break;
50712
          default:
50803
          default:
50713
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50804
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50714
        }
50805
        }
50715
        iprot.readFieldEnd();
50806
        iprot.readFieldEnd();
50716
      }
50807
      }
Line 50723... Line 50814...
50723
 
50814
 
50724
      oprot.writeStructBegin(STRUCT_DESC);
50815
      oprot.writeStructBegin(STRUCT_DESC);
50725
      oprot.writeFieldBegin(PURCHASE_RETURN_ID_FIELD_DESC);
50816
      oprot.writeFieldBegin(PURCHASE_RETURN_ID_FIELD_DESC);
50726
      oprot.writeI64(this.purchaseReturnId);
50817
      oprot.writeI64(this.purchaseReturnId);
50727
      oprot.writeFieldEnd();
50818
      oprot.writeFieldEnd();
-
 
50819
      if (this.type != null) {
-
 
50820
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
50821
        oprot.writeI32(this.type.getValue());
-
 
50822
        oprot.writeFieldEnd();
-
 
50823
      }
50728
      oprot.writeFieldStop();
50824
      oprot.writeFieldStop();
50729
      oprot.writeStructEnd();
50825
      oprot.writeStructEnd();
50730
    }
50826
    }
50731
 
50827
 
50732
    @Override
50828
    @Override
Line 50735... Line 50831...
50735
      boolean first = true;
50831
      boolean first = true;
50736
 
50832
 
50737
      sb.append("purchaseReturnId:");
50833
      sb.append("purchaseReturnId:");
50738
      sb.append(this.purchaseReturnId);
50834
      sb.append(this.purchaseReturnId);
50739
      first = false;
50835
      first = false;
-
 
50836
      if (!first) sb.append(", ");
-
 
50837
      sb.append("type:");
-
 
50838
      if (this.type == null) {
-
 
50839
        sb.append("null");
-
 
50840
      } else {
-
 
50841
        sb.append(this.type);
-
 
50842
      }
-
 
50843
      first = false;
50740
      sb.append(")");
50844
      sb.append(")");
50741
      return sb.toString();
50845
      return sb.toString();
50742
    }
50846
    }
50743
 
50847
 
50744
    public void validate() throws org.apache.thrift.TException {
50848
    public void validate() throws org.apache.thrift.TException {