|
2 | 2 |
|
3 | 3 | public class Column { |
4 | 4 |
|
| 5 | + private int count;//获得所有列的数目及实际列数 |
| 6 | + private String name;//获得指定列的列名 |
| 7 | + private String value;//获得指定列的列值 |
| 8 | + private int type;//获得指定列的数据类型 |
| 9 | + private String typeName;//获得指定列的数据类型名 |
| 10 | + private String catalogName;//所在的Catalog名字 |
| 11 | + private String className;//对应数据类型的类 |
| 12 | + private int displaySize;//在数据库中类型的最大字符个数 |
| 13 | + private String label;//默认的列的标题 |
| 14 | + private String schemaName;//获得列的模式 |
| 15 | + private int precision;//某列类型的精确度(类型的长度) |
| 16 | + private int scale;//小数点后的位数 |
| 17 | + private String table;//获取某列对应的表名 |
| 18 | + private boolean autoInctement;// 是否自动递增 |
| 19 | + private boolean isCurrency;//在数据库中是否为货币型 |
| 20 | + private int nullable;//是否为空 |
| 21 | + private boolean readOnly;//是否为只读 |
| 22 | + private boolean searchable;//能否出现在where中 |
| 23 | + |
| 24 | + public Column() { |
| 25 | + super(); |
| 26 | + } |
| 27 | + public Column(String name) { |
| 28 | + this(); |
| 29 | + setName(name); |
| 30 | + } |
| 31 | + public int getCount() { |
| 32 | + return count; |
| 33 | + } |
| 34 | + public void setCount(int count) { |
| 35 | + this.count = count; |
| 36 | + } |
| 37 | + public String getName() { |
| 38 | + return name; |
| 39 | + } |
| 40 | + public void setName(String name) { |
| 41 | + this.name = name; |
| 42 | + } |
| 43 | + public String getValue() { |
| 44 | + return value; |
| 45 | + } |
| 46 | + public void setValue(String value) { |
| 47 | + this.value = value; |
| 48 | + } |
| 49 | + public int getType() { |
| 50 | + return type; |
| 51 | + } |
| 52 | + public void setType(int type) { |
| 53 | + this.type = type; |
| 54 | + } |
| 55 | + public String getTypeName() { |
| 56 | + return typeName; |
| 57 | + } |
| 58 | + public void setTypeName(String typeName) { |
| 59 | + this.typeName = typeName; |
| 60 | + } |
| 61 | + public String getCatalogName() { |
| 62 | + return catalogName; |
| 63 | + } |
| 64 | + public void setCatalogName(String catalogName) { |
| 65 | + this.catalogName = catalogName; |
| 66 | + } |
| 67 | + public String getClassName() { |
| 68 | + return className; |
| 69 | + } |
| 70 | + public void setClassName(String className) { |
| 71 | + this.className = className; |
| 72 | + } |
| 73 | + public int getDisplaySize() { |
| 74 | + return displaySize; |
| 75 | + } |
| 76 | + public void setDisplaySize(int displaySize) { |
| 77 | + this.displaySize = displaySize; |
| 78 | + } |
| 79 | + public String getLabel() { |
| 80 | + return label; |
| 81 | + } |
| 82 | + public void setLabel(String label) { |
| 83 | + this.label = label; |
| 84 | + } |
| 85 | + public String getSchemaName() { |
| 86 | + return schemaName; |
| 87 | + } |
| 88 | + public void setSchemaName(String schemaName) { |
| 89 | + this.schemaName = schemaName; |
| 90 | + } |
| 91 | + public int getPrecision() { |
| 92 | + return precision; |
| 93 | + } |
| 94 | + public void setPrecision(int precision) { |
| 95 | + this.precision = precision; |
| 96 | + } |
| 97 | + public int getScale() { |
| 98 | + return scale; |
| 99 | + } |
| 100 | + public void setScale(int scale) { |
| 101 | + this.scale = scale; |
| 102 | + } |
| 103 | + public String getTable() { |
| 104 | + return table; |
| 105 | + } |
| 106 | + public void setTable(String table) { |
| 107 | + this.table = table; |
| 108 | + } |
| 109 | + public boolean isAutoInctement() { |
| 110 | + return autoInctement; |
| 111 | + } |
| 112 | + public void setAutoInctement(boolean autoInctement) { |
| 113 | + this.autoInctement = autoInctement; |
| 114 | + } |
| 115 | + public boolean getIsCurrency() { |
| 116 | + return isCurrency; |
| 117 | + } |
| 118 | + public void setIsCurrency(boolean isCurrency) { |
| 119 | + this.isCurrency = isCurrency; |
| 120 | + } |
| 121 | + public int getNullable() { |
| 122 | + return nullable; |
| 123 | + } |
| 124 | + public void setNullable(int nullable) { |
| 125 | + this.nullable = nullable; |
| 126 | + } |
| 127 | + public boolean getReadOnly() { |
| 128 | + return readOnly; |
| 129 | + } |
| 130 | + public void setReadOnly(boolean readOnly) { |
| 131 | + this.readOnly = readOnly; |
| 132 | + } |
| 133 | + public boolean getSearchable() { |
| 134 | + return searchable; |
| 135 | + } |
| 136 | + public void setSearchable(boolean searchable) { |
| 137 | + this.searchable = searchable; |
| 138 | + } |
| 139 | + |
5 | 140 | } |
0 commit comments