⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jmdbofield.java

📁 MSN客服自动化机器人
💻 JAVA
字号:
package jm.dbo;

/**
 * DB字段描述 
 */
public class JMDBOField {
	private String name; // 名称

	private String type; // 类型

	private int length; // 长度

	private boolean notNull;// 是否为空

	private boolean unique;// 唯一

	private boolean primary;// 主键

	private String sqlType; // JDBC类型

	private String index; // 表中列位置

	private int precision; // 精度

	private int scale; // 单位

	private String defaultValue;// 默认
	
	private String value;// 默认
	
	private String description;// 描述

	public JMDBOField(){
		
	}
	public JMDBOField(String name){
		this.name = name;
	}
	
	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

	public int getLength() {
		return length;
	}

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

	public String getName() {
		return name;
	}

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

	public boolean isNotNull() {
		return notNull;
	}

	public void setNotNull(boolean notNull) {
		this.notNull = notNull;
	}

	public int getPrecision() {
		return precision;
	}

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

	public boolean isPrimary() {
		return primary;
	}

	public void setPrimary(boolean primary) {
		this.primary = primary;
	}

	public int getScale() {
		return scale;
	}

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

	public String getSqlType() {
		return sqlType;
	}

	public void setSqlType(String sqlType) {
		this.sqlType = sqlType;
	}

	public String getType() {
		return type;
	}

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

	public boolean isUnique() {
		return unique;
	}

	public void setUnique(boolean unique) {
		this.unique = unique;
	}
	
	public boolean equals(JMDBOField field) {
		return name.equals(field.getName());
	}
	
	public String toString() {
		return "name=" + this.getName() + ";type=" + this.getType()
				+ ";length=" + this.getLength();
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -