📄 dbfield.java
字号:
package com.easyjf.dbo;
/**
*
* <p>
* 表字段定义信息,主要通能配置文件产生
* </p>
*
* <p>
* 描述表字段的定义信息,若有配置文件则直接通过配置文件产生,若没有配置文件,则自动分析表结构产生
* </p>
* <p>
* Copyright (c) 2006
* </p>
* <p>
*@company EasyJF开源团队-EasyDBO项目组
* </p>
*
* @author 蔡世友
* @version 1.0
*/
public class DBField {
/**
* 是否要验证
*/
private String check;
/**
* 默认值
*/
private String defaultValue;
/**
* 字段详细
*/
private String description;
/**
* 索引
*/
private String index;
/**
* 长度
*/
private int length;
/**
* 字段名
*/
private String name;
/**
* 是否不为空
*/
private boolean notNull;
/**
* 精度
*/
private int precision;
/**
* 准度
*/
private int scale;
/**
* 数据库类型
*/
private String sqlType;
/**
* java对象类型
*/
private Class type;
/**
* 是否唯一
*/
private boolean unique;
/**
* 唯一标识
*/
private String uniquekey;
private boolean lazy;
// ~--- methods ------------------------------------------------------------
public String toString() {
return "name=" + this.getName() + ";type=" + this.getType()
+ ";length=" + this.getLength();
}
// ~--- get methods --------------------------------------------------------
public String getCheck() {
return check;
}
public String getDefaultValue() {
return defaultValue;
}
/**
*
* @return String
*/
public String getDescription() {
return description;
}
public String getIndex() {
return index;
}
public int getLength() {
return length;
}
/**
*
* @return String
*/
public String getName() {
return name;
}
public int getPrecision() {
return precision;
}
public int getScale() {
return scale;
}
public String getSqlType() {
return sqlType;
}
public String getUniquekey() {
return uniquekey;
}
public boolean isNotNull() {
return notNull;
}
public boolean isUnique() {
return unique;
}
// ~--- set methods --------------------------------------------------------
public void setCheck(String check) {
this.check = check;
}
public void setDefaultValue(String defaultValue) {
this.defaultValue = defaultValue;
}
/**
*
* @param description
* String
*/
public void setDescription(String description) {
this.description = description;
}
public void setIndex(String index) {
this.index = index;
}
public void setLength(int length) {
this.length = length;
}
public void setName(String name) {
this.name = name;
}
public void setNotNull(boolean notNull) {
this.notNull = notNull;
}
public void setPrecision(int precision) {
this.precision = precision;
}
public void setScale(int scale) {
this.scale = scale;
}
public void setSqlType(String sqlType) {
this.sqlType = sqlType;
}
public void setUnique(boolean unique) {
this.unique = unique;
}
public void setUniquekey(String uniquekey) {
this.uniquekey = uniquekey;
}
public Class getType() {
return type;
}
public void setType(Class type) {
this.type = type;
}
public boolean isLazy() {
return lazy;
}
public void setLazy(boolean lazy) {
this.lazy = lazy;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -