WlyyJobConfig.java 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. package com.yihu.wlyy.entity;
  2. import javax.persistence.Column;
  3. import javax.persistence.Entity;
  4. import javax.persistence.GeneratedValue;
  5. import javax.persistence.Id;
  6. import javax.persistence.Table;
  7. import org.hibernate.annotations.GenericGenerator;
  8. /**
  9. * WlyyJobConfig entity. @author MyEclipse Persistence Tools
  10. */
  11. @Entity
  12. @Table(name = "wlyy_job_config")
  13. public class WlyyJobConfig implements java.io.Serializable {
  14. // Fields
  15. private String id;
  16. private String quotaId;//指标id
  17. private String jobName;//任务名称
  18. private String jobInfo;//任务描述
  19. private String jobType;//任务类型(0--单次执行 1--周期执行 2--监听任务)
  20. private String jobClass;//任务执行的class
  21. private String quartzCron;//quartz表达式
  22. private String status;//1 启动 0停止
  23. private String del;//是否删除 1正常 0删除
  24. // Constructors
  25. /** default constructor */
  26. public WlyyJobConfig() {
  27. }
  28. /** minimal constructor */
  29. public WlyyJobConfig(String jobName) {
  30. this.jobName = jobName;
  31. }
  32. /** full constructor */
  33. public WlyyJobConfig(String jobName, String jobInfo, String jobType,
  34. String jobClass, String quartzCron, String status) {
  35. this.jobName = jobName;
  36. this.jobInfo = jobInfo;
  37. this.jobType = jobType;
  38. this.jobClass = jobClass;
  39. this.quartzCron = quartzCron;
  40. this.status = status;
  41. }
  42. // Property accessors
  43. @GenericGenerator(name = "generator", strategy = "uuid")
  44. @Id
  45. @GeneratedValue(generator = "generator")
  46. @Column(name = "id", unique = true, nullable = false, length = 50)
  47. public String getId() {
  48. return this.id;
  49. }
  50. public void setId(String id) {
  51. this.id = id;
  52. }
  53. @Column(name = "job_name", length = 50)
  54. public String getJobName() {
  55. return this.jobName;
  56. }
  57. public void setJobName(String jobName) {
  58. this.jobName = jobName;
  59. }
  60. @Column(name = "job_info", length = 200)
  61. public String getJobInfo() {
  62. return this.jobInfo;
  63. }
  64. public void setJobInfo(String jobInfo) {
  65. this.jobInfo = jobInfo;
  66. }
  67. @Column(name = "job_type", length = 10)
  68. public String getJobType() {
  69. return this.jobType;
  70. }
  71. public void setJobType(String jobType) {
  72. this.jobType = jobType;
  73. }
  74. @Column(name = "job_class", length = 200)
  75. public String getJobClass() {
  76. return jobClass;
  77. }
  78. public void setJobClass(String jobClass) {
  79. this.jobClass = jobClass;
  80. }
  81. @Column(name = "quartz_cron", length = 200)
  82. public String getQuartzCron() {
  83. return this.quartzCron;
  84. }
  85. public void setQuartzCron(String quartzCron) {
  86. this.quartzCron = quartzCron;
  87. }
  88. @Column(name = "status", length = 1)
  89. public String getStatus() {
  90. return this.status;
  91. }
  92. public void setStatus(String status) {
  93. this.status = status;
  94. }
  95. @Column(name = "quota_id", length = 50)
  96. public String getQuotaId() {
  97. return quotaId;
  98. }
  99. public void setQuotaId(String quotaId) {
  100. this.quotaId = quotaId;
  101. }
  102. @Column(name = "del", length = 1)
  103. public String getDel() {
  104. return del;
  105. }
  106. public void setDel(String del) {
  107. this.del = del;
  108. }
  109. }