Subversion Repositories SmartDukaan

Rev

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

Rev 6361 Rev 6494
Line 25... Line 25...
25
 
25
 
26
  private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField PO_CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("poCreatedAt", org.apache.thrift.protocol.TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField PO_CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("poCreatedAt", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField SUPPLIER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierName", org.apache.thrift.protocol.TType.STRING, (short)3);
28
  private static final org.apache.thrift.protocol.TField SUPPLIER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("supplierName", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField INVOICE_NUMBERS_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumbers", org.apache.thrift.protocol.TType.STRING, (short)4);
29
  private static final org.apache.thrift.protocol.TField INVOICE_NUMBERS_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumbers", org.apache.thrift.protocol.TType.STRING, (short)4);
-
 
30
  private static final org.apache.thrift.protocol.TField RECEIVED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("receivedBy", org.apache.thrift.protocol.TType.STRING, (short)5);
30
  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)5);
31
  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)6);
31
  private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)6);
32
  private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)7);
32
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)8);
33
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)9);
34
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)9);
35
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)10);
35
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
36
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)11);
36
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)11);
37
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)12);
37
  private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)12);
38
  private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)13);
38
  private static final org.apache.thrift.protocol.TField PURCHASED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("purchasedAt", org.apache.thrift.protocol.TType.I64, (short)13);
39
  private static final org.apache.thrift.protocol.TField PURCHASED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("purchasedAt", org.apache.thrift.protocol.TType.I64, (short)14);
39
 
40
 
40
  private long purchaseOrderId; // required
41
  private long purchaseOrderId; // required
41
  private long poCreatedAt; // required
42
  private long poCreatedAt; // required
42
  private String supplierName; // required
43
  private String supplierName; // required
43
  private String invoiceNumbers; // required
44
  private String invoiceNumbers; // required
-
 
45
  private String receivedBy; // required
44
  private long itemId; // required
46
  private long itemId; // required
45
  private String brand; // required
47
  private String brand; // required
46
  private String modelName; // required
48
  private String modelName; // required
47
  private String modelNumber; // required
49
  private String modelNumber; // required
48
  private String color; // required
50
  private String color; // required
Line 55... Line 57...
55
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56
    PURCHASE_ORDER_ID((short)1, "purchaseOrderId"),
58
    PURCHASE_ORDER_ID((short)1, "purchaseOrderId"),
57
    PO_CREATED_AT((short)2, "poCreatedAt"),
59
    PO_CREATED_AT((short)2, "poCreatedAt"),
58
    SUPPLIER_NAME((short)3, "supplierName"),
60
    SUPPLIER_NAME((short)3, "supplierName"),
59
    INVOICE_NUMBERS((short)4, "invoiceNumbers"),
61
    INVOICE_NUMBERS((short)4, "invoiceNumbers"),
-
 
62
    RECEIVED_BY((short)5, "receivedBy"),
60
    ITEM_ID((short)5, "itemId"),
63
    ITEM_ID((short)6, "itemId"),
61
    BRAND((short)6, "brand"),
64
    BRAND((short)7, "brand"),
62
    MODEL_NAME((short)7, "modelName"),
65
    MODEL_NAME((short)8, "modelName"),
63
    MODEL_NUMBER((short)8, "modelNumber"),
66
    MODEL_NUMBER((short)9, "modelNumber"),
64
    COLOR((short)9, "color"),
67
    COLOR((short)10, "color"),
65
    UNIT_PRICE((short)10, "unitPrice"),
68
    UNIT_PRICE((short)11, "unitPrice"),
66
    QUANTITY((short)11, "quantity"),
69
    QUANTITY((short)12, "quantity"),
67
    PURCHASE_ID((short)12, "purchaseId"),
70
    PURCHASE_ID((short)13, "purchaseId"),
68
    PURCHASED_AT((short)13, "purchasedAt");
71
    PURCHASED_AT((short)14, "purchasedAt");
69
 
72
 
70
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
73
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
71
 
74
 
72
    static {
75
    static {
73
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
76
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 86... Line 89...
86
          return PO_CREATED_AT;
89
          return PO_CREATED_AT;
87
        case 3: // SUPPLIER_NAME
90
        case 3: // SUPPLIER_NAME
88
          return SUPPLIER_NAME;
91
          return SUPPLIER_NAME;
89
        case 4: // INVOICE_NUMBERS
92
        case 4: // INVOICE_NUMBERS
90
          return INVOICE_NUMBERS;
93
          return INVOICE_NUMBERS;
-
 
94
        case 5: // RECEIVED_BY
-
 
95
          return RECEIVED_BY;
91
        case 5: // ITEM_ID
96
        case 6: // ITEM_ID
92
          return ITEM_ID;
97
          return ITEM_ID;
93
        case 6: // BRAND
98
        case 7: // BRAND
94
          return BRAND;
99
          return BRAND;
95
        case 7: // MODEL_NAME
100
        case 8: // MODEL_NAME
96
          return MODEL_NAME;
101
          return MODEL_NAME;
97
        case 8: // MODEL_NUMBER
102
        case 9: // MODEL_NUMBER
98
          return MODEL_NUMBER;
103
          return MODEL_NUMBER;
99
        case 9: // COLOR
104
        case 10: // COLOR
100
          return COLOR;
105
          return COLOR;
101
        case 10: // UNIT_PRICE
106
        case 11: // UNIT_PRICE
102
          return UNIT_PRICE;
107
          return UNIT_PRICE;
103
        case 11: // QUANTITY
108
        case 12: // QUANTITY
104
          return QUANTITY;
109
          return QUANTITY;
105
        case 12: // PURCHASE_ID
110
        case 13: // PURCHASE_ID
106
          return PURCHASE_ID;
111
          return PURCHASE_ID;
107
        case 13: // PURCHASED_AT
112
        case 14: // PURCHASED_AT
108
          return PURCHASED_AT;
113
          return PURCHASED_AT;
109
        default:
114
        default:
110
          return null;
115
          return null;
111
      }
116
      }
112
    }
117
    }
