Subversion Repositories SmartDukaan

Rev

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

Rev 1013 Rev 1329
Line 29... Line 29...
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
30
  private static final TField PRODUCT_GROUP_FIELD_DESC = new TField("productGroup", TType.STRING, (short)2);
30
  private static final TField PRODUCT_GROUP_FIELD_DESC = new TField("productGroup", TType.STRING, (short)2);
31
  private static final TField BRAND_FIELD_DESC = new TField("brand", TType.STRING, (short)3);
31
  private static final TField BRAND_FIELD_DESC = new TField("brand", TType.STRING, (short)3);
32
  private static final TField MODEL_NUMBER_FIELD_DESC = new TField("modelNumber", TType.STRING, (short)4);
32
  private static final TField MODEL_NUMBER_FIELD_DESC = new TField("modelNumber", TType.STRING, (short)4);
33
  private static final TField MODEL_NAME_FIELD_DESC = new TField("modelName", TType.STRING, (short)5);
33
  private static final TField MODEL_NAME_FIELD_DESC = new TField("modelName", TType.STRING, (short)5);
34
  private static final TField CATEGORY_FIELD_DESC = new TField("category", TType.I64, (short)6);
34
  private static final TField COLOR_FIELD_DESC = new TField("color", TType.STRING, (short)6);
35
  private static final TField COMMENTS_FIELD_DESC = new TField("comments", TType.STRING, (short)7);
35
  private static final TField CATEGORY_FIELD_DESC = new TField("category", TType.I64, (short)7);
36
  private static final TField CATALOG_ITEM_ID_FIELD_DESC = new TField("catalogItemId", TType.I64, (short)8);
36
  private static final TField COMMENTS_FIELD_DESC = new TField("comments", TType.STRING, (short)8);
37
  private static final TField VENDOR_ITEM_ID_FIELD_DESC = new TField("vendorItemId", TType.STRING, (short)9);
37
  private static final TField CATALOG_ITEM_ID_FIELD_DESC = new TField("catalogItemId", TType.I64, (short)9);
38
  private static final TField FEATURE_ID_FIELD_DESC = new TField("featureId", TType.I64, (short)10);
38
  private static final TField FEATURE_ID_FIELD_DESC = new TField("featureId", TType.I64, (short)10);
39
  private static final TField FEATURE_DESCRIPTION_FIELD_DESC = new TField("featureDescription", TType.STRING, (short)11);
39
  private static final TField FEATURE_DESCRIPTION_FIELD_DESC = new TField("featureDescription", TType.STRING, (short)11);
40
  private static final TField ITEM_INVENTORY_FIELD_DESC = new TField("itemInventory", TType.STRUCT, (short)12);
40
  private static final TField ITEM_INVENTORY_FIELD_DESC = new TField("itemInventory", TType.STRUCT, (short)12);
41
  private static final TField MRP_FIELD_DESC = new TField("mrp", TType.DOUBLE, (short)13);
41
  private static final TField MRP_FIELD_DESC = new TField("mrp", TType.DOUBLE, (short)13);
42
  private static final TField MOP_FIELD_DESC = new TField("mop", TType.DOUBLE, (short)14);
42
  private static final TField MOP_FIELD_DESC = new TField("mop", TType.DOUBLE, (short)14);
Line 50... Line 50...
50
  private static final TField OTHER_INFO_FIELD_DESC = new TField("otherInfo", TType.MAP, (short)22);
50
  private static final TField OTHER_INFO_FIELD_DESC = new TField("otherInfo", TType.MAP, (short)22);
51
  private static final TField BEST_DEAL_TEXT_FIELD_DESC = new TField("bestDealText", TType.STRING, (short)23);
51
  private static final TField BEST_DEAL_TEXT_FIELD_DESC = new TField("bestDealText", TType.STRING, (short)23);
52
  private static final TField BEST_DEAL_VALUE_FIELD_DESC = new TField("bestDealValue", TType.DOUBLE, (short)24);
52
  private static final TField BEST_DEAL_VALUE_FIELD_DESC = new TField("bestDealValue", TType.DOUBLE, (short)24);
53
  private static final TField DEALER_PRICE_FIELD_DESC = new TField("dealerPrice", TType.DOUBLE, (short)25);
53
  private static final TField DEALER_PRICE_FIELD_DESC = new TField("dealerPrice", TType.DOUBLE, (short)25);
54
  private static final TField UPDATED_ON_FIELD_DESC = new TField("updatedOn", TType.I64, (short)26);
54
  private static final TField UPDATED_ON_FIELD_DESC = new TField("updatedOn", TType.I64, (short)26);
55
  private static final TField COLOR_FIELD_DESC = new TField("color", TType.STRING, (short)27);
-
 
56
 
55
 
57
  private long id;
56
  private long id;
58
  private String productGroup;
57
  private String productGroup;
59
  private String brand;
58
  private String brand;
60
  private String modelNumber;
59
  private String modelNumber;
61
  private String modelName;
60
  private String modelName;
-
 
61
  private String color;
62
  private long category;
62
  private long category;
63
  private String comments;
63
  private String comments;
64
  private long catalogItemId;
64
  private long catalogItemId;
65
  private String vendorItemId;
-
 
66
  private long featureId;
65
  private long featureId;
67
  private String featureDescription;
66
  private String featureDescription;
68
  private ItemInventory itemInventory;
67
  private ItemInventory itemInventory;
69
  private double mrp;
68
  private double mrp;
70
  private double mop;
69
  private double mop;
Line 78... Line 77...
78
  private Map<String,String> otherInfo;
77
  private Map<String,String> otherInfo;
79
  private String bestDealText;
78
  private String bestDealText;
80
  private double bestDealValue;
79
  private double bestDealValue;
81
  private double dealerPrice;
80
  private double dealerPrice;
82
  private long updatedOn;
81
  private long updatedOn;
83
  private String color;
-
 
84
 
82
 
85
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
83
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
86
  public enum _Fields implements TFieldIdEnum {
84
  public enum _Fields implements TFieldIdEnum {
87
    ID((short)1, "id"),
85
    ID((short)1, "id"),
88
    PRODUCT_GROUP((short)2, "productGroup"),
86
    PRODUCT_GROUP((short)2, "productGroup"),
89
    BRAND((short)3, "brand"),
87
    BRAND((short)3, "brand"),
90
    MODEL_NUMBER((short)4, "modelNumber"),
88
    MODEL_NUMBER((short)4, "modelNumber"),
91
    MODEL_NAME((short)5, "modelName"),
89
    MODEL_NAME((short)5, "modelName"),
92
    CATEGORY((short)6, "category"),
90
    COLOR((short)6, "color"),
93
    COMMENTS((short)7, "comments"),
91
    CATEGORY((short)7, "category"),
94
    CATALOG_ITEM_ID((short)8, "catalogItemId"),
92
    COMMENTS((short)8, "comments"),
95
    VENDOR_ITEM_ID((short)9, "vendorItemId"),
93
    CATALOG_ITEM_ID((short)9, "catalogItemId"),
96
    FEATURE_ID((short)10, "featureId"),
94
    FEATURE_ID((short)10, "featureId"),
97
    FEATURE_DESCRIPTION((short)11, "featureDescription"),
95
    FEATURE_DESCRIPTION((short)11, "featureDescription"),
98
    ITEM_INVENTORY((short)12, "itemInventory"),
96
    ITEM_INVENTORY((short)12, "itemInventory"),
99
    MRP((short)13, "mrp"),
97
    MRP((short)13, "mrp"),
100
    MOP((short)14, "mop"),
98
    MOP((short)14, "mop"),
Line 111... Line 109...
111
    ITEM_STATUS((short)21, "itemStatus"),
109
    ITEM_STATUS((short)21, "itemStatus"),
112
    OTHER_INFO((short)22, "otherInfo"),
110
    OTHER_INFO((short)22, "otherInfo"),
113
    BEST_DEAL_TEXT((short)23, "bestDealText"),
111
    BEST_DEAL_TEXT((short)23, "bestDealText"),
114
    BEST_DEAL_VALUE((short)24, "bestDealValue"),
112
    BEST_DEAL_VALUE((short)24, "bestDealValue"),
115
    DEALER_PRICE((short)25, "dealerPrice"),
113
    DEALER_PRICE((short)25, "dealerPrice"),
116
    UPDATED_ON((short)26, "updatedOn"),
114
    UPDATED_ON((short)26, "updatedOn");
117
    COLOR((short)27, "color");
-
 
118
 
115
 
119
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
116
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
120
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
117
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
121
 
118
 
122
    static {
119
    static {
Line 194... Line 191...
194
        new FieldValueMetaData(TType.STRING)));
191
        new FieldValueMetaData(TType.STRING)));
195
    put(_Fields.MODEL_NUMBER, new FieldMetaData("modelNumber", TFieldRequirementType.DEFAULT, 
192
    put(_Fields.MODEL_NUMBER, new FieldMetaData("modelNumber", TFieldRequirementType.DEFAULT, 
196
        new FieldValueMetaData(TType.STRING)));
193
        new FieldValueMetaData(TType.STRING)));
197
    put(_Fields.MODEL_NAME, new FieldMetaData("modelName", TFieldRequirementType.DEFAULT, 
194
    put(_Fields.MODEL_NAME, new FieldMetaData("modelName", TFieldRequirementType.DEFAULT, 
198
        new FieldValueMetaData(TType.STRING)));
195
        new FieldValueMetaData(TType.STRING)));
-
 
196
    put(_Fields.COLOR, new FieldMetaData("color", TFieldRequirementType.DEFAULT, 
-
 
197
        new FieldValueMetaData(TType.STRING)));
199
    put(_Fields.CATEGORY, new FieldMetaData("category", TFieldRequirementType.DEFAULT, 
198
    put(_Fields.CATEGORY, new FieldMetaData("category", TFieldRequirementType.DEFAULT, 
200
        new FieldValueMetaData(TType.I64)));
199
        new FieldValueMetaData(TType.I64)));
201
    put(_Fields.COMMENTS, new FieldMetaData("comments", TFieldRequirementType.DEFAULT, 
200
    put(_Fields.COMMENTS, new FieldMetaData("comments", TFieldRequirementType.DEFAULT, 
202
        new FieldValueMetaData(TType.STRING)));
201
        new FieldValueMetaData(TType.STRING)));
203
    put(_Fields.CATALOG_ITEM_ID, new FieldMetaData("catalogItemId", TFieldRequirementType.DEFAULT, 
202
    put(_Fields.CATALOG_ITEM_ID, new FieldMetaData("catalogItemId", TFieldRequirementType.DEFAULT, 
204
        new FieldValueMetaData(TType.I64)));
203
        new FieldValueMetaData(TType.I64)));
205
    put(_Fields.VENDOR_ITEM_ID, new FieldMetaData("vendorItemId", TFieldRequirementType.DEFAULT, 
-
 
206
        new FieldValueMetaData(TType.STRING)));
-
 
207
    put(_Fields.FEATURE_ID, new FieldMetaData("featureId", TFieldRequirementType.DEFAULT, 
204
    put(_Fields.FEATURE_ID, new FieldMetaData("featureId", TFieldRequirementType.DEFAULT, 
208
        new FieldValueMetaData(TType.I64)));
205
        new FieldValueMetaData(TType.I64)));
209
    put(_Fields.FEATURE_DESCRIPTION, new FieldMetaData("featureDescription", TFieldRequirementType.DEFAULT, 
206
    put(_Fields.FEATURE_DESCRIPTION, new FieldMetaData("featureDescription", TFieldRequirementType.DEFAULT, 
210
        new FieldValueMetaData(TType.STRING)));
207
        new FieldValueMetaData(TType.STRING)));
211
    put(_Fields.ITEM_INVENTORY, new FieldMetaData("itemInventory", TFieldRequirementType.DEFAULT, 
208
    put(_Fields.ITEM_INVENTORY, new FieldMetaData("itemInventory", TFieldRequirementType.DEFAULT, 
Line 238... Line 235...
238
        new FieldValueMetaData(TType.DOUBLE)));
235
        new FieldValueMetaData(TType.DOUBLE)));
239
    put(_Fields.DEALER_PRICE, new FieldMetaData("dealerPrice", TFieldRequirementType.DEFAULT, 
236
    put(_Fields.DEALER_PRICE, new FieldMetaData("dealerPrice", TFieldRequirementType.DEFAULT, 
240
        new FieldValueMetaData(TType.DOUBLE)));
237
        new FieldValueMetaData(TType.DOUBLE)));
241
    put(_Fields.UPDATED_ON, new FieldMetaData("updatedOn", TFieldRequirementType.DEFAULT, 
238
    put(_Fields.UPDATED_ON, new FieldMetaData("updatedOn", TFieldRequirementType.DEFAULT, 
242
        new FieldValueMetaData(TType.I64)));
239
        new FieldValueMetaData(TType.I64)));
243
    put(_Fields.COLOR, new FieldMetaData("color", TFieldRequirementType.DEFAULT, 
-
 
244
        new FieldValueMetaData(TType.STRING)));
-
 
245
  }});
240
  }});
246
 
241
 
247
  static {
242
  static {
248
    FieldMetaData.addStructMetaDataMap(Item.class, metaDataMap);
243
    FieldMetaData.addStructMetaDataMap(Item.class, metaDataMap);
249
  }
244
  }
Line 255... Line 250...
255
    long id,
250
    long id,
256
    String productGroup,
251
    String productGroup,
257
    String brand,
252
    String brand,
258
    String modelNumber,
253
    String modelNumber,
259
    String modelName,
254
    String modelName,
-
 
255
    String color,
260
    long category,
256
    long category,
261
    String comments,
257
    String comments,
262
    long catalogItemId,
258
    long catalogItemId,
263
    String vendorItemId,
-
 
264
    long featureId,
259
    long featureId,
265
    String featureDescription,
260
    String featureDescription,
266
    ItemInventory itemInventory,
261
    ItemInventory itemInventory,
267
    double mrp,
262
    double mrp,
268
    double mop,
263
    double mop,
Line 275... Line 270...
275
    status itemStatus,
270
    status itemStatus,
276
    Map<String,String> otherInfo,
271
    Map<String,String> otherInfo,
277
    String bestDealText,
272
    String bestDealText,
278
    double bestDealValue,
273
    double bestDealValue,
279
    double dealerPrice,
274
    double dealerPrice,
280
    long updatedOn,
275
    long updatedOn)
281
    String color)
-
 
282
  {
276
  {
283
    this();
277
    this();
284
    this.id = id;
278
    this.id = id;
285
    setIdIsSet(true);
279
    setIdIsSet(true);
286
    this.productGroup = productGroup;
280
    this.productGroup = productGroup;
287
    this.brand = brand;
281
    this.brand = brand;
288
    this.modelNumber = modelNumber;
282
    this.modelNumber = modelNumber;
289
    this.modelName = modelName;
283
    this.modelName = modelName;
-
 
284
    this.color = color;
290
    this.category = category;
285
    this.category = category;
291
    setCategoryIsSet(true);
286
    setCategoryIsSet(true);
292
    this.comments = comments;
287
    this.comments = comments;
293
    this.catalogItemId = catalogItemId;
288
    this.catalogItemId = catalogItemId;
294
    setCatalogItemIdIsSet(true);
289
    setCatalogItemIdIsSet(true);
295
    this.vendorItemId = vendorItemId;
-
 
296
    this.featureId = featureId;
290
    this.featureId = featureId;
297
    setFeatureIdIsSet(true);
291
    setFeatureIdIsSet(true);
298
    this.featureDescription = featureDescription;
292
    this.featureDescription = featureDescription;
299
    this.itemInventory = itemInventory;
293
    this.itemInventory = itemInventory;
300
    this.mrp = mrp;
294
    this.mrp = mrp;
Line 320... Line 314...
320
    setBestDealValueIsSet(true);
314
    setBestDealValueIsSet(true);
321
    this.dealerPrice = dealerPrice;
315
    this.dealerPrice = dealerPrice;
322
    setDealerPriceIsSet(true);
316
    setDealerPriceIsSet(true);
323
    this.updatedOn = updatedOn;
317
    this.updatedOn = updatedOn;
324
    setUpdatedOnIsSet(true);
318
    setUpdatedOnIsSet(true);
325
    this.color = color;
-
 
326
  }
319
  }
327
 
320
 
328
  /**
321
  /**
329
   * Performs a deep copy on <i>other</i>.
322
   * Performs a deep copy on <i>other</i>.
330
   */
323
   */
Line 342... Line 335...
342
      this.modelNumber = other.modelNumber;
335
      this.modelNumber = other.modelNumber;
343
    }
336
    }
344
    if (other.isSetModelName()) {
337
    if (other.isSetModelName()) {
345
      this.modelName = other.modelName;
338
      this.modelName = other.modelName;
346
    }
339
    }
-
 
340
    if (other.isSetColor()) {
-
 
341
      this.color = other.color;
-
 
342
    }
347
    this.category = other.category;
343
    this.category = other.category;
348
    if (other.isSetComments()) {
344
    if (other.isSetComments()) {
349
      this.comments = other.comments;
345
      this.comments = other.comments;
350
    }
346
    }
351
    this.catalogItemId = other.catalogItemId;
347
    this.catalogItemId = other.catalogItemId;
352
    if (other.isSetVendorItemId()) {
-
 
353
      this.vendorItemId = other.vendorItemId;
-
 
354
    }
-
 
355
    this.featureId = other.featureId;
348
    this.featureId = other.featureId;
356
    if (other.isSetFeatureDescription()) {
349
    if (other.isSetFeatureDescription()) {
357
      this.featureDescription = other.featureDescription;
350
      this.featureDescription = other.featureDescription;
358
    }
351
    }
359
    if (other.isSetItemInventory()) {
352
    if (other.isSetItemInventory()) {
Line 389... Line 382...
389
      this.bestDealText = other.bestDealText;
382
      this.bestDealText = other.bestDealText;
390
    }
383
    }
391
    this.bestDealValue = other.bestDealValue;
384
    this.bestDealValue = other.bestDealValue;
392
    this.dealerPrice = other.dealerPrice;
385
    this.dealerPrice = other.dealerPrice;
393
    this.updatedOn = other.updatedOn;
386
    this.updatedOn = other.updatedOn;
394
    if (other.isSetColor()) {
-
 
395
      this.color = other.color;
-
 
396
    }
-
 
397
  }
387
  }
398
 
388
 
399
  public Item deepCopy() {
389
  public Item deepCopy() {
400
    return new Item(this);
390
    return new Item(this);
401
  }
391
  }
Line 522... Line 512...
522
    if (!value) {
512
    if (!value) {
523
      this.modelName = null;
513
      this.modelName = null;
524
    }
514
    }
525
  }
515
  }
526
 
516
 
-
 
517
  public String getColor() {
-
 
518
    return this.color;
-
 
519
  }
-
 
520
 
-
 
521
  public Item setColor(String color) {
-
 
522
    this.color = color;
-
 
523
    return this;
-
 
524
  }
-
 
525
 
-
 
526
  public void unsetColor() {
-
 
527
    this.color = null;
-
 
528
  }
-
 
529
 
-
 
530
  /** Returns true if field color is set (has been asigned a value) and false otherwise */
-
 
531
  public boolean isSetColor() {
-
 
532
    return this.color != null;
-
 
533
  }
-
 
534
 
-
 
535
  public void setColorIsSet(boolean value) {
-
 
536
    if (!value) {
-
 
537
      this.color = null;
-
 
538
    }
-
 
539
  }
-
 
540
 
527
  public long getCategory() {
541
  public long getCategory() {
528
    return this.category;
542
    return this.category;
529
  }
543
  }
530
 
544
 
