Guest User

Untitled

a guest
Mar 18th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. /**
  2. *
  3. */
  4. package model;
  5.  
  6. /**
  7. * @author suleymancan Mar 7, 2018
  8. */
  9. public class Product {
  10.  
  11. // POJO CLASS
  12.  
  13. private String productId;
  14. private String name;
  15. private double unitPrice;
  16. private String description;
  17. private String manufacturer;
  18. private String category;
  19. private long unitsInStock;
  20. private String condition;
  21.  
  22. public Product() {
  23. super();
  24. }
  25.  
  26. public Product(String productId, String name, double unitPrice) {
  27. super();
  28. this.productId = productId;
  29. this.name = name;
  30. this.unitPrice = unitPrice;
  31. }
  32.  
  33. public String getProductId() {
  34. return productId;
  35. }
  36.  
  37. public void setProductId(String productId) {
  38. this.productId = productId;
  39. }
  40.  
  41. public String getName() {
  42. return name;
  43. }
  44.  
  45. public void setName(String name) {
  46. this.name = name;
  47. }
  48.  
  49. public double getUnitPrice() {
  50. return unitPrice;
  51. }
  52.  
  53. public void setUnitPrice(double unitPrice) {
  54. this.unitPrice = unitPrice;
  55. }
  56.  
  57. public String getDescription() {
  58. return description;
  59. }
  60.  
  61. public void setDescription(String description) {
  62. this.description = description;
  63. }
  64.  
  65. public String getManufacturer() {
  66. return manufacturer;
  67. }
  68.  
  69. public void setManufacturer(String manufacturer) {
  70. this.manufacturer = manufacturer;
  71. }
  72.  
  73. public String getCategory() {
  74. return category;
  75. }
  76.  
  77. public void setCategory(String category) {
  78. this.category = category;
  79. }
  80.  
  81. public long getUnitsInStock() {
  82. return unitsInStock;
  83. }
  84.  
  85. public void setUnitsInStock(long unitsInStock) {
  86. this.unitsInStock = unitsInStock;
  87. }
  88.  
  89. public String getCondition() {
  90. return condition;
  91. }
  92.  
  93. public void setCondition(String condition) {
  94. this.condition = condition;
  95. }
  96.  
  97. @Override
  98. public String toString() {
  99. return "Product [productId=" + productId + ", name=" + name + ", unitPrice=" + unitPrice + ", description="
  100. + description + ", manufacturer=" + manufacturer + ", category=" + category + ", unitsInStock="
  101. + unitsInStock + ", condition=" + condition + "]";
  102. }
  103.  
  104. }
Add Comment
Please, Sign In to add comment