Line 164... Line 169...
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
169
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
165
    tmpMap.put(_Fields.SUPPLIER_NAME, new org.apache.thrift.meta_data.FieldMetaData("supplierName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
170
    tmpMap.put(_Fields.SUPPLIER_NAME, new org.apache.thrift.meta_data.FieldMetaData("supplierName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
171
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
167
    tmpMap.put(_Fields.INVOICE_NUMBERS, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumbers", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172
    tmpMap.put(_Fields.INVOICE_NUMBERS, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumbers", org.apache.thrift.TFieldRequirementType.DEFAULT, 
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
173
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
174
    tmpMap.put(_Fields.RECEIVED_BY, new org.apache.thrift.meta_data.FieldMetaData("receivedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
175
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
169
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
176
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
177
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
171
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
178
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
179
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
173
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
180
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 194... Line 201...
194
  public DetailedPurchaseScan(
201
  public DetailedPurchaseScan(
195
    long purchaseOrderId,
202
    long purchaseOrderId,
196
    long poCreatedAt,
203
    long poCreatedAt,
197
    String supplierName,
204
    String supplierName,
198
    String invoiceNumbers,
205
    String invoiceNumbers,
-
 
206
    String receivedBy,
199
    long itemId,
207
    long itemId,
200
    String brand,
208
    String brand,
201
    String modelName,
209
    String modelName,
202
    String modelNumber,
210
    String modelNumber,
203
    String color,
211
    String color,
Line 211... Line 219...
211
    setPurchaseOrderIdIsSet(true);
219
    setPurchaseOrderIdIsSet(true);
212
    this.poCreatedAt = poCreatedAt;
220
    this.poCreatedAt = poCreatedAt;
213
    setPoCreatedAtIsSet(true);
221
    setPoCreatedAtIsSet(true);
214
    this.supplierName = supplierName;
222
    this.supplierName = supplierName;
215
    this.invoiceNumbers = invoiceNumbers;
223
    this.invoiceNumbers = invoiceNumbers;
-
 
224
    this.receivedBy = receivedBy;
216
    this.itemId = itemId;
225
    this.itemId = itemId;
217
    setItemIdIsSet(true);
226
    setItemIdIsSet(true);
218
    this.brand = brand;
227
    this.brand = brand;
219
    this.modelName = modelName;
228
    this.modelName = modelName;
220
    this.modelNumber = modelNumber;
229
    this.modelNumber = modelNumber;
Line 241... Line 250...
241
      this.supplierName = other.supplierName;
250
      this.supplierName = other.supplierName;
242
    }
251
    }
243
    if (other.isSetInvoiceNumbers()) {
252
    if (other.isSetInvoiceNumbers()) {
244
      this.invoiceNumbers = other.invoiceNumbers;
253
      this.invoiceNumbers = other.invoiceNumbers;
245
    }
254
    }
-
 
255
    if (other.isSetReceivedBy()) {
-
 
256
      this.receivedBy = other.receivedBy;
-
 
257
    }
246
    this.itemId = other.itemId;
258
    this.itemId = other.itemId;
247
    if (other.isSetBrand()) {
259
    if (other.isSetBrand()) {
248
      this.brand = other.brand;
260
      this.brand = other.brand;
249
    }
261
    }
250
    if (other.isSetModelName()) {
262
    if (other.isSetModelName()) {
Line 272... Line 284...
272
    this.purchaseOrderId = 0;
284
    this.purchaseOrderId = 0;
273
    setPoCreatedAtIsSet(false);
285
    setPoCreatedAtIsSet(false);
274
    this.poCreatedAt = 0;
286
    this.poCreatedAt = 0;
275
    this.supplierName = null;
287
    this.supplierName = null;
276
    this.invoiceNumbers = null;
288
    this.invoiceNumbers = null;
-
 
289
    this.receivedBy = null;
277
    setItemIdIsSet(false);
290
    setItemIdIsSet(false);
278
    this.itemId = 0;
291
    this.itemId = 0;
279
    this.brand = null;
292
    this.brand = null;
280
    this.modelName = null;
293
    this.modelName = null;
281
    this.modelNumber = null;
294
    this.modelNumber = null;
Line 378... Line 391...
378
    if (!value) {
391
    if (!value) {
379
      this.invoiceNumbers = null;
392
      this.invoiceNumbers = null;
380
    }
393
    }
381
  }
394
  }
382
 
395
 
-
 
396
  public String getReceivedBy() {
-
 
397
    return this.receivedBy;
-
 
398
  }
-
 
399
 
-
 
400
  public void setReceivedBy(String receivedBy) {
-
 
401
    this.receivedBy = receivedBy;
-
 
402
  }
-
 
403
 
-
 
404
  public void unsetReceivedBy() {
-
 
405
    this.receivedBy = null;
-
 
406
  }
-
 
407
 
-
 
408
  /** Returns true if field receivedBy is set (has been assigned a value) and false otherwise */
-
 
409
  public boolean isSetReceivedBy() {
-
 
410
    return this.receivedBy != null;
-
 
411
  }
-
 
412
 
-
 
413
  public void setReceivedByIsSet(boolean value) {
-
 
414
    if (!value) {
-
 
415
      this.receivedBy = null;
-
 
416
    }
-
 
417
  }
-
 
418
 
383
  public long getItemId() {
419
  public long getItemId() {
384
    return this.itemId;
420
    return this.itemId;
385
  }
421
  }
386
 
422
 
387
  public void setItemId(long itemId) {
423
  public void setItemId(long itemId) {
Line 614... Line 650...
614
      } else {
650
      } else {
615
        setInvoiceNumbers((String)value);
651
        setInvoiceNumbers((String)value);
616
      }
652
      }
617
      break;
653
      break;
618
 
654
 
-
 
655
    case RECEIVED_BY:
-
 
656
      if (value == null) {
-
 
657
        unsetReceivedBy();
-
 
658
      } else {
-
 
659
        setReceivedBy((String)value);
-
 
660
      }
-
 
661
      break;
-
 
662
 
619
    case ITEM_ID:
663
    case ITEM_ID:
620
      if (value == null) {
664
      if (value == null) {
621
        unsetItemId();
665
        unsetItemId();
622
      } else {
666
      } else {
623
        setItemId((Long)value);
667
        setItemId((Long)value);
Line 703... Line 747...
703
      return getSupplierName();
747
      return getSupplierName();
704
 
748
 
705
    case INVOICE_NUMBERS:
749
    case INVOICE_NUMBERS:
706
      return getInvoiceNumbers();
750
      return getInvoiceNumbers();
707
 
751
 
-
 
752
    case RECEIVED_BY:
-
 
753
      return getReceivedBy();
-
 
754
 
708
    case ITEM_ID:
755
    case ITEM_ID:
709
      return Long.valueOf(getItemId());
756
      return Long.valueOf(getItemId());
710
 
757
 
711
    case BRAND:
758
    case BRAND:
712
      return getBrand();
759
      return getBrand();
Line 749... Line 796...
749
      return isSetPoCreatedAt();
796
      return isSetPoCreatedAt();
750
    case SUPPLIER_NAME:
797
    case SUPPLIER_NAME:
751
      return isSetSupplierName();
798
      return isSetSupplierName();
752
    case INVOICE_NUMBERS:
799
    case INVOICE_NUMBERS:
753
      return isSetInvoiceNumbers();
800
      return isSetInvoiceNumbers();
-
 
801
    case RECEIVED_BY:
-
 
802
      return isSetReceivedBy();
754
    case ITEM_ID:
803
    case ITEM_ID:
755
      return isSetItemId();
804
      return isSetItemId();
756
    case BRAND:
805
    case BRAND:
757
      return isSetBrand();
806
      return isSetBrand();
758
    case MODEL_NAME:
807
    case MODEL_NAME:
Line 820... Line 869...
820
        return false;
869
        return false;
821
      if (!this.invoiceNumbers.equals(that.invoiceNumbers))
870
      if (!this.invoiceNumbers.equals(that.invoiceNumbers))
822
        return false;
871
        return false;
823
    }
872
    }
824
 
873
 
-
 
874
    boolean this_present_receivedBy = true && this.isSetReceivedBy();
-
 
875
    boolean that_present_receivedBy = true && that.isSetReceivedBy();
-
 
876
    if (this_present_receivedBy || that_present_receivedBy) {
-
 
877
      if (!(this_present_receivedBy && that_present_receivedBy))
-
 
878
        return false;
-
 
879
      if (!this.receivedBy.equals(that.receivedBy))
-
 
880
        return false;
-
 
881
    }
-
 
882
 
825
    boolean this_present_itemId = true;
883
    boolean this_present_itemId = true;
826
    boolean that_present_itemId = true;
884
    boolean that_present_itemId = true;
827
    if (this_present_itemId || that_present_itemId) {
885
    if (this_present_itemId || that_present_itemId) {
828
      if (!(this_present_itemId && that_present_itemId))
886
      if (!(this_present_itemId && that_present_itemId))
829
        return false;
887
        return false;
Line 957... Line 1015...
957
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumbers, typedOther.invoiceNumbers);
1015
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumbers, typedOther.invoiceNumbers);
958
      if (lastComparison != 0) {
1016
      if (lastComparison != 0) {
959
        return lastComparison;
1017
        return lastComparison;
960
      }
1018
      }
961
    }
1019
    }
-
 
1020
    lastComparison = Boolean.valueOf(isSetReceivedBy()).compareTo(typedOther.isSetReceivedBy());
-
 
1021
    if (lastComparison != 0) {
-
 
1022
      return lastComparison;
-
 
1023
    }
-
 
1024
    if (isSetReceivedBy()) {
-
 
1025
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receivedBy, typedOther.receivedBy);
-
 
1026
      if (lastComparison != 0) {
-
 
1027
        return lastComparison;
-
 
1028
      }
-
 
1029
    }
962
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
1030
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
963
    if (lastComparison != 0) {
1031
    if (lastComparison != 0) {
964
      return lastComparison;
1032
      return lastComparison;
965
    }
1033
    }
966
    if (isSetItemId()) {
1034
    if (isSetItemId()) {
Line 1094... Line 1162...
1094
            this.invoiceNumbers = iprot.readString();
1162
            this.invoiceNumbers = iprot.readString();
1095
          } else { 
1163
          } else { 
1096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1097
          }
1165
          }
1098
          break;
1166
          break;
-
 
1167
        case 5: // RECEIVED_BY
-
 
1168
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1169
            this.receivedBy = iprot.readString();
-
 
1170
          } else { 
-
 
1171
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1172
          }
-
 
1173
          break;
1099
        case 5: // ITEM_ID
1174
        case 6: // ITEM_ID
1100
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1175
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1101
            this.itemId = iprot.readI64();
1176
            this.itemId = iprot.readI64();
1102
            setItemIdIsSet(true);
1177
            setItemIdIsSet(true);
1103
          } else { 
1178
          } else { 
1104
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1179
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1105
          }
1180
          }
1106
          break;
1181
          break;
1107
        case 6: // BRAND
1182
        case 7: // BRAND
1108
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1183
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1109
            this.brand = iprot.readString();
1184
            this.brand = iprot.readString();
1110
          } else { 
1185
          } else { 
1111
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1186
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1112
          }
1187
          }
