com.github.rexsheng.springboot.faster.system.entity.table.JobLogTableDef Maven / Gradle / Ivy
The newest version!
package com.github.rexsheng.springboot.faster.system.entity.table;
import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;
// Auto generate by mybatis-flex, do not modify it.
public class JobLogTableDef extends TableDef {
/**
* 定时任务日志表 实体类。
@author sheng
@since 2024-06-02
*/
public static final JobLogTableDef JOB_LOG = new JobLogTableDef();
/**
* ID
*/
public final QueryColumn ID = new QueryColumn(this, "id");
/**
* 任务ID
*/
public final QueryColumn JOB_ID = new QueryColumn(this, "job_id");
/**
* 运行状态
*/
public final QueryColumn STATE = new QueryColumn(this, "state");
/**
* 主机IP
*/
public final QueryColumn HOST_IP = new QueryColumn(this, "host_ip");
/**
* 结束时间
*/
public final QueryColumn END_TIME = new QueryColumn(this, "end_time");
/**
* 耗时(毫秒)
*/
public final QueryColumn COST_TIME = new QueryColumn(this, "cost_time");
/**
* 主机名称
*/
public final QueryColumn HOST_NAME = new QueryColumn(this, "host_name");
/**
* 执行类
*/
public final QueryColumn EXEC_CLAZZ = new QueryColumn(this, "exec_clazz");
/**
* 执行参数JSON
*/
public final QueryColumn EXEC_PARAM = new QueryColumn(this, "exec_param");
/**
* 输出结果
*/
public final QueryColumn JOB_RESULT = new QueryColumn(this, "job_result");
/**
* 开始时间
*/
public final QueryColumn START_TIME = new QueryColumn(this, "start_time");
/**
* 触发器ID
*/
public final QueryColumn TRIGGER_ID = new QueryColumn(this, "trigger_id");
/**
* 执行方法
*/
public final QueryColumn EXEC_METHOD = new QueryColumn(this, "exec_method");
/**
* 所有字段。
*/
public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");
/**
* 默认字段,不包含逻辑删除或者 large 等字段。
*/
public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, JOB_ID, STATE, HOST_IP, END_TIME, COST_TIME, HOST_NAME, EXEC_CLAZZ, EXEC_PARAM, JOB_RESULT, START_TIME, TRIGGER_ID, EXEC_METHOD};
public JobLogTableDef() {
super("", "sys_job_log");
}
private JobLogTableDef(String schema, String name, String alisa) {
super(schema, name, alisa);
}
public JobLogTableDef as(String alias) {
String key = getNameWithSchema() + "." + alias;
return getCache(key, k -> new JobLogTableDef("", "sys_job_log", alias));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy