`
imcb
  • 浏览: 4675 次
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

映射数据库的VO类

阅读更多
package com.augurit.codebulder.builder.bean;


public class Field {
    private String fieldName; //字段名
    private int fieldType; //字段类型(整数表示)
    private boolean key; //是否主键
    private boolean empty; //是否可以为空
    private String typeName; //字段类型(sql类型)
    private int size; //字段长度
    private int precision; //字段精度
    private int scale; //小数位精度
    private String comment; //字段备注
    private boolean isView; //字段是否显示(控制性参数)

    public void setIsView(boolean isView) {
        this.isView = isView;
    }

    public boolean getIsView() {
        return this.isView;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public void setPrecision(int precision) {
        this.precision = precision;
    }

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

    public void setComment(String comment) {
        this.comment = comment;
    }

    public int getSize() {
        return this.size;
    }

    public int getPrecision() {
        return this.precision;
    }

    public int getScale() {
        return this.scale;
    }

    public String getComment() {
        return this.comment;
    }

    public boolean isEmpty() {
        return empty;
    }

    public void setEmpty(boolean empty) {
        this.empty = empty;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public int getFieldType() {
        return fieldType;
    }

    public void setFieldType(int fieldType) {
        this.fieldType = fieldType;
    }

    public boolean isKey() {
        return key;
    }

    public void setKey(boolean key) {
        this.key = key;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String toString() {
        StringBuffer str = new StringBuffer();
        str.append("fieldName= " + fieldName + "\n");
        str.append("fieldType= " + fieldType + "\n");
        str.append("typeName= " + typeName + "\n");
        str.append("key= " + key + "\n");
        str.append("empty= " + empty + "\n");
        str.append("size= " + size + "\n");
        str.append("precision= " + precision + "\n");
        str.append("scale= " + scale + "\n");
        str.append("comment= " + comment + "\n");
        str.append("isView= " + isView + "\n");
        return str.toString();
    }
}
分享到:
评论
Global site tag (gtag.js) - Google Analytics