|
|
@ -4,6 +4,8 @@ import javafx.beans.property.BooleanProperty;
|
|
|
|
import javafx.beans.property.IntegerProperty;
|
|
|
|
import javafx.beans.property.IntegerProperty;
|
|
|
|
import javafx.beans.property.SimpleBooleanProperty;
|
|
|
|
import javafx.beans.property.SimpleBooleanProperty;
|
|
|
|
import javafx.beans.property.SimpleIntegerProperty;
|
|
|
|
import javafx.beans.property.SimpleIntegerProperty;
|
|
|
|
|
|
|
|
import javafx.beans.property.SimpleStringProperty;
|
|
|
|
|
|
|
|
import javafx.beans.property.StringProperty;
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
import xyz.wbsite.dbtool.javafx.tool.Tool;
|
|
|
|
import xyz.wbsite.dbtool.javafx.tool.Tool;
|
|
|
|
|
|
|
|
|
|
|
@ -18,14 +20,9 @@ public class Field extends Table {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Field(String fieldName) {
|
|
|
|
public Field(String fieldName) {
|
|
|
|
this.fieldName = fieldName;
|
|
|
|
this.fieldName.setValue(fieldName);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 字段名
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private String fieldName;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 字段类型
|
|
|
|
* 字段类型
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -163,13 +160,29 @@ public class Field extends Table {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getterName() {
|
|
|
|
public String getterName() {
|
|
|
|
return "get" + Tool.ABB2Abb(this.fieldName);
|
|
|
|
return "get" + Tool.ABB2Abb(this.fieldName.get());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String setterName() {
|
|
|
|
public String setterName() {
|
|
|
|
return "set" + Tool.ABB2Abb(this.fieldName);
|
|
|
|
return "set" + Tool.ABB2Abb(this.fieldName.get());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 字典名称
|
|
|
|
|
|
|
|
private final StringProperty fieldName = new SimpleStringProperty();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public StringProperty fieldNameProperty() {
|
|
|
|
|
|
|
|
return fieldName;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getFieldName() {
|
|
|
|
|
|
|
|
return fieldName.get();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setFieldName(String fieldName) {
|
|
|
|
|
|
|
|
this.fieldName.set(fieldName);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 字段长度
|
|
|
|
// 字段长度
|
|
|
|
private final IntegerProperty fieldLength = new SimpleIntegerProperty();
|
|
|
|
private final IntegerProperty fieldLength = new SimpleIntegerProperty();
|
|
|
|
|
|
|
|
|
|
|
@ -215,14 +228,6 @@ public class Field extends Table {
|
|
|
|
this.isQuery.set(isQuery);
|
|
|
|
this.isQuery.set(isQuery);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getFieldName() {
|
|
|
|
|
|
|
|
return fieldName;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setFieldName(String fieldName) {
|
|
|
|
|
|
|
|
this.fieldName = fieldName;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public FieldType getFieldType() {
|
|
|
|
public FieldType getFieldType() {
|
|
|
|
return fieldType;
|
|
|
|
return fieldType;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -264,10 +269,10 @@ public class Field extends Table {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getFName() {
|
|
|
|
public String getFName() {
|
|
|
|
return Tool.lineToFieldName(this.fieldName);
|
|
|
|
return Tool.lineToFieldName(this.fieldName.get());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getCName() {
|
|
|
|
public String getCName() {
|
|
|
|
return Tool.ABB2Abb(this.fieldName);
|
|
|
|
return Tool.ABB2Abb(this.fieldName.get());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|