package com.mingrisoft.dao;

public class Columns {
	private String name;// 列名
	private String type;// 字段类型
	private boolean isNull;// 是否可以为null
	private boolean isKey;// 是否是主键
	private boolean isIncrement;// 是否自增

	public Columns() {
		super();
	}

	public Columns(String name, String type, boolean isNull, boolean isKey,
			boolean isIncrement) {
		super();
		this.name = name;
		this.type = type;
		this.isNull = isNull;
		this.isKey = isKey;
		this.isIncrement = isIncrement;
	}

	public String getName() {
		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 isNull() {
		return isNull;
	}

	public void setNull(boolean isNull) {
		this.isNull = isNull;
	}

	public boolean isKey() {
		return isKey;
	}

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

	public boolean isIncrement() {
		return isIncrement;
	}

	public void setIncrement(boolean isIncrement) {
		this.isIncrement = isIncrement;
	}

	@Override
	public String toString() {
		return "Columns [name=" + name + ", type=" + type + ", isNull="
				+ isNull + ", isKey=" + isKey + ", isIncrement=" + isIncrement
				+ "]";
	}

}
