package foundation.schedule;
|
|
import foundation.data.entity.Entity;
|
import foundation.json.IJSONWriter;
|
|
public class JobMeta {
|
|
private String id;
|
private String batchId;
|
private String actionName;
|
private String param;
|
private String remark;
|
private int indexNo;
|
private boolean acitve;
|
|
public JobMeta() {
|
|
}
|
|
public void load(Entity entity) {
|
id = entity.getString("id");
|
batchId = entity.getString("parent_id");
|
actionName = entity.getString("action_name");
|
param = entity.getString("param");
|
remark = entity.getString("remark");
|
indexNo = entity.getInteger("index_no", 0);
|
acitve = entity.getBoolean("is_active", true);
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public String getBatchId() {
|
return batchId;
|
}
|
|
public String getActionName() {
|
return actionName;
|
}
|
|
public String getParam() {
|
return param;
|
}
|
|
public String getRemark() {
|
return remark;
|
}
|
|
public int getIndexNo() {
|
return indexNo;
|
}
|
|
public boolean isAcitve() {
|
return acitve;
|
}
|
|
public void writeJSONBody(IJSONWriter writer) {
|
writer.write("id", id);
|
writer.write("batch_id", batchId);
|
writer.write("action_name", actionName);
|
writer.write("param", param);
|
writer.write("remark", remark);
|
writer.write("index_no", indexNo);
|
}
|
}
|