TableFeildsEnum.java 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. package jnpf.util;
  2. import jnpf.constant.TableFieldsNameConst;
  3. /**
  4. * 流程设计
  5. *
  6. * @author JNPF开发平台组
  7. * @version V3.4.2
  8. * @copyright 引迈信息技术有限公司
  9. * @date 2023/1/13 15:50:25
  10. */
  11. public enum TableFeildsEnum {
  12. FID(TableFieldsNameConst.F_ID , "主键", "50","varchar" ,true,"NOT NULL",false),
  13. TENANTID(TableFieldsNameConst.F_TENANT_ID , "租户id", "50","varchar" ,true,"NOT NULL",false),
  14. VERSION(TableFieldsNameConst.F_VERSION , "乐观锁", "20","int" ,false,"NULL",false),
  15. FLOWTASKID(TableFieldsNameConst.F_FLOW_TASK_ID , "流程任务主键", "50","varchar" ,false,"NULL",false),
  16. FLOWID(TableFieldsNameConst.F_FLOW_ID , "流程id", "50","varchar" ,false,"NULL",false),
  17. DELETEMARK(TableFieldsNameConst.F_DELETE_MARK , "删除标志", "20","int" ,false,"NULL",false),
  18. DELETETIME(TableFieldsNameConst.F_DELETE_TIME , "删除时间", "0","datetime" ,false,"NULL",false),
  19. DELETEUSERID(TableFieldsNameConst.F_DELETE_USER_ID , "删除用户", "50","varchar" ,false,"NULL",false),
  20. FOREIGN(TableFieldsNameConst.F_FOREIGN_ID , "外键", "50","varchar" ,false,"NULL",false),
  21. FLOWSTATE(TableFieldsNameConst.F_FLOW_STATE , "流程任务状态", "11","int" ,false,"NULL",false);
  22. /**
  23. * 字段名
  24. */
  25. protected String field;
  26. /**
  27. * 注释
  28. */
  29. protected String comment;
  30. /**
  31. * 数据长度 (n,m) 或 (n)
  32. */
  33. protected String length;
  34. /**
  35. * 数据类型
  36. */
  37. protected String dataType;
  38. /**
  39. * 是否主键
  40. */
  41. protected Boolean isPrimaryKey;
  42. /**
  43. * 是否非空
  44. * (允空非空及0与1较容易混淆,故使用标识传作参数)
  45. */
  46. protected String nullSign;
  47. /**
  48. * 是否自增
  49. */
  50. protected Boolean isAutoIncrement;
  51. TableFeildsEnum(String field, String comment, String length, String dataType, Boolean isPrimaryKey, String nullSign, Boolean isAutoIncrement) {
  52. this.field = field;
  53. this.comment = comment;
  54. this.length = length;
  55. this.dataType = dataType;
  56. this.isPrimaryKey = isPrimaryKey;
  57. this.nullSign = nullSign;
  58. this.isAutoIncrement = isAutoIncrement;
  59. }
  60. public String getLength() {
  61. return length;
  62. }
  63. public void setLength(String length) {
  64. this.length = length;
  65. }
  66. public String getDataType() {
  67. return dataType;
  68. }
  69. public void setDataType(String dataType) {
  70. this.dataType = dataType;
  71. }
  72. public String getField() {
  73. return field;
  74. }
  75. public void setField(String field) {
  76. this.field = field;
  77. }
  78. public Boolean getPrimaryKey() {
  79. return isPrimaryKey;
  80. }
  81. public void setPrimaryKey(Boolean primaryKey) {
  82. isPrimaryKey = primaryKey;
  83. }
  84. public String getNullSign() {
  85. return nullSign;
  86. }
  87. public void setNullSign(String nullSign) {
  88. this.nullSign = nullSign;
  89. }
  90. public Boolean getAutoIncrement() {
  91. return isAutoIncrement;
  92. }
  93. public void setAutoIncrement(Boolean autoIncrement) {
  94. isAutoIncrement = autoIncrement;
  95. }
  96. public String getComment() {
  97. return comment;
  98. }
  99. public void setComment(String comment) {
  100. this.comment = comment;
  101. }
  102. }