映射数据库的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();
}
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值