|
@@ -41,6 +41,16 @@ public class Field {
|
|
|
*/
|
|
|
private boolean unmodifiabled;
|
|
|
|
|
|
+ /**
|
|
|
+ * 字段大小
|
|
|
+ */
|
|
|
+ private int columnSize;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 字段比例
|
|
|
+ */
|
|
|
+ private int ratio;
|
|
|
+
|
|
|
public Field() {
|
|
|
}
|
|
|
|
|
@@ -57,6 +67,15 @@ public class Field {
|
|
|
this.pk = pk;
|
|
|
}
|
|
|
|
|
|
+ public Field(String name, String typeName, int type, boolean pk,int columnSize,int ratio) {
|
|
|
+ this.name = name;
|
|
|
+ this.typeName = typeName;
|
|
|
+ this.type = type;
|
|
|
+ this.pk = pk;
|
|
|
+ this.columnSize = columnSize;
|
|
|
+ this.ratio = ratio;
|
|
|
+ }
|
|
|
+
|
|
|
public Field(String name, String typeName, int type, boolean pk, String labelName, boolean unmodifiabled) {
|
|
|
this.name = name;
|
|
|
this.typeName = typeName;
|