com.rt.orm.entity.ColumnEntity Maven / Gradle / Ivy
package com.rt.orm.entity;
import com.json.JSONObject;
import java.util.Map;
/**
* 数据表列信息
*
* @author mj
*/
public class ColumnEntity extends JSONObject {
private static final long serialVersionUID = 1L;
public static final String COLUMN_NAME = "COLUMN_NAME";
public static final String DATA_TYPE = "DATA_TYPE";
public static final String DATA_TYPE_VARCHAR = "varchar";
public static final String DATA_TYPE_DECIMAL = "decimal";
public static final String DATA_TYPE_BIGINT = "bigint";
public static final String DATA_TYPE_INT = "int";
public static final String DATA_TYPE_LONGTEXT = "longtext";
public static final String DATA_TYPE_TEXT = "text";
public ColumnEntity() {
super();
}
public ColumnEntity(Map map) {
super(map);
}
public ColumnEntity(String string) throws Exception {
super(string);
}
public String getColumnName() {
return getString(COLUMN_NAME);
}
public void setColumnName(String value) {
put(COLUMN_NAME, value);
}
public String getDataType() {
return getString(DATA_TYPE);
}
public void setDataType(String value) {
put(DATA_TYPE, value);
}
}