public class DefaultTablePropertyDefiner extends Object implements TablePropertyDefiner
| 构造器和说明 |
|---|
DefaultTablePropertyDefiner(Property property,
TableDefiner tableDefiner) |
| 限定符和类型 | 方法和说明 |
|---|---|
TablePropertyDefiner |
check(String check)
check约束
|
TablePropertyDefiner |
columnName(String columnName)
列名
|
TablePropertyDefiner |
columnType(String columnType)
类型
|
TablePropertyDefiner |
comment(String comment)
注释
|
TablePropertyDefiner |
defaultValue(String defaultValue)
默认值
|
TableDefiner |
done()
结束
|
TablePropertyDefiner |
id(boolean id)
是否id属性
|
TablePropertyDefiner |
notNull(boolean notNull)
是否非空
|
TablePropertyDefiner |
primaryKey(boolean primaryKey)
是否主键
|
TablePropertyDefiner |
unique(boolean unique)
是否唯一
|
public DefaultTablePropertyDefiner(Property property, TableDefiner tableDefiner)
public TablePropertyDefiner id(boolean id)
TablePropertyDefinerid 在接口中 TablePropertyDefinerpublic TablePropertyDefiner columnType(String columnType)
TablePropertyDefinercolumnType 在接口中 TablePropertyDefinerpublic TablePropertyDefiner columnName(String columnName)
TablePropertyDefinercolumnName 在接口中 TablePropertyDefinerpublic TablePropertyDefiner comment(String comment)
TablePropertyDefinercomment 在接口中 TablePropertyDefinerpublic TablePropertyDefiner notNull(boolean notNull)
TablePropertyDefinernotNull 在接口中 TablePropertyDefinerpublic TablePropertyDefiner unique(boolean unique)
TablePropertyDefinerunique 在接口中 TablePropertyDefinerpublic TablePropertyDefiner primaryKey(boolean primaryKey)
TablePropertyDefinerprimaryKey 在接口中 TablePropertyDefinerpublic TablePropertyDefiner check(String check)
TablePropertyDefinercheck 在接口中 TablePropertyDefinerpublic TablePropertyDefiner defaultValue(String defaultValue)
TablePropertyDefinerdefaultValue 在接口中 TablePropertyDefinerpublic TableDefiner done()
TablePropertyDefinerdone 在接口中 TablePropertyDefinerCopyright © 2019. All rights reserved.