| 限定符和类型 | 方法和说明 |
|---|---|
void |
create(Class clazz)
建表
|
void |
drop(Class clazz)
删表
|
void |
drop(String tableName)
删表
|
DataSource |
getDataSource()
获取连接池
|
Entity[] |
getDbEntityList()
获取数据库信息
|
Map<String,Entity> |
getEntityMap()
获取扫描的所有实体类信息
|
boolean |
hasTable(String tableName)
表是否存在
|
void |
rebuild(Class clazz)
重建表
|
Transaction |
startTransaction()
开启事务
|
Transaction startTransaction()
boolean hasTable(String tableName)
tableName - 表名void create(Class clazz)
void drop(Class clazz)
void drop(String tableName)
void rebuild(Class clazz)
DataSource getDataSource()
Entity[] getDbEntityList()
Copyright © 2020. All rights reserved.