All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.rexsheng.springboot.faster.system.entity.table.JobTableDef 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 JobTableDef extends TableDef {

    /**
     * 定时任务表 实体类。

 @author sheng
 @since 2024-06-02
     */
    public static final JobTableDef JOB = new JobTableDef();

    /**
     * 任务ID
     */
    public final QueryColumn ID = new QueryColumn(this, "id");

    /**
     * 任务名称
     */
    public final QueryColumn NAME = new QueryColumn(this, "name");

    /**
     * 任务组
     */
    public final QueryColumn GROUP = new QueryColumn(this, "group");

    /**
     * 是否删除(0正常,1已删除)
     */
    public final QueryColumn IS_DEL = new QueryColumn(this, "is_del");

    /**
     * 备注
     */
    public final QueryColumn REMARK = new QueryColumn(this, "remark");

    /**
     * 状态(0正常,1停用)
     */
    public final QueryColumn STATUS = new QueryColumn(this, "status");

    /**
     * 异常通知邮件
     */
    public final QueryColumn ERROR_MAIL = new QueryColumn(this, "error_mail");

    /**
     * 执行类
     */
    public final QueryColumn EXEC_CLAZZ = new QueryColumn(this, "exec_clazz");

    /**
     * 执行参数JSON
     */
    public final QueryColumn EXEC_PARAM = new QueryColumn(this, "exec_param");

    /**
     * 是否并发
     */
    public final QueryColumn CONCURRENT = new QueryColumn(this, "concurrent");

    /**
     * 创建时间
     */
    public final QueryColumn CREATE_TIME = new QueryColumn(this, "create_time");

    /**
     * 创建人
     */
    public final QueryColumn CREATE_USER = new QueryColumn(this, "create_user");

    /**
     * 执行方法
     */
    public final QueryColumn EXEC_METHOD = new QueryColumn(this, "exec_method");

    /**
     * 修改时间
     */
    public final QueryColumn UPDATE_TIME = new QueryColumn(this, "update_time");

    /**
     * 修改人
     */
    public final QueryColumn UPDATE_USER = new QueryColumn(this, "update_user");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段,不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, NAME, GROUP, IS_DEL, REMARK, STATUS, ERROR_MAIL, EXEC_CLAZZ, EXEC_PARAM, CONCURRENT, CREATE_TIME, CREATE_USER, EXEC_METHOD, UPDATE_TIME, UPDATE_USER};

    public JobTableDef() {
        super("", "sys_job");
    }

    private JobTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public JobTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new JobTableDef("", "sys_job", alias));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy