public interface CodeGenService
| 限定符和类型 | 方法和说明 |
|---|---|
void |
generate(DataSourceConfig dataSourceConfig,
CommonConfig commonConfig,
TemplateConfig templateConfig,
StrategyConfig strategyConfig)
生成模板代码.
|
TableInfo |
getTableInfo(DataSourceConfig dataSourceConfig,
String tableName)
获取表信息.
|
List<String> |
getTableNames(DataSourceConfig dataSourceConfig)
获取数据库所有表名.
|
void generate(DataSourceConfig dataSourceConfig, CommonConfig commonConfig, TemplateConfig templateConfig, StrategyConfig strategyConfig) throws Exception
dataSourceConfig - 数据库配置commonConfig - 通用配置templateConfig - 模板配置strategyConfig - 生成策略配置SQLException - 异常ExceptionTableInfo getTableInfo(DataSourceConfig dataSourceConfig, String tableName) throws SQLException
dataSourceConfig - 数据库配置tableName - 表名SQLException - 异常List<String> getTableNames(DataSourceConfig dataSourceConfig) throws SQLException
dataSourceConfig - 数据库配置ÒSQLException - 异常Copyright © 2019. All rights reserved.