Subversion Repositories SmartDukaan

Rev

Rev 14491 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14491 Rev 14821
Line 29... Line 29...
29
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField PRODUCT_FIELD_DESC = new org.apache.thrift.protocol.TField("product", org.apache.thrift.protocol.TType.STRING, (short)5);
30
  private static final org.apache.thrift.protocol.TField PRODUCT_FIELD_DESC = new org.apache.thrift.protocol.TField("product", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  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)6);
31
  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)6);
32
  private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)7);
32
  private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrder", org.apache.thrift.protocol.TType.STRING, (short)8);
33
  private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrder", org.apache.thrift.protocol.TType.STRING, (short)8);
-
 
34
  private static final org.apache.thrift.protocol.TField DOA_OUT_TIME_STAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("doaOutTimeStamp", org.apache.thrift.protocol.TType.I64, (short)9);
-
 
35
  private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("transferPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
-
 
36
  private static final org.apache.thrift.protocol.TField NLC_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("nlcPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)11);
34
 
37
 
35
  private long id; // required
38
  private long id; // required
36
  private long warehouseId; // required
39
  private long warehouseId; // required
37
  private String warehouseName; // required
40
  private String warehouseName; // required
38
  private long itemId; // required
41
  private long itemId; // required
39
  private String product; // required
42
  private String product; // required
40
  private String serialNumber; // required
43
  private String serialNumber; // required
41
  private String itemNumber; // required
44
  private String itemNumber; // required
42
  private String purchaseOrder; // required
45
  private String purchaseOrder; // required
-
 
46
  private long doaOutTimeStamp; // required
-
 
47
  private double transferPrice; // required
-
 
48
  private double nlcPrice; // required
43
 
49
 
44
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46
    ID((short)1, "id"),
52
    ID((short)1, "id"),
47
    WAREHOUSE_ID((short)2, "warehouseId"),
53
    WAREHOUSE_ID((short)2, "warehouseId"),
48
    WAREHOUSE_NAME((short)3, "warehouseName"),
54
    WAREHOUSE_NAME((short)3, "warehouseName"),
49
    ITEM_ID((short)4, "itemId"),
55
    ITEM_ID((short)4, "itemId"),
50
    PRODUCT((short)5, "product"),
56
    PRODUCT((short)5, "product"),
51
    SERIAL_NUMBER((short)6, "serialNumber"),
57
    SERIAL_NUMBER((short)6, "serialNumber"),
52
    ITEM_NUMBER((short)7, "itemNumber"),
58
    ITEM_NUMBER((short)7, "itemNumber"),
53
    PURCHASE_ORDER((short)8, "purchaseOrder");
59
    PURCHASE_ORDER((short)8, "purchaseOrder"),
-
 
60
    DOA_OUT_TIME_STAMP((short)9, "doaOutTimeStamp"),
-
 
61
    TRANSFER_PRICE((short)10, "transferPrice"),
-
 
62
    NLC_PRICE((short)11, "nlcPrice");
54
 
63
 
55
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
64
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56
 
65
 
57
    static {
66
    static {
58
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
67
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 79... Line 88...
79
          return SERIAL_NUMBER;
88
          return SERIAL_NUMBER;
80
        case 7: // ITEM_NUMBER
89
        case 7: // ITEM_NUMBER
81
          return ITEM_NUMBER;
90
          return ITEM_NUMBER;
82
        case 8: // PURCHASE_ORDER
91
        case 8: // PURCHASE_ORDER
83
          return PURCHASE_ORDER;
92
          return PURCHASE_ORDER;
-
 
93
        case 9: // DOA_OUT_TIME_STAMP
-
 
94
          return DOA_OUT_TIME_STAMP;
-
 
95
        case 10: // TRANSFER_PRICE
-
 
96
          return TRANSFER_PRICE;
-
 
97
        case 11: // NLC_PRICE
-
 
98
          return NLC_PRICE;
84
        default:
99
        default:
85
          return null;
100
          return null;
86
      }
101
      }
87
    }
102
    }
88
 
103
 
Line 122... Line 137...
122
 
137
 
123
  // isset id assignments
138
  // isset id assignments
