mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add getType and setType
This commit is contained in:
parent
05342b48d7
commit
ec60393c28
@ -197,6 +197,26 @@ public class Column implements Serializable, Cloneable {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取数据库字段类型,包括长度
|
||||||
|
*
|
||||||
|
* @return 数据库字段类型,包括长度
|
||||||
|
*/
|
||||||
|
public ColumnType getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设置数据库字段类型,包括长度
|
||||||
|
*
|
||||||
|
* @param type 数据库字段类型,包括长度
|
||||||
|
* @return this
|
||||||
|
*/
|
||||||
|
public Column setType(final ColumnType type) {
|
||||||
|
this.type = type;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取小数位数
|
* 获取小数位数
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user