public class DB_MySql_Opera extends Object implements I_TableOperation
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_DATE_VALUE
日期、时间默认值
|
static LinkedList<Class> |
ON_UPDATE_APPLIED
.
|
| 构造器和说明 |
|---|
DB_MySql_Opera(JbaTemplate jbaTemplate) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
createTable(TableProperties tbl)
创建表
|
void |
dropTable(TableProperties tbl)
删除表结构
|
boolean |
isTableExists(String tblName)
判断表结构是否存在
|
String |
updateIndex(TableProperties tbl,
boolean created)
更新索引
|
void |
updateTable(TableProperties tbl)
更新表结构
|
public static final LinkedList<Class> ON_UPDATE_APPLIED
public DB_MySql_Opera(JbaTemplate jbaTemplate)
public boolean isTableExists(String tblName)
I_TableOperationisTableExists 在接口中 I_TableOperationtblName - 表名public void createTable(TableProperties tbl)
I_TableOperationcreateTable 在接口中 I_TableOperationtbl - 表属性public void updateTable(TableProperties tbl)
I_TableOperationupdateTable 在接口中 I_TableOperationtbl - 表属性public void dropTable(TableProperties tbl)
I_TableOperationdropTable 在接口中 I_TableOperationtbl - 表属性public String updateIndex(TableProperties tbl, boolean created)
tbl - 表created - 是否是创建Copyright © 2019. All rights reserved.