public interface DAOOperation
| 限定符和类型 | 方法和说明 |
|---|---|
void |
generateEntityFile(String sourcePath,
String[] tableNames)
生成entity的java文件
|
DataSource |
getDataSource()
获取连接池
|
List<Entity> |
getDbEntityList()
获取数据库表列表
|
Map<String,Entity> |
getEntityMap()
获取扫描的所有实体类信息
|
Map<String,String> |
getFieldMapping()
获取字段类型映射信息
|
List<Property> |
getPropertyList(String tableName)
获取表字段列表
|
QuickDAOConfig |
getQuickDAOConfig()
获取配置信息
|
boolean |
hasColumn(String tableName,
String column)
字段是否存在
|
boolean |
hasTable(String tableName)
表是否存在
|
void |
interceptor(Interceptor interceptor)
添加过滤器
|
Transaction |
startTransaction()
开启事务
|
void interceptor(Interceptor interceptor)
Transaction startTransaction()
boolean hasTable(String tableName)
tableName - 表名boolean hasColumn(String tableName, String column)
tableName - 表名column - 字段名称DataSource getDataSource()
QuickDAOConfig getQuickDAOConfig()
Copyright © 2020. All rights reserved.