com.lingdonge.quartz.domain.ScheduleJob Maven / Gradle / Ivy
package com.lingdonge.quartz.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
/**
* 计划任务信息
*/
@Entity
@Table(name = "schedule_job")
public class ScheduleJob implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
private Integer id;
/**
* 任务id
*/
private long jobId;
/**
* 任务名称
*/
private String jobName;
/**
* Spring中使用的Bean任务类
*/
private String springId;
/**
* 执行的方法名
*/
private String methodName;
/**
* 任务分组
*/
private String jobGroup;
/**
* 任务状态 0禁用 1启用 2删除
*/
private Integer jobStatus;
/**
* 任务运行时间表达式
*/
private String cronExpression;
/**
* 任务描述
*/
private String description;
public Integer getJobStatus() {
return jobStatus;
}
public void setJobStatus(Integer jobStatus) {
this.jobStatus = jobStatus;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public long getJobId() {
return jobId;
}
public void setJobId(long jobId) {
this.jobId = jobId;
}
public String getMethodName() {
return methodName;
}
public void setMethodName(String methodName) {
this.methodName = methodName;
}
public String getSpringId() {
return springId;
}
public void setSpringId(String springId) {
this.springId = springId;
}
public String getJobName() {
return jobName;
}
public void setJobName(String jobName) {
this.jobName = jobName;
}
public String getJobGroup() {
return jobGroup;
}
public void setJobGroup(String jobGroup) {
this.jobGroup = jobGroup;
}
public String getCronExpression() {
return cronExpression;
}
public void setCronExpression(String cronExpression) {
this.cronExpression = cronExpression;
}
}