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

cn.vonce.sql.bean.ColumnInfo Maven / Gradle / Ivy

The newest version!
package cn.vonce.sql.bean;

/**
 * 列字段信息
 *
 * @author Jovi
 * @version 1.0
 * @email [email protected]
 */
public class ColumnInfo {

    /**
     * 列id
     */
    private Integer cid;
    /**
     * 列名
     */
    private String name;
    /**
     * 类型
     */
    private String type;
    /**
     * 是否可为null
     */
    private Boolean notnull;
    /**
     * 默认值
     */
    private String dfltValue;
    /**
     * 是否为主键
     */
    private Boolean pk;
    /**
     * 是否为外键
     */
    private Boolean fk;
    /**
     * 是否自增字段
     */
    private Boolean autoIncr;
    /**
     * 字段长度
     */
    private Long length;
    /**
     * 字段小数点精度
     */
    private Integer scale;
    /**
     * 注释
     */
    private String remarks;

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getName() {
        return name;
    }

    public String getName(boolean toUpperCase) {
        if (toUpperCase) {
            return name.toUpperCase();
        }
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Boolean getNotnull() {
        return notnull;
    }

    public void setNotnull(Boolean notnull) {
        this.notnull = notnull;
    }

    public String getDfltValue() {
        return dfltValue;
    }

    public void setDfltValue(String dfltValue) {
        this.dfltValue = dfltValue;
    }

    public Boolean getPk() {
        return pk;
    }

    public void setPk(Boolean pk) {
        this.pk = pk;
    }

    public Boolean getFk() {
        return fk;
    }

    public void setFk(Boolean fk) {
        this.fk = fk;
    }

    public Boolean getAutoIncr() {
        return autoIncr;
    }

    public void setAutoIncr(Boolean autoIncr) {
        this.autoIncr = autoIncr;
    }

    public Long getLength() {
        return length;
    }

    public void setLength(Long length) {
        this.length = length;
    }

    public Integer getScale() {
        return scale;
    }

    public void setScale(Integer scale) {
        this.scale = scale;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy