package com.ruoyi.common.config.datamodeling;


public class GenConfig {

    /**
     * driver-class
     */
    public String driverClassName;

    /**
     * 数据库url
     */
    public String url;

    /**
     * 数据库用户名
     */
    public String username;

    /**
     * 数据库密码
     */
    public String password;
    /**
     * 数据库类型：mysql、oracle、dm、kingbasees、h2、sqlserver、postgresql等
     */
    public String dbtype;

    /**
     * 当前切换数据源切换是否替换当前连接数据源
     * true：不替换
     * false：替换
     */
    public boolean stateScode;

    public GenConfig() {

    }

    public GenConfig(String driverClassName, String url, String username, String password, String dbtype, boolean stateScode) {
        this.driverClassName = driverClassName;
        this.url = url;
        this.username = username;
        this.password = password;
        this.dbtype = dbtype;
        this.stateScode = stateScode;
    }

    @Override
    public String toString() {
        return "GenConfig{" +
                "driverClassName='" + driverClassName + '\'' +
                ", url='" + url + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", dbtype='" + dbtype + '\'' +
                ", stateScode=" + stateScode +
                '}';
    }

    public String getDriverClassName() {
        return driverClassName;
    }

    public void setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDbtype() {
        return dbtype;
    }

    public void setDbtype(String dbtype) {
        this.dbtype = dbtype;
    }

    public boolean isStateScode() {
        return stateScode;
    }

    public void setStateScode(boolean stateScode) {
        this.stateScode = stateScode;
    }
}
