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