| 程序包 | 说明 |
|---|---|
| org.openingo.jdkits |
| 限定符和类型 | 方法和说明 |
|---|---|
static DDLKit.Column |
DDLKit.createColumn(String columnName,
String columnType,
boolean unsigned,
String comment,
int columnSize,
Object defaultValue,
boolean primaryKey,
boolean uniqueKey)
创建一个Unsigned Column
|
static DDLKit.Column |
DDLKit.createColumn(String columnName,
String columnType,
String comment,
int columnSize,
Object defaultValue)
创建一个Column
|
static DDLKit.Column |
DDLKit.createColumn(String columnName,
String columnType,
String comment,
int columnSize,
Object defaultValue,
boolean primaryKey,
boolean uniqueKey)
创建一个Column
|
static DDLKit.Column |
DDLKit.createIntColumn(String columnName,
String comment,
int columnSize,
Object defaultValue)
创建一个Int Column
|
static DDLKit.Column |
DDLKit.createPrimaryKey(String columnName,
String columnType,
String comment,
int columnSize,
Object defaultValue)
生成Primary Key
|
static DDLKit.Column |
DDLKit.createSignedIntColumn(String columnName,
String comment,
int columnSize,
Object defaultValue)
创建一个 Signed Int Column
|
static DDLKit.Column |
DDLKit.createSignedTinyIntColumn(String columnName,
String comment,
int columnSize,
Object defaultValue)
创建一个 Signed TinyInt Column
|
static DDLKit.Column |
DDLKit.createTextColumn(String columnName,
String comment,
int columnSize,
Object defaultValue)
创建一个Text Column
|
static DDLKit.Column |
DDLKit.createTinyIntColumn(String columnName,
String comment,
int columnSize,
Object defaultValue)
创建一个TinyInt Column
|
static DDLKit.Column |
DDLKit.createTinyTextColumn(String columnName,
String comment,
int columnSize,
Object defaultValue)
创建一个TinyText Column
|
static DDLKit.Column |
DDLKit.createUniqueKey(String columnName,
String columnType,
String comment,
int columnSize,
Object defaultValue)
生成 unique Key
|
static DDLKit.Column |
DDLKit.createVarcharColumn(String columnName,
String comment,
int columnSize,
Object defaultValue)
创建一个Varchar Column
|
| 限定符和类型 | 方法和说明 |
|---|---|
DDLKit.Table |
DDLKit.Table.addColumn(DDLKit.Column column)
添加一列到表中
|
| 限定符和类型 | 方法和说明 |
|---|---|
DDLKit.Table |
DDLKit.Table.addColumns(List<DDLKit.Column> columns)
添加Columns
|
static String |
DDLKit.createTable(String tableName,
String comment,
List<DDLKit.Column> columns)
创建一个table
|
Copyright © 2020. All rights reserved.