123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- package com.yihu.jw.entity.job;
- import org.hibernate.annotations.GenericGenerator;
- /**
- * 计划任务
- */
- @Entity
- @Table(name = "wlyy_job_config")
- public class QuartzJobConfig implements java.io.Serializable {
- private String id;
- private String quotaId;//指标id
- private String jobName;//任务名称
- private String jobInfo;//任务描述
- private String jobType;//任务类型(0--单次执行 1--周期执行 2--监听任务)
- private String jobClass;//任务执行的class
- private String quartzCron;//quartz表达式
- private String status;//1 启动 0停止
- private String del;//是否删除 1正常 0删除
- private String sql;
- private String sqlCount;
- private String sqlDay;
- private String sqlYear;
- private String cacheKey;//缓存的key
- /** minimal constructor */
- public QuartzJobConfig() {
- }
- /** full constructor */
- public QuartzJobConfig(String jobName, String jobInfo, String jobType,
- String jobClass, String quartzCron, String status) {
- this.jobName = jobName;
- this.jobInfo = jobInfo;
- this.jobType = jobType;
- this.jobClass = jobClass;
- this.quartzCron = quartzCron;
- this.status = status;
- }
- // Property accessors
- @GenericGenerator(name = "generator", strategy = "uuid")
- @Id
- @GeneratedValue(generator = "generator")
- @Column(name = "id", unique = true, nullable = false, length = 50)
- public String getId() {
- return this.id;
- }
- public void setId(String id) {
- this.id = id;
- }
- @Column(name = "job_name", length = 50)
- public String getJobName() {
- return this.jobName;
- }
- public void setJobName(String jobName) {
- this.jobName = jobName;
- }
- @Column(name = "job_info", length = 200)
- public String getJobInfo() {
- return this.jobInfo;
- }
- public void setJobInfo(String jobInfo) {
- this.jobInfo = jobInfo;
- }
- @Column(name = "job_type", length = 10)
- public String getJobType() {
- return this.jobType;
- }
- public void setJobType(String jobType) {
- this.jobType = jobType;
- }
- @Column(name = "job_class", length = 200)
- public String getJobClass() {
- return jobClass;
- }
- public void setJobClass(String jobClass) {
- this.jobClass = jobClass;
- }
- @Column(name = "quartz_cron", length = 200)
- public String getQuartzCron() {
- return this.quartzCron;
- }
- public void setQuartzCron(String quartzCron) {
- this.quartzCron = quartzCron;
- }
- @Column(name = "status", length = 1)
- public String getStatus() {
- return this.status;
- }
- public void setStatus(String status) {
- this.status = status;
- }
- @Column(name = "quota_id", length = 50)
- public String getQuotaId() {
- return quotaId;
- }
- public void setQuotaId(String quotaId) {
- this.quotaId = quotaId;
- }
- @Column(name = "del", length = 1)
- public String getDel() {
- return del;
- }
- public void setDel(String del) {
- this.del = del;
- }
- public String getSql() {
- return sql;
- }
- public void setSql(String sql) {
- this.sql = sql;
- }
- public String getSqlCount() {
- return sqlCount;
- }
- public void setSqlCount(String sqlCount) {
- this.sqlCount = sqlCount;
- }
- public String getSqlDay() {
- return sqlDay;
- }
- public void setSqlDay(String sqlDay) {
- this.sqlDay = sqlDay;
- }
- public String getSqlYear() {
- return sqlYear;
- }
- public void setSqlYear(String sqlYear) {
- this.sqlYear = sqlYear;
- }
- public String getCacheKey() {
- return cacheKey;
- }
- public void setCacheKey(String cacheKey) {
- this.cacheKey = cacheKey;
- }
- }
|