Brand.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. package com.lovecoding.doman;
  2. public class Brand {
  3. private int id;
  4. private String brandName;
  5. private String companyName;
  6. private int ordered;
  7. private String description;
  8. private int status;
  9. public Brand(int i, String brandName, String companyName, int i1, String description, int i2) {
  10. this.id = i;
  11. this.brandName = brandName;
  12. this.companyName = companyName;
  13. this.description = description;
  14. this.ordered = i1;
  15. this.status = i2;
  16. }
  17. public int getId() {
  18. return id;
  19. }
  20. public void setId(int id) {
  21. this.id = id;
  22. }
  23. public String getBrandName() {
  24. return brandName;
  25. }
  26. public void setBrandName(String brandName) {
  27. this.brandName = brandName;
  28. }
  29. public String getCompanyName() {
  30. return companyName;
  31. }
  32. public void setCompanyName(String companyName) {
  33. this.companyName = companyName;
  34. }
  35. public int getOrdered() {
  36. return ordered;
  37. }
  38. public void setOrdered(int ordered) {
  39. this.ordered = ordered;
  40. }
  41. public String getDescription() {
  42. return description;
  43. }
  44. public void setDescription(String description) {
  45. this.description = description;
  46. }
  47. public int getStatus() {
  48. return status;
  49. }
  50. public void setStatus(int status) {
  51. this.status = status;
  52. }
  53. @Override
  54. public String toString() {
  55. return "Brand{" +
  56. "id=" + id +
  57. ", brandName='" + brandName + '\'' +
  58. ", companyName='" + companyName + '\'' +
  59. ", ordered=" + ordered +
  60. ", description='" + description + '\'' +
  61. ", status=" + status +
  62. '}';
  63. }
  64. }