124
  private static final int __ID_ISSET_ID = 0;
139
  private static final int __ID_ISSET_ID = 0;
125
  private static final int __WAREHOUSEID_ISSET_ID = 1;
140
  private static final int __WAREHOUSEID_ISSET_ID = 1;
126
  private static final int __ITEMID_ISSET_ID = 2;
141
  private static final int __ITEMID_ISSET_ID = 2;
-
 
142
  private static final int __DOAOUTTIMESTAMP_ISSET_ID = 3;
-
 
143
  private static final int __TRANSFERPRICE_ISSET_ID = 4;
-
 
144
  private static final int __NLCPRICE_ISSET_ID = 5;
127
  private BitSet __isset_bit_vector = new BitSet(3);
145
  private BitSet __isset_bit_vector = new BitSet(6);
128
 
146
 
129
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
147
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
130
  static {
148
  static {
131
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
149
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
132
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
150
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 143... Line 161...
143
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
161
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
144
    tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
162
    tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
145
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
163
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
146
    tmpMap.put(_Fields.PURCHASE_ORDER, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrder", org.apache.thrift.TFieldRequirementType.DEFAULT, 
164
    tmpMap.put(_Fields.PURCHASE_ORDER, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrder", org.apache.thrift.TFieldRequirementType.DEFAULT, 
147
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
165
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
166
    tmpMap.put(_Fields.DOA_OUT_TIME_STAMP, new org.apache.thrift.meta_data.FieldMetaData("doaOutTimeStamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
167
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
168
    tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
169
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
170
    tmpMap.put(_Fields.NLC_PRICE, new org.apache.thrift.meta_data.FieldMetaData("nlcPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
171
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
148
    metaDataMap = Collections.unmodifiableMap(tmpMap);
172
    metaDataMap = Collections.unmodifiableMap(tmpMap);
149
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DoaOutInventoryItem.class, metaDataMap);
173
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DoaOutInventoryItem.class, metaDataMap);
150
  }
174
  }
151
 
175
 
152
  public DoaOutInventoryItem() {
176
  public DoaOutInventoryItem() {
Line 158... Line 182...
158
    String warehouseName,
182
    String warehouseName,
159
    long itemId,
183
    long itemId,
160
    String product,
184
    String product,
161
    String serialNumber,
185
    String serialNumber,
162
    String itemNumber,
186
    String itemNumber,
163
    String purchaseOrder)
187
    String purchaseOrder,
-
 
188
    long doaOutTimeStamp,
-
 
189
    double transferPrice,
-
 
190
    double nlcPrice)
164
  {
191
  {
165
    this();
192
    this();
166
    this.id = id;
193
    this.id = id;
167
    setIdIsSet(true);
194
    setIdIsSet(true);
168
    this.warehouseId = warehouseId;
195
    this.warehouseId = warehouseId;
Line 172... Line 199...
172
    setItemIdIsSet(true);
199
    setItemIdIsSet(true);
173
    this.product = product;
200
    this.product = product;
174
    this.serialNumber = serialNumber;
201
    this.serialNumber = serialNumber;
175
    this.itemNumber = itemNumber;
202
    this.itemNumber = itemNumber;
176
    this.purchaseOrder = purchaseOrder;
203
    this.purchaseOrder = purchaseOrder;
-
 
204
    this.doaOutTimeStamp = doaOutTimeStamp;
-
 
205
    setDoaOutTimeStampIsSet(true);
-
 
206
    this.transferPrice = transferPrice;
-
 
207
    setTransferPriceIsSet(true);
-
 
208
    this.nlcPrice = nlcPrice;
-
 
209
    setNlcPriceIsSet(true);
177
  }
210
  }
178
 
211
 
179
  /**
212
  /**
180
   * Performs a deep copy on <i>other</i>.
213
   * Performs a deep copy on <i>other</i>.
181
   */
214
   */
Line 198... Line 231...
198
      this.itemNumber = other.itemNumber;
231
      this.itemNumber = other.itemNumber;
199
    }
232
    }
200
    if (other.isSetPurchaseOrder()) {
233
    if (other.isSetPurchaseOrder()) {
201
      this.purchaseOrder = other.purchaseOrder;
234
      this.purchaseOrder = other.purchaseOrder;
202
    }
235
    }
-
 
236
    this.doaOutTimeStamp = other.doaOutTimeStamp;
-
 
237
    this.transferPrice = other.transferPrice;
-
 
238
    this.nlcPrice = other.nlcPrice;
203
  }
239
  }