1113
          break;
1188
          break;
1114
        case 7: // MODEL_NAME
1189
        case 8: // MODEL_NAME
1115
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1190
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1116
            this.modelName = iprot.readString();
1191
            this.modelName = iprot.readString();
1117
          } else { 
1192
          } else { 
1118
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1193
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1119
          }
1194
          }
1120
          break;
1195
          break;
1121
        case 8: // MODEL_NUMBER
1196
        case 9: // MODEL_NUMBER
1122
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1197
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1123
            this.modelNumber = iprot.readString();
1198
            this.modelNumber = iprot.readString();
1124
          } else { 
1199
          } else { 
1125
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1200
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1126
          }
1201
          }
1127
          break;
1202
          break;
1128
        case 9: // COLOR
1203
        case 10: // COLOR
1129
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1204
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1130
            this.color = iprot.readString();
1205
            this.color = iprot.readString();
1131
          } else { 
1206
          } else { 
1132
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1207
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1133
          }
1208
          }
1134
          break;
1209
          break;
1135
        case 10: // UNIT_PRICE
1210
        case 11: // UNIT_PRICE
1136
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1211
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1137
            this.unitPrice = iprot.readDouble();
1212
            this.unitPrice = iprot.readDouble();
1138
            setUnitPriceIsSet(true);