531
  public Item setCategory(long category) {
545
  public Item setCategory(long category) {
Line 592... Line 606...
592
 
606
 
593
  public void setCatalogItemIdIsSet(boolean value) {
607
  public void setCatalogItemIdIsSet(boolean value) {
594
    __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
608
    __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
595
  }
609
  }
596
 
610
 
597
  public String getVendorItemId() {
-
 
598
    return this.vendorItemId;
-
 
599
  }
-
 
600
 
-
 
601
  public Item setVendorItemId(String vendorItemId) {
-
 
602
    this.vendorItemId = vendorItemId;
-
 
603
    return this;
-
 
604
  }
-
 
605
 
-
 
606
  public void unsetVendorItemId() {
-
 
607
    this.vendorItemId = null;
-
 
608
  }
-
 
609
 
-
 
610
  /** Returns true if field vendorItemId is set (has been asigned a value) and false otherwise */
-
 
611
  public boolean isSetVendorItemId() {
-
 
612
    return this.vendorItemId != null;
-
 
613
  }
-
 
614
 
-
 
615
  public void setVendorItemIdIsSet(boolean value) {
-
 
616
    if (!value) {
-
 
617
      this.vendorItemId = null;
-
 
618
    }
-
 
619
  }
-
 
620
 
-
 
621
  public long getFeatureId() {
611
  public long getFeatureId() {
622
    return this.featureId;
612
    return this.featureId;
623
  }
613
  }
624
 
614
 
625
  public Item setFeatureId(long featureId) {
615
  public Item setFeatureId(long featureId) {
Line 1031... Line 1021...
1031
 
1021
 
1032
  public void setUpdatedOnIsSet(boolean value) {
1022
  public void setUpdatedOnIsSet(boolean value) {
1033
    __isset_bit_vector.set(__UPDATEDON_ISSET_ID, value);
1023
    __isset_bit_vector.set(__UPDATEDON_ISSET_ID, value);
1034
  }
1024
  }
1035
 
1025
 
1036
  public String getColor() {
-
 
1037
    return this.color;
-
 
1038
  }
-
 
1039
 
-
 
1040
  public Item setColor(String color) {
-
 
1041
    this.color = color;
-
 
1042
    return this;
-
 
1043
  }
-
 
1044
 
-
 
1045
  public void unsetColor() {
-
 
1046
    this.color = null;
-
 
1047
  }
-
 
1048
 
-
 
1049
  /** Returns true if field color is set (has been asigned a value) and false otherwise */
-
 
1050
  public boolean isSetColor() {
-
 
1051
    return this.color != null;
-
 
1052
  }
-
 
1053
 
-
 
1054
  public void setColorIsSet(boolean value) {
-
 
1055
    if (!value) {
-
 
1056
      this.color = null;
-
 
1057
    }
-
 
1058
  }
-
 
1059
 
-
 
1060
  public void setFieldValue(_Fields field, Object value) {
1026
  public void setFieldValue(_Fields field, Object value) {
1061
    switch (field) {
1027
    switch (field) {
1062
    case ID:
1028
    case ID:
1063
      if (value == null) {
1029
      if (value == null) {
1064
        unsetId();
1030
        unsetId();
Line 1097... Line 1063...
1097
      } else {
1063
      } else {
1098
        setModelName((String)value);
1064
        setModelName((String)value);
1099
      }
1065
      }
1100
      break;
1066
      break;
1101
 
1067
 
-
 
1068
    case COLOR:
-
 
1069
      if (value == null) {
-
 
1070
        unsetColor();
-
 
1071
      } else {
-
 
1072
        setColor((String)value);
-
 
1073
      }
-
 
1074
      break;
-
 
1075
 
1102
    case CATEGORY:
1076
    case CATEGORY:
1103
      if (value == null) {
1077
      if (value == null) {
1104
        unsetCategory();
1078
        unsetCategory();
1105
      } else {
1079
      } else {
1106
        setCategory((Long)value);
1080
        setCategory((Long)value);
Line 1121... Line 1095...
1121
      } else {
1095
      } else {
1122
        setCatalogItemId((Long)value);
1096
        setCatalogItemId((Long)value);
1123
      }
1097
      }
1124
      break;
1098
      break;
1125
 
1099
 
1126
    case VENDOR_ITEM_ID:
-
 
1127
      if (value == null) {
-
 
1128
        unsetVendorItemId();
-
 
1129
      } else {
-
 
1130
        setVendorItemId((String)value);
-
 
1131
      }
-
 
1132
      break;
-
 
1133
 
-
 
1134
    case FEATURE_ID:
1100
    case FEATURE_ID:
1135
      if (value == null) {
1101
      if (value == null) {
1136
        unsetFeatureId();
1102
        unsetFeatureId();
1137
      } else {
1103
      } else {
1138
        setFeatureId((Long)value);
1104
        setFeatureId((Long)value);
Line 1265... Line 1231...
1265
      } else {
1231
      } else {
1266
        setUpdatedOn((Long)value);
1232
        setUpdatedOn((Long)value);
1267
      }
1233
      }
1268
      break;
1234
      break;
1269
 
1235
 
1270
    case COLOR:
-
 
1271
      if (value == null) {
-
 
1272
        unsetColor();
-
 
1273
      } else {
-
 
1274
        setColor((String)value);
-
 
1275
      }
-
 
1276
      break;
-
 
1277
 
-
 
1278
    }
1236
    }
1279
  }
1237
  }
1280
 
1238
 
1281
  public void setFieldValue(int fieldID, Object value) {
1239
  public void setFieldValue(int fieldID, Object value) {
1282
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
1240
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
Line 1297... Line 1255...
1297
      return getModelNumber();
1255
      return getModelNumber();
1298
 
1256
 
1299
    case MODEL_NAME:
1257
    case MODEL_NAME:
1300
      return getModelName();
1258
      return getModelName();
1301
 
1259
 
-
 
1260
    case COLOR:
-
 
1261
      return getColor();
-
 
1262
 
1302
    case CATEGORY:
1263
    case CATEGORY:
1303
      return new Long(getCategory());
1264
      return new Long(getCategory());
1304
 
1265
 
1305
    case COMMENTS:
1266
    case COMMENTS:
1306
      return getComments();
1267
      return getComments();
1307
 
1268
 
1308
    case CATALOG_ITEM_ID:
1269
    case CATALOG_ITEM_ID:
1309
      return new Long(getCatalogItemId());
1270
      return new Long(getCatalogItemId());
1310
 
1271
 
1311
    case VENDOR_ITEM_ID:
-
 
1312
      return getVendorItemId();
-
 
1313
 
-
 
1314
    case FEATURE_ID:
1272
    case FEATURE_ID:
1315
      return new Long(getFeatureId());
1273
      return new Long(getFeatureId());
1316
 
1274
 
1317
    case FEATURE_DESCRIPTION:
1275
    case FEATURE_DESCRIPTION:
1318
      return getFeatureDescription();
1276
      return getFeatureDescription();
Line 1360... Line 1318...
1360
      return new Double(getDealerPrice());
1318
      return new Double(getDealerPrice());
1361
 
1319
 
1362
    case UPDATED_ON:
1320
    case UPDATED_ON:
1363
      return new Long(getUpdatedOn());
1321
      return new Long(getUpdatedOn());
1364
 
1322
 
1365
    case COLOR:
-
 
1366
      return getColor();
-
 
1367
 
-
 
1368
    }
1323
    }
1369
    throw new IllegalStateException();
1324
    throw new IllegalStateException();
1370
  }
1325
  }
1371
 
1326
 
1372
  public Object getFieldValue(int fieldId) {
1327
  public Object getFieldValue(int fieldId) {
Line 1384... Line 1339...
1384
      return isSetBrand();
1339
      return isSetBrand();
1385
    case MODEL_NUMBER:
1340
    case MODEL_NUMBER:
1386
      return isSetModelNumber();
1341
      return isSetModelNumber();
1387
    case MODEL_NAME:
1342
    case MODEL_NAME:
1388
      return isSetModelName();
1343
      return isSetModelName();
-
 
1344
    case COLOR:
-
 
1345
      return isSetColor();
1389
    case CATEGORY:
1346
    case CATEGORY:
1390
      return isSetCategory();
1347
      return isSetCategory();
1391
    case COMMENTS:
1348
    case COMMENTS:
1392
      return isSetComments();
1349
      return isSetComments();
1393
    case CATALOG_ITEM_ID:
1350
    case CATALOG_ITEM_ID:
1394
      return isSetCatalogItemId();
1351
      return isSetCatalogItemId();
1395
    case VENDOR_ITEM_ID:
-
 
1396
      return isSetVendorItemId();
-
 
1397
    case FEATURE_ID:
1352
    case FEATURE_ID:
1398
      return isSetFeatureId();
1353
      return isSetFeatureId();
1399
    case FEATURE_DESCRIPTION:
1354
    case FEATURE_DESCRIPTION:
1400
      return isSetFeatureDescription();
1355
      return isSetFeatureDescription();
1401
    case ITEM_INVENTORY:
1356
    case ITEM_INVENTORY:
Line 1426... Line 1381...
1426
      return isSetBestDealValue();
1381
      return isSetBestDealValue();
1427
    case DEALER_PRICE:
1382
    case DEALER_PRICE:
1428
      return isSetDealerPrice();
1383
      return isSetDealerPrice();
1429
    case UPDATED_ON:
1384
    case UPDATED_ON:
1430
      return isSetUpdatedOn();
1385
      return isSetUpdatedOn();
1431
    case COLOR:
-
 
1432
      return isSetColor();
-
 
1433
    }
1386
    }
1434
    throw new IllegalStateException();
1387
    throw new IllegalStateException();
1435
  }
1388
  }
1436
 
1389
 
1437
  public boolean isSet(int fieldID) {
1390
  public boolean isSet(int fieldID) {
Line 1494... Line 1447...
1494
        return false;
1447
        return false;
1495
      if (!this.modelName.equals(that.modelName))
1448
      if (!this.modelName.equals(that.modelName))
1496
        return false;
1449
        return false;
1497
    }
1450
    }
1498
 
1451
 
-
 
1452
    boolean this_present_color = true && this.isSetColor();
-
 
1453
    boolean that_present_color = true && that.isSetColor();
-
 
1454
    if (this_present_color || that_present_color) {
-
 
1455
      if (!(this_present_color && that_present_color))
-
 
1456
        return false;
-
 
1457
      if (!this.color.equals(that.color))
-
 
1458
        return false;
-
 
1459
    }
-
 
1460
 
1499
    boolean this_present_category = true;
1461
    boolean this_present_category = true;
1500
    boolean that_present_category = true;
1462
    boolean that_present_category = true;
1501
    if (this_present_category || that_present_category) {
1463
    if (this_present_category || that_present_category) {
1502
      if (!(this_present_category && that_present_category))
1464
      if (!(this_present_category && that_present_category))
1503
        return false;
1465
        return false;
Line 1521... Line 1483...
1521
        return false;
1483
        return false;
1522
      if (this.catalogItemId != that.catalogItemId)
1484
      if (this.catalogItemId != that.catalogItemId)
1523
        return false;
1485
        return false;
1524
    }
1486
    }
1525
 
1487
 
1526
    boolean this_present_vendorItemId = true && this.isSetVendorItemId();
-
 
1527
    boolean that_present_vendorItemId = true && that.isSetVendorItemId();
-
 
1528
    if (this_present_vendorItemId || that_present_vendorItemId) {
-
 
1529
      if (!(this_present_vendorItemId && that_present_vendorItemId))
-
 
1530
        return false;
-
 
1531
      if (!this.vendorItemId.equals(that.vendorItemId))
-
 
1532
        return false;
-
 
1533
    }
-
 
1534
 
-
 
1535
    boolean this_present_featureId = true;
1488
    boolean this_present_featureId = true;
1536
    boolean that_present_featureId = true;
1489
    boolean that_present_featureId = true;