204
 
240
 
205
  public DoaOutInventoryItem deepCopy() {
241
  public DoaOutInventoryItem deepCopy() {
206
    return new DoaOutInventoryItem(this);
242
    return new DoaOutInventoryItem(this);
207
  }
243
  }
Line 217... Line 253...
217
    this.itemId = 0;
253
    this.itemId = 0;
218
    this.product = null;
254
    this.product = null;
219
    this.serialNumber = null;
255
    this.serialNumber = null;
220
    this.itemNumber = null;
256
    this.itemNumber = null;
221
    this.purchaseOrder = null;
257
    this.purchaseOrder = null;
-
 
258
    setDoaOutTimeStampIsSet(false);
-
 
259
    this.doaOutTimeStamp = 0;
-
 
260
    setTransferPriceIsSet(false);
-
 
261
    this.transferPrice = 0.0;
-
 
262
    setNlcPriceIsSet(false);
-
 
263
    this.nlcPrice = 0.0;
222
  }
264
  }
223
 
265
 
224
  public long getId() {
266
  public long getId() {
225
    return this.id;
267
    return this.id;
226
  }
268
  }
Line 400... Line 442...
400
    if (!value) {
442
    if (!value) {
401
      this.purchaseOrder = null;
443
      this.purchaseOrder = null;
402
    }
444
    }
403
  }
445
  }
404
 
446
 
-
 
447
  public long getDoaOutTimeStamp() {
-
 
448
    return this.doaOutTimeStamp;
-
 
449
  }
-
 
450
 
-
 
451
  public void setDoaOutTimeStamp(long doaOutTimeStamp) {
-
 
452
    this.doaOutTimeStamp = doaOutTimeStamp;
-
 
453
    setDoaOutTimeStampIsSet(true);
-
 
454
  }
-
 
455
 
-
 
456
  public void unsetDoaOutTimeStamp() {
-
 
457
    __isset_bit_vector.clear(__DOAOUTTIMESTAMP_ISSET_ID);
-
 
458
  }
-
 
459
 
-
 
460
  /** Returns true if field doaOutTimeStamp is set (has been assigned a value) and false otherwise */
-
 
461
  public boolean isSetDoaOutTimeStamp() {
-
 
462
    return __isset_bit_vector.get(__DOAOUTTIMESTAMP_ISSET_ID);
-
 
463
  }
-
 
464
 
-
 
465
  public void setDoaOutTimeStampIsSet(boolean value) {
-
 
466
    __isset_bit_vector.set(__DOAOUTTIMESTAMP_ISSET_ID, value);
-
 
467
  }
-
 
468
 
-
 
469
  public double getTransferPrice() {
-
 
470
    return this.transferPrice;
-
 
471
  }
-
 
472
 
-
 
473
  public void setTransferPrice(double transferPrice) {
-
 
474
    this.transferPrice = transferPrice;
-
 
475
    setTransferPriceIsSet(true);
-
 
476
  }
-
 
477
 
-
 
478
  public void unsetTransferPrice() {
-
 
479
    __isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);
-
 
480
  }
-
 
481
 
-
 
482
  /** Returns true if field transferPrice is set (has been assigned a value) and false otherwise */
-
 
483
  public boolean isSetTransferPrice() {
-
 
484
    return __isset_bit_vector.get(__TRANSFERPRICE_ISSET_ID);
-
 
485
  }
-
 
486
 
-
 
487
  public void setTransferPriceIsSet(boolean value) {
-
 
488
    __isset_bit_vector.set(__TRANSFERPRICE_ISSET_ID, value);
-
 
489
  }
-
 
490
 
-
 
491
  public double getNlcPrice() {
-
 
492
    return this.nlcPrice;
-
 
493
  }
-
 
494
 
-
 
