public interface TablePropertyDefiner
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
index(IndexType indexType,
String indexName,
String using,
String comment)
建立索引
|
TablePropertyDefiner |
notNull(boolean notNull)
是否非空
|
TablePropertyDefiner |
primaryKey(boolean primaryKey)
是否主键
|
TablePropertyDefiner |
strategy(IdStrategy idStrategy)
指定id生成策略
|
TablePropertyDefiner id(boolean id)
TablePropertyDefiner strategy(IdStrategy idStrategy)
TablePropertyDefiner columnType(String columnType)
TablePropertyDefiner columnName(String columnName)
TablePropertyDefiner comment(String comment)
TablePropertyDefiner notNull(boolean notNull)
TablePropertyDefiner primaryKey(boolean primaryKey)
TablePropertyDefiner check(String check)
TablePropertyDefiner defaultValue(String defaultValue)
TablePropertyDefiner index(IndexType indexType, String indexName, String using, String comment)
indexType - 索引类型indexName - 索引名称(可为空)using - 索引方法(可为空)comment - 索引注释(可为空)TableDefiner done()
Copyright © 2021. All rights reserved.