1213
            setUnitPriceIsSet(true);
1139
          } else { 
1214
          } else { 
1140
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1215
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1141
          }
1216
          }
1142
          break;
1217
          break;
1143
        case 11: // QUANTITY
1218
        case 12: // QUANTITY
1144
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1219
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1145
            this.quantity = iprot.readI64();
1220
            this.quantity = iprot.readI64();
1146
            setQuantityIsSet(true);
1221
            setQuantityIsSet(true);
1147
          } else { 
1222
          } else { 
1148
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1223
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1149
          }
1224
          }
1150
          break;
1225
          break;
1151
        case 12: // PURCHASE_ID
1226
        case 13: // PURCHASE_ID
1152
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1227
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1153
            this.purchaseId = iprot.readI64();
1228
            this.purchaseId = iprot.readI64();
1154
            setPurchaseIdIsSet(true);
1229
            setPurchaseIdIsSet(true);
1155
          } else { 
1230
          } else { 
1156
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1231
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1157
          }
1232
          }
1158
          break;
1233
          break;
1159
        case 13: // PURCHASED_AT
1234
        case 14: // PURCHASED_AT
1160
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1235
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1161
            this.purchasedAt = iprot.readI64();
1236
            this.purchasedAt = iprot.readI64();
1162
            setPurchasedAtIsSet(true);
1237
            setPurchasedAtIsSet(true);
1163
          } else { 
1238
          } else { 
1164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1239
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 1191... Line 1266...
1191
    if (this.invoiceNumbers != null) {
1266
    if (this.invoiceNumbers != null) {
1192
      oprot.writeFieldBegin(INVOICE_NUMBERS_FIELD_DESC);
1267
      oprot.writeFieldBegin(INVOICE_NUMBERS_FIELD_DESC);
1193
      oprot.writeString(this.invoiceNumbers);
1268
      oprot.writeString(this.invoiceNumbers);
1194
      oprot.writeFieldEnd();
1269
      oprot.writeFieldEnd();
1195
    }
1270
    }
-
 
1271
    if (this.receivedBy != null) {
-
 
1272
      oprot.writeFieldBegin(RECEIVED_BY_FIELD_DESC);
-
 
1273
      oprot.writeString(this.receivedBy);
-
 
1274
      oprot.writeFieldEnd();
-
 
1275
    }
1196
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
1276
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
1197
    oprot.writeI64(this.itemId);
1277
    oprot.writeI64(this.itemId);
1198
    oprot.writeFieldEnd();
1278
    oprot.writeFieldEnd();
1199
    if (this.brand != null) {
1279
    if (this.brand != null) {
1200
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
1280
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
Line 1259... Line 1339...
1259
    } else {
1339
    } else {
1260
      sb.append(this.invoiceNumbers);
1340
      sb.append(this.invoiceNumbers);
1261
    }
1341
    }
1262
    first = false;
1342
    first = false;
1263
    if (!first) sb.append(", ");
1343
    if (!first) sb.append(", ");
-
 
1344
    sb.append("receivedBy:");
-
 
1345
    if (this.receivedBy == null) {
-
 
1346
      sb.append("null");
-
 
1347
    } else {
-
 
1348
      sb.append(this.receivedBy);
-
 
1349
    }
-
 
1350
    first = false;
-
 
1351
    if (!first) sb.append(", ");
1264
    sb.append("itemId:");
1352
    sb.append("itemId:");
1265
    sb.append(this.itemId);
1353
    sb.append(this.itemId);
1266
    first = false;
1354
    first = false;
1267
    if (!first) sb.append(", ");
1355
    if (!first) sb.append(", ");
1268
    sb.append("brand:");
1356
    sb.append("brand:");