public class TablePropertyDefinerImpl extends Object implements TablePropertyDefiner
| 构造器和说明 |
|---|
TablePropertyDefinerImpl(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 |
index(IndexType indexType,
String indexName,
String using,
String comment)
建立索引
|
TablePropertyDefiner |
notNull(boolean notNull)
是否非空
|
TablePropertyDefiner |
primaryKey(boolean primaryKey)
是否主键
|
TablePropertyDefiner |
strategy(IdStrategy idStrategy)
指定id生成策略
|
public TablePropertyDefinerImpl(Property property, TableDefiner tableDefiner)
public TablePropertyDefiner id(boolean id)
TablePropertyDefinerid 在接口中 TablePropertyDefinerpublic TablePropertyDefiner strategy(IdStrategy idStrategy)
TablePropertyDefinerstrategy 在接口中 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 primaryKey(boolean primaryKey)
TablePropertyDefinerprimaryKey 在接口中 TablePropertyDefinerpublic TablePropertyDefiner check(String check)
TablePropertyDefinercheck 在接口中 TablePropertyDefinerpublic TablePropertyDefiner defaultValue(String defaultValue)
TablePropertyDefinerdefaultValue 在接口中 TablePropertyDefinerpublic TablePropertyDefiner index(IndexType indexType, String indexName, String using, String comment)
TablePropertyDefinerindex 在接口中 TablePropertyDefinerindexType - 索引类型indexName - 索引名称(可为空)using - 索引方法(可为空)comment - 索引注释(可为空)public TableDefiner done()
TablePropertyDefinerdone 在接口中 TablePropertyDefinerCopyright © 2023. All rights reserved.