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

com.huoguo.mybatisplus.batch.enums.SqlMethod Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package com.huoguo.mybatisplus.batch.enums;

/**
 * SQL片段枚举类
 * @author Lizhenghuang
 */
public enum SqlMethod {

    /** 新增 **/
    INSERT_LIST("insert", "插入集合数据", "INSERT INTO %s (%s) VALUES %s"),

    /** 删除 **/
    DELETE_LIST("delete", "逻辑删除数据", "DELETE FROM $s WHERE 1 = 1 $s");

    private final String method;
    private final String desc;
    private final String sql;

    SqlMethod(String method, String desc, String sql) {
        this.method = method;
        this.desc = desc;
        this.sql = sql;
    }

    public String getMethod() {
        return this.method;
    }

    public String getDesc() {
        return this.desc;
    }

    public String getSql() {
        return this.sql;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy