QuartzJobConfig.java 3.3 KB

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