495
  public void setNlcPrice(double nlcPrice) {
-
 
496
    this.nlcPrice = nlcPrice;
-
 
497
    setNlcPriceIsSet(true);
-
 
498
  }
-
 
499
 
-
 
500
  public void unsetNlcPrice() {
-
 
501
    __isset_bit_vector.clear(__NLCPRICE_ISSET_ID);
-
 
502
  }
-
 
503
 
-
 
504
  /** Returns true if field nlcPrice is set (has been assigned a value) and false otherwise */
-
 
505
  public boolean isSetNlcPrice() {
-
 
506
    return __isset_bit_vector.get(__NLCPRICE_ISSET_ID);
-
 
507
  }
-
 
508
 
-
 
509
  public void setNlcPriceIsSet(boolean value) {
-
 
510
    __isset_bit_vector.set(__NLCPRICE_ISSET_ID, value);
-
 
511
  }
-
 
512
 
405
  public void setFieldValue(_Fields field, Object value) {
513
  public void setFieldValue(_Fields field, Object value) {
406
    switch (field) {
514
    switch (field) {
407
    case ID:
515
    case ID:
408
      if (value == null) {
516
      if (value == null) {
409
        unsetId();
517
        unsetId();
Line 466... Line 574...
466
      } else {
574
      } else {
467
        setPurchaseOrder((String)value);
575
        setPurchaseOrder((String)value);
468
      }
576
      }
469
      break;
577
      break;
470
 
578
 
-
 
579
    case DOA_OUT_TIME_STAMP:
-
 
580
      if (value == null) {
-
 
581
        unsetDoaOutTimeStamp();
-
 
582
      } else {
-
 
583
        setDoaOutTimeStamp((Long)value);
-
 
584
      }
-
 
585
      break;
-
 
586
 
-
 
587
    case TRANSFER_PRICE:
-
 
588
      if (value == null) {
-
 
589
        unsetTransferPrice();
-
 
590
      } else {
-
 
591
        setTransferPrice((Double)value);
-
 
592
      }
-
 
593
      break;
-
 
594
 
-
 
595
    case NLC_PRICE:
-
 
596
      if (value == null) {
-
 
597
        unsetNlcPrice();
-
 
598
      } else {
-
 
599
        setNlcPrice((Double)value);
-
 
600
      }
-
 
601
      break;
-
 
602
 
471
    }
603
    }
472
  }
604
  }
473
 
605
 
474
  public Object getFieldValue(_Fields field) {
606
  public Object getFieldValue(_Fields field) {
475
    switch (field) {
607
    switch (field) {
Line 495... Line 627...
495
      return getItemNumber();
627
      return getItemNumber();
496
 
628
 
497
    case PURCHASE_ORDER:
629
    case PURCHASE_ORDER:
498
      return getPurchaseOrder();
630
      return getPurchaseOrder();
499
 
631
 
-
 
632
    case DOA_OUT_TIME_STAMP:
-
 
633
      return Long.valueOf(getDoaOutTimeStamp());
-
 
634
 
-
 
635
    case TRANSFER_PRICE:
-
 
636
      return Double.valueOf(getTransferPrice());
-
 
637
 
-
 
638
    case NLC_PRICE:
-
 
639
      return Double.valueOf(getNlcPrice());
-
 
640
 
500
    }
641
    }
501
    throw new IllegalStateException();
642
    throw new IllegalStateException();
502
  }
643
  }
503
 
644
 
504
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
645
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 522... Line 663...
522
      return isSetSerialNumber();
663
      return isSetSerialNumber();
523
    case ITEM_NUMBER:
664
    case ITEM_NUMBER:
524
      return isSetItemNumber();
665
      return isSetItemNumber();
525
    case PURCHASE_ORDER:
666
    case PURCHASE_ORDER:
526
      return isSetPurchaseOrder();
667
      return isSetPurchaseOrder();
-
 
668
    case DOA_OUT_TIME_STAMP:
-
 
669
      return isSetDoaOutTimeStamp();
-
 
670
    case TRANSFER_PRICE:
-
 
671
      return isSetTransferPrice();
-
 
672
    case NLC_PRICE:
-
 
