commit | author | age
|
a18bfa
|
1 |
package cn.autoform.db.exten; |
Z |
2 |
|
|
3 |
import java.util.List; |
|
4 |
import java.util.Map; |
|
5 |
|
|
6 |
/** |
|
7 |
* 更改表结构(字段) |
|
8 |
* @author yuezhw |
|
9 |
* |
|
10 |
*/ |
|
11 |
public class TableStructure { |
|
12 |
|
|
13 |
/** |
|
14 |
* 表名 |
|
15 |
*/ |
|
16 |
private String tableName; |
|
17 |
|
|
18 |
/** |
|
19 |
* 租户idformID |
|
20 |
*/ |
|
21 |
private String tenantId; |
|
22 |
|
|
23 |
/** |
|
24 |
* 表单id |
|
25 |
*/ |
|
26 |
private String formId; |
|
27 |
|
|
28 |
/** |
|
29 |
* 表中字段{例如:field12}及对应的控件名{例如:varChar(30)} |
|
30 |
*/ |
|
31 |
private Map<String,Object> fields; |
|
32 |
|
|
33 |
/** |
|
34 |
* 子表 |
|
35 |
*/ |
|
36 |
private List<SubTableStructure> SubTableList; |
|
37 |
|
|
38 |
/** |
|
39 |
* 判断是创建还是修改表 |
|
40 |
* @return |
|
41 |
*/ |
|
42 |
private String flag; |
|
43 |
|
|
44 |
/** |
|
45 |
* 修改表结构时新列名 |
|
46 |
*/ |
|
47 |
private List<Integer> cloumnOrderNumList; |
|
48 |
|
|
49 |
/** |
|
50 |
* 新列的属性 |
|
51 |
* @return |
|
52 |
*/ |
|
53 |
private List<String> fieldtypeList; |
|
54 |
|
|
55 |
/** |
|
56 |
* 修改表结构时新列 |
|
57 |
*/ |
|
58 |
private List<String> aliasValues ; |
|
59 |
|
|
60 |
/** |
|
61 |
* 更改表结构时字段别名及类型 |
|
62 |
*/ |
|
63 |
private Map<String,String> aliasValuesMap; |
|
64 |
|
|
65 |
|
|
66 |
private String mapperID; |
|
67 |
|
|
68 |
private String creatUser; |
|
69 |
|
|
70 |
private String updateUser; |
|
71 |
|
|
72 |
private Integer dataRowNum; |
|
73 |
|
|
74 |
private Integer formDataNum; |
|
75 |
|
|
76 |
|
|
77 |
public Integer getFormDataNum() { |
|
78 |
return formDataNum; |
|
79 |
} |
|
80 |
|
|
81 |
public void setFormDataNum(Integer formDataNum) { |
|
82 |
this.formDataNum = formDataNum; |
|
83 |
} |
|
84 |
|
|
85 |
public String getCreatUser() { |
|
86 |
return creatUser; |
|
87 |
} |
|
88 |
|
|
89 |
public void setCreatUser(String creatUser) { |
|
90 |
this.creatUser = creatUser; |
|
91 |
} |
|
92 |
|
|
93 |
public String getUpdateUser() { |
|
94 |
return updateUser; |
|
95 |
} |
|
96 |
|
|
97 |
public void setUpdateUser(String updateUser) { |
|
98 |
this.updateUser = updateUser; |
|
99 |
} |
|
100 |
|
|
101 |
public Integer getDataRowNum() { |
|
102 |
return dataRowNum; |
|
103 |
} |
|
104 |
|
|
105 |
public void setDataRowNum(Integer dataRowNum) { |
|
106 |
this.dataRowNum = dataRowNum; |
|
107 |
} |
|
108 |
|
|
109 |
public String getTenantId() { |
|
110 |
return tenantId; |
|
111 |
} |
|
112 |
|
|
113 |
public void setTenantId(String tenantId) { |
|
114 |
this.tenantId = tenantId; |
|
115 |
} |
|
116 |
|
|
117 |
public String getFormId() { |
|
118 |
return formId; |
|
119 |
} |
|
120 |
|
|
121 |
public void setFormId(String formId) { |
|
122 |
this.formId = formId; |
|
123 |
} |
|
124 |
|
|
125 |
public String getMapperID() { |
|
126 |
return mapperID; |
|
127 |
} |
|
128 |
|
|
129 |
public void setMapperID(String mapperID) { |
|
130 |
this.mapperID = mapperID; |
|
131 |
} |
|
132 |
|
|
133 |
public Map<String, String> getAliasValuesMap() { |
|
134 |
return aliasValuesMap; |
|
135 |
} |
|
136 |
|
|
137 |
public void setAliasValuesMap(Map<String, String> aliasValuesMap) { |
|
138 |
this.aliasValuesMap = aliasValuesMap; |
|
139 |
} |
|
140 |
|
|
141 |
public List<String> getAliasValues() { |
|
142 |
return aliasValues; |
|
143 |
} |
|
144 |
|
|
145 |
public void setAliasValues(List<String> aliasValues) { |
|
146 |
this.aliasValues = aliasValues; |
|
147 |
} |
|
148 |
|
|
149 |
public List<Integer> getCloumnOrderNumList() { |
|
150 |
return cloumnOrderNumList; |
|
151 |
} |
|
152 |
|
|
153 |
public void setCloumnOrderNumList(List<Integer> cloumnOrderNumList) { |
|
154 |
this.cloumnOrderNumList = cloumnOrderNumList; |
|
155 |
} |
|
156 |
|
|
157 |
public List<String> getFieldtypeList() { |
|
158 |
return fieldtypeList; |
|
159 |
} |
|
160 |
|
|
161 |
public void setFieldtypeList(List<String> fieldtypeList) { |
|
162 |
this.fieldtypeList = fieldtypeList; |
|
163 |
} |
|
164 |
|
|
165 |
public String getFlag() { |
|
166 |
return flag; |
|
167 |
} |
|
168 |
|
|
169 |
public void setFlag(String flag) { |
|
170 |
this.flag = flag; |
|
171 |
} |
|
172 |
|
|
173 |
public String getTableName() { |
|
174 |
return tableName; |
|
175 |
} |
|
176 |
|
|
177 |
public void setTableName(String tableName) { |
|
178 |
this.tableName = tableName; |
|
179 |
} |
|
180 |
|
|
181 |
public Map<String, Object> getFields() { |
|
182 |
return fields; |
|
183 |
} |
|
184 |
|
|
185 |
public void setFields(Map<String, Object> fields) { |
|
186 |
this.fields = fields; |
|
187 |
} |
|
188 |
|
|
189 |
public List<SubTableStructure> getSubTableList() { |
|
190 |
return SubTableList; |
|
191 |
} |
|
192 |
|
|
193 |
public void setSubTableList(List<SubTableStructure> subTableList) { |
|
194 |
SubTableList = subTableList; |
|
195 |
} |
|
196 |
|
|
197 |
} |