QuartzJobConfig.java 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. package com.yihu.wlyy.entity.job;
  2. import org.hibernate.annotations.GenericGenerator;
  3. /**
  4. * 计划任务
  5. */
  6. @Entity
  7. @Table(name = "wlyy_job_config")
  8. public class QuartzJobConfig implements java.io.Serializable {
  9. private String id;
  10. private String quotaId;//指标id
  11. private String jobName;//任务名称
  12. private String jobInfo;//任务描述
  13. private String jobType;//任务类型(0--单次执行 1--周期执行 2--监听任务)
  14. private String jobClass;//任务执行的class
  15. private String quartzCron;//quartz表达式
  16. private String status;//1 启动 0停止
  17. private String del;//是否删除 1正常 0删除
  18. private String sql;
  19. private String sqlCount;
  20. private String sqlDay;
  21. private String sqlYear;
  22. private String cacheKey;//缓存的key
  23. /** minimal constructor */
  24. public QuartzJobConfig() {
  25. }
  26. /** full constructor */
  27. public QuartzJobConfig(String jobName, String jobInfo, String jobType,
  28. String jobClass, String quartzCron, String status) {
  29. this.jobName = jobName;
  30. this.jobInfo = jobInfo;
  31. this.jobType = jobType;
  32. this.jobClass = jobClass;
  33. this.quartzCron = quartzCron;
  34. this.status = status;
  35. }
  36. // Property accessors
  37. @GenericGenerator(name = "generator", strategy = "uuid")
  38. @Id
  39. @GeneratedValue(generator = "generator")
  40. @Column(name = "id", unique = true, nullable = false, length = 50)
  41. public String getId() {
  42. return this.id;
  43. }
  44. public void setId(String id) {
  45. this.id = id;
  46. }
  47. @Column(name = "job_name", length = 50)
  48. public String getJobName() {
  49. return this.jobName;
  50. }
  51. public void setJobName(String jobName) {
  52. this.jobName = jobName;
  53. }
  54. @Column(name = "job_info", length = 200)
  55. public String getJobInfo() {
  56. return this.jobInfo;
  57. }
  58. public void setJobInfo(String jobInfo) {
  59. this.jobInfo = jobInfo;
  60. }
  61. @Column(name = "job_type", length = 10)
  62. public String getJobType() {
  63. return this.jobType;
  64. }
  65. public void setJobType(String jobType) {
  66. this.jobType = jobType;
  67. }
  68. @Column(name = "job_class", length = 200)
  69. public String getJobClass() {
  70. return jobClass;
  71. }
  72. public void setJobClass(String jobClass) {
  73. this.jobClass = jobClass;
  74. }
  75. @Column(name = "quartz_cron", length = 200)
  76. public String getQuartzCron() {
  77. return this.quartzCron;
  78. }
  79. public void setQuartzCron(String quartzCron) {
  80. this.quartzCron = quartzCron;
  81. }
  82. @Column(name = "status", length = 1)
  83. public String getStatus() {
  84. return this.status;
  85. }
  86. public void setStatus(String status) {
  87. this.status = status;
  88. }
  89. @Column(name = "quota_id", length = 50)
  90. public String getQuotaId() {
  91. return quotaId;
  92. }
  93. public void setQuotaId(String quotaId) {
  94. this.quotaId = quotaId;
  95. }
  96. @Column(name = "del", length = 1)
  97. public String getDel() {
  98. return del;
  99. }
  100. public void setDel(String del) {
  101. this.del = del;
  102. }
  103. public String getSql() {
  104. return sql;
  105. }
  106. public void setSql(String sql) {
  107. this.sql = sql;
  108. }
  109. public String getSqlCount() {
  110. return sqlCount;
  111. }
  112. public void setSqlCount(String sqlCount) {
  113. this.sqlCount = sqlCount;
  114. }
  115. public String getSqlDay() {
  116. return sqlDay;
  117. }
  118. public void setSqlDay(String sqlDay) {
  119. this.sqlDay = sqlDay;
  120. }
  121. public String getSqlYear() {
  122. return sqlYear;
  123. }
  124. public void setSqlYear(String sqlYear) {
  125. this.sqlYear = sqlYear;
  126. }
  127. public String getCacheKey() {
  128. return cacheKey;
  129. }
  130. public void setCacheKey(String cacheKey) {
  131. this.cacheKey = cacheKey;
  132. }
  133. }