DbTableColumn.java 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (c) 2022, MaxKey and/or its affiliates. All rights reserved.
  3. *
  4. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  5. *
  6. * Please contact MaxKey, visit www.maxkey.top if you need additional
  7. * information or have any questions.
  8. */
  9. package org.maxkey.entity;
  10. public class DbTableColumn {
  11. String column;
  12. String type;
  13. int precision;
  14. int scale;
  15. public DbTableColumn(String column, String type, int precision, int scale) {
  16. super();
  17. this.column = column;
  18. this.type = type;
  19. this.precision = precision;
  20. this.scale = scale;
  21. }
  22. public String getColumn() {
  23. return column;
  24. }
  25. public void setColumn(String column) {
  26. this.column = column;
  27. }
  28. public String getType() {
  29. return type;
  30. }
  31. public void setType(String type) {
  32. this.type = type;
  33. }
  34. public int getPrecision() {
  35. return precision;
  36. }
  37. public void setPrecision(int precision) {
  38. this.precision = precision;
  39. }
  40. public int getScale() {
  41. return scale;
  42. }
  43. public void setScale(int scale) {
  44. this.scale = scale;
  45. }
  46. }