1537
    if (this_present_featureId || that_present_featureId) {
1490
    if (this_present_featureId || that_present_featureId) {
1538
      if (!(this_present_featureId && that_present_featureId))
1491
      if (!(this_present_featureId && that_present_featureId))
1539
        return false;
1492
        return false;
Line 1683... Line 1636...
1683
        return false;
1636
        return false;
1684
      if (this.updatedOn != that.updatedOn)
1637
      if (this.updatedOn != that.updatedOn)
1685
        return false;
1638
        return false;
1686
    }
1639
    }
1687
 
1640
 
1688
    boolean this_present_color = true && this.isSetColor();
-
 
1689
    boolean that_present_color = true && that.isSetColor();
-
 
1690
    if (this_present_color || that_present_color) {
-
 
1691
      if (!(this_present_color && that_present_color))
-
 
1692
        return false;
-
 
1693
      if (!this.color.equals(that.color))
-
 
1694
        return false;
-
 
1695
    }
-
 
1696
 
-
 
1697
    return true;
1641
    return true;
1698
  }
1642
  }
1699
 
1643
 
1700
  @Override
1644
  @Override
1701
  public int hashCode() {
1645
  public int hashCode() {
Line 1750... Line 1694...
1750
              this.modelName = iprot.readString();
1694
              this.modelName = iprot.readString();
1751
            } else { 
1695
            } else { 
1752
              TProtocolUtil.skip(iprot, field.type);
1696
              TProtocolUtil.skip(iprot, field.type);
1753
            }
1697
            }
1754
            break;
1698
            break;
-
 
1699
          case COLOR:
-
 
1700
            if (field.type == TType.STRING) {
-
 
1701
              this.color = iprot.readString();
-
 
1702
            } else { 
-
 
1703
              TProtocolUtil.skip(iprot, field.type);
-
 
1704
            }
-
 
1705
            break;
1755
          case CATEGORY:
1706
          case CATEGORY:
1756
            if (field.type == TType.I64) {
1707
            if (field.type == TType.I64) {
1757
              this.category = iprot.readI64();
1708
              this.category = iprot.readI64();
1758
              setCategoryIsSet(true);
1709
              setCategoryIsSet(true);
1759
            } else { 
1710
            } else { 
Line 1773... Line 1724...
1773
              setCatalogItemIdIsSet(true);
1724
              setCatalogItemIdIsSet(true);
1774
            } else { 
1725
            } else { 
1775
              TProtocolUtil.skip(iprot, field.type);
1726
              TProtocolUtil.skip(iprot, field.type);
1776
            }
1727
            }
1777
            break;
1728
            break;
1778
          case VENDOR_ITEM_ID:
-
 
1779
            if (field.type == TType.STRING) {
-
 
1780
              this.vendorItemId = iprot.readString();
-
 
1781
            } else { 
-
 
1782
              TProtocolUtil.skip(iprot, field.type);
-
 
1783
            }
-
 
1784
            break;
-
 
1785
          case FEATURE_ID:
1729
          case FEATURE_ID:
1786
            if (field.type == TType.I64) {
1730
            if (field.type == TType.I64) {
1787
              this.featureId = iprot.readI64();
1731
              this.featureId = iprot.readI64();
1788
              setFeatureIdIsSet(true);
1732
              setFeatureIdIsSet(true);
1789
            } else { 
1733
            } else { 
Line 1924... Line 1868...
1924
              setUpdatedOnIsSet(true);
1868
              setUpdatedOnIsSet(true);
1925
            } else { 
1869
            } else { 
1926
              TProtocolUtil.skip(iprot, field.type);
1870
              TProtocolUtil.skip(iprot, field.type);
1927
            }
1871
            }
1928
            break;
1872
            break;
1929
          case COLOR:
-
 
1930
            if (field.type == TType.STRING) {
-
 
1931
              this.color = iprot.readString();
-
 
1932
            } else { 
-
 
1933
              TProtocolUtil.skip(iprot, field.type);
-
 
1934
            }
-
 
1935
            break;
-
 
1936
        }
1873
        }
1937
        iprot.readFieldEnd();
1874
        iprot.readFieldEnd();
1938
      }
1875
      }
1939
    }
1876
    }
1940
    iprot.readStructEnd();
1877
    iprot.readStructEnd();
Line 1966... Line 1903...
1966
    if (this.modelName != null) {
1903
    if (this.modelName != null) {
1967
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
1904
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
1968
      oprot.writeString(this.modelName);
1905
      oprot.writeString(this.modelName);
1969
      oprot.writeFieldEnd();
1906
      oprot.writeFieldEnd();
1970
    }
1907
    }
-
 
1908
    if (this.color != null) {
-
 
1909
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
-
 
1910
      oprot.writeString(this.color);
-
 
1911
      oprot.writeFieldEnd();
-
 
1912
    }
1971
    oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
1913
    oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
1972
    oprot.writeI64(this.category);
1914
    oprot.writeI64(this.category);
1973
    oprot.writeFieldEnd();
1915
    oprot.writeFieldEnd();
1974
    if (this.comments != null) {
1916
    if (this.comments != null) {
1975
      oprot.writeFieldBegin(COMMENTS_FIELD_DESC);
1917
      oprot.writeFieldBegin(COMMENTS_FIELD_DESC);
Line 1977... Line 1919...
1977
      oprot.writeFieldEnd();
1919
      oprot.writeFieldEnd();
1978
    }
1920
    }
1979
    oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
1921
    oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
1980
    oprot.writeI64(this.catalogItemId);
1922
    oprot.writeI64(this.catalogItemId);
1981
    oprot.writeFieldEnd();
1923
    oprot.writeFieldEnd();
1982
    if (this.vendorItemId != null) {
-
 
1983
      oprot.writeFieldBegin(VENDOR_ITEM_ID_FIELD_DESC);
-
 
1984
      oprot.writeString(this.vendorItemId);
-
 
1985
      oprot.writeFieldEnd();
-
 
1986
    }
-
 
1987
    oprot.writeFieldBegin(FEATURE_ID_FIELD_DESC);
1924
    oprot.writeFieldBegin(FEATURE_ID_FIELD_DESC);
1988
    oprot.writeI64(this.featureId);
1925
    oprot.writeI64(this.featureId);
1989
    oprot.writeFieldEnd();
1926
    oprot.writeFieldEnd();
1990
    if (this.featureDescription != null) {
1927
    if (this.featureDescription != null) {
1991
      oprot.writeFieldBegin(FEATURE_DESCRIPTION_FIELD_DESC);
1928
      oprot.writeFieldBegin(FEATURE_DESCRIPTION_FIELD_DESC);
Line 2051... Line 1988...
2051
    oprot.writeDouble(this.dealerPrice);
1988
    oprot.writeDouble(this.dealerPrice);
2052
    oprot.writeFieldEnd();
1989
    oprot.writeFieldEnd();
2053
    oprot.writeFieldBegin(UPDATED_ON_FIELD_DESC);
1990
    oprot.writeFieldBegin(UPDATED_ON_FIELD_DESC);
2054
    oprot.writeI64(this.updatedOn);
1991
    oprot.writeI64(this.updatedOn);
2055
    oprot.writeFieldEnd();
1992
    oprot.writeFieldEnd();
2056
    if (this.color != null) {
-
 
2057
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
-
 
2058
      oprot.writeString(this.color);
-
 
2059
      oprot.writeFieldEnd();
-
 
2060
    }
-
 
2061
    oprot.writeFieldStop();
1993
    oprot.writeFieldStop();
2062
    oprot.writeStructEnd();
1994
    oprot.writeStructEnd();
2063
  }
1995
  }
2064
 
1996
 
2065
  @Override
1997
  @Override
Line 2101... Line 2033...
2101
    } else {
2033
    } else {
2102
      sb.append(this.modelName);
2034
      sb.append(this.modelName);
2103
    }
2035
    }
2104
    first = false;
2036
    first = false;
2105
    if (!first) sb.append(", ");
2037
    if (!first) sb.append(", ");
-
 
2038
    sb.append("color:");
-
 
2039
    if (this.color == null) {
-
 
2040
      sb.append("null");
-
 
2041
    } else {
-
 
2042
      sb.append(this.color);
-
 
2043
    }
-
 
2044
    first = false;
-
 
2045
    if (!first) sb.append(", ");
2106
    sb.append("category:");
2046
    sb.append("category:");
2107
    sb.append(this.category);
2047
    sb.append(this.category);
2108
    first = false;
2048
    first = false;
2109
    if (!first) sb.append(", ");
2049
    if (!first) sb.append(", ");
2110
    sb.append("comments:");
2050
    sb.append("comments:");
Line 2117... Line 2057...
2117
    if (!first) sb.append(", ");
2057
    if (!first) sb.append(", ");
2118
    sb.append("catalogItemId:");
2058
    sb.append("catalogItemId:");
2119
    sb.append(this.catalogItemId);
2059
    sb.append(this.catalogItemId);
2120
    first = false;
2060
    first = false;
2121
    if (!first) sb.append(", ");
2061
    if (!first) sb.append(", ");
2122
    sb.append("vendorItemId:");
-
 
2123
    if (this.vendorItemId == null) {
-
 
2124
      sb.append("null");
-
 
2125
    } else {
-
 
2126
      sb.append(this.vendorItemId);
-
 
2127
    }
-
 
2128
    first = false;
-
 
2129
    if (!first) sb.append(", ");
-
 
2130
    sb.append("featureId:");
2062
    sb.append("featureId:");
2131
    sb.append(this.featureId);
2063
    sb.append(this.featureId);
2132
    first = false;
2064
    first = false;
2133
    if (!first) sb.append(", ");
2065
    if (!first) sb.append(", ");
2134
    sb.append("featureDescription:");
2066
    sb.append("featureDescription:");
Line 2220... Line 2152...
2220
    first = false;
2152
    first = false;
2221
    if (!first) sb.append(", ");
2153
    if (!first) sb.append(", ");
2222
    sb.append("updatedOn:");
2154
    sb.append("updatedOn:");
2223
    sb.append(this.updatedOn);
2155
    sb.append(this.updatedOn);
2224
    first = false;
2156
    first = false;
2225
    if (!first) sb.append(", ");
-
 
2226
    sb.append("color:");
-
 
2227
    if (this.color == null) {
-
 
2228
      sb.append("null");
-
 
2229
    } else {
-
 
2230
      sb.append(this.color);
-
 
2231
    }
-
 
2232
    first = false;
-
 
2233
    sb.append(")");
2157
    sb.append(")");
2234
    return sb.toString();
2158
    return sb.toString();
2235
  }
2159
  }
2236
 
2160
 
2237
  public void validate() throws TException {
2161
  public void validate() throws TException {