package com.iplatform.model.po; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.walker.jdbc.BasePo; /** * 表名:S_GEN_COLUMN * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) public class S_gen_column extends BasePo { // 序列化版本号 private static final long serialVersionUID = 1L; /** * 用于兼容老写法 */ @JsonIgnore public static final S_gen_column ROW_MAPPER = new S_gen_column(); // 主键 private Long column_id = null; @JsonIgnore protected boolean isset_column_id = false; // 属性列表 private String table_id = null; @JsonIgnore protected boolean isset_table_id = false; private String column_name = null; @JsonIgnore protected boolean isset_column_name = false; private String column_comment = null; @JsonIgnore protected boolean isset_column_comment = false; private String column_type = null; @JsonIgnore protected boolean isset_column_type = false; private String java_type = null; @JsonIgnore protected boolean isset_java_type = false; private String java_field = null; @JsonIgnore protected boolean isset_java_field = false; private String is_pk = null; @JsonIgnore protected boolean isset_is_pk = false; private String is_increment = null; @JsonIgnore protected boolean isset_is_increment = false; private String is_required = null; @JsonIgnore protected boolean isset_is_required = false; private String is_insert = null; @JsonIgnore protected boolean isset_is_insert = false; private String is_edit = null; @JsonIgnore protected boolean isset_is_edit = false; private String is_list = null; @JsonIgnore protected boolean isset_is_list = false; private String is_query = null; @JsonIgnore protected boolean isset_is_query = false; private String query_type = null; @JsonIgnore protected boolean isset_query_type = false; private String html_type = null; @JsonIgnore protected boolean isset_html_type = false; private String dict_type = null; @JsonIgnore protected boolean isset_dict_type = false; private Integer sort = null; @JsonIgnore protected boolean isset_sort = false; private String create_by = null; @JsonIgnore protected boolean isset_create_by = false; private Long create_time = null; @JsonIgnore protected boolean isset_create_time = false; /** * 默认构造函数 */ public S_gen_column() { } /** * 根据主键构造对象 */ public S_gen_column(Long column_id) { this.setColumn_id(column_id); } /** * 设置主键值 */ @Override public void setPkValue(Object value) { this.setColumn_id((Long) value); } public Long getColumn_id() { return this.column_id; } public void setColumn_id(Long column_id) { this.column_id = column_id; this.isset_column_id = true; } @JsonIgnore public boolean isEmptyColumn_id() { return this.column_id == null; } public String getTable_id() { return this.table_id; } public void setTable_id(String table_id) { this.table_id = table_id; this.isset_table_id = true; } @JsonIgnore public boolean isEmptyTable_id() { return this.table_id == null || this.table_id.length() == 0; } public String getColumn_name() { return this.column_name; } public void setColumn_name(String column_name) { this.column_name = column_name; this.isset_column_name = true; } @JsonIgnore public boolean isEmptyColumn_name() { return this.column_name == null || this.column_name.length() == 0; } public String getColumn_comment() { return this.column_comment; } public void setColumn_comment(String column_comment) { this.column_comment = column_comment; this.isset_column_comment = true; } @JsonIgnore public boolean isEmptyColumn_comment() { return this.column_comment == null || this.column_comment.length() == 0; } public String getColumn_type() { return this.column_type; } public void setColumn_type(String column_type) { this.column_type = column_type; this.isset_column_type = true; } @JsonIgnore public boolean isEmptyColumn_type() { return this.column_type == null || this.column_type.length() == 0; } public String getJava_type() { return this.java_type; } public void setJava_type(String java_type) { this.java_type = java_type; this.isset_java_type = true; } @JsonIgnore public boolean isEmptyJava_type() { return this.java_type == null || this.java_type.length() == 0; } public String getJava_field() { return this.java_field; } public void setJava_field(String java_field) { this.java_field = java_field; this.isset_java_field = true; } @JsonIgnore public boolean isEmptyJava_field() { return this.java_field == null || this.java_field.length() == 0; } public String getIs_pk() { return this.is_pk; } public void setIs_pk(String is_pk) { this.is_pk = is_pk; this.isset_is_pk = true; } @JsonIgnore public boolean isEmptyIs_pk() { return this.is_pk == null || this.is_pk.length() == 0; } public String getIs_increment() { return this.is_increment; } public void setIs_increment(String is_increment) { this.is_increment = is_increment; this.isset_is_increment = true; } @JsonIgnore public boolean isEmptyIs_increment() { return this.is_increment == null || this.is_increment.length() == 0; } public String getIs_required() { return this.is_required; } public void setIs_required(String is_required) { this.is_required = is_required; this.isset_is_required = true; } @JsonIgnore public boolean isEmptyIs_required() { return this.is_required == null || this.is_required.length() == 0; } public String getIs_insert() { return this.is_insert; } public void setIs_insert(String is_insert) { this.is_insert = is_insert; this.isset_is_insert = true; } @JsonIgnore public boolean isEmptyIs_insert() { return this.is_insert == null || this.is_insert.length() == 0; } public String getIs_edit() { return this.is_edit; } public void setIs_edit(String is_edit) { this.is_edit = is_edit; this.isset_is_edit = true; } @JsonIgnore public boolean isEmptyIs_edit() { return this.is_edit == null || this.is_edit.length() == 0; } public String getIs_list() { return this.is_list; } public void setIs_list(String is_list) { this.is_list = is_list; this.isset_is_list = true; } @JsonIgnore public boolean isEmptyIs_list() { return this.is_list == null || this.is_list.length() == 0; } public String getIs_query() { return this.is_query; } public void setIs_query(String is_query) { this.is_query = is_query; this.isset_is_query = true; } @JsonIgnore public boolean isEmptyIs_query() { return this.is_query == null || this.is_query.length() == 0; } public String getQuery_type() { return this.query_type; } public void setQuery_type(String query_type) { this.query_type = query_type; this.isset_query_type = true; } @JsonIgnore public boolean isEmptyQuery_type() { return this.query_type == null || this.query_type.length() == 0; } public String getHtml_type() { return this.html_type; } public void setHtml_type(String html_type) { this.html_type = html_type; this.isset_html_type = true; } @JsonIgnore public boolean isEmptyHtml_type() { return this.html_type == null || this.html_type.length() == 0; } public String getDict_type() { return this.dict_type; } public void setDict_type(String dict_type) { this.dict_type = dict_type; this.isset_dict_type = true; } @JsonIgnore public boolean isEmptyDict_type() { return this.dict_type == null || this.dict_type.length() == 0; } public Integer getSort() { return this.sort; } public void setSort(Integer sort) { this.sort = sort; this.isset_sort = true; } @JsonIgnore public boolean isEmptySort() { return this.sort == null; } public String getCreate_by() { return this.create_by; } public void setCreate_by(String create_by) { this.create_by = create_by; this.isset_create_by = true; } @JsonIgnore public boolean isEmptyCreate_by() { return this.create_by == null || this.create_by.length() == 0; } public Long getCreate_time() { return this.create_time; } public void setCreate_time(Long create_time) { this.create_time = create_time; this.isset_create_time = true; } @JsonIgnore public boolean isEmptyCreate_time() { return this.create_time == null; } /** * 重写 toString() 方法 */ @Override public String toString() { return new StringBuilder() .append("column_id=").append(this.column_id) .append("table_id=").append(this.table_id) .append("column_name=").append(this.column_name) .append("column_comment=").append(this.column_comment) .append("column_type=").append(this.column_type) .append("java_type=").append(this.java_type) .append("java_field=").append(this.java_field) .append("is_pk=").append(this.is_pk) .append("is_increment=").append(this.is_increment) .append("is_required=").append(this.is_required) .append("is_insert=").append(this.is_insert) .append("is_edit=").append(this.is_edit) .append("is_list=").append(this.is_list) .append("is_query=").append(this.is_query) .append("query_type=").append(this.query_type) .append("html_type=").append(this.html_type) .append("dict_type=").append(this.dict_type) .append("sort=").append(this.sort) .append("create_by=").append(this.create_by) .append("create_time=").append(this.create_time) .toString(); } /** * 克隆 */ public S_gen_column $clone() { S_gen_column s_gen_column = new S_gen_column(); // 数据库名称 //s_gen_column.setDatabaseName_(this.getDatabaseName_()); // 主键 if (this.isset_column_id) { s_gen_column.setColumn_id(this.getColumn_id()); } // 普通属性 if (this.isset_table_id) { s_gen_column.setTable_id(this.getTable_id()); } if (this.isset_column_name) { s_gen_column.setColumn_name(this.getColumn_name()); } if (this.isset_column_comment) { s_gen_column.setColumn_comment(this.getColumn_comment()); } if (this.isset_column_type) { s_gen_column.setColumn_type(this.getColumn_type()); } if (this.isset_java_type) { s_gen_column.setJava_type(this.getJava_type()); } if (this.isset_java_field) { s_gen_column.setJava_field(this.getJava_field()); } if (this.isset_is_pk) { s_gen_column.setIs_pk(this.getIs_pk()); } if (this.isset_is_increment) { s_gen_column.setIs_increment(this.getIs_increment()); } if (this.isset_is_required) { s_gen_column.setIs_required(this.getIs_required()); } if (this.isset_is_insert) { s_gen_column.setIs_insert(this.getIs_insert()); } if (this.isset_is_edit) { s_gen_column.setIs_edit(this.getIs_edit()); } if (this.isset_is_list) { s_gen_column.setIs_list(this.getIs_list()); } if (this.isset_is_query) { s_gen_column.setIs_query(this.getIs_query()); } if (this.isset_query_type) { s_gen_column.setQuery_type(this.getQuery_type()); } if (this.isset_html_type) { s_gen_column.setHtml_type(this.getHtml_type()); } if (this.isset_dict_type) { s_gen_column.setDict_type(this.getDict_type()); } if (this.isset_sort) { s_gen_column.setSort(this.getSort()); } if (this.isset_create_by) { s_gen_column.setCreate_by(this.getCreate_by()); } if (this.isset_create_time) { s_gen_column.setCreate_time(this.getCreate_time()); } return s_gen_column; } }