673
      return isSetNlcPrice();
527
    }
674
    }
528
    throw new IllegalStateException();
675
    throw new IllegalStateException();
529
  }
676
  }
530
 
677
 
531
  @Override
678
  @Override
Line 611... Line 758...
611
        return false;
758
        return false;
612
      if (!this.purchaseOrder.equals(that.purchaseOrder))
759
      if (!this.purchaseOrder.equals(that.purchaseOrder))
613
        return false;
760
        return false;
614
    }
761
    }
615
 
762
 
-
 
763
    boolean this_present_doaOutTimeStamp = true;
-
 
764
    boolean that_present_doaOutTimeStamp = true;
-
 
765
    if (this_present_doaOutTimeStamp || that_present_doaOutTimeStamp) {
-
 
766
      if (!(this_present_doaOutTimeStamp && that_present_doaOutTimeStamp))
-
 
767
        return false;
-
 
768
      if (this.doaOutTimeStamp != that.doaOutTimeStamp)
-
 
769
        return false;
-
 
770
    }
-
 
771
 
-
 
772
    boolean this_present_transferPrice = true;
-
 
773
    boolean that_present_transferPrice = true;
-
 
774
    if (this_present_transferPrice || that_present_transferPrice) {
-
 
775
      if (!(this_present_transferPrice && that_present_transferPrice))
-
 
776
        return false;
-
 
777
      if (this.transferPrice != that.transferPrice)
-
 
778
        return false;
-
 
779
    }
-
 
780
 
-
 
781
    boolean this_present_nlcPrice = true;
-
 
782
    boolean that_present_nlcPrice = true;
-
 
783
    if (this_present_nlcPrice || that_present_nlcPrice) {
-
 
784
      if (!(this_present_nlcPrice && that_present_nlcPrice))
-
 
785
        return false;
-
 
786
      if (this.nlcPrice != that.nlcPrice)
-
 
787
        return false;
-
 
788
    }
-
 
789
 
616
    return true;
790
    return true;
617
  }
791
  }
618
 
792
 
619
  @Override
793
  @Override
620
  public int hashCode() {
794
  public int hashCode() {
Line 707... Line 881...
707
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrder, typedOther.purchaseOrder);
881
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrder, typedOther.purchaseOrder);
708
      if (lastComparison != 0) {
882
      if (lastComparison != 0) {
709
        return lastComparison;
883
        return lastComparison;
710
      }
884
      }
711
    }
885
    }
-
 
886
    lastComparison = Boolean.valueOf(isSetDoaOutTimeStamp()).compareTo(typedOther.isSetDoaOutTimeStamp());
-
 
887
    if (lastComparison != 0) {
-
 
888
      return lastComparison;
-
 
889
    }
-
 
890
    if (isSetDoaOutTimeStamp()) {
-
 
891
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.doaOutTimeStamp, typedOther.doaOutTimeStamp);
-
 
892
      if (lastComparison != 0) {
-
 
893
        return lastComparison;
-
 
894
      }
-
 
895
    }
-
 
896
    lastComparison = Boolean.valueOf(isSetTransferPrice()).compareTo(typedOther.isSetTransferPrice());
-
 
897
    if (lastComparison != 0) {
-
 
898
      return lastComparison;
-
 
899
    }
-
 
900
    if (isSetTransferPrice()) {
-
 
901
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferPrice, typedOther.transferPrice);
-
 
902
      if (lastComparison != 0) {
-
 
903
        return lastComparison;
-
 
904
      }
-
 
905
    }
-
 
906
    lastComparison = Boolean.valueOf(isSetNlcPrice()).compareTo(typedOther.isSetNlcPrice());
-
 
907
    if (lastComparison != 0) {
-
 
908
      return lastComparison;
-
 
909
    }
-
 
910
    if (isSetNlcPrice()) {
-
 
911
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlcPrice, typedOther.nlcPrice);
-
 
912
      if (lastComparison != 0) {
-
 
913
        return lastComparison;
-
 
914
      }
-
 
915
    }
712
    return 0;
916
    return 0;
713
  }
917
  }
714
 
918
 
715
  public _Fields fieldForId(int fieldId) {
919
  public _Fields fieldForId(int fieldId) {
716
    return _Fields.findByThriftId(fieldId);
920
    return _Fields.findByThriftId(fieldId);
Line 783... Line 987...
783
            this.purchaseOrder = iprot.readString();
987
            this.purchaseOrder = iprot.readString();
784
          } else { 
988
          } else { 
785
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
989
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
786
          }
990
          }
787
          break;
991
          break;
-
 
992
        case 9: // DOA_OUT_TIME_STAMP
-
 
993
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
994
            this.doaOutTimeStamp = iprot.readI64();
-
 
995
            setDoaOutTimeStampIsSet(true);
-
 
996
          } else { 
-
 
997
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
998
          }
-
 
999
          break;
-
 
1000
        case 10: // TRANSFER_PRICE
-
 
1001
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
1002
            this.transferPrice = iprot.readDouble();
-
 
1003
            setTransferPriceIsSet(true);
-
 
1004
          } else { 
-
 
1005
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1006
          }
-
 
1007
          break;
-
 
1008
        case 11: // NLC_PRICE
-
 
1009
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
1010
            this.nlcPrice = iprot.readDouble();
-
 
1011
            setNlcPriceIsSet(true);
-
 
1012
          } else { 
-
 
1013
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1014
          }
-
 
1015
          break;
788
        default:
1016
        default:
789
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1017
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
790
      }
1018
      }
791
      iprot.readFieldEnd();
1019
      iprot.readFieldEnd();
792
    }
1020
    }
Line 830... Line 1058...
830
    if (this.purchaseOrder != null) {
1058
    if (this.purchaseOrder != null) {
831
      oprot.writeFieldBegin(PURCHASE_ORDER_FIELD_DESC);
1059
      oprot.writeFieldBegin(PURCHASE_ORDER_FIELD_DESC);
832
      oprot.writeString(this.purchaseOrder);
1060
      oprot.writeString(this.purchaseOrder);
833
      oprot.writeFieldEnd();
1061
      oprot.writeFieldEnd();
834
    }
1062
    }
-
 
1063
    oprot.writeFieldBegin(DOA_OUT_TIME_STAMP_FIELD_DESC);
-
 
1064
    oprot.writeI64(this.doaOutTimeStamp);
-
 
1065
    oprot.writeFieldEnd();
-
 
1066
    oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
-
 
1067
    oprot.writeDouble(this.transferPrice);
-
 
1068
    oprot.writeFieldEnd();
-
 
1069
    oprot.writeFieldBegin(NLC_PRICE_FIELD_DESC);
-
 
1070
    oprot.writeDouble(this.nlcPrice);
-
 
1071
    oprot.writeFieldEnd();
835
    oprot.writeFieldStop();
1072
    oprot.writeFieldStop();
836
    oprot.writeStructEnd();
1073
    oprot.writeStructEnd();
837
  }
1074
  }
838
 
1075
 
839
  @Override
1076
  @Override
Line 890... Line 1127...
890
      sb.append("null");
1127
      sb.append("null");
891
    } else {
1128
    } else {
892
      sb.append(this.purchaseOrder);
1129
      sb.append(this.purchaseOrder);
893
    }
1130
    }
894
    first = false;
1131
    first = false;
-
 
1132
    if (!first) sb.append(", ");
-
 
1133
    sb.append("doaOutTimeStamp:");
-
 
1134
    sb.append(this.doaOutTimeStamp);
-
 
1135
    first = false;
-
 
1136
    if (!first) sb.append(", ");
-
 
1137
    sb.append("transferPrice:");
-
 
1138
    sb.append(this.transferPrice);
-
 
1139
    first = false;
-
 
1140
    if (!first) sb.append(", ");
-
 
1141
    sb.append("nlcPrice:");
-
 
1142
    sb.append(this.nlcPrice);
-
 
1143
    first = false;
895
    sb.append(")");
1144
    sb.append(")");
896
    return sb.toString();
1145
    return sb.toString();
897
  }
1146
  }
898
 
1147
 
899
  public void validate() throws org.apache.thrift.TException {
1148
  public void validate() throws org.apache.thrift.TException {